:root {
  --ink: #eef7f2;
  --muted: #8da099;
  --panel: rgba(15, 29, 25, 0.88);
  --panel-solid: #0f1d19;
  --line: rgba(238, 247, 242, 0.12);
  --lime: #b7f36b;
  --lime-ink: #14210c;
  --orange: #ff8b54;
  --yellow: #f8d45c;
  --blue: #7eb8ff;
  --red: #ff756d;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -8%, rgba(183, 243, 107, 0.13), transparent 34rem),
    radial-gradient(circle at 100% 100%, rgba(255, 139, 84, 0.09), transparent 34rem),
    #07110f;
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.015em;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }

.shell { min-height: 100vh; padding: 22px; }

.topbar {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(183, 243, 107, .42); border-radius: 13px;
  color: var(--lime); font-family: "Arial Narrow", Impact, sans-serif; font-weight: 700; font-size: 13px;
  transform: rotate(-3deg);
}
.brand-copy strong { display: block; font-family: "Arial Narrow", Impact, sans-serif; font-size: 16px; letter-spacing: .03em; }
.brand-copy span { color: var(--muted); font-size: 12px; }

.top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; }
.clock { margin-right: 8px; font-family: "Arial Narrow", Impact, sans-serif; font-size: 22px; letter-spacing: .04em; }
.workspace-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.workspace-tab { min-height: 34px; padding: 6px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; font-size: 12px; cursor: pointer; }
.workspace-tab:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.workspace-tab.active { color: var(--lime-ink); background: var(--lime); }

.btn {
  min-height: 42px; border: 1px solid var(--line); border-radius: 13px; padding: 9px 14px;
  background: rgba(255,255,255,.035); cursor: pointer; transition: .18s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(238,247,242,.26); background: rgba(255,255,255,.07); }
.btn:focus-visible, .agenda-card:focus-visible { outline: 3px solid rgba(183,243,107,.36); outline-offset: 2px; }
.btn-primary { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }
.btn-primary:hover { background: #c5ff7b; border-color: #c5ff7b; }
.btn-danger { color: #ffd7d4; border-color: rgba(255,117,109,.35); }
.btn-icon { width: 42px; padding: 0; font-size: 18px; }
.btn-small { min-height: 34px; padding: 6px 10px; border-radius: 10px; font-size: 12px; }
.survey-button { border-color: rgba(126,184,255,.28); color: #cfe4ff; }
.survey-button.has-blockers { border-color: rgba(255,117,109,.48); color: #ffc0bb; background: rgba(255,117,109,.08); }

.meeting-layout {
  height: calc(100vh - 108px);
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(250px, 0.74fr) minmax(430px, 1.7fr) minmax(300px, .92fr);
  gap: 16px;
}

.panel {
  min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); overflow: hidden;
}

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 20px 20px 14px; }
.eyebrow { margin: 0 0 6px; color: var(--lime); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.panel-title { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(19px, 1.35vw, 25px); line-height: 1.15; letter-spacing: .02em; }
.panel-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

.agenda-panel { display: flex; flex-direction: column; }
.agenda-list { overflow: auto; padding: 0 10px 16px; scrollbar-width: thin; }
.agenda-card {
  width: 100%; border: 0; border-top: 1px solid var(--line); padding: 15px 10px;
  background: transparent; color: inherit; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 34px 1fr auto; align-items: start; gap: 10px;
}
.agenda-card:first-child { border-top: 0; }
.agenda-card:hover { background: rgba(255,255,255,.03); }
.agenda-card.active { background: linear-gradient(90deg, rgba(183,243,107,.14), transparent); }
.agenda-card.done .agenda-number { color: var(--lime); border-color: rgba(183,243,107,.35); }
.agenda-number {
  width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); font-family: "Arial Narrow", Impact, sans-serif; font-size: 11px;
}
.agenda-copy strong { display: block; font-size: 14px; line-height: 1.35; }
.agenda-copy span { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.agenda-review-status { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--lime); }
.agenda-review-status[data-status="attention"] { background: var(--yellow); }
.agenda-review-status[data-status="blocked"] { background: var(--red); box-shadow: 0 0 0 4px rgba(255,117,109,.09); }
.agenda-time { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.agenda-card.active .agenda-time { color: var(--lime); }

.stage { position: relative; display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(20,39,33,.94), rgba(9,19,16,.94)); }
.stage::after {
  content: ""; position: absolute; right: -12%; bottom: -20%; width: 52%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(183,243,107,.10); box-shadow: 0 0 0 44px rgba(183,243,107,.025), 0 0 0 88px rgba(183,243,107,.018); pointer-events: none;
}
.stage-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding: 24px 26px 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 11px; border-radius: 999px;
  background: rgba(183,243,107,.12); color: var(--lime); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(183,243,107,.1); }
.meeting-meta { text-align: right; color: var(--muted); font-size: 12px; line-height: 1.6; }
.meeting-meta strong { color: var(--ink); }

.stage-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px clamp(26px, 4vw, 62px); }
.stage-index { color: var(--orange); font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(15px, 1.25vw, 20px); letter-spacing: .04em; }
.stage-title { margin: 16px 0 15px; max-width: 14ch; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(36px, 4.4vw, 72px); line-height: 1.02; letter-spacing: -.025em; }
.stage-details { max-width: 68ch; margin: 0; color: #b6c5bf; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.55; white-space: pre-line; }
.stage-owner { margin-top: 24px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--lime-ink); background: var(--yellow); font-weight: 800; }

