:root {
  color-scheme: light;
  --navy: #10253f;
  --navy-2: #183c5d;
  --teal: #0e9c9a;
  --lime: #c7ee77;
  --paper: #f5f3ed;
  --card: #fff;
  --ink: #172335;
  --muted: #647286;
  --line: #dce1e5;
  --urgent: #c74331;
  --important: #d27b16;
  --shadow: 0 14px 36px rgba(16, 37, 63, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; background: var(--paper); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 90% -5%, rgba(199,238,119,.36), transparent 34%), var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.portal-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 66px; border-bottom: 1px solid rgba(255,255,255,.15); background: rgba(16,37,63,.96); padding: max(12px, env(safe-area-inset-top)) 18px 12px; color: #fff; backdrop-filter: blur(14px); }
.portal-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--lime); color: var(--navy); font-size: 12px; font-weight: 950; letter-spacing: .04em; transform: rotate(-2deg); }
.portal-brand strong, .portal-brand small { display: block; }
.portal-brand strong { font-size: 15px; letter-spacing: .01em; }
.portal-brand small { margin-top: 1px; color: #b8c7d7; font-size: 11px; }
.text-button { border: 0; background: transparent; padding: 9px 0 9px 12px; color: #d8e3ee; font-size: 12px; font-weight: 750; cursor: pointer; }
.text-button.inline { padding: 9px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.portal-shell { width: min(100%, 720px); min-height: calc(100vh - 132px); margin: 0 auto; padding: 22px 16px calc(100px + env(safe-area-inset-bottom)); }
.loading-card, .login-card, .empty-card { display: grid; justify-items: center; border: 1px solid var(--line); border-radius: 24px; background: var(--card); padding: 42px 24px; text-align: center; box-shadow: var(--shadow); }
.loader { width: 26px; height: 26px; border: 3px solid #d8e0e5; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-card { margin-top: clamp(20px, 8vh, 70px); }
.login-card .brand-mark { width: 62px; height: 62px; margin-bottom: 10px; font-size: 17px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(27px, 8vw, 39px); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin-bottom: 6px; font-size: 20px; letter-spacing: -.02em; }
h3 { margin-bottom: 4px; font-size: 16px; }
p { color: var(--muted); line-height: 1.55; }
.login-form { display: grid; width: 100%; gap: 10px; margin-top: 16px; text-align: left; }
.field { display: grid; gap: 6px; color: #445267; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cfd7de; border-radius: 13px; background: #fff; padding: 13px 14px; color: var(--ink); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,156,154,.14); }
.primary-button, .secondary-button { min-height: 46px; border-radius: 13px; padding: 11px 16px; font-weight: 850; cursor: pointer; }
.primary-button { border: 1px solid var(--navy); background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(16,37,63,.16); }
.secondary-button { border: 1px solid #cad3db; background: #fff; color: var(--navy); }
.microcopy { margin: 12px 0 0; font-size: 11px; }
.back-link { margin-top: 18px; color: var(--navy); font-size: 12px; font-weight: 800; text-underline-offset: 3px; }
.hero { margin-bottom: 18px; }
.hero-kicker, .section-kicker { display: block; margin-bottom: 6px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero p { margin-bottom: 0; font-size: 13px; }
.status-strip { display: flex; align-items: center; gap: 8px; margin: 13px 0 20px; overflow-x: auto; scrollbar-width: none; }
.status-strip span { flex: 0 0 auto; border: 1px solid #d2d9de; border-radius: 999px; background: rgba(255,255,255,.74); padding: 7px 10px; color: #516174; font-size: 11px; font-weight: 750; }
.next-card { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); padding: 22px; color: #fff; box-shadow: 0 18px 36px rgba(16,37,63,.2); }
.next-card::after { position: absolute; right: -28px; bottom: -52px; width: 150px; height: 150px; border: 30px solid rgba(199,238,119,.22); border-radius: 50%; content: ""; }
.next-card .section-kicker { color: var(--lime); }
.next-card h2 { max-width: 78%; font-size: 25px; }
.next-card p { margin-bottom: 18px; color: #cad7e3; }
.session-time { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0; }
.session-time strong { font-size: 27px; letter-spacing: -.04em; }
.session-time span { padding-bottom: 4px; color: #bfd0de; font-size: 12px; }
.session-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.session-facts span { border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: rgba(255,255,255,.08); padding: 10px 11px; font-size: 12px; }
.session-facts small { display: block; margin-bottom: 3px; color: #b7c8d7; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.map-button { position: relative; z-index: 1; width: 100%; border-color: rgba(255,255,255,.28); background: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 2px 12px; }
.section-head h2 { margin: 0; }
.section-head span { color: var(--muted); font-size: 11px; }
.day-stack { display: grid; gap: 12px; }
.day-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.88); padding: 16px; box-shadow: 0 8px 22px rgba(16,37,63,.06); }
.day-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.day-title strong { font-size: 16px; }
.day-title span { color: var(--muted); font-size: 11px; }
.session-row { display: grid; grid-template-columns: 62px 1fr auto; gap: 11px; align-items: center; border-top: 1px solid #e7eaed; padding: 13px 0; }
.session-row:first-of-type { border-top: 0; padding-top: 0; }
.session-row:last-child { padding-bottom: 0; }
.session-row time { color: var(--navy); font-size: 12px; font-weight: 900; }
.session-row strong { display: block; font-size: 13px; }
.session-row small { color: var(--muted); font-size: 10px; }
.table-chip { border: 0; border-radius: 10px; background: #e5f3f1; padding: 8px 9px; color: #087675; font-size: 11px; font-weight: 900; cursor: pointer; }
.alert-preview, .vote-preview, .faq-preview { display: block; width: 100%; border: 1px solid var(--line); border-radius: 17px; background: #fff; padding: 16px; text-align: left; box-shadow: 0 8px 20px rgba(16,37,63,.05); cursor: pointer; }
.alert-preview strong, .vote-preview strong, .faq-preview strong { display: block; margin-bottom: 4px; }
.alert-preview span, .vote-preview span, .faq-preview span { color: var(--muted); font-size: 11px; }
.readiness-card { margin: 0 0 20px; border: 1px solid #c8ddd8; border-radius: 20px; background: linear-gradient(145deg,#fff,#edf9f6); padding: 18px; box-shadow: 0 8px 24px rgba(16,37,63,.06); }
.readiness-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.readiness-head h2 { margin: 0; }
.readiness-head > strong { display: grid; min-width: 48px; height: 42px; place-items: center; border-radius: 13px; background: var(--navy); color: #fff; }
.readiness-progress { height: 6px; margin: 14px 0; overflow: hidden; border-radius: 999px; background: #dce8e5; }
.readiness-progress span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .2s ease; }
.checklist-list { display: grid; gap: 8px; }
.checklist-item { display: grid; min-height: 50px; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; border: 1px solid #d7e2df; border-radius: 13px; background: rgba(255,255,255,.88); padding: 10px 12px; font-size: 13px; font-weight: 720; cursor: pointer; }
.checklist-item input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); }
.checklist-item.completed span { color: #718079; text-decoration: line-through; }
.faq-list { display: grid; gap: 10px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(16,37,63,.05); }
.faq-item summary { position: relative; min-height: 56px; padding: 17px 48px 17px 17px; color: var(--navy); font-size: 14px; font-weight: 850; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 18px; content: "+"; color: var(--teal); font-size: 22px; transform: translateY(-50%); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { border-top: 1px solid #e8ebed; padding: 15px 17px; }
.faq-answer p { margin: 0; font-size: 13px; }
.install-card { margin-top: 24px; border: 1px solid #c8ddd8; border-radius: 20px; background: linear-gradient(145deg, #fff, #edf9f6); padding: 19px; box-shadow: 0 8px 24px rgba(16,37,63,.06); }
.install-card p { margin-bottom: 14px; font-size: 12px; }
.install-card hr { height: 1px; margin: 18px 0; border: 0; background: #d8e6e2; }
.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.capability-note { margin: 8px 0 0 !important; }
.platform-limit { margin: 14px 0 0 !important; color: #748191; font-size: 10px !important; }
.alerts-hero .secondary-button { margin-top: 13px; }
.primary-button:focus-visible, .secondary-button:focus-visible, .text-button:focus-visible, .back-link:focus-visible, .portal-nav button:focus-visible, .table-chip:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.alert-list { display: grid; gap: 10px; }
.alert-card { position: relative; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 16px; background: #fff; padding: 16px; }
.alert-card.important { border-left-color: var(--important); }
.alert-card.urgent { border-left-color: var(--urgent); }
.alert-card.unread { box-shadow: 0 8px 24px rgba(16,37,63,.08); }
.alert-card.unread::after { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); content: ""; }
.alert-card p { margin: 8px 0 0; font-size: 12px; }
.alert-meta { color: #8995a2; font-size: 10px; }
.vote-card, .results-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 18px; box-shadow: var(--shadow); }
.vote-rules { display: grid; gap: 7px; margin: 15px 0; padding: 0; list-style: none; }
.vote-rules li { display: flex; gap: 8px; color: #536173; font-size: 12px; }
.vote-rules li::before { color: var(--teal); content: "✓"; font-weight: 900; }
.ballot-form { display: grid; gap: 12px; margin-top: 18px; }
.rank-field { display: grid; min-width: 0; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; }
.rank-field .field, .rank-field select { min-width: 0; max-width: 100%; }
.rank-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 950; }
.rank-field:nth-child(2) .rank-number { background: #46637e; }
.rank-field:nth-child(3) .rank-number { background: #758a9e; }
.closed-note { border: 1px dashed #c8d0d7; border-radius: 14px; background: #f8f8f6; padding: 15px; color: #5c6978; font-size: 12px; }
.results-list { display: grid; gap: 8px; margin-top: 14px; }
.result-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid #e6eaed; padding: 11px 0; }
.result-row:first-child { border-top: 0; }
.result-rank { font-size: 18px; font-weight: 950; }
.result-row small { display: block; color: var(--muted); font-size: 10px; }
.result-points { color: var(--teal); font-weight: 900; }
.portal-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #d4dbe1; background: rgba(255,255,255,.96); padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); box-shadow: 0 -10px 28px rgba(16,37,63,.08); backdrop-filter: blur(14px); }
.portal-nav[hidden] { display: none !important; }
.portal-nav button { position: relative; display: grid; justify-items: center; gap: 3px; border: 0; border-radius: 12px; background: transparent; padding: 7px 3px; color: #697687; font-size: 10px; font-weight: 800; cursor: pointer; }
.portal-nav button > span { font-size: 19px; line-height: 1; }
.portal-nav button.active { background: #edf4f2; color: var(--navy); }
.portal-nav i { position: absolute; top: 3px; left: calc(50% + 9px); min-width: 16px; border: 2px solid #fff; border-radius: 999px; background: var(--urgent); padding: 1px 4px; color: #fff; font-size: 8px; font-style: normal; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; background: rgba(7,21,36,.58); padding-top: 28px; }
.portal-modal { max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; background: var(--paper); padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 auto 15px; max-width: 650px; }
.modal-head h2 { margin: 0; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #cfd7de; border-radius: 50%; background: #fff; cursor: pointer; }
.mini-map { position: relative; display: grid; grid-template-columns: 1.3fr .7fr repeat(10, .65fr); grid-template-rows: repeat(7, 44px); gap: 6px; width: min(100%, 620px); margin: 0 auto; border: 3px solid var(--navy); border-radius: 8px; background: #e9eceb; padding: 14px; overflow-x: auto; }
.mini-map::after { grid-column: 1 / 3; grid-row: 4 / 8; border-top: 3px solid var(--navy); border-right: 3px solid var(--navy); content: "TT3224"; padding: 45px 8px 0; color: #657184; font-size: 10px; font-weight: 800; }
.mini-table { position: relative; z-index: 2; display: grid; min-width: 34px; place-items: center; border: 1px solid #8694a2; border-radius: 5px; background: #fff; color: #526174; font-size: 10px; font-weight: 900; }
.mini-table.active { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 0 0 4px rgba(14,156,154,.2); }
.mini-1 { grid-column: 1; grid-row: 1 / 3; }.mini-2 { grid-column: 2; grid-row: 1 / 3; }
.mini-3,.mini-4,.mini-5 { grid-column: 4; }.mini-6,.mini-7,.mini-8 { grid-column: 6; }.mini-9,.mini-10,.mini-11 { grid-column: 8; }.mini-12,.mini-13,.mini-14 { grid-column: 10; }.mini-15,.mini-16,.mini-17 { grid-column: 12; }
.mini-3,.mini-6,.mini-9,.mini-12,.mini-15 { grid-row: 1 / 3; }.mini-4,.mini-7,.mini-10,.mini-13,.mini-16 { grid-row: 3 / 5; }.mini-5,.mini-8,.mini-11,.mini-14,.mini-17 { grid-row: 5 / 7; }
.toast { position: fixed; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 16px; z-index: 80; max-width: 480px; margin: auto; border-radius: 13px; background: var(--navy); padding: 12px 15px; color: #fff; font-size: 12px; font-weight: 750; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #9d3025; }
@media (min-width: 700px) {
  .portal-header { padding-inline: calc((100% - 690px) / 2); }
  .portal-nav { right: calc((100% - 520px) / 2); left: calc((100% - 520px) / 2); bottom: 14px; border: 1px solid #d4dbe1; border-radius: 18px; padding: 7px; }
  .portal-shell { padding-top: 34px; }
  .day-stack { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .session-row { grid-template-columns: 1fr; }
  .table-chip { justify-self: start; }
  .portal-modal { border-radius: 24px 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
