:root {
  --ink: #17191c;
  --paper: #fff;
  --mist: #f2f2f3;
  --fog: #fafafb;
  --slate: #777b86;
  --ash: #979799;
  --smoke: #a3a6af;
  --peach: #fbe1d1;
  --brown: #5d2a1a;
  --border: #e8e8e9;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --shadow: 0 0 0 1px rgba(4, 23, 43, .05), 0 20px 25px -5px rgba(0, 0, 0, .08), 0 8px 10px -6px rgba(0, 0, 0, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
main { min-height: calc(100vh - 82px); }
.shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.page { padding: 64px 0 96px; }
.site-header { position: sticky; z-index: 30; top: 0; height: 82px; background: rgba(255, 255, 255, .91); backdrop-filter: blur(18px); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; letter-spacing: -.3px; }
.brand-mark { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--paper); background: var(--ink); font-family: var(--serif); font-size: 19px; font-style: italic; }
.desktop-nav { display: flex; gap: 32px; margin-left: auto; }
.desktop-nav a { position: relative; padding: 12px 0; color: var(--slate); }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions form { margin: 0; }
.search-trigger { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--mist); cursor: pointer; color: var(--slate); }
.search-trigger > span:first-child { font-size: 23px; transform: rotate(-15deg); color: var(--ink); }
kbd { padding: 3px 6px; border: 1px solid #ddd; border-radius: 6px; background: var(--paper); color: var(--ash); font: 11px var(--sans); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; margin-left: 2px; border: 0; border-radius: 50%; color: var(--brown); background: var(--peach); cursor: pointer; font-weight: 500; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 9999px; cursor: pointer; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #303236; }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: var(--fog); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.button-block { width: 100%; margin-top: 20px; }
.eyebrow { margin: 0 0 12px; color: var(--ash); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.page-hero h1, .detail-hero h1 { margin: 0; font: 400 64px/1.08 var(--serif); letter-spacing: -.035em; }
.page-hero h1 em { font-weight: 400; }
.page-hero { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.hero-copy { max-width: 520px; margin: 18px 0 0; color: var(--slate); font-size: 17px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 10px; }
.dashboard-hero { margin-bottom: 56px; }
.compact-hero { align-items: center; }
.text-link { padding: 14px 0; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--slate); line-height: 1.6; }

/* Authentication */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(470px, .95fr); }
.auth-intro { min-height: 100vh; padding: 48px clamp(40px, 7vw, 110px); display: flex; flex-direction: column; justify-content: space-between; background: var(--peach); color: var(--brown); }
.auth-intro .brand-mark { background: var(--brown); }
.auth-intro > div:nth-child(2) { max-width: 650px; }
.auth-intro h1 { margin: 0 0 24px; font: 400 clamp(55px, 6.5vw, 92px)/.98 var(--serif); letter-spacing: -.045em; }
.auth-intro p:not(.eyebrow) { max-width: 520px; margin: 0; font-size: 18px; line-height: 1.6; }
.auth-artifact { width: min(430px, 90%); align-self: flex-end; padding: 22px 24px; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.auth-artifact span, .auth-artifact small { display: block; color: var(--slate); }
.auth-artifact strong { display: block; margin: 8px 0; font-size: 20px; font-weight: 500; }
.auth-form-wrap { padding: 50px clamp(40px, 7vw, 120px); display: grid; place-items: center; }
.auth-form { width: min(420px, 100%); }
.auth-form-wrap-wide .auth-form { width: min(590px, 100%); }
.auth-form h2 { margin: 0; font: 400 44px/1.15 var(--serif); letter-spacing: -.03em; }
.auth-form > .muted { margin: 10px 0 32px; }
.auth-switch { margin: 24px 0 0; text-align: center; color: var(--slate); }
.auth-switch a { color: var(--ink); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; }
.field sup { color: var(--brown); }
.field input:not([type=checkbox]), .field textarea, .field select, .filter-bar input, .filter-bar select, .comment-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 16px; outline: none; background: var(--fog); transition: border .15s, background .15s; }
.field input:not([type=checkbox]), .field select { height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .filter-bar input:focus { border-color: var(--ink); background: var(--paper); }
.field small { color: var(--ash); font-size: 11px; line-height: 1.45; }
.field .error, .error { color: #8c3429; }
.form-errors { padding: 14px 16px; margin: 0 0 20px; border-radius: 16px; background: #fff1ec; color: #8c3429; }
.form-errors ul, .field .error ul { margin: 0; padding-left: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-grid.compact { gap: 18px; margin-top: 30px; }
.span-2 { grid-column: 1 / -1; }
.form-page { max-width: 1000px; }
.exam-form { display: grid; gap: 20px; }
.form-card { display: grid; grid-template-columns: 210px 1fr; gap: 36px; padding: 32px; border-radius: 24px; background: var(--mist); }
.form-section-title { display: flex; align-items: flex-start; gap: 14px; }
.form-section-title > span { display: grid; place-items: center; min-width: 35px; height: 35px; border: 1px solid #d4d4d6; border-radius: 50%; color: var(--slate); font-size: 12px; }
.form-section-title h2 { margin: 2px 0 5px; font: 400 25px/1.2 var(--serif); }
.form-section-title p { margin: 0; color: var(--slate); font-size: 12px; line-height: 1.5; }
.notification-note { grid-column: 2; display: flex; gap: 14px; padding: 15px; margin-bottom: -10px; border-radius: 16px; background: var(--peach); color: var(--brown); }
.notification-note strong { white-space: nowrap; }
.notification-note span { font-size: 12px; line-height: 1.5; }
.checkbox-field { flex-direction: row; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--paper); }
.checkbox-field input { width: 20px; height: 20px; margin: 1px 2px 0 0; accent-color: var(--ink); }
.checkbox-field label { display: flex; flex-direction: column; gap: 5px; }
.recipients-field ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; }
.recipients-field li label { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 14px; background: var(--paper); }
.recipients-field input { accent-color: var(--ink); }
.sticky-form-actions { position: sticky; z-index: 5; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 14px 14px 22px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.sticky-form-actions > span { color: var(--slate); font-size: 11px; }

/* Dashboard */
.stats-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 16px; margin-bottom: 80px; }
.stat-card { min-height: 190px; position: relative; overflow: hidden; padding: 24px; border-radius: 24px; background: var(--mist); }
.stat-card.accent { background: var(--peach); color: var(--brown); }
.stat-card p { margin: 0 0 24px; color: inherit; opacity: .72; }
.stat-card strong { display: block; font: 400 64px/.85 var(--serif); letter-spacing: -.04em; }
.stat-card span { display: block; margin-top: 12px; color: inherit; opacity: .72; }
.mini-line { position: absolute; right: -15px; bottom: 12px; width: 52%; height: 55px; border-top: 2px solid var(--brown); border-radius: 50%; transform: rotate(-12deg); opacity: .42; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font: 400 44px/1.15 var(--serif); letter-spacing: -.025em; }
.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.day-card { padding: 8px; border-radius: 24px; background: var(--mist); }
.day-card > header { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px; }
.day-card > header > div { display: flex; gap: 10px; align-items: center; }
.day-card > header > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); }
.day-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brown); }
.day-dot.pale { background: #c6a391; }
.exam-stack { display: grid; gap: 4px; }
.exam-row { display: grid; grid-template-columns: 62px 1fr 30px; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--paper); transition: transform .15s; }
.exam-row:hover { transform: translateX(3px); }
.exam-row time { font: 400 22px var(--serif); }
.exam-row div { min-width: 0; }
.exam-row strong, .exam-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exam-row strong { font-size: 14px; font-weight: 500; }
.exam-row span { margin-top: 5px; color: var(--slate); font-size: 11px; }
.exam-row .row-arrow { margin: 0; color: var(--ink); font-size: 18px; }
.calm-empty { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--slate); text-align: center; }
.calm-empty strong { color: var(--ink); font-weight: 500; }
.timeline-section { margin-bottom: 80px; }
.upcoming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.upcoming-card { min-height: 160px; display: flex; flex-direction: column; justify-content: end; padding: 22px; border-radius: 24px; background: var(--mist); }
.upcoming-card:hover { background: #eaeaeb; }
.upcoming-card > span { margin-bottom: auto; color: var(--ash); font-size: 12px; text-transform: uppercase; }
.upcoming-card strong { font-size: 17px; font-weight: 500; }
.upcoming-card small { margin-top: 7px; color: var(--slate); }
.neutral-card { padding: 25px; border-radius: 24px; background: var(--mist); }

/* List */
.filter-bar { display: flex; gap: 10px; padding: 10px; margin-bottom: 20px; border-radius: 22px; background: var(--mist); }
.filter-search { flex: 1; position: relative; }
.filter-search span { position: absolute; top: 9px; left: 14px; z-index: 1; font-size: 24px; }
.filter-bar input { height: 46px; padding: 0 18px 0 46px; background: var(--paper); }
.filter-bar select { min-width: 185px; height: 46px; padding: 0 14px; background: var(--paper); }
.table-card { overflow: hidden; border: 1px solid var(--border); border-radius: 24px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th { padding: 15px 18px; color: var(--ash); background: var(--fog); font-size: 11px; font-weight: 500; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
td { padding: 18px; border-top: 1px solid var(--border); vertical-align: middle; }
td strong, td small { display: block; }
td strong { font-weight: 500; }
td small { max-width: 240px; margin-top: 5px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mist); }
.status { display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; background: var(--mist); color: var(--slate); font-size: 11px; white-space: nowrap; }
.status-planned { background: var(--peach); color: var(--brown); }
.status-completed { background: #e6e6e7; color: #555; }
.status-cancelled { text-decoration: line-through; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 26px; color: var(--slate); }
.pagination a { color: var(--ink); }
.editable-table-card table { min-width: 1280px; }
.editable-row td { padding: 10px; vertical-align: top; }
.inline-input { width: 100%; min-height: 38px; margin: 0 0 7px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; outline: 0; background: var(--fog); color: var(--ink); font-size: 13px; }
.inline-input:focus { border-color: var(--ink); background: var(--paper); }
.inline-date { min-width: 180px; }
.inline-textarea { min-height: 76px; resize: vertical; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.row-detail-link { display: inline-block; color: var(--slate); font-size: 11px; }
.row-detail-link:hover { color: var(--ink); text-decoration: underline; }
.editable-row form { margin: 0; }
.editable-row .button { min-height: 38px; padding: 0 14px; }

/* Detail */
.breadcrumb { display: flex; gap: 10px; margin-bottom: 34px; color: var(--ash); font-size: 12px; }
.breadcrumb a { color: var(--ink); }
.detail-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.detail-hero .status { margin-bottom: 15px; }
.detail-hero h1 { font-size: 56px; }
.detail-hero p { margin: 12px 0 0; color: var(--slate); font-size: 17px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 20px; }
.detail-main { display: grid; gap: 20px; }
.accent-date-card { display: grid; grid-template-columns: 1fr 1fr 1.7fr; gap: 1px; overflow: hidden; border-radius: 24px; background: rgba(93, 42, 26, .12); color: var(--brown); }
.accent-date-card > div { min-height: 190px; display: flex; flex-direction: column; justify-content: end; padding: 24px; background: var(--peach); }
.accent-date-card span { margin-bottom: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.accent-date-card strong { font: 400 53px/1 var(--serif); }
.accent-date-card small { margin-top: 7px; }
.accent-date-card .date-card-copy strong { font-size: 32px; }
.info-card, .comments-card, .side-card, .settings-card { padding: 28px; border-radius: 24px; background: var(--mist); }
.info-card h2, .comments-card h2, .settings-card h2 { margin: 0; font: 400 30px/1.2 var(--serif); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; margin-top: 24px; border-radius: 18px; background: var(--border); }
.info-grid > div { min-height: 94px; padding: 18px; background: var(--paper); }
.info-grid span, .info-grid strong { display: block; }
.info-grid span { margin-bottom: 9px; color: var(--ash); font-size: 11px; text-transform: uppercase; }
.info-grid strong { font-size: 14px; font-weight: 500; line-height: 1.45; }
.open-password { font-family: ui-monospace, monospace; }
.comments-card > header, .settings-card > header { display: flex; align-items: end; justify-content: space-between; }
.comments-card > header > span, .settings-card > header > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); }
.comment-form { padding: 8px; margin: 22px 0; border-radius: 20px; background: var(--paper); }
.comment-form textarea { min-height: 90px; padding: 14px; border: 0; background: transparent; resize: vertical; }
.comment-form > div { display: flex; align-items: center; gap: 8px; padding: 4px; }
.comment-form > div input { accent-color: var(--ink); }
.comment-form > div label { color: var(--slate); font-size: 12px; }
.comment-form button { margin-left: auto; }
.comment-list { display: grid; gap: 8px; }
.comment-list article { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px; border-radius: 18px; background: var(--paper); }
.comment-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--peach); color: var(--brown); }
.comment-list article header { display: flex; justify-content: space-between; gap: 12px; }
.comment-list article header strong { font-weight: 500; }
.comment-list time { color: var(--ash); font-size: 11px; }
.comment-list p { margin: 8px 0 0; color: #4d4f54; line-height: 1.55; }
.warned-mark { display: inline-block; margin-top: 10px; color: var(--brown); font-size: 11px; }
.detail-aside { position: sticky; top: 102px; display: grid; gap: 14px; }
.side-card h3 { margin: 0 0 18px; font: 400 23px/1.2 var(--serif); }
.manager-list { display: grid; gap: 8px; }
.manager-list span { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--paper); }
.manager-list i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--peach); color: var(--brown); font-style: normal; }
.manager-list p { margin: 0; color: var(--slate); font-size: 12px; line-height: 1.55; }
.log-list { display: grid; gap: 12px; }
.log-list > div { display: flex; gap: 10px; align-items: flex-start; }
.log-list p { margin: 0; }
.log-list strong, .log-list small { display: block; }
.log-list strong { font-size: 12px; font-weight: 500; }
.log-list small { margin-top: 4px; color: var(--ash); font-size: 10px; }
.log-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--ash); }
.log-dot.sent { background: var(--brown); }
.danger-link { padding: 16px; color: #8c3429; text-align: center; font-size: 12px; }
.narrow-page { min-height: calc(100vh - 82px); display: grid; place-items: center; }
.confirm-card { width: min(540px, 100%); padding: 42px; border-radius: 24px; background: var(--peach); color: var(--brown); }
.confirm-card h1 { margin: 0; font: 400 44px var(--serif); }
.confirm-card p:not(.eyebrow) { line-height: 1.6; }
.confirm-card form { display: flex; justify-content: end; gap: 10px; margin-top: 26px; }

/* Push */
.push-hero-card { min-height: 360px; display: grid; grid-template-columns: 38% 1fr; align-items: center; gap: 55px; padding: 44px 7%; border-radius: 24px; background: var(--peach); color: var(--brown); }
.push-hero-card h2 { margin: 0; font: 400 43px/1.1 var(--serif); letter-spacing: -.03em; }
.push-hero-card p:not(.eyebrow) { max-width: 530px; line-height: 1.6; }
.push-hero-card .button-dark { border-color: var(--brown); background: var(--brown); }
.push-hero-card .button-ghost { border-color: var(--brown); color: var(--brown); }
.push-hero-card form { margin: 0; }
.push-orbit { width: min(260px, 100%); aspect-ratio: 1; position: relative; display: grid; place-items: center; margin: auto; border: 1px solid rgba(93, 42, 26, .15); border-radius: 50%; }
.push-orbit::before { content: ""; position: absolute; inset: 20%; border: 1px solid rgba(93, 42, 26, .18); border-radius: 50%; }
.push-orbit i { position: absolute; width: 12px; height: 12px; border: 2px solid var(--peach); border-radius: 50%; background: var(--brown); }
.push-orbit i:nth-child(2) { top: 10%; right: 20%; }
.push-orbit i:nth-child(3) { bottom: 15%; left: 13%; }
.push-bell { z-index: 2; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 24px; background: var(--brown); color: var(--peach); box-shadow: 0 16px 28px rgba(93,42,26,.18); font-size: 30px; }
.settings-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; margin-top: 20px; }
.device-list { display: grid; gap: 8px; margin-top: 22px; }
.device-list article { display: grid; grid-template-columns: 42px 1fr 30px; align-items: center; gap: 12px; padding: 13px; border-radius: 17px; background: var(--paper); }
.device-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--peach); color: var(--brown); }
.device-list strong, .device-list span { display: block; }
.device-list strong { font-size: 13px; font-weight: 500; }
.device-list span { margin-top: 4px; color: var(--slate); font-size: 10px; }
.device-list button { border: 0; background: transparent; color: var(--ash); cursor: pointer; font-size: 20px; }
.external-test-form { display: grid; gap: 14px; margin-top: 24px; }
.schedule-explainer { padding: 80px 0 30px; text-align: center; }
.schedule-explainer h2 { margin: 0; font: 400 44px/1.15 var(--serif); }
.schedule-line { display: grid; grid-template-columns: 1fr 80px 1fr 80px 1fr; align-items: center; margin-top: 44px; }
.schedule-line article { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 24px; background: var(--mist); }
.schedule-line article:nth-of-type(2) { background: var(--peach); color: var(--brown); }
.schedule-line span, .schedule-line small { color: inherit; opacity: .65; }
.schedule-line strong { margin: 9px 0; font: 400 34px var(--serif); }
.schedule-line i { height: 1px; background: var(--border); }

