.account-body { min-height: 100vh; background: #f4f5f7; }
.account-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 88px 20px 48px;
}
.account-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 28px 28px 24px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.04);
}
.account-card h1 {
  font-family: Syne, "Noto Sans SC", sans-serif;
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.account-card label {
  display: block;
  margin: 14px 0;
  font-size: 13px;
  font-weight: 600;
}
.account-card input, .account-card select, .account-card textarea,
.me-panel input, .me-panel select, .me-panel textarea,
.admin-panel input, .admin-panel select, .admin-panel textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  font: inherit;
  background: #fafafa;
  resize: vertical;
}
.account-card .send { width: 100%; margin-top: 8px; }
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin: 10px 0 4px;
}
.captcha-row .captcha-input { flex: 1; margin: 0; }
.captcha-row .captcha-q {
  flex-shrink: 0;
  min-width: 7.5rem;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: #f3f1ec;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.captcha-row .captcha-q:hover { background: #eae7e0; }
.muted { color: #666; font-size: 13px; line-height: 1.5; }
.muted.tiny { font-size: 12px; margin-top: 16px; }
.err { color: #b33; font-size: 13px; margin: 8px 0; }
.switch { margin-top: 16px; font-size: 13px; }
.auth-slot { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; }
.cred-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0f0ee;
  color: #0a0a0a;
  border: 1px solid rgba(10, 10, 10, 0.12);
  text-decoration: none;
}
.top-nav a.cred-pill {
  color: #0a0a0a;
}
.top-nav a.cred-pill:hover {
  background: #fff;
  border-color: #0a0a0a;
}
.linkish {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
/* 按钮链不要被 .linkish 剥成下划线文字 */
a.btn-primary.linkish,
a.btn-secondary.linkish,
button.btn-primary.linkish,
button.btn-secondary.linkish {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
a.btn-primary.linkish,
button.btn-primary.linkish {
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}
a.btn-secondary.linkish,
button.btn-secondary.linkish {
  border: 1px solid rgba(10, 10, 10, 0.14);
  background: #fff;
  color: #0a0a0a;
}
a.btn-secondary.linkish:hover,
button.btn-secondary.linkish:hover {
  border-color: #0a0a0a;
}
.me-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  margin-top: 12px;
  align-items: start;
}
.me-grid > * { min-width: 0; }
.me-side {
  background: #f7f8fa;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 10px 8px;
  height: fit-content;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}
.me-side .nav-group {
  font-size: 11px;
  letter-spacing: .04em;
  color: #889;
  margin: 10px 8px 6px;
  text-transform: none;
  font-weight: 600;
}
.me-side .nav-group:first-child { margin-top: 2px; }
.me-side button, .me-side a.tab, .me-side a.btn-like {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 2px;
  color: inherit;
  text-decoration: none;
}
.me-side button.active,
.me-side a.tab.active,
.me-side a.tab.active:visited,
.me-side a.tab.active:hover {
  background: #111;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
}
.me-panel {
  background: transparent;
  border-radius: 0;
  border: 0;
  padding: 4px 4px 24px;
  min-height: 360px;
  overflow-x: hidden;
  max-width: 100%;
}
.me-panel h2 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: #111; }
.me-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.me-page-head .lead { margin: 6px 0 0; font-size: 13px; color: #667; max-width: 56ch; line-height: 1.5; }
.me-page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex-shrink: 0; }
.me-page-actions .btn-primary,
.me-page-actions .btn-secondary {
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
/* 盖过 .me-panel button 浅底，避免白字看不见 */
.me-panel button.btn-primary,
.me-page-actions button.btn-primary {
  background: #0a0a0a !important;
  color: #fff !important;
  border: 1px solid #0a0a0a !important;
}
.me-panel button.btn-primary:hover {
  background: #222 !important;
  border-color: #222 !important;
}
.me-panel button.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.me-panel button.btn-secondary,
.me-page-actions button.btn-secondary {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.18) !important;
}
.me-panel button.btn-secondary:hover {
  border-color: #0a0a0a !important;
}
.demo-banner {
  background: #f0f6ff;
  border: 0;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  font-size: 12px;
  margin: 0 0 16px;
  color: #334;
}
/* —— SaaS 执行台组件 —— */
.saas-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
}
.saas-metric {
  flex: 1 1 96px;
  min-width: 88px;
  padding: 14px 16px;
  border-right: 1px solid rgba(0,0,0,.06);
}
.saas-metric:last-child { border-right: 0; }
.saas-metric b {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1.2;
}
.saas-metric span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #778;
  font-weight: 500;
}
.saas-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.saas-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: #eef0f3;
  border-radius: 10px;
}
.saas-tabs button {
  border: 0 !important;
  background: transparent !important;
  color: #556 !important;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  cursor: pointer;
}
.saas-tabs button.active {
  background: #fff !important;
  color: #111 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.saas-links { font-size: 13px; color: #556; font-weight: 600; }
.saas-links a { color: #0a0a0a; text-decoration: none; margin: 0 6px; border-bottom: 1px solid transparent; }
.saas-links a:hover { border-bottom-color: #0a0a0a; }
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .chart-grid { grid-template-columns: 1fr; }
}
.chart-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  padding: 14px 14px 12px;
  min-height: 200px;
}
.chart-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0a;
}
.chart-svg { display: block; max-width: 100%; overflow: visible; }
.chart-label { font-size: 10px; fill: #555; font-family: inherit; }
.chart-num { font-size: 11px; fill: #0a0a0a; font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.chart-bar { fill: #0a0a0a; }
.chart-donut-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.chart-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #333; }
.chart-legend-item { display: flex; align-items: center; gap: 8px; }
.chart-legend-item b { font-family: ui-monospace, Consolas, monospace; margin-left: 4px; }
.chart-legend-item .swatch {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;
}
.empty-demo {
  margin: 24px 0;
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 12px;
}
.empty-demo b {
  display: block;
  font-size: 16px;
  color: #0a0a0a;
  margin-bottom: 8px;
}
.empty-demo p {
  margin: 0 0 18px;
  font-size: 13px;
  color: #667;
  line-height: 1.5;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}
.empty-demo .btn-primary {
  font-size: 14px;
  padding: 10px 20px;
}
.view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  background: #ececec;
  border-radius: 8px;
  margin-right: 8px;
}
.view-switch .saas-chip.is-btn {
  border: 0;
  background: transparent;
}
.view-switch .saas-chip.is-btn.active {
  background: #0a0a0a;
  color: #fff;
  border: 0;
}
.view-switch .saas-chip.is-btn.active b { color: #fff; }
.saas-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cal-split.is-month-only { grid-template-columns: 1fr; }
.cal-split.is-month-only .cal-agenda { display: none; }
.cal-split.is-month-only .cal-cell { min-height: 96px; max-height: 140px; }
.cal-split.is-month-only .cal-cell.empty { min-height: 96px; }
.cal-split.is-agenda-only { grid-template-columns: 1fr; }
.cal-split.is-agenda-only .cal-shell { display: none; }
.desk-focus-hide { display: none !important; }
.saas-section {
  margin: 0 0 18px;
}
.saas-section > h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334;
  letter-spacing: 0.01em;
}
.saas-table-wrap {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: auto;
  max-width: 100%;
}
.saas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.saas-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #778;
  text-transform: none;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #fafbfc;
  white-space: nowrap;
}
.saas-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  vertical-align: middle;
  color: #222;
}
.saas-table tr:last-child td { border-bottom: 0; }
.saas-table tbody tr:hover { background: #f8fafc; }
.saas-table .name-cell b { display: block; font-size: 13px; color: #111; }
.saas-table .name-cell .sub { font-size: 11px; color: #889; margin-top: 2px; }
.saas-table .clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #445; }
.saas-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: #334;
  white-space: nowrap;
}
.saas-badge.ok { background: #e8f8ef; color: #0a7a3e; }
.saas-badge.warn { background: #fff6e5; color: #a65c00; }
.saas-badge.muted { background: #f1f2f4; color: #667; }
.saas-badge.overdue { background: #fee2e2; color: #b91c1c; }
.saas-table tbody tr.is-overdue { background: #fff7f7; }
.saas-table tbody tr.is-overdue:hover { background: #ffefef; }
.overdue-text { color: #b91c1c; font-weight: 600; }
.saas-metric.is-alert b { color: #b91c1c; }
.saas-nudge-list .nudge-urgent { color: #b91c1c; font-weight: 600; }
.saas-filter-sel {
  appearance: none;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #334;
  cursor: pointer;
}
.kb-card.is-overdue {
  border-color: #fecaca;
  background: #fff7f7;
}
.saas-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.saas-row-actions select {
  width: auto !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  background: #fff !important;
  min-width: 108px;
}
.saas-row-actions a {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}
.saas-row-actions a:hover { text-decoration: underline; }
.saas-empty {
  padding: 28px 16px;
  text-align: center;
  color: #99a;
  font-size: 13px;
}
.saas-nudge-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.saas-nudge-list li {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: 13px;
  line-height: 1.45;
}
.saas-nudge-list li:last-child { border-bottom: 0; }
.saas-footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.saas-footer-bar select,
.saas-footer-bar input {
  width: auto !important;
  max-width: 200px;
  margin: 0 !important;
  display: inline-block !important;
}
.saas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.saas-chip,
.saas-chip.tone-blue,
.saas-chip.tone-orange,
.saas-chip.tone-purple,
.saas-chip.tone-green,
.saas-chip.tone-gray {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #222;
  border: 1px solid rgba(0,0,0,.1);
  font-variant-numeric: tabular-nums;
}
.saas-chip b { font-size: 12px; color: #0a0a0a; font-family: ui-monospace, Consolas, monospace; }
.saas-chip.is-btn { cursor: pointer; background: #fff; }
.saas-chip.is-btn.active {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}
.saas-chip.is-btn.active b { color: #fff; }
.saas-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #556;
  user-select: none;
}
.saas-toggle input { width: auto !important; margin: 0 !important; accent-color: #0a0a0a; }
.kb-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  scrollbar-width: thin;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.kb-scroll::-webkit-scrollbar { height: 8px; }
.kb-scroll::-webkit-scrollbar-thumb { background: #bbb; border-radius: 8px; }
.kb-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: max-content;
  min-width: 100%;
  padding: 0;
}
.kb-wrap.kb-wrap--fill {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.kb-col {
  flex: 0 0 200px;
  width: 200px;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 0;
  border: 1px solid rgba(0,0,0,.06);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: 420px;
}
.kb-wrap--fill .kb-col {
  width: auto;
  flex: none;
  min-width: 0;
}
.kb-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: #111;
  background: #f7f7f7;
  border-bottom: 1px solid rgba(0,0,0,.06);
  border-radius: 8px 8px 0 0;
}
.kb-col-head span {
  background: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  border: 1px solid rgba(0,0,0,.1);
  font-family: ui-monospace, Consolas, monospace;
}
.kb-col-body {
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
}
.kb-col h4 { margin: 0; }
.kb-card,
.kb-card.tone-blue,
.kb-card.tone-orange,
.kb-card.tone-purple,
.kb-card.tone-green,
.kb-card.tone-gray {
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  margin: 0 0 6px;
  border: 1px solid rgba(0,0,0,.1);
  border-top: 1px solid rgba(0,0,0,.1);
  box-shadow: none;
  cursor: grab;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.kb-card:hover { border-color: #0a0a0a; }
.kb-card > b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 2px;
}
.kb-card:active { cursor: grabbing; }
.kb-card .tiny { color: #666; margin-top: 3px; font-size: 11px; line-height: 1.35; }
.kb-card .kb-actions { margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.kb-card a { color: #0a0a0a; text-decoration: underline; font-size: 12px; font-weight: 500; }
.kb-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 8px !important;
  font-size: 12px !important;
  font-family: ui-monospace, Consolas, monospace !important;
  border: 1px solid rgba(0,0,0,.14) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #111;
}
.kb-input:focus {
  outline: none;
  border-color: #0a0a0a !important;
}
.kb-col.drag-over {
  outline: 1px solid #0a0a0a;
  outline-offset: -1px;
  background: #ececec;
}
.kb-empty {
  color: #999;
  font-size: 12px;
  padding: 16px 6px;
  text-align: center;
  line-height: 1.5;
}
.saas-table .kb-input { width: 160px; max-width: 100%; }
.saas-table select.ship-sel {
  width: auto !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  background: #fff !important;
}
/* 月历 + 议程 */
.cal-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 12px;
  align-items: start;
}
.cal-split.is-expanded {
  grid-template-columns: 1fr;
}
.cal-split.is-expanded .cal-agenda { display: none; }
.cal-split.is-expanded .cal-cell {
  min-height: 96px;
  max-height: 140px;
}
.cal-split.is-expanded .cal-cell.empty { min-height: 96px; }
@media (max-width: 980px) {
  .cal-split { grid-template-columns: 1fr; }
}
.cal-shell {
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  overflow: hidden;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.cal-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cal-nav .btn-secondary {
  padding: 5px 11px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  background: rgba(0,0,0,.08);
}
.cal-hd {
  font-size: 11px;
  text-align: center;
  color: #666;
  padding: 8px 2px;
  font-weight: 600;
  background: #fafafa;
  border-right: 1px solid rgba(0,0,0,.06);
}
.cal-hd:last-child { border-right: 0; }
.cal-cell {
  min-height: 72px;
  max-height: 104px;
  overflow: auto;
  background: #fff;
  padding: 6px;
  font-size: 11px;
  min-width: 0;
  border-right: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
  scrollbar-width: thin;
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.empty {
  background: #fafafa;
  min-height: 72px;
  max-height: none;
}
.cal-cell.is-today { background: #f5f5f5; }
.cal-daynum {
  font-weight: 700;
  margin-bottom: 4px;
  color: #333;
  font-size: 11px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 4px;
  font-family: ui-monospace, Consolas, monospace;
}
.cal-cell.is-today .cal-daynum {
  background: #0a0a0a;
  color: #fff;
}
.cal-pill,
.cal-pill.publish,
.cal-pill.draft {
  display: block;
  background: #f0f0f0;
  color: #111;
  text-decoration: none;
  border-radius: 4px;
  padding: 2px 5px;
  margin: 0 0 3px;
  border-left: 2px solid #0a0a0a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}
.cal-pill.publish { border-left-width: 3px; }
.cal-pill:hover { background: #e6e6e6; }
.cal-agenda {
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
}
.cal-agenda-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 13px;
  font-weight: 700;
}
.cal-agenda-list { max-height: 480px; overflow: auto; }
.cal-agenda-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: 12px;
  cursor: pointer;
}
.cal-agenda-item:hover { background: #f7f7f7; }
.cal-agenda-item:last-child { border-bottom: 0; }
.cal-agenda-item .d {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: #555;
  font-weight: 600;
}
.cal-agenda-item .t { font-weight: 700; color: #0a0a0a; }
.cal-agenda-item .s { color: #666; margin-top: 2px; font-size: 11px; }
.cal-agenda-item .tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 4px;
  color: #333;
  white-space: nowrap;
}
.cal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #fafafa;
  border-top: 1px solid rgba(0,0,0,.06);
}
.cal-foot b { font-size: 12px; color: #333; }
.cal-foot select,
.cal-foot input {
  width: auto !important;
  max-width: 180px;
  margin: 0 !important;
  display: inline-block !important;
  background: #fff !important;
  font-family: ui-monospace, Consolas, monospace;
}
.kpi-box {
  background: #f8fafc !important;
  min-width: 104px;
}
.kpi-box b { font-size: 1.35rem; }
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-dot.hit { background: #16a34a; }
.status-dot.fail { background: #dc2626; }
.status-dot.miss { background: #ca8a04; }
.status-dot.unclear { background: #94a3b8; }
.me-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.me-table th, .me-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  vertical-align: top;
}
.kpi-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.kpi-box {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 120px;
}
.kpi-box b { display: block; font-size: 1.4rem; font-family: Syne, sans-serif; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.badge-warn {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: #856404;
  font-weight: 600;
}
.badge-ok {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ee;
  color: #2d4a2d;
  font-weight: 600;
}
.brief-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.brief-form label { display: block; font-size: 13px; font-weight: 600; }
.brief-form label:has(textarea) { grid-column: 1 / -1; }
.brief-form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; grid-column: 1 / -1; }
.brief-form label.check input { width: auto; margin: 0; }
.brief-form .send { grid-column: 1 / -1; max-width: 200px; }
.brief-form textarea {
  min-height: 72px;
  line-height: 1.45;
}
.report-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.report-actions button:not(.btn-primary):not(.btn-secondary),
.me-panel button:not(.btn-primary):not(.btn-secondary) {
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fafafa;
  color: #111;
  cursor: pointer;
}
.me-panel .send {
  background: #111;
  color: #fff;
  border-color: #111;
  padding: 10px 16px;
  font-size: 14px;
}
.muted.tiny { font-size: 12px; margin: 4px 0 10px; }
.todo-list { margin: 8px 0 16px; padding-left: 18px; line-height: 1.6; }
.todo-list.todo-actions {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.todo-list.todo-actions li {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}
.todo-list.todo-actions li.muted {
  width: 100%;
  font-size: 13px;
}
.tpl-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.tpl-card {
  text-align: left;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  min-width: 160px;
  font: inherit;
}
.tpl-card b { display: block; margin-bottom: 4px; }
.tpl-card span { font-size: 12px; color: #666; }
.edit-brief { margin: 8px 0 16px; }
.edit-brief summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.campaign-desk {
  background: #f7f7f5;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 8px;
}
.campaign-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 12px;
}
.campaign-list { display: flex; flex-direction: column; gap: 8px; }
.campaign-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}
.timeline { list-style: none; padding: 0; margin: 0 0 12px; }
.timeline li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
  line-height: 1.45;
}
.note-form { display: flex; gap: 8px; margin-bottom: 10px; }
.note-form input { flex: 1; }
.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  vertical-align: middle;
}
.status-pill.review { background: #b45309; }
.status-pill.delivered { background: #15803d; }
.status-pill.screening { background: #1d4ed8; }
.status-pill.archived { background: #6b7280; }
.collab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 14px;
}
.collab-bar select { width: auto; margin: 0; min-width: 120px; }
.collab-bar button { font-size: 12px; padding: 6px 10px; }
.inbox-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  margin-bottom: 12px;
}
.member-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
}
.member-row select { width: auto; margin: 0; min-width: 100px; }
.sys-note { color: #666; font-style: italic; }
.badge-unread {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #b45309;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}
.compare-list { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 18px; }
.compare-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.compare-card.is-alert { border-color: #e0b400; background: #fffdf5; }
.compare-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.cmp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: #333;
}
.talk-preview {
  white-space: pre-wrap;
  font-size: 13px;
  background: #f6f6f4;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  max-height: 240px;
  overflow: auto;
}
.btn-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  text-decoration: none !important;
  color: #0a0a0a !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.btn-like:hover {
  border-color: #0a0a0a;
  background: #f7f7f5;
}
.btn-like:visited {
  color: #0a0a0a !important;
}
.me-inline-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
}
@media (max-width: 720px) {
  .me-grid { grid-template-columns: 1fr; }
  .brief-form { grid-template-columns: 1fr; }
}