.task-review-stage { justify-content: flex-start; overflow-y: auto; padding-top: 22px; padding-bottom: 18px; }
.task-review-stage .stage-title { max-width: none; margin: 10px 0 8px; font-size: clamp(30px, 3.25vw, 52px); }
.task-review-stage .stage-owner { margin-top: 14px; }
.task-review-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.task-status { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; color: var(--lime); background: rgba(183,243,107,.1); font-weight: 800; }
.task-status[data-status="attention"] { color: var(--yellow); background: rgba(248,212,92,.1); }
.task-status[data-status="blocked"] { color: #ffc0bb; background: rgba(255,117,109,.12); }
.task-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; }
.task-review-section { min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.task-review-section[data-tone="blocker"], .task-review-section[data-tone="help"] { border-color: rgba(255,117,109,.23); background: rgba(255,117,109,.035); }
.task-review-section[data-tone="next"] { border-color: rgba(183,243,107,.23); background: rgba(183,243,107,.035); }
.task-review-section > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; line-height: 1.25; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.task-review-section p { margin: 0; color: #d7e3de; font-size: clamp(11px, .92vw, 14px); line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; }

.timer-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 0 26px 25px; }
.timer { font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(34px, 4.2vw, 62px); line-height: 1; letter-spacing: .01em; }
.timer.over { color: var(--red); }
.timer-caption { margin-top: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.stage-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.notes-panel { display: flex; flex-direction: column; }
.note-summary { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 12px; }
.mini-pill { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 700; }
.notes-list { flex: 1; overflow: auto; padding: 0 12px 12px; scrollbar-width: thin; }
.note-card { margin: 0 0 9px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.note-card[data-type="decision"] { border-left: 3px solid var(--lime); }
.note-card[data-type="action"] { border-left: 3px solid var(--orange); }
.note-card[data-type="question"] { border-left: 3px solid var(--blue); }
.note-type { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.note-card p { margin: 7px 0 9px; white-space: pre-wrap; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.note-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.plaud-tag { color: var(--blue); }
.note-form { padding: 12px; border-top: 1px solid var(--line); }
.note-form textarea { min-height: 74px; }
.note-form-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; margin-top: 8px; }

.field { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: rgba(4,10,8,.62); color: var(--ink); padding: 11px 12px; outline: none; }
.field:focus { border-color: rgba(183,243,107,.55); box-shadow: 0 0 0 3px rgba(183,243,107,.08); }
textarea.field { resize: vertical; }
select.field { appearance: none; }

.empty { flex: 1; min-height: 220px; display: grid; place-items: center; text-align: center; padding: 30px; }
.empty-inner { max-width: 480px; }
.empty-orbit { width: 82px; height: 82px; margin: 0 auto 24px; border: 1px solid rgba(183,243,107,.34); border-radius: 50%; box-shadow: 0 0 0 12px rgba(183,243,107,.05), 0 0 0 24px rgba(183,243,107,.025); display: grid; place-items: center; color: var(--lime); font-family: "Arial Narrow", Impact, sans-serif; }
.empty h1 { margin: 0 0 12px; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(31px, 4.5vw, 56px); }
.empty p { color: var(--muted); font-size: 16px; line-height: 1.55; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(1,7,5,.76); backdrop-filter: blur(12px); }
.modal { width: min(700px, 100%); max-height: calc(100vh - 44px); overflow: auto; border: 1px solid rgba(238,247,242,.16); border-radius: 24px; background: #101f1a; box-shadow: 0 38px 120px rgba(0,0,0,.55); }
.modal-small { width: min(460px, 100%); }
.modal-wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 12px; }
.modal-head h2 { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: 27px; letter-spacing: .02em; }
.modal-body { padding: 8px 22px 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.agenda-editor { margin-top: 8px; display: grid; gap: 8px; }
.agenda-editor-row { display: grid; grid-template-columns: 1fr 90px 38px; gap: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.helper { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.china-shell { min-height: 100vh; }
.china-workspace { display: grid; gap: 16px; padding-bottom: 20px; }
.china-week-panel { display: grid; grid-template-columns: auto minmax(300px, 1fr) auto; align-items: center; gap: 22px; padding: 19px 22px; overflow: visible; background: linear-gradient(135deg, rgba(183,243,107,.075), rgba(15,29,25,.92)); }
.china-week-nav { display: flex; gap: 7px; }
.china-week-copy { min-width: 0; text-align: center; }
.china-week-copy .eyebrow { margin-bottom: 4px; }
.china-week-copy h1 { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(24px, 2.2vw, 36px); letter-spacing: .015em; }
.china-week-copy > span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.china-inline-error { padding: 10px 14px; border: 1px solid rgba(255,117,109,.32); border-radius: 13px; background: rgba(255,117,109,.08); color: #ffc0bb; font-size: 12px; }
.china-loading, .china-error { min-height: calc(100vh - 112px); display: grid; place-items: center; text-align: center; padding: 30px; }
.china-error h1 { margin: 0 0 10px; font-family: "Arial Narrow", Impact, sans-serif; font-size: 38px; }
.china-error p { color: var(--muted); }
.china-summary-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.china-summary-cards > div { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15,29,25,.88); }
.china-summary-cards > div.ok { border-color: rgba(183,243,107,.28); background: rgba(183,243,107,.055); }
.china-summary-cards > div.warning { border-color: rgba(248,212,92,.30); background: rgba(248,212,92,.055); }
.china-summary-cards > div.urgent { border-color: rgba(255,117,109,.34); background: rgba(255,117,109,.065); }
.china-summary-cards span, .china-summary-cards strong, .china-summary-cards small { display: block; }
.china-summary-cards span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .075em; text-transform: uppercase; }
.china-summary-cards strong { margin-top: 7px; overflow-wrap: anywhere; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(17px, 1.45vw, 24px); line-height: 1.1; }
.china-summary-cards small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.china-summary-cards .ok strong { color: var(--lime); }
.china-summary-cards .warning strong { color: var(--yellow); }
.china-summary-cards .urgent strong { color: #ffaca6; }
.china-agenda-section, .china-protocol-section { padding: 20px; overflow: visible; }
.china-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.china-section-head h2 { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(23px, 2vw, 32px); }
.china-section-head > div > span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.china-section-head > strong { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: rgba(183,243,107,.09); color: var(--lime); font-size: 10px; }
.china-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.china-topic-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.018); }
.china-topic-card.discussed { border-color: rgba(183,243,107,.34); box-shadow: inset 4px 0 var(--lime); }
.china-topic-card > header { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.china-topic-number { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(183,243,107,.28); border-radius: 10px; color: var(--lime); font-family: "Arial Narrow", Impact, sans-serif; font-size: 13px; }
.china-topic-card h3 { margin: 0; font-size: 14px; line-height: 1.25; }
.china-topic-card header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.china-topic-state { padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.china-topic-state.attention { color: var(--yellow); background: rgba(248,212,92,.09); }
.china-topic-state.ok { color: var(--lime); background: rgba(183,243,107,.09); }
.china-topic-check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; }
.china-topic-check input { width: 17px; height: 17px; accent-color: var(--lime); }
.china-topic-body { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(0, 1.3fr); gap: 12px; padding: 13px; }
.china-topic-body ol { display: grid; align-content: start; gap: 8px; margin: 0; padding-left: 20px; color: #c5d3cd; font-size: 11px; line-height: 1.45; }
.china-topic-body li::marker { color: var(--lime); font-weight: 900; }
.china-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.china-facts > div { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.022); }
.china-facts > div.ok { border-color: rgba(183,243,107,.23); background: rgba(183,243,107,.04); }
.china-facts > div.warning { border-color: rgba(248,212,92,.26); background: rgba(248,212,92,.045); }
.china-facts > div.urgent { border-color: rgba(255,117,109,.30); background: rgba(255,117,109,.05); }
.china-facts > div.info { border-color: rgba(126,184,255,.26); background: rgba(126,184,255,.045); }
.china-facts span, .china-facts strong, .china-facts small { display: block; }
.china-facts span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.china-facts strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.25; }
.china-facts small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.china-summary-note { display: grid; gap: 7px; margin-bottom: 12px; }
.china-summary-note > span, .china-action-row label > span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.china-summary-note textarea { min-height: 104px; line-height: 1.5; }
.china-carry-over { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; padding: 11px 13px; border: 1px solid rgba(248,212,92,.28); border-radius: 13px; background: rgba(248,212,92,.055); color: #ffe78e; }
.china-carry-over strong, .china-carry-over span { font-size: 10px; }
.china-actions { display: grid; gap: 8px; }
.china-actions-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.china-action-row { display: grid; grid-template-columns: 165px minmax(230px, 1.8fr) minmax(130px, .8fr) 140px 130px 42px; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.china-action-row label { display: grid; gap: 5px; min-width: 0; }
.china-action-row .field { min-height: 40px; padding: 8px 9px; font-size: 11px; }
.china-action-row > .btn { width: 42px; height: 42px; }
.china-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.china-save-bar span { color: var(--muted); font-size: 10px; }

.survey-modal .modal-head { padding-bottom: 8px; }
.survey-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 4px 22px 14px; }
.survey-stat { display: flex; align-items: baseline; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02); }
.survey-stat strong { color: var(--lime); font-family: "Arial Narrow", Impact, sans-serif; font-size: 24px; }
.survey-stat span { color: var(--muted); font-size: 11px; }
.survey-stat.alert strong { color: var(--red); }
.survey-review-list { display: flex; gap: 8px; overflow-x: auto; padding: 0 22px 14px; scrollbar-width: thin; }
.survey-review-card { min-width: 210px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.survey-review-card:hover, .survey-review-card.active { border-color: rgba(183,243,107,.38); background: rgba(183,243,107,.055); }
.survey-review-card strong { display: block; font-size: 12px; }
.survey-review-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.survey-review-card.add { min-width: 145px; color: var(--lime); }
.survey-review-card.add > span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(183,243,107,.28); border-radius: 8px; }
.survey-form { padding-top: 8px; border-top: 1px solid var(--line); }
.survey-form textarea.field { min-height: 82px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr); }
.login-story { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 88px); display: flex; flex-direction: column; justify-content: space-between; background: var(--lime); color: var(--lime-ink); }
.login-story::after { content: ""; position: absolute; right: -18%; bottom: -10%; width: 62%; aspect-ratio: 1; border: 1px solid rgba(20,33,12,.18); border-radius: 50%; box-shadow: 0 0 0 55px rgba(20,33,12,.05), 0 0 0 110px rgba(20,33,12,.035); }
.login-logo { font-family: "Arial Narrow", Impact, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .05em; }
.login-story h1 { position: relative; z-index: 1; margin: 0; max-width: 8ch; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(48px, 7vw, 94px); line-height: .92; letter-spacing: -.025em; }
.login-story p { position: relative; z-index: 1; max-width: 36rem; margin: 24px 0 0; font-size: 17px; line-height: 1.5; }
.login-form-wrap { display: grid; place-items: center; padding: 36px; }
.login-form { width: min(410px, 100%); }
.login-form h2 { margin: 0 0 8px; font-family: "Arial Narrow", Impact, sans-serif; font-size: 34px; letter-spacing: .02em; }
.login-form > p { color: var(--muted); margin: 0 0 26px; }
.login-form .form-group { margin-bottom: 12px; }
.login-form .btn { width: 100%; margin-top: 8px; }
.login-error { min-height: 22px; margin-top: 12px; color: #ffaca6; font-size: 13px; }

.meeting-picker { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 14px; }
.picker-card { min-width: 240px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.picker-card:hover { border-color: rgba(183,243,107,.35); }
.picker-card strong { display: block; }
.picker-card span { color: var(--muted); font-size: 11px; }

.toast { position: fixed; z-index: 40; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(560px, calc(100vw - 32px)); padding: 12px 17px; border-radius: 13px; background: #eef7f2; color: #102019; font-weight: 700; opacity: 0; pointer-events: none; transition: .22s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #ffb4ad; color: #35100d; }

.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.loading::before { content: ""; width: 42px; height: 42px; margin-right: 14px; border: 2px solid var(--line); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tv-mode .shell { padding: 14px; }
.tv-mode .topbar { min-height: 58px; margin-bottom: 10px; }
.tv-mode .meeting-layout { height: calc(100vh - 82px); gap: 10px; }
.tv-mode .panel { border-radius: 18px; }
.tv-mode .notes-panel .note-form, .tv-mode .agenda-panel .panel-head .btn { display: none; }
.tv-mode .stage-title { font-size: clamp(42px, 4.6vw, 78px); }

@media (max-width: 1100px) {
  .meeting-layout { height: auto; min-height: 0; grid-template-columns: 300px 1fr; }
  .notes-panel { grid-column: 1 / -1; min-height: 480px; }
  .notes-list { max-height: 380px; }
  .china-summary-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .china-topic-grid { grid-template-columns: 1fr; }
  .china-action-row { grid-template-columns: 1fr 1fr; }
  .china-action-task { grid-column: 1 / -1; }
  .china-action-row > .btn { grid-column: 2; justify-self: end; }
}

@media (max-width: 760px) {
  .shell { padding: 12px; }
  .topbar { align-items: flex-start; }
  .clock, .brand-copy span { display: none; }
  .workspace-tabs { order: 3; width: 100%; }
  .workspace-tab { flex: 1; }
  .top-actions { flex: 1; }
  .china-week-panel { grid-template-columns: 1fr; align-items: stretch; }
  .china-week-copy { grid-row: 1; text-align: left; }
  .china-week-nav { grid-row: 2; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .china-week-panel > .btn { width: 100%; }
  .china-summary-cards { grid-template-columns: 1fr 1fr; }
  .china-agenda-section, .china-protocol-section { padding: 15px; }
  .china-section-head { align-items: stretch; flex-direction: column; }
  .china-section-head > .btn { width: 100%; }
  .china-topic-card > header { grid-template-columns: 36px minmax(0, 1fr); }
  .china-topic-state, .china-topic-check { grid-column: 2; justify-self: start; }
  .china-topic-body { grid-template-columns: 1fr; }
  .china-facts { grid-template-columns: 1fr; }
  .china-action-row { grid-template-columns: 1fr; }
  .china-action-task, .china-action-row > .btn { grid-column: 1; }
  .china-action-row > .btn { justify-self: end; }
  .china-carry-over, .china-save-bar { align-items: stretch; flex-direction: column; }
  .china-save-bar .btn { width: 100%; }
  .meeting-layout { display: flex; flex-direction: column; }
  .stage { min-height: 560px; order: 1; }
  .agenda-panel { max-height: 430px; order: 2; }
  .notes-panel { min-height: 520px; order: 3; }
  .stage-title { font-size: clamp(34px, 11vw, 58px); }
  .stage-head, .stage-content, .timer-row { padding-left: 20px; padding-right: 20px; }
  .timer-row { align-items: stretch; flex-direction: column; }
  .stage-controls { justify-content: stretch; }
  .stage-controls .btn { flex: 1; }
  .login-page { display: block; }
  .login-story { min-height: 42vh; padding: 28px; }
  .login-form-wrap { min-height: 58vh; padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .agenda-editor-row { grid-template-columns: 1fr 74px 38px; }
  .task-review-grid { grid-template-columns: 1fr; }
  .survey-overview { grid-template-columns: 1fr; }
  .survey-stat { justify-content: space-between; }
}

@media (max-width: 480px) {
  .china-summary-cards { grid-template-columns: 1fr; }
  .china-week-panel, .china-agenda-section, .china-protocol-section { border-radius: 18px; }
  .china-week-panel { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
