/* Communications — Communication & Speaker Logistics Tracker.
   Same visual language as speakers.html / partners.css: tokens, dark masthead,
   pill filter bar, sticky spreadsheet pane, pills, toast. The detail view is a
   right-hand drawer like Tasks. */
:root {
  --blue: #003366;
  --blue-mid: #005EB8;
  --blue-soft: #EBF2FC;
  --red: #FF3B30;
  --red-soft: #FFF0EF;
  --green: #34C759;
  --green-soft: #E8F9ED;
  --green-ink: #1A7A3C;
  --amber: #FF9500;
  --amber-soft: #FFF4E0;
  --amber-ink: #9A5B00;
  --hold: #C2410C;
  --hold-soft: #FFEDE3;
  --ink: #1C1C1E;
  --ink-soft: #48484A;
  --ink-muted: #8E8E93;
  --surface: #FFFFFF;
  --surface-2: #F2F2F7;
  --surface-3: #E5E5EA;
  --border: rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: -apple-system, 'Figtree', 'SF Pro Display', sans-serif; background: var(--surface-2); color: var(--ink); min-height: 100vh; }
body.drawer-open { overflow: hidden; }
.nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 60px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.nav-brand { font-size: 18px; font-weight: 700; color: var(--blue); letter-spacing: -0.4px; text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; }
.nav-brand:hover { background: var(--blue-soft); }
.home-icon { font-size: 14px; color: var(--blue-mid); }
.brand-tail { color: var(--ink-muted); font-weight: 600; }
.nav-brand-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 7px 14px; border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { color: var(--blue); font-weight: 600; background: var(--blue-soft); }

.page { max-width: 1680px; margin: 0 auto; padding: 32px; }