/* Search and notifications */
.search-modal[hidden] { display: none; }
.search-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: start center; padding-top: 9vh; }
.search-backdrop { position: absolute; inset: 0; background: rgba(23,25,28,.32); backdrop-filter: blur(8px); }
.search-panel { position: relative; width: min(720px, calc(100% - 30px)); max-height: 78vh; overflow: hidden; border-radius: 24px; background: var(--paper); box-shadow: 0 22px 80px rgba(0,0,0,.2); }
.global-search-input { height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.global-search-input > span { font-size: 28px; }
.global-search-input input { flex: 1; height: 100%; border: 0; outline: 0; font-size: 17px; }
.global-search-input button { border: 0; border-radius: 8px; background: var(--mist); color: var(--slate); }
.search-results { max-height: calc(78vh - 72px); overflow-y: auto; padding: 10px; }
.result-group h3 { padding: 10px 10px 6px; margin: 0; color: var(--ash); font-size: 11px; font-weight: 500; text-transform: uppercase; }
.result-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px; border-radius: 15px; }
.result-item:hover { background: var(--mist); }
.result-item strong, .result-item span { display: block; }
.result-item strong { font-size: 13px; font-weight: 500; }
.result-item span { margin-top: 4px; color: var(--slate); font-size: 11px; }
.result-item > small { color: var(--ash); }
.empty-state { padding: 35px; color: var(--slate); text-align: center; }
.toast-stack { position: fixed; z-index: 200; top: 94px; right: 20px; display: grid; gap: 8px; }
.toast { width: min(390px, calc(100vw - 40px)); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.toast.warning { background: var(--peach); color: var(--brown); }
.toast.error { background: #6e2c26; }
.toast button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 18px; }
.mobile-nav { display: none; }

@media (max-width: 950px) {
  .desktop-nav { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-card { grid-template-columns: 1fr; }
  .notification-note { grid-column: 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; grid-template-columns: 1fr 1fr; }
  .push-hero-card { grid-template-columns: 1fr 1.5fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-intro { min-height: 430px; }
  .auth-form-wrap { min-height: 620px; }
  .auth-artifact { display: none; }
}

@media (max-width: 680px) {
  body { padding-bottom: 64px; }
  .shell { width: min(100% - 28px, 1200px); }
  .site-header { height: 68px; }
  .page { padding: 40px 0 70px; }
  .search-label, kbd, .nav-actions .button { display: none; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; }
  .page-hero, .detail-hero { align-items: flex-start; flex-direction: column; }
  .page-hero h1, .detail-hero h1 { font-size: 45px; }
  .page-hero .hero-actions, .detail-hero .hero-actions { width: 100%; }
  .page-hero .hero-actions, .detail-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .page-hero .hero-actions .button, .detail-hero .hero-actions .button { width: 100%; }
  .stats-grid { gap: 10px; margin-bottom: 60px; }
  .stat-card { min-height: 150px; padding: 18px; }
  .stat-card strong { font-size: 46px; }
  .day-grid, .upcoming-grid { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 36px; }
  .filter-bar { flex-wrap: wrap; }
  .filter-search { flex-basis: 100%; }
  .filter-bar select { flex: 1; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .form-card { padding: 22px 18px; }
  .recipients-field ul { grid-template-columns: 1fr; }
  .sticky-form-actions { border-radius: 22px; }
  .sticky-form-actions > span { display: none; }
  .sticky-form-actions .button { width: 100%; }
  .accent-date-card { grid-template-columns: 1fr 1fr; }
  .accent-date-card .date-card-copy { grid-column: 1 / -1; min-height: 145px; }
  .accent-date-card > div { min-height: 160px; padding: 18px; }
  .accent-date-card strong { font-size: 42px; }
  .info-grid { grid-template-columns: 1fr; }
  .detail-aside { grid-template-columns: 1fr; }
  .push-hero-card { grid-template-columns: 1fr; gap: 24px; padding: 34px 22px; }
  .push-orbit { width: 180px; }
  .push-hero-card h2 { font-size: 35px; }
  .push-hero-card .hero-actions { flex-direction: column; align-items: stretch; }
  .push-hero-card form .button { width: 100%; }
  .schedule-line { grid-template-columns: 1fr; gap: 10px; }
  .schedule-line i { width: 1px; height: 30px; margin: auto; }
  .auth-intro { min-height: 390px; padding: 28px; }
  .auth-intro h1 { font-size: 52px; }
  .auth-intro p:not(.eyebrow) { font-size: 15px; }
  .auth-form-wrap { min-height: 600px; padding: 50px 24px; }
  .auth-form h2 { font-size: 38px; }
  .form-grid.compact { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; height: 60px; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--border); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); font-size: 12px; }
}
/* Excel-like editable exam grid */
.spreadsheet-page { max-width: 100%; }
.excel-workbook { background: #fff; border: 1px solid #b9c3bb; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 28px rgba(35, 61, 44, .08); }
.excel-toolbar { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #23472f; background: #f3f7f3; border-bottom: 1px solid #c9d2cb; }
.excel-toolbar small { color: #647169; }
.excel-hint { margin-left: auto; }
.excel-badge { padding: 5px 9px; color: #fff; background: #217346; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.excel-scroll { overflow: auto; max-height: calc(100vh - 260px); }
.excel-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-family: Arial, sans-serif; font-size: 12px; }
.excel-table th { position: sticky; top: 0; z-index: 4; height: 30px; padding: 0 8px; white-space: nowrap; color: #26372b; background: #e6eee8; border-right: 1px solid #b8c5bb; border-bottom: 1px solid #9eaea2; text-align: center; font-weight: 700; }
.excel-table td { height: 34px; padding: 0; background: #fff; border-right: 1px solid #d5ddd7; border-bottom: 1px solid #d5ddd7; vertical-align: middle; }
.excel-table tbody tr:nth-child(even) td { background: #fbfdfb; }
.excel-table tbody tr:hover td { background: #eef8f1; }
.excel-table th:nth-child(2), .excel-table td:nth-child(2) { width: 174px; }
.excel-table th:nth-child(3), .excel-table td:nth-child(3) { width: 210px; }
.excel-table th:nth-child(4), .excel-table td:nth-child(4), .excel-table th:nth-child(5), .excel-table td:nth-child(5) { width: 165px; }
.excel-table th:nth-child(6), .excel-table td:nth-child(6), .excel-table th:nth-child(7), .excel-table td:nth-child(7) { width: 150px; }
.excel-table th:nth-child(8), .excel-table td:nth-child(8) { width: 120px; }
.excel-table th:nth-child(9), .excel-table td:nth-child(9), .excel-table th:nth-child(10), .excel-table td:nth-child(10) { width: 190px; }
.excel-table th:nth-child(11), .excel-table td:nth-child(11) { width: 135px; }
.excel-table th:nth-child(12), .excel-table td:nth-child(12) { width: 120px; }
.excel-table .row-number { position: sticky; left: 0; z-index: 3; width: 44px; min-width: 44px; color: #607066; background: #edf1ee !important; text-align: center; }
.excel-table thead .row-number { z-index: 6; }
.excel-table .row-number a { color: #217346; font-weight: 700; text-decoration: none; }
.excel-cell { display: block; width: 100%; min-height: 33px; margin: 0; padding: 7px 8px; box-sizing: border-box; border: 2px solid transparent; border-radius: 0; background: transparent; color: #202820; font: inherit; outline: none; }
.excel-cell:focus { position: relative; z-index: 2; border-color: #217346; background: #fff; box-shadow: inset 0 0 0 1px #217346; }
.excel-textarea { resize: none; overflow: hidden; }
.recipient-cell { padding: 4px 7px !important; }
.recipient-cell span { display: inline-block; margin: 1px; padding: 2px 5px; border-radius: 10px; background: #e2efe6; color: #2d6540; font-size: 10px; }
.save-cell { width: 42px; text-align: center; }
.excel-save { width: 28px; height: 26px; border: 1px solid #217346; border-radius: 4px; background: #217346; color: #fff; cursor: pointer; font-weight: 800; }
.excel-tabs { display: flex; align-items: center; gap: 14px; height: 35px; padding: 0 12px; background: #f2f5f3; border-top: 1px solid #c9d2cb; }
.excel-tabs .active { height: 35px; padding: 9px 18px 7px; color: #217346; background: #fff; border-bottom: 3px solid #217346; font-weight: 700; }
.excel-tabs button, .excel-tabs a { border: 0; background: transparent; color: #217346; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.excel-tabs button:hover, .excel-tabs a:hover { text-decoration: underline; }
.excel-tabs small { margin-left: auto; color: #6d796f; }
.new-exam-row td { background: #fffbe9 !important; border-bottom-color: #d8bd68; }
.new-exam-row .row-number { color: #217346; font-size: 17px; font-weight: 800; }
.selective-push-card { margin: 22px 0; }
.recipient-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin: 16px 0; }
.recipient-picker label { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.recipient-picker label:has(input:checked) { border-color: #217346; background: #eef8f1; }
.recipient-picker input { width: 17px; height: 17px; accent-color: #217346; }
.recipient-picker span { display: grid; gap: 2px; }
.recipient-picker small { color: var(--muted); }
@media (max-width: 720px) { .excel-hint { display: none; } .excel-scroll { max-height: 68vh; } }