/* MASTHEAD */
.page-header { margin-bottom: 18px; padding: 22px 24px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, rgba(7,20,38,.98) 0%, rgba(11,46,74,.96) 48%, rgba(14,124,123,.90) 100%); box-shadow: 0 14px 36px rgba(7,20,38,.16); }
.masthead-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.page-count { font-size: 13px; color: rgba(255,255,255,.68); margin-top: 4px; }
.masthead-note { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.masthead-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.summary-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.summary-card { text-align: left; font-family: inherit; color: #fff; cursor: pointer; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s, border-color .15s, transform .15s; min-width: 0; }
.summary-card:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.summary-card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.summary-card.active { background: rgba(255,255,255,.94); color: var(--ink); }
.summary-card .n { display: block; font-family: 'Space Grotesk', 'Figtree', sans-serif; font-size: 26px; font-weight: 700; line-height: 1.05; letter-spacing: -.5px; }
.summary-card .l { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-card.active .l { color: var(--ink-soft); }
.summary-card .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.dot-all { background: #61DAD3; } .dot-done { background: #34C759; } .dot-pending { background: #FFB020; } .dot-hold { background: #FF7A45; } .dot-info { background: #5AA9FF; }

/* FILTER BAR */
.filter-bar { background: var(--surface); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; align-items: center; gap: 10px 12px; margin-bottom: 10px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); background: white; color: var(--ink-muted); transition: all 0.15s; font-family: inherit; }
.filter-tab.active { background: var(--blue); color: white; border-color: var(--blue); }
.filter-tab:hover:not(.active) { background: var(--surface-2); color: var(--ink); }
.filter-tab .filter-count { margin-left: 5px; opacity: .7; }
.search-input { padding: 8px 14px; border: 1.5px solid var(--surface-3); border-radius: 20px; font-size: 13px; font-family: inherit; width: 250px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.search-input:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(0,94,184,0.1); }
.quick-filter { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.advanced-filters { position: relative; }
.advanced-filters > summary { list-style: none; cursor: pointer; border: 1.5px solid var(--surface-3); border-radius: 20px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: #fff; }
.advanced-filters > summary::-webkit-details-marker { display: none; }
.advanced-filters > summary::after { content: ' +'; color: var(--blue-mid); }
.advanced-filters[open] > summary::after { content: ' −'; }
.advanced-filters .filter-selects { position: absolute; z-index: 12; right: 0; top: calc(100% + 8px); width: 440px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.org-filter { padding: 7px 12px; border: 1.5px solid var(--surface-3); border-radius: 20px; font-size: 12.5px; font-weight: 600; font-family: inherit; color: var(--ink); background: white; cursor: pointer; outline: none; max-width: 190px; }
.org-filter:focus { border-color: var(--blue); }
.org-filter.set { border-color: var(--blue-mid); background: var(--blue-soft); color: var(--blue); }
.clear-filters { border: 0; background: none; color: var(--blue-mid); font: 600 12.5px inherit; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.clear-filters:hover { background: var(--blue-soft); }
.table-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-muted); padding: 2px 6px 10px; }
.legend { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; }
.lg-done { background: var(--green); } .lg-pending { background: var(--amber); } .lg-hold { background: var(--hold); } .lg-muted { background: var(--surface-3); }

/* TABLE */
.table-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow: auto; max-height: calc(100vh - 330px); min-height: 320px; }
table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
thead th { padding: 12px 12px; font-size: 11px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.6px; text-align: left; background: var(--surface-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; white-space: nowrap; }
thead th:nth-child(1) { width: 260px; }
thead th:nth-child(2) { width: 115px; }
thead th:nth-child(3) { width: 250px; }
thead th:nth-child(4) { width: 125px; }
thead th:nth-child(5) { width: 205px; }
thead th:nth-child(6) { width: 105px; }
tbody tr { cursor: pointer; transition: background 0.12s, box-shadow 0.12s; }
tbody tr:nth-child(even) { background: #FAFAFA; }
tbody tr:hover, tbody tr:focus-visible, tbody tr.selected { background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(0,94,184,0.16), inset 3px 0 0 var(--blue-mid); outline: none; }
tbody td { padding: 10px 12px; font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
.name-col { position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--border); }
tbody tr:nth-child(even) .name-col { background: #FAFAFA; }
tbody tr:hover .name-col, tbody tr:focus-visible .name-col, tbody tr.selected .name-col { background: var(--blue-soft); }
thead th.name-col { background: var(--surface-2); z-index: 3; }
.spk-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 56px; height: 56px; flex-basis: 56px; font-size: 17px; }
.spk-text { min-width: 0; flex: 1; }
.spk-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spk-meta { font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remark-cell { font-size: 12px; line-height: 1.35; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.remark-cell .when { color: var(--ink-muted); font-weight: 600; margin-right: 4px; }
.muted { color: var(--ink-muted); }
.attention { display: grid; gap: 4px; }
.attention .pill { width: fit-content; }
.attention > span:last-child { font-size: 11.5px; line-height: 1.35; color: var(--ink-muted); }
.logistics-stack { display: grid; gap: 5px; }
.logistics-stack > span { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 6px; }
.logistics-stack b { font-size: 10.5px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .03em; }

/* PILLS — compact status badges */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 1.45; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; flex: 0 0 6px; }
.pill.plain::before { display: none; }
.pill-done { background: var(--green-soft); color: var(--green-ink); }
.pill-pending { background: var(--amber-soft); color: var(--amber-ink); }
.pill-hold { background: var(--hold-soft); color: var(--hold); }
.pill-muted { background: var(--surface-2); color: var(--ink-muted); }
.pill-tbc { background: transparent; color: var(--ink-muted); border: 1.5px dashed #C7C7CC; padding: 2px 8px; }
.pill-tbc::before { display: none; }
.pill-info { background: var(--blue-soft); color: var(--blue-mid); }
.pill-empty { background: none; color: #C7C7CC; padding-left: 2px; }
.pill-empty::before { display: none; }
.pill.legacy::after { content: '•'; margin-left: -1px; opacity: .55; }
.pill-lg { font-size: 12px; padding: 4px 11px; }
.badge-confirmed { background: var(--green-soft); color: var(--green-ink); }
.badge-invited { background: var(--blue-soft); color: var(--blue-mid); }
.badge-not-invited { background: var(--surface-2); color: var(--ink-muted); }
.badge-declined { background: var(--red-soft); color: var(--red); }

/* EMPTY / SKELETON */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.empty-desc { font-size: 14px; color: var(--ink-muted); }
.skeleton-block { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* DRAWER */
.drawer-backdrop { position: fixed; inset: 0; z-index: 600; background: rgba(15,23,42,.28); backdrop-filter: blur(2px); }
.speaker-drawer { position: fixed; z-index: 610; right: 0; top: 0; bottom: 0; width: min(680px, 100vw); background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .22s ease; display: flex; flex-direction: column; outline: none; }
.speaker-drawer.open { transform: translateX(0); }
.drawer-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #FBFDFF, #fff); }
.drawer-head-row { display: flex; gap: 14px; align-items: flex-start; }
.drawer-head h2 { font: 700 21px/1.2 'Space Grotesk', 'Figtree', sans-serif; color: var(--ink); letter-spacing: -.3px; }
.drawer-head .sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.drawer-head .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.drawer-head .updated { font-size: 11.5px; color: var(--ink-muted); margin-top: 10px; }
.icon-button { margin-left: auto; width: 34px; height: 34px; flex: 0 0 34px; border: 0; border-radius: 8px; color: var(--ink-muted); background: var(--surface-2); font-size: 20px; line-height: 1; cursor: pointer; }
.icon-button:hover { background: var(--surface-3); color: var(--ink); }
.drawer-body { padding: 18px 22px 60px; overflow: auto; flex: 1; scroll-behavior: smooth; }
.sec { scroll-margin-top: 12px; margin-bottom: 26px; }
.sec-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.outstanding { border-radius: 12px; padding: 12px 14px; background: var(--surface-2); display: grid; gap: 6px; }
.outstanding.complete { background: var(--green-soft); color: var(--green-ink); font-weight: 600; font-size: 13px; }
.outstanding-item { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--ink-soft); }
.outstanding-item::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; transform: translateY(-1px); background: var(--amber); }
.outstanding-item.hold::before { background: var(--hold); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 12px; }
.fact { min-width: 0; }
.fact small { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.fact span, .fact a { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.fact a { color: var(--blue-mid); text-decoration: none; font-weight: 600; }
.fact a:hover { text-decoration: underline; }
.fact.full { grid-column: 1 / -1; }

/* Cards (a stage or a logistics section) */
.card { border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
.card.editing { border-color: rgba(0,94,184,.45); box-shadow: 0 0 0 3px rgba(0,94,184,.08); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.card-head .num { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.card-head .title { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.card-head .title .opt { font-weight: 500; color: var(--ink-muted); font-size: 12px; margin-left: 4px; }
.card-head .spacer { flex: 1; }
.card-body { padding: 0 14px 13px 46px; font-size: 12.5px; color: var(--ink-soft); display: grid; gap: 6px; }
.card-body.flat { padding-left: 14px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.kv > b { font-weight: 600; color: var(--ink-muted); font-size: 11.5px; }
.kv > span { overflow-wrap: anywhere; color: var(--ink); }
.snapshot { white-space: pre-wrap; background: var(--surface-2); border-radius: 8px; padding: 9px 11px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); max-height: 160px; overflow: auto; }
.hint { font-size: 12px; color: var(--ink-muted); line-height: 1.45; }
.hint.warn { color: var(--amber-ink); }
.hint.hold { color: var(--hold); }
.btn-xs { padding: 5px 12px; font-size: 12px; font-weight: 600; border-radius: 7px; cursor: pointer; font-family: inherit; border: 1.5px solid var(--border); background: #fff; color: var(--blue-mid); transition: background .15s, border-color .15s; }
.btn-xs:hover { background: var(--blue-soft); border-color: rgba(0,94,184,.25); }
.btn-sm { padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.btn-primary { background: var(--blue); color: white; border: none; }
.btn-primary:hover { background: #002244; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-secondary { background: white; color: var(--ink-soft); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); }

/* Forms inside cards */
.edit-form { padding: 4px 14px 14px; display: grid; gap: 12px; border-top: 1px dashed var(--surface-3); margin-top: 2px; padding-top: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.field .req { color: var(--hold); }
.field input, .field select, .field textarea { width: 100%; padding: 9px 11px; border: 1.5px solid var(--surface-3); border-radius: var(--radius-sm); font: 13.5px inherit; font-family: inherit; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(0,94,184,0.1); }
.field textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
.field textarea.snapshot-input { min-height: 120px; }
.counter { font-size: 11px; color: var(--ink-muted); text-align: right; }
.counter.over { color: var(--red); font-weight: 700; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
.segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: inline-block; padding: 7px 13px; border-radius: 20px; border: 1.5px solid var(--surface-3); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: #fff; cursor: pointer; transition: all .15s; }
.segmented input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,94,184,.25); }
.form-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.form-error { margin-right: auto; color: var(--red); font-size: 12.5px; font-weight: 600; }
.sent-fields { display: grid; gap: 12px; }
.deadline { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 9px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.deadline.past { background: var(--hold-soft); color: var(--hold); }

/* Progressive disclosure keeps the speaker panel focused on one action. */
.current-action { padding: 16px; border: 1px solid rgba(0,94,184,.14); border-radius: 14px; background: linear-gradient(145deg, #F8FBFF, #fff); }
.current-action-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.current-action .sec-title { margin-bottom: 4px; }
.current-action h3 { color: var(--ink); font: 700 19px/1.2 'Space Grotesk', 'Figtree', sans-serif; }
.current-action > p { margin-top: 7px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.action-reasons { margin-top: 11px; }
.action-reasons > summary { color: var(--blue-mid); font-size: 12px; font-weight: 650; cursor: pointer; }
.action-reasons .outstanding { margin-top: 8px; }
.drawer-group { margin: 0 0 10px; border: 1px solid var(--border); border-radius: 13px; background: #fff; overflow: clip; }
.drawer-group > summary { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 13px 15px; list-style: none; cursor: pointer; }
.drawer-group > summary::-webkit-details-marker { display: none; }
.drawer-group > summary span { color: var(--ink); font-size: 13.5px; font-weight: 700; }
.drawer-group > summary small { margin-left: auto; color: var(--ink-muted); font-size: 11.5px; }
.drawer-group > summary::after { content: '+'; width: 22px; color: var(--blue-mid); font-size: 18px; line-height: 1; text-align: center; }
.drawer-group[open] > summary { border-bottom: 1px solid var(--border); background: var(--surface-2); }
.drawer-group[open] > summary::after { content: '−'; }
.drawer-group-body { padding: 14px; }
.drawer-group-body > .sec:last-child, .compact-sec { margin-bottom: 0; }

/* Remarks & history */
.note-form { display: grid; gap: 8px; margin-bottom: 12px; }
.note-form textarea { width: 100%; min-height: 60px; padding: 9px 11px; border: 1.5px solid var(--surface-3); border-radius: var(--radius-sm); font: 13px inherit; font-family: inherit; resize: vertical; outline: none; }
.note-form textarea:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(0,94,184,0.1); }
.note-form .form-actions { justify-content: space-between; }
.notes-list, .history-list { display: grid; gap: 8px; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.note-head, .hist-head { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-muted); flex-wrap: wrap; }
.note-head strong, .hist-head strong { color: var(--ink-soft); }
.tag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #fff; color: var(--ink-soft); border: 1px solid var(--border); }
.note p { margin-top: 5px; font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; color: var(--ink); }
.hist { padding: 9px 0 9px 14px; border-left: 2px solid var(--surface-3); }
.hist.legacy { border-left-color: #C8DCF5; }
.hist .what { font-size: 12.5px; color: var(--ink); margin-top: 3px; }
.hist .diff { margin-top: 5px; display: grid; gap: 3px; font-size: 11.5px; color: var(--ink-soft); }
.hist .diff code { font-family: inherit; font-weight: 700; color: var(--ink-muted); }
.hist .diff del { color: var(--ink-muted); }
.empty-line { font-size: 12.5px; color: var(--ink-muted); }
details.more > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--blue-mid); list-style: none; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }

/* TOAST */
.toast { position: fixed; bottom: 28px; right: 28px; background: var(--ink); color: white; padding: 12px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-md); z-index: 9999; transform: translateY(100px); opacity: 0; transition: all 0.25s; pointer-events: none; max-width: min(460px, calc(100vw - 32px)); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #1F7A3A; }
.toast.error { background: #C62828; }

@media (max-width: 1280px) {
  .summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { padding: 0 12px; }
  .page { padding: 16px; }
  .page-header { padding: 18px 16px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .summary-card .n { font-size: 22px; }
  .summary-card .l { white-space: normal; align-items: flex-start; line-height: 1.3; }
  .summary-card .dot { margin-top: 4px; }
  .filter-bar { padding: 12px; }
  .search-input { width: 100%; }
  .quick-filter { margin-left: 0; flex: 1; }
  .quick-filter .org-filter { flex: 1; }
  .advanced-filters { margin-left: auto; }
  .advanced-filters .filter-selects { position: fixed; left: 16px; right: 16px; top: auto; width: auto; grid-template-columns: 1fr; }
  .org-filter { max-width: none; flex: 1 1 45%; }
  .legend { display: none; }
  /* Table → stacked cards */
  .table-card { max-height: none; overflow: visible; background: none; border: 0; box-shadow: none; }
  table { min-width: 0; table-layout: auto; }
  thead { display: none; }
  tbody, tbody tr, tbody td { display: block; width: 100%; }
  tbody tr { background: #fff !important; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; padding: 6px 4px; box-shadow: var(--shadow-sm); }
  tbody td { border: 0; padding: 5px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  tbody td::before { content: attr(data-label); font-size: 11px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; flex: none; }
  tbody td.name-col { position: static; border: 0; background: none !important; padding-bottom: 8px; }
  tbody td.name-col::before, tbody td[colspan]::before { display: none; }
  tbody td.remark-td { display: block; }
  tbody td.remark-td::before { display: block; margin-bottom: 3px; }
  .speaker-drawer { width: 100vw; }
  .drawer-head, .drawer-body { padding-left: 16px; padding-right: 16px; }
  .form-grid, .facts { grid-template-columns: 1fr; }
  .card-body { padding-left: 14px; }
  .kv { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .speaker-drawer, .summary-card, .toast { transition: none; }
  .drawer-body { scroll-behavior: auto; }
}

/* 26 Sep stage-led redesign — premium working surface, not a spreadsheet. */
:root {
  --gold: #D3A84A;
  --gold-soft: #FFF7E6;
  --navy-deep: #071A2B;
  --navy-mid: #103F5A;
  --teal-rich: #087A78;
}

.communications-page { overflow-x: hidden; }
.communications-page .page { max-width: 1380px; padding-top: 28px; }
.communications-page .page-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 28px 30px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 93% -30%, rgba(211,168,74,.28), transparent 38%),
    linear-gradient(125deg, var(--navy-deep) 0%, var(--navy-mid) 64%, var(--teal-rich) 125%);
  box-shadow: 0 18px 42px rgba(7,26,43,.18);
}
.communications-page .masthead-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #E8C873;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.communications-page .page-title {
  max-width: 720px;
  font: 700 clamp(27px, 3vw, 38px)/1.08 'Space Grotesk', 'Figtree', sans-serif;
  letter-spacing: -.045em;
}
.communications-page .page-count { margin-top: 8px; color: rgba(255,255,255,.7); font-size: 14px; }
.communications-page .masthead-note {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
}

.journey-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 960px;
  margin-top: 28px;
}
.journey-stop { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 14px; }
.journey-stop:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 34px;
  right: 8px;
  height: 1px;
  background: rgba(255,255,255,.22);
}
.journey-number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(5,22,36,.74);
  color: #E8C873;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 0 5px rgba(255,255,255,.035);
}
.journey-copy { position: relative; z-index: 1; min-width: 0; padding-right: 7px; background: transparent; }
.journey-copy b, .journey-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-copy b { color: #fff; font-size: 13px; }
.journey-copy small { margin-top: 2px; color: rgba(255,255,255,.58); font-size: 11.5px; }

.tracker-controls {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 7px 22px rgba(7,26,43,.07);
  backdrop-filter: blur(10px);
}
.queue-tabs { display: flex; align-items: center; gap: 6px; }
.queue-tab {
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  font: 600 14px/1.2 inherit;
  cursor: pointer;
}
.queue-tab span { margin-left: 6px; color: var(--ink-muted); font-size: 12px; }
.queue-tab:hover { background: var(--surface-2); }
.queue-tab.active { color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(0,94,184,.08); }
.queue-tab.active span { color: inherit; }
.tracker-controls .search-input { width: min(280px, 28vw); min-height: 40px; margin-left: auto; border-radius: 10px; font-size: 14px; }
.tracker-controls .advanced-filters { position: relative; }
.tracker-controls .advanced-filters > summary { min-height: 40px; display: flex; align-items: center; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.filter-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  width: min(620px, calc(100vw - 40px));
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7,26,43,.16);
}
.filter-panel-title { margin-bottom: 8px; color: var(--ink-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.filter-panel .filter-tabs { margin-bottom: 14px; }
.filter-panel .filter-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.filter-panel .org-filter { width: 100%; max-width: none; min-height: 40px; border-radius: 9px; font-size: 13px; }
.tracker-controls .clear-filters { flex: none; }

.list-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 3px 10px; }
.list-meta strong { color: var(--ink); font-size: 16px; }
.list-meta span { color: var(--ink-muted); font-size: 13px; }
.tracker-list { display: grid; gap: 11px; }
.speaker-card {
  display: grid;
  grid-template-columns: minmax(210px, .85fr) minmax(430px, 2fr) 145px;
  gap: 22px;
  align-items: center;
  min-width: 0;
  padding: 18px 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(7,26,43,.055);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.speaker-card:hover, .speaker-card.selected { border-color: rgba(0,94,184,.22); box-shadow: 0 11px 28px rgba(7,26,43,.1); }
.speaker-card.selected { box-shadow: inset 3px 0 0 var(--blue-mid), 0 11px 28px rgba(7,26,43,.1); }
.speaker-card.loading-card { display: block; min-height: 92px; padding: 36px 22px; }
.speaker-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar.card-avatar { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; background: linear-gradient(145deg, var(--blue-soft), #E6F6F3); font-size: 13px; }
.speaker-card .spk-name { font-size: 15px; font-weight: 700; }
.speaker-card .spk-meta { margin-top: 3px; font-size: 12px; }
.confirmation-label { display: inline-flex; width: fit-content; margin-top: 7px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.speaker-stage { min-width: 0; }
.current-stage-line { display: flex; align-items: baseline; gap: 9px; min-width: 0; margin-bottom: 13px; }
.current-stage-line strong { flex: none; color: var(--ink); font-size: 14px; }
.current-stage-line span { min-width: 0; overflow: hidden; color: var(--ink-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.stage-journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.stage-step { min-width: 0; }
.stage-step i { display: block; height: 4px; border-radius: 999px; background: var(--surface-3); }
.stage-step > span, .stage-step small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-step > span { margin-top: 6px; color: var(--ink-muted); font-size: 11px; font-weight: 600; }
.stage-step small { margin-top: 2px; color: var(--ink-muted); font-size: 10px; }
.stage-step.done i { background: var(--green); }
.stage-step.done > span { color: var(--green-ink); }
.stage-step.current i { background: var(--gold); box-shadow: 0 0 0 3px rgba(211,168,74,.14); }
.stage-step.current > span, .stage-step.current small { color: var(--amber-ink); }
.stage-step.hold i { background: var(--hold); box-shadow: 0 0 0 3px rgba(194,65,12,.11); }
.stage-step.hold > span, .stage-step.hold small { color: var(--hold); }
.speaker-action { justify-self: end; text-align: right; }
.work-state { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.work-state-action { color: var(--amber-ink); background: var(--amber-soft); }
.work-state-waiting { color: var(--blue-mid); background: var(--blue-soft); }
.work-state-hold { color: var(--hold); background: var(--hold-soft); }
.work-state-complete { color: var(--green-ink); background: var(--green-soft); }
.open-speaker {
  display: block;
  min-width: 78px;
  min-height: 38px;
  margin: 9px 0 0 auto;
  padding: 7px 13px;
  border: 1px solid rgba(0,94,184,.25);
  border-radius: 9px;
  color: var(--blue-mid);
  background: #fff;
  font: 650 13px inherit;
  cursor: pointer;
}
.open-speaker:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

.drawer-current { display: grid; gap: 3px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.drawer-current strong { color: var(--ink); font-size: 13.5px; }
.drawer-current span { color: var(--ink-muted); font-size: 12px; line-height: 1.4; }
.drawer-journey { margin-top: 11px; }
.drawer-journey .stage-step > span { white-space: normal; line-height: 1.2; }
.drawer-journey .stage-step small { display: none; }

@media (max-width: 1050px) {
  .speaker-card { grid-template-columns: minmax(210px, 1fr) minmax(380px, 1.8fr); }
  .speaker-action { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
  .open-speaker { display: inline-block; margin: 0; }
}

@media (max-width: 760px) {
  .communications-page .nav { max-width: 100vw; overflow: hidden; }
  .communications-page .nav-right .nav-link:not(.active) { display: none; }
  .communications-page .page { padding: 16px; }
  .communications-page .page-header { padding: 22px 18px 20px; border-radius: 16px; }
  .communications-page .masthead-note { margin-top: 4px; }
  .journey-overview { margin-top: 24px; gap: 4px; }
  .journey-stop { display: block; padding-right: 4px; }
  .journey-stop:not(:last-child)::after { left: 28px; right: -2px; top: 14px; }
  .journey-number { width: 28px; height: 28px; }
  .journey-copy { margin-top: 9px; padding: 0; }
  .journey-copy b, .journey-copy small { white-space: normal; line-height: 1.2; }
  .journey-copy b { font-size: 11px; }
  .journey-copy small { font-size: 10px; }
  .tracker-controls { align-items: stretch; flex-wrap: wrap; padding: 10px; }
  .queue-tabs { width: 100%; overflow-x: auto; }
  .queue-tab { flex: 1 0 auto; }
  .tracker-controls .search-input { order: 2; width: calc(100% - 128px); margin-left: 0; font-size: 16px; }
  .tracker-controls .advanced-filters { order: 3; margin-left: auto; }
  .tracker-controls .clear-filters { order: 4; }
  .filter-panel { position: fixed; left: 16px; right: 16px; top: 188px; width: auto; max-height: calc(100vh - 210px); overflow: auto; }
  .filter-panel .filter-selects { grid-template-columns: 1fr; }
  .speaker-card { display: block; padding: 16px; }
  .speaker-stage { margin-top: 16px; }
  .current-stage-line { display: grid; gap: 4px; }
  .current-stage-line span { white-space: normal; line-height: 1.35; }
  .stage-step > span { white-space: normal; line-height: 1.15; }
  .speaker-action { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; text-align: left; }
  .open-speaker { margin: 0; min-height: 44px; }
  .speaker-drawer { width: 100vw; }
}

@media (max-width: 420px) {
  .communications-page .page { padding-left: 12px; padding-right: 12px; }
  .communications-page .page-title { font-size: 26px; }
  .tracker-controls .search-input { width: 100%; }
  .tracker-controls .advanced-filters { margin-left: 0; }
  .stage-journey { gap: 3px; }
  .stage-step > span { font-size: 10px; }
  .stage-step small { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .speaker-card { transition: none; }
}
