@font-face {
  font-family: Inter;
  src: url('/assets/Inter.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Inter, system-ui, sans-serif;
  color: #292a21;
  background: #f6f5ef;
  color-scheme: light;
  --ink: #292a21;
  --muted: #686858;
  --canvas: #f6f5ef;
  --paper: #fffef9;
  --graphite: #1b1a17;
  --line: #cdcbbb;
  --lime: #c2ff4d;
  --selection: #e9e8de;
  --positive: #31631b;
  --danger: #872d21;
  --rail: 232px;
  --gutter: clamp(18px, 3.1vw, 46px);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; font-size: 1rem; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; text-underline-offset: .18em; }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.14; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.85rem, 2.5vw, 2.5rem); font-weight: 760; letter-spacing: -.04em; }
h2 { font-size: 1.38rem; font-weight: 735; letter-spacing: -.032em; }
h3 { font-size: 1.075rem; font-weight: 700; letter-spacing: -.02em; }
small { font-size: .84rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #346b45; outline-offset: 3px; }
:focus-visible:not(:focus) { outline-offset: 2px; }
main:focus, .review-heading h2:focus { outline: none; }
.rail :focus-visible, .mobile-header :focus-visible { outline-color: var(--lime); }
::selection { background: #d8f6a3; color: var(--ink); }
.skip-link { position: fixed; z-index: 8; top: 6px; left: 6px; transform: translateY(-140%); padding: 9px 14px; border-radius: 6px; background: var(--lime); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.loading { display: grid; min-height: 100dvh; place-items: center; }

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 24px; padding: 25px 14px 16px; overflow-y: auto; background: var(--graphite); color: #f2f7f7; }
.rail > * { flex-shrink: 0; }
.rail-brand { padding: 4px 4px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f4f8f8; font-size: 1.5rem; line-height: 1; font-weight: 750; letter-spacing: -.04em; }
.rail-brand .brand { max-width: 100%; flex-wrap: wrap; }
.brand img { width: 56px; height: auto; flex-shrink: 0; object-fit: contain; }
.brand span { white-space: nowrap; }
.navigation { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.nav-item { display: flex; flex-shrink: 0; gap: 13px; align-items: center; min-height: 47px; padding: 9px 11px; border: 0; border-radius: 7px; text-align: left; background: transparent; color: inherit; }
.nav-item span { min-width: 0; overflow-wrap: anywhere; }
.nav-item[aria-current] { color: white; background: #47595b; font-weight: 680; }
.nav-account { margin-top: auto; }
.nav-account:not([aria-current]) { border-top: 1px solid #56696c; border-radius: 0; }
.mobile-header { display: none; }
.work-area { min-width: 0; position: relative; }
.workspace-tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px var(--gutter) 0; min-height: 58px; }
.inbox-tools { position: absolute; top: 10px; right: 0; z-index: 1; max-width: 12rem; }
.sync-state { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 10px; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafa; color: var(--muted); font-size: .85rem; white-space: normal; }
.sync-state.synced svg { color: var(--positive); }
.sync-state.attention svg { color: var(--danger); }
.inbox-tools .sync-state { border-color: transparent; background: transparent; }
.icon-btn, .avatar-button { display: inline-grid; flex-shrink: 0; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; }
.bell-button { position: relative; }
.unread-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #5c892f; }
.mobile-header .unread-dot { background: var(--lime); }
.avatar { display: inline-grid; flex-shrink: 0; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dbe5e6; color: var(--ink); font-size: .92rem; font-weight: 750; }

.content { width: 100%; padding: 22px var(--gutter) 56px; }
.measure { max-width: 1160px; margin-inline: auto; }
.home-content { max-width: 1160px; margin-inline: auto; padding-top: 14px; }
.page-title { margin-block: 8px 23px; }
.page-title p, .inbox-heading p { max-width: 65ch; margin-top: 7px; color: var(--muted); overflow-wrap: anywhere; }
.split-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.section-heading, .detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.section-heading { justify-content: space-between; min-height: 42px; }
.detail-meta { margin-top: 7px; color: var(--muted); font-size: .9rem; }
.home-section { margin-top: 28px; }
.home-section > h2 { margin-bottom: 10px; }
.home-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 48px); padding-block: 4px 26px; border-bottom: 1px solid var(--line); }
.home-overview > section { min-width: 0; }
.home-entry { align-self: center; padding-left: clamp(20px, 3vw, 36px); border-left: 1px solid var(--line); }
.home-entry h2 { font-size: 1.2rem; }
.home-entry > p { color: var(--muted); margin-top: 9px; max-width: 46ch; }
.draft-summary { display: flex; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.draft-summary > div { flex: 1; min-width: 0; }
.draft-summary > svg { flex: none; }
.draft-trash { flex: none; width: 44px; height: 44px; color: var(--danger); }
.home-overview .hours-summary { padding: clamp(18px, 3vw, 34px); background: var(--graphite); color: var(--paper); border-radius: 12px; }
.home-overview .total-label, .home-overview .support-stats dt, .prior-time { color: #cbd7d7; }
.home-overview .support-stats { border-color: #637476; padding-bottom: 0; }
.home-overview .support-stats div + div { border-color: #637476; }
.prior-time { margin-top: 9px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.draft-summary p { margin-top: 3px; overflow-wrap: anywhere; }
.draft-summary small { display: block; margin-top: 4px; color: var(--muted); }
.hero-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 11px; margin-top: 8px; }
.hero-figure strong { font-size: clamp(3.5rem, 5.3vw, 5.2rem); line-height: 1; font-weight: 780; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hero-figure span { font-size: 1.3rem; font-weight: 480; }
.total-label { color: var(--muted); font-size: 1rem; font-weight: 575; }
.support-stats { display: grid; grid-template-columns: 1fr 1fr; padding-block: 13px; margin-top: 13px; border-top: 1px solid var(--line); }
.support-stats div { display: flex; flex-wrap: wrap; gap: 9px; align-items: baseline; }
.support-stats div + div { border-left: 1px solid var(--line); padding-left: clamp(15px, 5vw, 38px); }
.support-stats dt { color: var(--muted); font-weight: 600; }
.support-stats dd { font-size: 1.33rem; font-weight: 755; font-variant-numeric: tabular-nums; }
.entry-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
.entry-actions .btn { font-size: 1.02rem; font-weight: 730; }
.actions, .detail-footer { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.detail-footer { margin-top: 20px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); text-align: center; text-decoration: none; font-size: .94rem; font-weight: 670; line-height: 1.25; overflow-wrap: anywhere; }
.btn.primary { background: var(--lime); border-color: var(--lime); }
.btn.outline { border-color: #758588; background: #fafcfc; }
.btn.quiet { border-color: var(--line); background: #f8fafa; }
.btn.text-btn { color: var(--muted); padding-inline: 2px; text-decoration: underline; text-underline-offset: .2em; }
.btn.danger { color: #fff; background: var(--danger); }
.btn, .nav-item, .flight-row, .person-row, .next-lesson, .queue-row { transition: background-color .12s ease, border-color .12s ease; }
.back-link { justify-content: flex-start; margin-bottom: 4px; text-decoration: none !important; }
.next-lesson { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; text-align: left; background: #fafcfc; }
.next-lesson strong, .person-row strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.next-lesson small, .person-row small, .connection-row small, .notification-row small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.record-list { border: 1px solid var(--line); border-radius: 9px; background: var(--paper); overflow: clip; }
.ledger-heading, .flight-row { display: grid; grid-template-columns: minmax(108px, .8fr) minmax(0, 1.6fr) minmax(92px, .75fr) minmax(55px, .4fr); align-items: center; gap: 16px; }
.ledger-heading { padding: 10px 16px; color: var(--muted); font-size: .81rem; font-weight: 600; background: #f8fafa; border-bottom: 1px solid var(--line); }
.ledger-heading > :last-child { text-align: right; }
.flight-row { width: 100%; padding: 16px; border: 0; background: transparent; text-align: left; }
.flight-row + .flight-row { border-top: 1px solid var(--line); }
.flight-row:focus-visible, .person-row:focus-visible, .queue-row:focus-visible { position: relative; outline-offset: -3px; }
.flight-date { min-width: 0; align-self: start; padding-top: 2px; font-size: .9rem; font-weight: 640; overflow-wrap: anywhere; }
.flight-date small { display: block; margin-top: 4px; font-size: .8rem; font-weight: 450; color: var(--muted); }
.flight-ident { min-width: 0; }
.flight-route { display: block; font-weight: 720; font-size: 1.12rem; letter-spacing: -.025em; line-height: 1.25; overflow-wrap: anywhere; }
.flight-airports, .flight-description { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.flight-description > span { display: block; }
.flight-airports, .flight-description > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.flight-status { min-width: 0; font-size: .81rem; }
.flight-hours { text-align: right; font-size: 1.18rem; font-weight: 735; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.flight-hours span { font-size: .9em; }
.badge { display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: 20px; background: #e9eeee; color: #3d4d50; font-size: .76rem; font-weight: 620; overflow-wrap: anywhere; }
.badge.success { background: #e3f4ca; color: #355721; }
.badge.warn { background: #fff1d8; color: #714d0f; }
.person-row { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 61px; padding: 9px 11px; border: 0; background: transparent; text-align: left; }
.person-row > span:nth-child(2) { min-width: 0; flex: 1; }
.person-row + .person-row { border-top: 1px solid var(--line); }
.instructor-home { border-top: 1px solid var(--line); }
.empty { display: flex; gap: 12px; align-items: flex-start; padding: 16px 12px; }
.empty p { max-width: 40ch; margin-top: 5px; color: var(--muted); }
.empty .btn { margin-top: 5px; }
.empty-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: #e8efee; color: #3a5356; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border: 1px solid #b4cbba; border-radius: 8px; background: #eaf2ea; overflow-wrap: anywhere; }
.callout p { margin-top: 3px; }
.callout.alert { border-color: #e0c699; background: #fff6e5; }
.hours-summary .callout { margin-block: 16px 0; }

.archive-controls { max-width: 640px; }
.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid #9eacad; border-radius: 7px; padding: 0 9px; background: var(--paper); color: var(--muted); }
.search-field input { width: 100%; min-width: 0; min-height: 44px; border: 0; background: transparent; padding: 5px 0; color: var(--ink); }
.search-field input:focus { outline: 0; }
.search-field:focus-within { outline: 3px solid #346b45; outline-offset: 3px; }
.archive-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 16px 8px; }
.archive-filters button { display: inline-flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 44px; max-width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-size: .86rem; text-align: left; overflow-wrap: anywhere; }
.archive-filters button[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.archive-filters .filter-count { font-variant-numeric: tabular-nums; font-weight: 650; }
.result-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin-block: 7px; min-height: 44px; }
.result-count { font-size: .86rem; }
.result-summary .btn { padding-inline: 2px; font-size: .86rem; }
.search-help { margin-top: 7px; color: var(--muted); font-size: .81rem; }
.feedback-row { display: flex; width: 100%; gap: 15px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 0; background: var(--paper); text-align: left; overflow-wrap: anywhere; }
.feedback-row + .feedback-row { border-top: 1px solid var(--line); }
.feedback-row > span:first-child { min-width: 0; flex: 1; }
.feedback-row strong, .feedback-row small { display: block; }
.feedback-row small { margin-top: 3px; color: var(--muted); }
.feedback-row:focus-visible { outline-offset: -4px; }
.feedback-comment { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin-top: 8px; font-size: .92rem; }
.feedback-action { display: inline-flex; gap: 5px; align-items: center; flex-shrink: 0; font-size: .85rem; font-weight: 650; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.form-panel { padding: clamp(14px, 3vw, 25px); }
.form-panel h2 { margin-bottom: 12px; }
.form-panel h3 { margin-block: 14px 9px; }
.form-panel p + .btn, .form-panel p + form, .form-panel p + .actions { margin-top: 10px; }
.form-panel .section-heading h2 { margin: 0; }
.form-panel .section-heading { margin-bottom: 8px; }
.form-stack { display: grid; gap: 14px; }
.fields { display: grid; gap: 11px 15px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields + .field, .field + .field, .airport-fields { margin-top: 12px; }
.form-stack > .field + .field { margin-top: 0; }
.fields > .field + .field { margin-top: 0; }
.field { display: grid; align-content: start; gap: 4px; min-width: 0; font-size: .91rem; font-weight: 630; }
.field small { color: var(--muted); font-weight: 430; }
.field input, .field select, .field textarea { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 8px 9px; min-height: 44px; border: 1px solid #9eacad; border-radius: 7px; background: #fff; font-size: 1rem; font-weight: 435; }
.field input[type="date"] { appearance: none; }
.field input[type="file"] { line-height: 1.2; }
.field textarea { min-height: 82px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.editor-section { display: grid; gap: 14px; }
.editor-section h2 { margin: 0; font-size: 1.15rem; }
.editor-section .fields + .field, .editor-section .airport-fields { margin-top: 0; }
.section-description, .section-note { max-width: 65ch; color: var(--muted); font-size: .91rem; font-weight: 430; line-height: 1.55; }
.editor-section .section-description { margin-top: -5px; }
.entry-editor .fields.two > .field { grid-template-rows: 1fr auto; }
.entry-editor .fields.two > .field > span:first-child { align-self: end; }
.editor-section h3 { margin: 2px 0 0; font-size: 1rem; }
.summary-description { display: block; margin-top: 4px; font-size: .84rem; font-weight: 430; color: var(--muted); }
.checkbox-row { display: flex; gap: 9px; align-items: center; min-height: 44px; font-size: .93rem; }
input[type="checkbox"] { width: 19px; height: 19px; margin: 0; flex: 0 0 auto; accent-color: #3c6b2b; }
.more-fields summary, .extra-facts summary, .signature-receipt summary, .history-list summary { min-height: 44px; padding: 9px 0; cursor: pointer; font-weight: 680; }
.more-fields summary { padding: 12px clamp(14px, 3vw, 25px); }
.more-fields > .form-panel { border-top: 1px solid var(--line); padding-top: 4px; }
.more-fields .approach-row { margin-top: 14px; padding-block: 10px; border-top: 1px solid var(--line); }
.approach-row > button { justify-self: start; }
.form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.form-error { padding: 10px 12px; border: 1px solid #dca89e; border-radius: 6px; color: var(--danger); background: #fff0eb; overflow-wrap: anywhere; }
.timer-panel { padding: 28px 16px; text-align: center; }
.timer-state { color: var(--muted); font-weight: 650; }
.timer-value { font-size: clamp(2.3rem, 8vw, 5rem); font-weight: 770; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.timer-panel .btn { margin-top: 13px; }
.timer-guidance { max-width: 62ch; margin: 24px auto 0; }
.timer-guidance h2 { font-size: 1.15rem; }
.timer-guidance p { margin-top: 8px; color: var(--muted); }
.record-panel { padding: 0 clamp(14px, 3vw, 25px); }
.route-band { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.route-pair { display: flex; gap: clamp(8px, 2vw, 23px); align-items: center; min-width: 0; }
.route-pair > div { min-width: 0; }
.route-pair strong { font-size: 1.4rem; line-height: 1.12; letter-spacing: -.033em; overflow-wrap: anywhere; }
.route-pair small { display: block; color: var(--muted); }
.aircraft-mark { display: flex; align-items: center; gap: 7px; color: var(--muted); overflow-wrap: anywhere; }
.fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 15px 0; }
.fact-grid div { padding-inline: 10px; }
.fact-grid div:first-child { padding-left: 0; }
.fact-grid div + div { border-left: 1px solid var(--line); }
.fact-grid dt { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.fact-grid dd { margin-top: 3px; font-weight: 760; font-size: 1.25rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-section { padding-block: 13px; border-top: 1px solid var(--line); }
.detail-section p { margin-top: 6px; }
.extra-facts dl, .signature-receipt dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.extra-facts dt, .signature-receipt dt { color: var(--muted); font-size: .8rem; }
.extra-facts dd, .signature-receipt dd { overflow-wrap: anywhere; }
.detail-block { margin-top: 14px; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list > li { padding: 8px 0; overflow-wrap: anywhere; }
.plain-list > li + li, .review-history { border-top: 1px solid var(--line); }
.review-history { margin-top: 10px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.attachment-link { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; }
.history-list > details + details { border-top: 1px solid var(--line); }
.version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 13px; }
.version-grid > section { min-width: 0; border: 1px solid var(--line); padding: 10px; border-radius: 8px; }

.inbox-heading { padding: 19px max(196px, 8rem) 20px 27px; border-bottom: 1px solid var(--line); min-height: 104px; }
.inbox-heading h1 { overflow-wrap: normal; }
.inbox-columns { display: grid; grid-template-columns: minmax(260px, .38fr) minmax(0, .62fr); min-height: calc(100dvh - 104px); background: var(--paper); }
.inbox-queue { min-width: 0; padding: 16px 12px; border-right: 1px solid var(--line); }
.review-filters { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.review-filters button { padding: 6px 8px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 570; }
.review-filters button[aria-pressed="true"] { background: #e6ebed; color: var(--ink); font-weight: 730; }
.review-filters button span { display: inline-block; min-width: 19px; padding-inline: 4px; margin-left: 2px; border-radius: 12px; background: #dbe2e3; color: var(--ink); font-size: .77rem; }
.queue-list { padding-top: 7px; max-height: calc(100dvh - 175px); overflow: auto; scrollbar-width: thin; }
.queue-row { position: relative; display: block; width: 100%; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.queue-row.selected { background: var(--selection); box-shadow: inset 4px 0 var(--lime); border-radius: 6px; }
.queue-row-top, .queue-row-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.queue-row-top { flex-wrap: wrap; }
.queue-row-top strong { font-size: 1.04rem; overflow-wrap: anywhere; }
.queue-row-top time, .queue-row-bottom { color: var(--muted); font-size: .85rem; }
.queue-row-bottom { align-items: center; margin-top: 2px; }
.queue-row-bottom small { display: block; margin-top: 2px; }
.inbox-detail { min-width: 0; }
.inbox-detail > .empty { margin: 30px 14px; }
.review-detail { padding: 23px clamp(14px, 2.2vw, 29px) 28px; }
.review-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.review-heading h2 { font-size: clamp(1.65rem, 2.5vw, 2.35rem); }
.review-heading .detail-meta { font-size: 1rem; }
.review-form { padding-top: 14px; border-top: 1px solid var(--line); }
.review-actions { justify-content: flex-end; }
.sign-confirmation { display: grid; gap: 4px; }
.mobile-review-back { display: none; }
.handoff-shell { display: block; }
.handoff-content .mobile-review-back { display: none; }
.handoff-content .review-detail { padding-top: 15px; }
.connection-row, .notification-row { display: flex; gap: 10px; align-items: center; padding: 10px; overflow-wrap: anywhere; }
.connection-row + .connection-row, .notification-row + .notification-row { border-top: 1px solid var(--line); }
.connection-row > div:nth-child(2), .notification-row > span:nth-child(2) { flex: 1; min-width: 0; }
.comments li small, .mailbox-list small { display: block; color: var(--muted); }
.comments li p { margin-top: 5px; }
.import-preview { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.import-preview p + p { margin-top: 5px; }
.section-stack { display: grid; gap: 24px; }
.section-count { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; padding: 2px 8px; border-radius: 20px; background: #e6edec; color: var(--muted); font-size: .83rem; font-weight: 650; vertical-align: middle; }
.section-note { margin-block: 7px 14px; }
.resource-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.resource-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; background: #f9fbfb; text-decoration: none; }
.resource-link > span { min-width: 0; overflow-wrap: anywhere; }
.resource-link > span:nth-child(2) { flex: 1; }
.resource-link strong { display: block; font-weight: 650; }
.resource-link small { display: block; margin-top: 2px; color: var(--muted); font-weight: 430; }
.account-index, .account-detail { max-width: 780px; }
.account-groups { margin-top: 24px; }
.account-group { border-block: 1px solid var(--line); }
.btn.account-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 16px; align-items: center; min-height: 62px; padding: 16px 4px; text-align: left; color: var(--ink); border: 0; border-radius: 0; }
.account-group .account-row + .account-row { border-top: 1px solid var(--line); }
.btn.account-identity { grid-template-columns: auto minmax(0, 1fr) auto; padding: 18px 0; }
.account-identity .avatar { width: 54px; height: 54px; }
.account-row-label { min-width: 0; overflow-wrap: anywhere; }
.account-row-label small { display: block; margin-top: 4px; color: var(--muted); font-weight: 450; }
.account-row > svg { color: var(--muted); }
.settings-body { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(18px, 3vw, 30px); }
.settings-body > .section-note { margin-bottom: 22px; }
.settings-body .form-stack { gap: 20px; }
.settings-body .actions { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; justify-content: flex-end; }
.settings-body .form-stack > .field { max-width: 100%; }
.settings-body .settings-divider { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1rem; }
.profile-summary { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 22px; }
.profile-summary > div { min-width: 0; overflow-wrap: anywhere; }
.profile-summary p { color: var(--muted); margin-block: 3px 8px; }
.profile-summary .avatar { flex-shrink: 0; width: 52px; height: 52px; }
.workspace-current { display: grid; gap: 5px; margin-bottom: 20px; }
.workspace-current span { color: var(--muted); font-size: .85rem; }
.workspace-current strong { font-size: 1.5rem; font-weight: 550; }
.settings-body .detail-footer { border-top: 1px solid var(--line); padding-top: 20px; justify-content: flex-end; }
.import-settings > .panel { border-radius: 8px; }
.settings-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px; }
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.settings-row > div { flex: 1 1 15rem; min-width: 0; }
.settings-row h3 { margin: 0; font-size: 1rem; }
.settings-row p { margin-top: 5px; font-size: .9rem; color: var(--muted); max-width: 56ch; }
.settings-row .actions { align-self: center; }
.connection-copy { flex: 1; min-width: 0; }
.connection-copy > strong { display: block; }
.notification-row.is-unread { background: #f0f5ec; box-shadow: inset 3px 0 #789b45; }
.notification-row.is-unread strong { font-weight: 750; }

.auth-shell { min-height: 100dvh; }
.auth-header { display: flex; align-items: center; justify-content: center; min-height: 65px; padding-top: env(safe-area-inset-top); background: var(--graphite); color: white; }
.auth-main { max-width: 460px; padding: clamp(25px, 7vh, 68px) 17px 44px; margin-inline: auto; }
.auth-panel { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.auth-panel .page-title { margin-top: 0; }
.auth-panel .form-stack { margin-bottom: 7px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 9px; }
dialog { width: min(100% - 24px, 505px); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #aebbbb; border-radius: 13px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 55px #14232630; }
dialog.wide { width: min(100% - 24px, 910px); }
dialog::backdrop { background: #11212371; }
.dialog-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 11px 8px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dialog-content { padding: 15px 16px 18px; }
.dialog-content > p { margin-bottom: 10px; }
.status-toast { position: fixed; z-index: 7; right: 15px; bottom: 16px; max-width: min(390px, calc(100vw - 30px)); padding: 10px 13px; border: 1px solid #4c6264; border-radius: 8px; color: #fff; background: var(--graphite); box-shadow: 0 8px 24px #15262825; font-size: .92rem; }
.status-toast.failure { background: var(--danger); border-color: #ad665a; }

@media (min-width: 1081px) {
  .instructor-shell { --rail: 246px; }
  .inbox-heading { padding-top: 13px; padding-bottom: 22px; }
  .inbox-queue { padding-top: 24px; }
  .inbox-queue .queue-row { padding: 15px 17px; }
  .queue-row-top strong { font-size: 1.21rem; }
  .queue-row-top time, .queue-row-bottom { font-size: .96rem; }
  .review-detail { padding-top: 29px; }
  .review-heading { padding-bottom: 22px; }
  .review-detail .route-band { padding-block: 19px; }
  .review-detail .route-pair strong { font-size: 1.8rem; }
  .review-detail .fact-grid { padding-block: 19px; }
  .review-detail .fact-grid dd { font-size: 1.6rem; }
}

@media (max-width: 1080px) {
  :root { --rail: clamp(192px, 13rem, 31vw); }
  .inbox-columns { grid-template-columns: minmax(230px, .42fr) minmax(0, .58fr); }
  .review-filters button { padding-inline: 6px; }
  .home-overview { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .home-entry { border-left: 0; padding: 0; }
  .entry-actions { grid-template-columns: 1fr 1fr; }
  .inbox-columns { display: block; min-height: 0; }
  .inbox-queue { border-right: 0; }
  .queue-list { max-height: none; }
  .inbox-detail, .has-review .inbox-queue { display: none; }
  .has-review .inbox-detail { display: block; }
  .mobile-review-back { display: inline-flex; margin-bottom: 5px; }
}

@media (max-width: 790px) {
  :root { --gutter: clamp(13px, 3.6vw, 23px); }
  #app { container-type: inline-size; }
  :root { scroll-padding-bottom: calc(var(--navigation-height, 61px) + 12px); }
  .app-shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .mobile-header { display: flex; grid-column: 1 / -1; grid-row: 1; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px; padding: max(4px, env(safe-area-inset-top)) var(--gutter) 4px; min-height: 56px; background: var(--graphite); color: #fff; }
  .mobile-header .brand { gap: 10px; font-size: 1.34rem; }
  .mobile-header .brand img { width: 52px; }
  .mobile-tools { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
  .mobile-header .avatar { width: max(34px, 1.6rem); height: max(34px, 1.6rem); }
  .mobile-header .avatar-button { width: max(44px, 1.6rem); height: max(44px, 1.6rem); }
  .rail { display: contents; }
  .rail-brand { display: none; }
  .work-area { display: contents; }
  .workspace-tools { position: static; grid-column: 1; grid-row: 2; align-self: end; min-height: 0; min-width: 0; max-width: none; padding: 9px var(--gutter) 0 7px; }
  .workspace-tools .sync-state { min-width: 0; min-height: 44px; overflow-wrap: anywhere; }
  .inbox-tools .sync-state { border-color: var(--line); background: #f8fafa; }
  .desktop-bell { display: none; }
  .work-area main { grid-column: 1 / -1; grid-row: 3; min-width: 0; }
  .navigation { display: grid; grid-column: 1 / -1; grid-row: 4; grid-template-columns: repeat(auto-fit, minmax(min(100%, 3.2rem), 1fr)); position: sticky; z-index: 4; bottom: 0; gap: 0; padding: 4px 3px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fbfdfd; color: var(--muted); }
  .nav-item, .nav-account:not([aria-current]) { position: relative; min-width: 0; min-height: 53px; flex-direction: column; justify-content: center; gap: 4px; margin: 0; padding: 5px 1px 9px; border: 0; border-radius: 5px; color: inherit; font-size: .73rem; line-height: 1.08; text-align: center; }
  .nav-item[aria-current] { color: var(--ink); background: transparent; font-weight: 735; }
  .nav-item[aria-current]::after { content: ''; position: absolute; bottom: 2px; width: 37%; height: 2px; border-radius: 2px; background: var(--ink); }
  .nav-account { margin-top: 0; }
  .home-overview .support-stats div { display: grid; gap: 2px; }
  .instructor-shell .nav-item { font-size: .73rem; line-height: 1.15; }
  .content { padding-top: 19px; padding-bottom: 24px; }
  .home-content { padding-top: 20px; }
  .home-content h1 { font-size: 1.78rem; }
  .home-content h2 { font-size: 1.22rem; }
  .hero-figure strong { font-size: clamp(3rem, 15vw, 4.25rem); }
  .hero-figure { margin-top: 8px; }
  .support-stats { padding-block: 12px; }
  .ledger-heading { display: none; }
  .flight-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 14px; }
  .flight-date { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 3px 10px; padding: 0; color: var(--muted); font-size: .82rem; font-weight: 500; }
  .flight-date small { display: inline; margin: 0; font-size: inherit; }
  .flight-ident { grid-column: 1; grid-row: 2; }
  .flight-route { font-size: 1.16rem; }
  .flight-description { display: flex; flex-wrap: wrap; gap: 3px 12px; }
  .flight-status { grid-column: 1 / -1; grid-row: 3; }
  .flight-hours { grid-column: 2; grid-row: 2; align-self: start; }
  .next-lesson { padding-block: 8px; }
  .recent-section { margin-top: 24px; }
  .instructor-home { min-height: 55px; }
  .feedback-row { flex-direction: column; align-items: stretch; gap: 9px; }
  .feedback-action { align-self: flex-end; }
  .status-toast { bottom: calc(var(--navigation-height, 61px) + 8px); }
  .inbox-heading { min-height: 0; padding: 17px var(--gutter) 14px; }
  .inbox-columns { display: block; min-height: 0; }
  .inbox-queue { border: 0; padding-inline: var(--gutter); }
  .queue-list { max-height: none; }
  .inbox-detail, .has-review .inbox-queue { display: none; }
  .has-review .inbox-detail { display: block; }
  .review-detail { padding: 10px var(--gutter) 22px; }
  .mobile-review-back { display: inline-flex; margin-bottom: 5px; }
  .handoff-shell { display: block; padding-bottom: 15px; }
  .handoff-shell .work-area { display: block; }
}

@container (max-width: 11rem) {
  .mobile-header .brand span { font-size: 1rem; }
  .workspace-tools { justify-content: flex-start; padding-inline: var(--gutter); }
}

@media (max-width: 380px) {
  .entry-actions .btn { font-size: .89rem; padding-inline: 6px; }
  .connection-row, .notification-row { flex-wrap: wrap; }
  .connection-row .actions { flex-basis: 100%; }
  .version-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 9px; }
  .fact-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .fields.two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}


/* Journal identity: quiet paper, strong airport pairs, and a bound graphite edge. */
:root { --canvas: #f6f5ef; --line: #cdcbbb; --rail: 204px; background: var(--canvas); }
h1 { font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 540; letter-spacing: -.055em; }
h2 { font-weight: 620; letter-spacing: -.03em; }
.brand { font-weight: 560; letter-spacing: -.06em; }
.rail { padding: 30px 16px 20px; border-right: 5px solid var(--lime); gap: 38px; }
.rail-brand { padding: 0; }
.rail-brand .brand { flex-direction: column; align-items: flex-start; gap: 14px; font-size: 1.7rem; }
.rail-brand .brand img { width: 74px; }
.nav-item { border-radius: 4px; font-weight: 480; }
.nav-item[aria-current] { background: #304448; box-shadow: inset 3px 0 var(--lime); }
.workspace-tools { min-height: 50px; padding-top: 8px; }
.sync-state { background: transparent; border-color: transparent; font-size: .8rem; }
.content { padding-top: 12px; }
.page-title { margin-bottom: 28px; }
.page-title p { font-size: .93rem; }
.btn { border-radius: 5px; font-weight: 590; }
.record-list { border-radius: 4px; border-inline: 0; }
.flight-row { padding-block: 20px; }
.flight-route { font-size: 1.4rem; font-weight: 560; letter-spacing: .015em; }
.flight-hours { font-weight: 550; }
.ledger-heading { background: transparent; }
.badge { border-radius: 4px; }
.journal-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.journal-title .journal-owner { margin: 0 0 7px; color: var(--muted); font-size: .9rem; }
.journal-count { color: var(--muted); padding-bottom: 6px; font-size: .85rem; white-space: nowrap; }
.home-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; border: 1px solid var(--line); border-top: 3px solid var(--graphite); background: white; }
.home-overview .hours-summary { border: 0; border-radius: 0; padding: 28px 32px; background: transparent; color: var(--ink); }
.home-overview .total-label, .home-overview .support-stats dt, .prior-time { color: var(--muted); }
.hero-figure { margin-block: 12px; }
.hero-figure strong { font-size: clamp(3.8rem, 6vw, 6rem); font-weight: 430; letter-spacing: -.07em; }
.hero-figure span { font-size: 1rem; color: var(--muted); }
.home-overview .support-stats { border-color: var(--line); gap: 20px; padding-bottom: 0; }
.home-overview .support-stats div { display: grid; gap: 5px; }
.home-overview .support-stats div + div { border: 0; padding: 0; }
.support-stats dt { font-size: .83rem; font-weight: 450; }
.support-stats dd { font-size: 1.4rem; font-weight: 550; }
.last-flight { border-left: 1px solid var(--line); padding: 24px 32px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.last-flight .section-heading { font-size: .8rem; color: var(--muted); }
.last-flight-link { display: grid; width: 100%; text-align: left; gap: 14px; border: 0; background: transparent; padding: 14px 0 0; }
.last-flight-link > strong { font-size: clamp(1.5rem, 2.8vw, 2.8rem); font-weight: 550; letter-spacing: -.04em; overflow-wrap: anywhere; }
.last-flight-link > span { color: var(--muted); font-size: .9rem; }
.last-flight-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; }
.last-flight-bottom b { font-size: 1.7rem; font-weight: 500; color: var(--ink); }
.first-flight-mark { margin-bottom: 18px; color: #46602f; }
.last-flight > p { margin-top: 12px; color: var(--muted); }
.home-entry { border: 0; border-bottom: 1px solid var(--line); padding: 25px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 24px; align-items: center; }
.home-entry > h2 { font-size: 1.25rem; }
.home-entry > p, .home-entry > .draft-summary { grid-column: 1; margin-top: 3px; }
.home-entry .entry-actions { grid-column: 2; grid-row: 1 / 3; display: flex; flex-wrap: wrap; margin: 0; }
.home-entry .entry-actions .btn { min-width: 140px; font-size: .9rem; }
.home-section { margin-top: 26px; }

.account-identity .avatar { background: var(--graphite); color: var(--lime); }
.timer-panel { background: var(--paper); color: var(--ink); border-radius: 6px; }
.timer-panel .timer-state, .timer-panel .muted { color: var(--muted); }
.timer-value { font-weight: 450; font-variant-numeric: tabular-nums; }
.timer-panel .btn.primary { color: var(--graphite); }
.inbox-heading h1 { font-weight: 540; }
.queue-row { border-radius: 0; }
.queue-row.selected { background: #e4eddf; border-radius: 4px; }
.queue-row-bottom { font-size: 1.18rem; }
.review-heading h2 { font-size: 1.8rem; font-weight: 550; }
.entry-editor { max-width: 840px; }
.entry-editor .page-title { margin-block: 4px 20px; }
.entry-editor h1 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.entry-editor #entry-form { gap: 0; border: 1px solid var(--line); border-top: 3px solid var(--graphite); border-radius: 4px; background: white; padding: 22px 26px; }
.entry-editor .editor-section { background: transparent; border: 0; padding: 0; border-radius: 0; display: grid; gap: 14px; }
.entry-editor .entry-basics { padding-bottom: 18px; }
.entry-editor .fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.entry-editor .field { font-size: .83rem; font-weight: 550; }
.entry-editor .field input, .entry-editor .field select, .entry-editor .field textarea { border-color: #b6c4c5; border-radius: 5px; }
.entry-editor .airport-fields { margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.entry-editor .airport-fields input { font-size: 1.25rem; font-weight: 550; letter-spacing: .035em; }
.entry-editor .section-description { font-size: .8rem; }
.entry-editor .optional-entry, .entry-editor .more-fields { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0; }
.entry-editor details > summary { padding: 13px 0; min-height: 48px; font-size: .9rem; cursor: pointer; font-weight: 600; }
.entry-editor .summary-description { display: inline; margin-left: 8px; font-size: .78rem; }
.entry-editor .optional-content { padding: 6px 0 18px; }
.entry-editor .more-fields > .form-panel { padding: 6px 0 18px; border: 0; }
.entry-editor .form-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.entry-editor #draft-status { font-size: .78rem; }
.entry-editor .form-error:not([hidden]) { margin-top: 12px; }
@media (max-width: 1000px) {
  .home-entry { grid-template-columns: 1fr; }
  .home-entry .entry-actions { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
@media (max-width: 790px) {
  .rail { border: 0; }
  .mobile-header { border-bottom: 3px solid var(--lime); }
  .workspace-tools { padding-top: 0; }
  .home-content, .content { padding-top: 6px; }
  .journal-title { margin-block: 4px 20px; }
  .home-content h1 { font-size: 2.5rem; font-weight: 500; }
  .home-overview { grid-template-columns: 1fr; }
  .home-overview .hours-summary { padding: 20px; }
  .hero-figure strong { font-size: 4.4rem; }
  .home-overview .support-stats { display: flex; gap: 32px; }
  .last-flight { border-left: 0; border-top: 1px solid var(--line); padding: 15px 20px; }
  .last-flight-link { gap: 8px; padding-top: 4px; }
  .last-flight-link > strong { font-size: 1.9rem; }
  .last-flight-bottom { padding-top: 3px; }
  .last-flight-bottom b { font-size: 1.3rem; }
  .home-entry { padding-block: 20px; }
  .home-entry .entry-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .home-entry .entry-actions .btn { min-width: 0; }
  .navigation .nav-item[aria-current] { box-shadow: none; background: transparent; color: var(--ink); }
  .entry-editor #entry-form { padding: 16px; }
  .entry-editor .summary-description { display: block; margin: 3px 0 0 17px; }
  .entry-editor .form-footer { display: grid; gap: 8px; }
  .entry-editor .form-footer .actions { display: grid; grid-template-columns: auto 1fr; }
  .entry-editor .fields.two { gap: 10px; }
  .entry-editor .airport-fields input { font-size: 1.1rem; }
  .flight-route { font-size: 1.35rem; }
}
@media (max-width: 350px) {
  .entry-editor #entry-form { padding: 12px; }
}
@container (max-width: 15rem) {
  .entry-editor .fields.two { grid-template-columns: 1fr; }
  .home-entry .entry-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px); }
  .account-row > svg { transition: transform 160ms ease; }
  dialog[open] { animation: dialog-arrive 150ms ease-out; }
  @keyframes dialog-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}

/* Account groups and appearance control. */
.account-groups { display: grid; gap: 26px; }
.settings-group h2 { font-size: .84rem; font-weight: 650; color: var(--muted); margin-bottom: 9px; }
.settings-group .account-group { border: 1px solid var(--line); border-radius: 8px; overflow: clip; background: var(--paper); }
.settings-group .account-row { padding-inline: 16px; min-height: 58px; }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; }
.theme-row strong { font-size: .94rem; font-weight: 590; }
.theme-row small { display: block; margin-top: 4px; color: var(--muted); }
.theme-switch { position: relative; display: inline-flex; flex-shrink: 0; width: 48px; height: 44px; align-items: center; }
.theme-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.theme-track { width: 48px; height: 28px; border-radius: 20px; background: #dce5e6; border: 1px solid #819699; position: relative; }
.theme-thumb { position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: #fff; color: #735211; box-shadow: 0 1px 3px #1b1a1730; display: grid; place-items: center; }
.theme-switch input:checked + .theme-track { background: #344d58; border-color: #8aa3ab; }
.theme-switch input:checked + .theme-track .theme-thumb { transform: translateX(20px); background: #e7f1f4; color: #213b48; }
.theme-switch input:focus-visible + .theme-track { outline: 3px solid #548347; outline-offset: 4px; }
.account-session-actions { margin-top: 30px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.btn.session-login { color: #4f5b60; background: #e5eaec; border-color: #ccd5d8; }
.btn.session-add { color: #1655a1; background: #e8f0ff; border-color: #b8ceed; }
.btn.session-logout { color: #ac2929; background: #fff0ef; border-color: #edbcbc; }
:root[data-theme="dark"] { color-scheme: dark; --ink: #f4f2e9; --muted: #c0bdae; --canvas: #1b1a17; --paper: #2a2923; --line: #615f52; --selection: #39382f; --positive: var(--lime); --danger: #ffaaa2; color: var(--ink); background: var(--canvas); }
[data-theme="dark"] .home-overview,
[data-theme="dark"] .entry-editor #entry-form,
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .navigation,
[data-theme="dark"] dialog,
[data-theme="dark"] .auth-panel { background: var(--paper); color: var(--ink); }
[data-theme="dark"] .btn.primary { color: #1b1a17; }
[data-theme="dark"] .btn.quiet,
[data-theme="dark"] .btn.outline,
[data-theme="dark"] .next-lesson,
[data-theme="dark"] .resource-link,
[data-theme="dark"] .ledger-heading,
[data-theme="dark"] .inbox-tools .sync-state { background: #333229; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .queue-row.selected,
[data-theme="dark"] .notification-row.is-unread,
[data-theme="dark"] .review-filters button[aria-pressed="true"] { background: var(--selection); }
[data-theme="dark"] .badge,
[data-theme="dark"] .section-count,
[data-theme="dark"] .review-filters button span,
[data-theme="dark"] .avatar,
[data-theme="dark"] .empty-icon { background: #414033; color: #e4e1d4; }
[data-theme="dark"] .badge.success,
[data-theme="dark"] .callout { background: #263e2c; color: #d8ebd0; border-color: #527155; }
[data-theme="dark"] .badge.warn,
[data-theme="dark"] .callout.alert { background: #493c24; color: #f0d5a5; border-color: #80683b; }
[data-theme="dark"] .form-error { background: #482d2d; color: #ffd1cc; border-color: #8e5c58; }
[data-theme="dark"] .btn.danger { background: #923c36; color: white; }
[data-theme="dark"] .btn.session-login { background: #34332c; color: #d9d6ca; border-color: #656254; }
[data-theme="dark"] .btn.session-add { background: #203b5a; color: #a6cfff; border-color: #426488; }
[data-theme="dark"] .btn.session-logout { background: #472a2c; color: #ffb4af; border-color: #845154; }
[data-theme="dark"] .archive-filters button[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
[data-theme="dark"] :focus-visible { outline-color: var(--lime); }
@media (prefers-reduced-motion: no-preference) {
  .theme-track { transition: background-color 160ms ease, border-color 160ms ease; }
  .theme-thumb { transition: transform 160ms ease-out, background-color 160ms ease; }
}
@container (max-width: 15rem) { .account-session-actions { grid-template-columns: 1fr; } }

[data-theme="dark"] .first-flight-mark { color: var(--lime); }
.account-session-actions .btn { padding-inline: 8px; font-size: .86rem; }

/* Quiet account actions, circular profile affordance, and persistent theme access. */
.account-session-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
:root .account-session-actions .btn { background: transparent; border: 0; box-shadow: none; padding: 10px 0; min-height: 44px; font-size: .94rem; }
.avatar-button { border-radius: 50%; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.btn.account-identity { border: 0; border-radius: 12px; box-shadow: none; }
.top-theme { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.theme-label { font-size: .8rem; color: var(--muted); }
.profile-photo-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.profile-photo-edit small { flex-basis: 100%; color: var(--muted); }
.photo-upload { cursor: pointer; color: #1655a1; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.photo-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.photo-upload:focus-within { outline: 2px solid var(--positive); outline-offset: 3px; }
[data-theme="dark"] .photo-upload { color: #a6cfff; }
.brand img { background: #1b1a17; border-radius: 9px; padding: 3px; }
@media (max-width: 790px) { .workspace-tools .top-theme { display: none; } .mobile-tools .theme-label { display: none; } }

/* Keep the book mark visible even in narrow panels and enlarged text layouts. */
.mobile-header .brand img { display: block; width: 60px; min-width: 60px; }
@media (max-width: 380px) { .mobile-header .brand { gap: 6px; font-size: 1.15rem; } }

.theme-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 24px; }
.theme-demo-grid h2 { font-size: 1.25rem; }
.theme-demo-grid p { color: var(--muted); margin-block: 8px 16px; }
.theme-demo-grid iframe { display: block; width: 100%; height: 540px; border: 1px solid var(--line); border-radius: 12px; background: white; margin-bottom: 12px; }
@media (max-width: 1000px) { .theme-demo-grid { grid-template-columns: 1fr; } }

/* A small brightness lift for the flight-entry action. */
.btn.primary[data-action="open-editor"] { background:var(--lime); border-color:var(--lime); }

/* Founder-selected warm charcoal surfaces. */
.home-overview, .entry-editor #entry-form, .auth-panel { background:var(--paper); }
.brand img { background:var(--graphite); }

/* Approved motion, used by the actual account and flight workflows. */
aircraft-picker { display:block; position:relative; z-index:3; }
aircraft-picker .native-aircraft-select { position:absolute; width:1px; height:1px; padding:0; clip-path:inset(50%); overflow:hidden; border:0; }
.aircraft-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:46px; margin-top:6px; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:var(--paper); text-align:left; }
.aircraft-menu { position:absolute; z-index:20; width:100%; max-height:252px; overflow-y:auto; border:1px solid var(--line); border-radius:8px; background:var(--paper); box-shadow:0 8px 24px #0003; padding:4px; }
.aircraft-options { position:relative; }
.aircraft-highlight { position:absolute; inset:0 0 auto; background:var(--selection); border-radius:5px; transition:transform 220ms cubic-bezier(.22,1,.36,1),height 220ms ease; pointer-events:none; }
.aircraft-option { position:relative; padding:12px; min-height:48px; overflow-wrap:anywhere; cursor:pointer; }
.aircraft-option[aria-selected=true] { font-weight:650; }
.account-group { position:relative; isolation:isolate; }
.account-group::before { content:''; position:absolute; z-index:-1; inset:0 0 auto; height:var(--row-h,0px); transform:translateY(var(--row-y,0px)); opacity:0; background:var(--selection); transition:transform 220ms cubic-bezier(.22,1,.36,1),height 220ms ease,opacity 120ms ease; }
.account-group.row-engaged::before { opacity:1; }
.account-group .btn.account-row{ background:transparent; }
.save-feedback { display:inline-flex; gap:8px; align-items:center; }
.save-glyph { width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.save-ring { stroke-dasharray:3 4; transform-origin:center; transition:stroke-dasharray 300ms ease,opacity 240ms ease; }
.save-check,.save-cross { stroke-dasharray:1; stroke-dashoffset:1; opacity:0; transition:stroke-dashoffset 240ms ease,opacity 150ms ease; }
[data-save-state=running] .save-ring { stroke-dasharray:38 18; animation:save-turn 1100ms linear infinite; }
[data-save-state=done] .save-glyph { color:var(--positive); }
[data-save-state=failed] .save-glyph { color:var(--danger); }
[data-save-state=done] .save-ring,[data-save-state=failed] .save-ring { stroke-dasharray:57 0; opacity:.3; }
[data-save-state=done] .save-check,[data-save-state=failed] .save-cross { stroke-dashoffset:0; opacity:1; }
.status-toast:not([hidden]) { display:flex; align-items:center; gap:9px; }
.status-toast .save-glyph { color:inherit; }
@keyframes save-turn { to { transform:rotate(360deg); } }
/* Theme-aware navigation: selection is a quiet fill, not an accent stripe. */
.rail,.mobile-header { background:var(--paper); color:var(--ink); border-color:var(--line); }
.rail { border-right:1px solid var(--line); }
.mobile-header { border-bottom:1px solid var(--line); }
.rail .brand,.mobile-header .brand { color:var(--ink); }
.nav-item[aria-current],.navigation .nav-item[aria-current] { background:var(--selection); color:var(--ink); box-shadow:none; font-weight:650; border-radius:7px; }
.nav-item[aria-current]::after { display:none; }
.queue-row.selected,.notification-row.is-unread { box-shadow:none; }
@media(max-width:790px){.rail { border:0; }.navigation .nav-item[aria-current] { background:var(--selection); }}
@media(prefers-reduced-motion:reduce){.aircraft-highlight,.account-group::before,.save-glyph * { transition:none!important; animation:none!important; }}
.nav-account:not([aria-current]) { border-color:var(--line); }
.rail :focus-visible,.mobile-header :focus-visible { outline-color:var(--positive); }
[data-theme="dark"] .rail :focus-visible,[data-theme="dark"] .mobile-header :focus-visible { outline-color:var(--lime); }
.auth-header { background:var(--paper); color:var(--ink); }
.auth-header .brand { color:var(--ink); }

@media(max-width:790px){.navigation { background:var(--paper); }}

[data-theme="dark"] .status-toast.failure { background:#482d2d; color:#ffd1cc; border-color:#8e5c58; }

/* Original mark, transparent in both themes. */
.brand img { background:transparent; padding:0; border:0; border-radius:0; }
.brand .brand-dark,.mobile-header .brand .brand-dark { display:none; }
[data-theme="dark"] .brand .brand-light { display:none; }
[data-theme="dark"] .brand .brand-dark { display:block; }
/* Clear floating navigation; tint stays low so scrolling content remains visible. */
@media(max-width:790px){
  :root { --nav-gap:max(12px,env(safe-area-inset-bottom)); scroll-padding-bottom:calc(var(--navigation-height,65px) + var(--nav-gap) + 20px); }
  .navigation,[data-theme="dark"] .navigation {
    width:calc(100% - 48px); max-width:360px; justify-self:center;
    bottom:var(--nav-gap); margin:12px 0 var(--nav-gap); padding:4px;
    gap:4px; border:1px solid color-mix(in srgb,var(--ink) 14%,transparent);
    border-radius:36px; background:color-mix(in srgb,var(--paper) 8%,transparent);
    backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
    box-shadow:0 3px 16px #0000000a; color:var(--ink);
  }
  .navigation .nav-item,.navigation .nav-account:not([aria-current]) {
    min-height:44px; padding:4px; border-radius:28px; border:0;
    transition:background-color 180ms ease,color 180ms ease;
  }
  .navigation .nav-item[aria-current] { border-radius:28px; background:var(--selection); color:var(--ink); }
  .navigation .nav-item:focus-visible { outline-offset:-3px; }
  .status-toast { bottom:calc(var(--navigation-height,65px) + var(--nav-gap) + 12px); }
}
@media(prefers-reduced-motion:reduce){.navigation .nav-item { transition:none; }}

.nav-highlight { display:none; }
@media(max-width:790px){
 .navigation { isolation:isolate; }
 .navigation .nav-highlight { display:block; position:absolute; left:0; top:0; border-radius:28px; background:color-mix(in srgb,var(--selection) 18%,transparent); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 8%,transparent); pointer-events:none; z-index:-1; }
 .navigation .nav-item[aria-current]{ background:transparent; }
}

.photo-avatar-upload { position:relative; display:grid; justify-items:center; gap:5px; cursor:pointer; flex-shrink:0; }
.photo-avatar-upload input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.photo-avatar-upload > span:not(.avatar) { font-size:.75rem; color:var(--muted); }
.photo-avatar-upload:focus-within { outline:2px solid var(--positive); outline-offset:4px; border-radius:8px; }
.hours-added { color:var(--positive); font-size:.9rem; margin:4px 0 14px; }
.hero-figure strong { font-variant-numeric:tabular-nums; }
.notifications-popover { position:fixed; inset:auto; margin:0; width:min(320px,calc(100% - 24px)); padding:14px; border:1px solid var(--line); border-radius:18px; background:var(--paper); color:var(--ink); box-shadow:0 12px 42px #0003; overflow-y:auto; transform-origin:top right; }
.notifications-popover::backdrop { background:transparent; }
.notifications-popover .page-title { padding-right:38px; margin:0; min-height:30px; display:flex; align-items:center; }
.notifications-popover h2 { font-size:.95rem; }
.notifications-popover .page-title p { font-size:.8rem; margin-top:6px; color:var(--muted); }
.notification-close { position:absolute; right:8px; top:8px; }
.notifications-popover .notification-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:10px 0; align-items:center; }
.notifications-popover .notification-row .btn { grid-column:2; grid-row:1; padding:6px; min-height:44px; background:transparent; border:0; font-size:.8rem; color:var(--positive); }
.notifications-popover .notification-row strong { font-size:.88rem; }
.notifications-popover .empty { padding:20px 0; }

.hours-wheels { display:inline-flex; align-items:flex-start; line-height:1.12; letter-spacing:0; }
.hours-wheel { position:relative; display:inline-block; width:1ch; height:1.12em; overflow:hidden; }
.hours-wheel-strip { display:block; will-change:transform; }
.hours-wheel-face { display:block; height:1.12em; line-height:1.12; text-align:center; }

/* Home: one quiet flight summary, with typography carrying the hierarchy. */
.home-content .journal-title { align-items:center; margin-bottom:24px; }
.home-content .journal-title h1 { font-size:clamp(1.85rem,3vw,2.65rem); letter-spacing:-.045em; font-weight:580; }
.home-content .journal-owner { font-size:.8rem; margin-bottom:6px; }
.home-content .journal-count { padding:6px 10px; border-radius:20px; background:var(--selection); font-size:.75rem; }
.home-overview,[data-theme="dark"] .home-overview { border:0; border-radius:28px; padding:8px; gap:8px; background:var(--paper); box-shadow:0 8px 36px #00000006; }
.home-overview .hours-summary { padding:26px 28px 22px; }
.home-overview .total-label { font-size:.9rem; font-weight:550; color:var(--ink); }
.home-overview .hero-figure { margin:14px 0 22px; gap:12px; }
.home-overview .hero-figure strong { font-size:clamp(3.8rem,6.5vw,6.2rem); font-weight:440; letter-spacing:-.055em; }
.home-overview .hero-figure > span { font-size:.9rem; }
.home-overview .support-stats { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:0; padding:0; border:0; }
.home-overview .support-stats dt { font-size:.75rem; }
.home-overview .support-stats dd { font-size:1.35rem; font-weight:500; }
.home-overview .last-flight { border:0; border-radius:21px; padding:26px; background:color-mix(in srgb,var(--canvas) 65%,var(--paper)); }
.home-overview .last-flight .section-heading { font-size:.75rem; }
.home-overview .last-flight-link { gap:10px; padding-top:20px; }
.home-overview .last-flight-link > strong { font-size:clamp(1.5rem,2.8vw,2.6rem); letter-spacing:-.025em; font-weight:550; }
.home-overview .last-flight-link > span { font-size:.8rem; }
.home-overview .last-flight-bottom { padding-top:14px; }
.home-overview .last-flight-bottom b { font-size:1.4rem; }
.home-overview .last-flight > h3 { font-size:1.15rem; font-weight:550; }
.home-overview .last-flight > p { font-size:.85rem; line-height:1.6; margin-top:8px; }
.home-entry { padding:24px 0 22px; border-bottom:0; }
.home-entry > p { font-size:.85rem; max-width:38ch; }
.home-entry .entry-actions .btn { border-radius:16px; min-height:50px; }
.home-entry .entry-actions .outline { background:transparent; border-color:var(--line); color:var(--ink); }
.hero-figure .hours-wheels,.hero-figure .hours-wheels span { font-size:inherit; font-weight:inherit; color:inherit; }
@media(max-width:790px){
 .home-overview { grid-template-columns:1fr; border-radius:25px; padding:7px; gap:5px; }
 .home-overview .hours-summary { padding:22px 18px 23px; }
 .home-overview .hero-figure strong { font-size:clamp(3.4rem,17vw,4.6rem); }
 .home-overview .last-flight { padding:18px; border-radius:19px; }
 .home-overview .last-flight-link { padding-top:12px; gap:7px; }
 .home-overview .last-flight-link > strong { font-size:1.8rem; }
 .home-overview .last-flight-bottom { padding-top:4px; }
 .home-content .journal-title { gap:10px; margin-bottom:20px; }
}
/* Indeterminate launch state; ends as soon as the real app renders. */
.launch-screen { min-height:100dvh; display:grid; place-items:center; padding:32px; background:var(--canvas); color:var(--ink); }
.launch-brand { display:grid; justify-items:center; gap:20px; text-align:center; }
.launch-brand svg { width:144px; height:auto; overflow:visible; }
.launch-name { font-size:1.7rem; font-weight:550; letter-spacing:-.055em; }
.launch-brand .launch-caption { font-size:.8rem; color:var(--muted); margin-top:-10px; }
.launch-arc-base { opacity:.2; }
.launch-arc { stroke:var(--positive); stroke-dasharray:100; stroke-dashoffset:100; animation:launch-sweep 2.4s ease-in-out infinite; }
@keyframes launch-sweep { 0% { stroke-dashoffset:100; opacity:.6; } 65%,82% { stroke-dashoffset:0; opacity:1; } 100% { stroke-dashoffset:0; opacity:0; } }
@media(prefers-reduced-motion:reduce){ .launch-arc { animation:none; stroke-dashoffset:0; } }

@media(max-width:790px){
 .home-overview .hours-summary { padding:20px 18px 18px; }
 .home-overview .hero-figure { margin:10px 0 14px; }
 .home-overview .hours-added { margin:0 0 10px; font-size:.8rem; }
 .home-overview .last-flight .section-heading { margin-bottom:0; }
 .home-overview .last-flight { padding:16px 18px; }
 .home-overview .last-flight-link { padding-top:8px; gap:6px; }
 .home-entry { padding-top:20px; }
}

/* Reserve the final text metrics; the wheels never participate in layout. */
.hero-figure .hours-rolling { position:relative; }
.hero-figure .hours-final { font:inherit; letter-spacing:inherit; color:inherit; visibility:hidden; }
.hero-figure .hours-wheels { position:absolute; left:0; top:0; line-height:1; transform-origin:left top; white-space:nowrap; }
.hero-figure .hours-wheel,.hero-figure .hours-wheel-face { height:1em; line-height:1; }

.hero-figure .hours-wheels { letter-spacing:inherit; }
.hero-figure .hours-wheel-face { text-align:left; }

.hours-final[data-value]::before { content:attr(data-value); }

.hero-figure .hours-wheels { height:1em; }

/* Trial controls reuse the same data-theme-toggle handler and screen reveal. */
.appearance-switch { border:0; padding:0; min-height:44px; min-width:44px; background:transparent; display:inline-grid; place-items:center; color:var(--ink); flex-shrink:0; }
.appearance-track { display:block; position:relative; background:var(--selection); border-radius:99px; }
.appearance-switch svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.appearance-sun,.appearance-moon { display:grid; place-items:center; position:absolute; inset:0; transition:opacity 240ms ease,transform 320ms ease; }
.appearance-orb .appearance-track { width:38px; height:38px; }
.appearance-orb .appearance-moon { opacity:0; transform:rotate(-35deg) scale(.6); }
.appearance-orb[aria-checked=true] .appearance-moon { opacity:1; transform:rotate(0) scale(1); }
.appearance-orb[aria-checked=true] .appearance-sun { opacity:0; transform:rotate(35deg) scale(.6); }
.appearance-slim { width:64px; }
.appearance-slim .appearance-track { width:56px; height:30px; }
.appearance-slim .appearance-thumb { position:absolute; width:24px; height:24px; left:3px; top:3px; border-radius:50%; background:var(--paper); box-shadow:0 1px 3px #0002; transition:transform 280ms cubic-bezier(.22,1,.36,1); }
.appearance-slim .appearance-sun,.appearance-slim .appearance-moon { width:24px; height:24px; left:3px; top:3px; }
.appearance-slim svg { width:16px; height:16px; }
.appearance-slim .appearance-moon { opacity:0; transform:translateX(26px); }
.appearance-slim[aria-checked=true] .appearance-thumb { transform:translateX(26px); }
.appearance-slim[aria-checked=true] .appearance-sun { opacity:0; }
.appearance-slim[aria-checked=true] .appearance-moon { opacity:1; }
.appearance-split { width:80px; }
.appearance-split .appearance-track { width:76px; height:36px; }
.appearance-split .appearance-thumb { position:absolute; width:32px; height:30px; left:3px; top:3px; border-radius:99px; background:var(--paper); transition:transform 280ms cubic-bezier(.22,1,.36,1); }
.appearance-split .appearance-sun,.appearance-split .appearance-moon { width:32px; height:30px; left:3px; top:3px; }
.appearance-split .appearance-moon { left:41px; opacity:.55; }
.appearance-split[aria-checked=true] .appearance-thumb { transform:translateX(38px); }
.appearance-split[aria-checked=true] .appearance-sun { opacity:.55; }
.appearance-split[aria-checked=true] .appearance-moon { opacity:1; }
.control-comparison { max-width:1050px; }
.control-comparison > section { margin:28px 0; }
.control-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin-top:16px; }
.control-option { min-width:0; }
.control-example { min-height:100px; display:flex; align-items:center; justify-content:center; background:var(--paper); border-radius:18px; margin-bottom:16px; }
.control-example .bell-button { position:relative; }
.control-example .unread-dot { background:var(--lime); }
.control-option h3 { font-size:1rem; }
.control-option p,.control-preview-note { font-size:.85rem; color:var(--muted); line-height:1.5; margin:8px 0; }
.control-option .btn { margin-top:8px; }
.control-option [aria-pressed=true] { color:var(--positive); }
@media(max-width:790px){.workspace-tools .appearance-switch { display:none; }}
@media(max-width:600px){.control-options { grid-template-columns:1fr; gap:24px; }.control-option { display:grid; grid-template-columns:100px minmax(0,1fr); column-gap:16px; }.control-example { grid-column:1; grid-row:1/4; margin:0; }.control-option h3,.control-option p,.control-option > button { grid-column:2; }.control-option > button { justify-self:start; }.control-option p { margin:6px 0; }}
@media(prefers-reduced-motion:reduce){.appearance-switch * { transition:none!important; }}

/* Toggles.dev Around (MIT); preserve the existing full-screen theme reveal. */
.around-button { display:inline-grid; place-items:center; width:44px; height:44px; padding:10px; flex:none; border:0; border-radius:50%; background:transparent; color:var(--ink); cursor:pointer; }
.around-button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.around-button svg { display:block; overflow:visible; }
.around-clip,.around-disc,.around-dot { transform-origin:center; transform-box:view-box; }
.around-button[aria-checked="true"] { color:var(--lime); }
.around-button[aria-checked="true"] .around-clip { transform:rotate(-90deg); }
.around-button[aria-checked="true"] .around-disc { transform:scale(1.4); }
.around-button[aria-checked="true"] .around-cut { d:path('M-12 -14h42v30a1 1 0 00-16 13H0Z'); }
.around-button[aria-checked="true"] .around-dot { transform:scale(0); }
@supports not (d:path('M0 0')) { .around-button[aria-checked="true"] .around-cut { translate:-12px -14px; } }
@media (prefers-reduced-motion:no-preference) {
 .around-cut { transition:d 300ms ease,translate 300ms ease; }
 .around-clip,.around-disc { transition:transform 300ms ease; }
 .around-dot { transition:transform 100ms ease var(--dot-delay); }
 .around-button[aria-checked="true"] .around-cut,.around-button[aria-checked="true"] .around-clip,.around-button[aria-checked="true"] .around-disc { transition-duration:500ms; }
 .around-button[aria-checked="true"] .around-dot { transition:transform 200ms ease; }
}
@media (max-width:790px) { .workspace-tools .around-button { display:none; } }

flight-duration { display:flex; flex-direction:column; min-width:0; }
.duration-wheel-title { order:-1; font-weight:600; font-size:.88rem; margin-bottom:12px; }
.duration-wheel-labels,.duration-wheel-static { display:grid; grid-template-columns:1fr 1fr; gap:12px; text-align:center; }
.duration-wheel-labels { color:var(--muted); font-size:.8rem; }
flight-duration .duration-wheels { height:160px; margin:4px 0; border-radius:16px; background:color-mix(in srgb,var(--selection) 35%,transparent); }
flight-duration [data-rwp-option] { color:var(--muted); font-size:1.2rem; font-variant-numeric:tabular-nums; }
flight-duration [data-rwp-highlight-wrapper] { background:color-mix(in srgb,var(--lime) 18%,transparent); color:var(--ink); }
flight-duration [data-rwp-highlight-item] { font-size:1.4rem; font-weight:600; font-variant-numeric:tabular-nums; }
flight-duration [data-rwp-focused] { box-shadow:inset 0 0 0 2px var(--positive); }
.duration-wheel-summary { color:var(--muted); font-size:.8rem; text-align:center; margin:4px 0 12px; }
.duration-wheel-static select { min-height:44px; width:100%; }
.entry-duration { align-items:start; }

.entry-duration flight-duration { grid-column:1 / -1; width:100%; max-width:420px; }
flight-duration .duration-wheels { align-items:center; }

.brand-home { appearance:none; border:0; padding:0; background:transparent; cursor:pointer; text-align:left; min-height:44px; font-family:inherit; }
.brand-home:focus-visible { outline:2px solid var(--positive); outline-offset:5px; border-radius:4px; }

.notifications-empty { margin:8px 0 4px; color:var(--muted); font-size:.875rem; }
.notifications-popover .notification-row strong { font-weight:500; line-height:1.4; }
.notifications-popover .notification-row small { font-size:.7rem; }
.notifications-popover .record-list { margin-top:6px; }
.unread-count { position:absolute; top:1px; right:0; min-width:17px; height:17px; padding:0 4px; border-radius:10px; display:grid; place-items:center; background:var(--lime); color:var(--graphite); font-size:10px; font-weight:700; line-height:1; box-shadow:0 0 0 2px var(--paper); }

/* Full-screen notification inbox; the dialog keeps background controls inert. */
.notice-screen { position:fixed; inset:0; width:100%; max-width:none; height:100dvh; max-height:none; margin:0; padding:0; border:0; border-radius:0; background:var(--canvas); color:var(--ink); overflow:hidden; box-shadow:none; }
.notice-screen[open] { display:flex; flex-direction:column; animation:notice-enter 340ms cubic-bezier(.22,1,.36,1); }
.notice-topbar { display:grid; grid-template-columns:88px minmax(0,1fr) 88px; align-items:center; gap:8px; flex:none; min-height:68px; padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left)); border-bottom:1px solid var(--line); background:var(--paper); }
.notice-topbar>strong { text-align:center; font-size:.95rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notice-topbar>.icon-btn { justify-self:start; }
.notice-silence { min-height:44px; padding:8px; border:0; border-radius:8px; background:transparent; color:var(--positive); font:inherit; font-size:.85rem; cursor:pointer; }
.notice-scroll { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:28px 20px max(28px,env(safe-area-inset-bottom)); }
.notice-feed { max-width:680px; margin:auto; }
.notice-feed h1 { display:flex; align-items:center; gap:12px; font-size:1.6rem; margin:0 0 28px; }
.notice-total { display:inline-grid; place-items:center; min-width:25px; height:25px; padding:0 6px; border-radius:20px; background:var(--lime); color:var(--graphite); font-size:.8rem; }
.notice-group { margin-bottom:28px; }
.notice-group h2 { font-size:.83rem; color:var(--muted); font-weight:500; margin:0 0 8px; }
.notice-item { display:grid; grid-template-columns:7px minmax(0,1fr) 16px; align-items:center; gap:12px; width:100%; padding:18px 0; border:0; border-bottom:1px solid color-mix(in srgb,var(--line) 55%,transparent); background:transparent; color:var(--ink); text-align:left; cursor:pointer; font:inherit; }
.notice-item strong { display:block; font-size:.94rem; font-weight:500; line-height:1.5; }
.notice-item time { display:block; color:var(--muted); font-size:.75rem; margin-top:5px; }
.notice-status { width:6px; height:6px; border-radius:50%; }
.notice-item.is-unread .notice-status { background:var(--positive); }
.notice-empty,.notice-muted { color:var(--muted); font-size:.9rem; }
.notice-muted { margin:-12px 0 24px; line-height:1.5; }
@keyframes notice-enter { from { transform:translateX(100%); } to { transform:translateX(0); } }
@media(prefers-reduced-motion:reduce){.notice-screen[open] { animation:none; }}
/* Airport community: quiet editorial feed, clear local identity and deliberate sharing. */
logbook-community { display:block; }
.community-content { max-width:900px; padding-bottom:100px; }
.community-title { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.community-title h1 { font-size:2rem; letter-spacing:-.05em; }
.community-title p { color:var(--muted); font-size:.9rem; margin-top:6px; }
.community-nav,.community-tabs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.community-nav { border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:28px; }
.community-nav [aria-current],.community-tabs [aria-pressed=true] { background:var(--selection); color:var(--ink); border-radius:24px; }
.community-nav .btn,.community-tabs .btn { text-decoration:none; padding:10px 16px; min-height:44px; }
.community-feed-controls,.community-section-title { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 0; }
.community-section-title>span,.community-caption { color:var(--muted); font-size:.8rem; line-height:1.6; }
.community-caption { margin:12px 0; }
.community-optin,.community-empty { padding:24px 0; }
.community-optin { border-bottom:1px solid var(--line); }
.community-optin p,.community-empty p { color:var(--muted); margin:10px 0 16px; max-width:55ch; line-height:1.6; }
.community-search { display:grid; grid-template-columns:140px minmax(0,1fr) auto; gap:12px; align-items:end; margin:24px 0; }
.community-search .checkbox-row { grid-column:1/-1; }
.community-airport { display:flex; gap:12px; align-items:end; margin:12px 0; }
.community-airport input { max-width:200px; }
.community-people { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.community-person { padding:20px 0; border-bottom:1px solid var(--line); min-width:0; }
.community-person>p { font-size:.9rem; line-height:1.6; margin:12px 0; overflow-wrap:anywhere; }
.community-author { display:flex; align-items:center; gap:12px; width:100%; background:transparent; color:var(--ink); border:0; padding:4px 0; text-align:left; cursor:pointer; font:inherit; }
.community-author>span:not(.avatar) { flex:1; min-width:0; }
.community-author strong { display:block; font-size:.95rem; overflow-wrap:anywhere; }
.community-author small { display:block; font-size:.75rem; color:var(--muted); margin-top:4px; }
.community-rates { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px; background:var(--selection); border-radius:16px; }
.community-rates strong { display:block; font-size:1.3rem; font-weight:550; font-variant-numeric:tabular-nums; }
.community-rates span { display:block; font-size:.75rem; color:var(--muted); margin-top:4px; }
.community-rates small { grid-column:1/-1; color:var(--muted); line-height:1.5; font-size:.75rem; }
.community-profile { padding-bottom:24px; }
.community-profile-heading { display:flex; align-items:center; gap:18px; margin:20px 0; }
.community-profile-heading .avatar { width:64px; height:64px; font-size:1.5rem; }
.community-profile h2 { font-size:1.8rem; }
.community-profile p { margin:12px 0; line-height:1.6; overflow-wrap:anywhere; }
.community-tag { display:inline-block; padding:5px 10px; margin:0 6px 6px 0; border-radius:20px; background:var(--selection); font-size:.8rem; }
.community-instruction { margin-top:28px; }
.community-instruction h3 { margin-bottom:16px; }
.community-instruction small { color:var(--muted); }
.community-post { padding:24px 0; border-bottom:1px solid var(--line); }
.community-post-heading { display:flex; align-items:center; justify-content:space-between; }
.community-post-text { margin:18px 0; font-size:1rem; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.community-photo { display:block; width:100%; max-height:500px; object-fit:contain; border-radius:16px; background:var(--selection); margin:16px 0; }
.community-post-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.community-post-actions .btn { font-size:.8rem; padding:8px 10px; }
.community-post-actions [aria-pressed=true] { color:var(--positive); background:var(--selection); border-radius:24px; }
.community-snapshot { display:flex; flex-wrap:wrap; gap:24px; padding:18px; border-radius:16px; background:color-mix(in srgb,var(--lime) 12%,var(--paper)); }
.community-snapshot dt { color:var(--muted); font-size:.75rem; margin-bottom:5px; }
.community-snapshot dd { margin:0; font-size:1.05rem; font-weight:550; }
.community-meetup { border-radius:16px; padding:20px; background:var(--selection); margin:16px 0; }
.community-meetup p { margin:8px 0; overflow-wrap:anywhere; }
.community-meetup small { color:var(--muted); }
.community-compose { max-width:680px; margin:20px 0; }
.community-compose>p { line-height:1.6; }
.community-compose fieldset { border:1px solid var(--line); padding:20px; border-radius:16px; }
.community-compose fieldset .checkbox-row { margin:10px 0; }
.community-compose details { padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.community-compose summary { cursor:pointer; min-height:44px; padding:12px 0; font-weight:550; }
.community-compose details .form-stack { padding:16px 0; }
.community-safety-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 0; border-bottom:1px solid var(--line); }
.community-safety-row span { overflow-wrap:anywhere; }
.community-safety-row small { display:block; margin-top:8px; color:var(--muted); }
.community-comment { border-bottom:1px solid var(--line); padding:16px 0; }
.community-comment p { margin:8px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.community-comment small { color:var(--muted); }
.community-message { padding:12px 16px; background:var(--selection); color:var(--ink); border-radius:12px; line-height:1.5; }
@media(max-width:600px){.community-title { align-items:flex-start; gap:12px; }.community-title>.btn { font-size:.8rem; padding-inline:0; }.community-title h1 { font-size:1.8rem; }.community-title p { max-width:24ch; }.community-search { grid-template-columns:1fr 1fr; }.community-search .field:nth-child(2) { grid-column:1/-1; grid-row:2; }.community-search>button { grid-column:2; grid-row:1; }.community-people { grid-template-columns:1fr; gap:0; }.community-rates strong { font-size:1.2rem; }.community-content { padding-inline:18px; }.community-nav { gap:4px; }.community-nav .btn { padding-inline:12px; }.navigation .nav-community span { font-size:.65rem; }}

@media(max-width:790px){.navigation .nav-item,.navigation .nav-account:not([aria-current]) { padding-inline:1px; }}

/* Separate destinations; labels are never broken into individual characters. */
.navigation .nav-item span { white-space:nowrap; overflow-wrap:normal; word-break:normal; }
.community-content { max-width:760px; margin-inline:auto; }
.community-view-discover { max-width:1040px; }
.community-title { margin-bottom:24px; align-items:center; }
.community-title h1 { letter-spacing:-.035em; }
.community-optin { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0 20px; }
.community-optin p { margin:0; font-size:.9rem; max-width:32ch; }
.community-optin .btn { flex-shrink:0; }
.community-feed-controls { border-bottom:1px solid var(--line); padding-bottom:8px; margin-bottom:0; }
.community-tabs .btn { border-radius:0; background:transparent; border-bottom:2px solid transparent; }
.community-tabs .btn[aria-pressed=true] { border-bottom-color:var(--ink); color:var(--ink); background:transparent; }
.community-empty { padding-block:48px; }
.community-search { margin-top:8px; }
.community-rates { background:transparent; border-radius:0; padding:14px 0 0; border-top:1px solid var(--line); }
.community-photo { border-radius:8px; }
.post-more { margin-left:auto; position:relative; align-self:center; }
.post-more summary { cursor:pointer; list-style:none; min-width:44px; min-height:44px; display:grid; place-items:center; border-radius:8px; }
.post-more summary::-webkit-details-marker { display:none; }
.post-more[open]>.btn { position:absolute; right:0; bottom:44px; background:var(--paper); box-shadow:0 3px 18px #0002; white-space:nowrap; z-index:2; }
.community-post-actions .btn { transition:color 140ms ease, background-color 140ms ease; }
@media(max-width:790px){
 .navigation,[data-theme="dark"] .navigation { width:calc(100% - 24px); max-width:360px; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
 .instructor-shell .navigation { grid-template-columns:repeat(5,minmax(0,1fr)); }
 .navigation .nav-item { min-height:50px; font-size:.73rem; padding:5px 2px; }
 .navigation .nav-community span { font-size:inherit; }
 .workspace-tools>.avatar-button { display:none; }
 .community-title { margin-bottom:20px; }
 .community-optin { display:block; }
 .community-optin .btn { margin-top:10px; }
 .community-view-discover .community-search { grid-template-columns:1fr 1fr; }
 .community-empty { padding-block:32px; }
}
@media(prefers-reduced-motion:reduce){.community-post-actions .btn { transition:none; }}

.community-title h1:focus { outline:none; }
.community-view-discover .community-search { grid-template-columns:minmax(0,1fr) auto; max-width:680px; }
.discovery-filters { grid-column:1/-1; border-bottom:1px solid var(--line); padding-bottom:12px; }
.discovery-filters summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.9rem; }
.discovery-filters summary::after { content:'+'; margin-left:auto; font-size:1.2rem; }
.discovery-filters[open] summary::after { content:'−'; }
.discovery-filters .field { margin-block:8px 16px; }
.discovery-filters .checkbox-row { margin-bottom:8px; }
@media(max-width:600px){.community-view-discover .community-search { grid-template-columns:minmax(0,1fr) auto; }.community-search .discovery-filters .field { grid-column:auto; grid-row:auto; }}

/* Social profile: identity and relationships first; settings stay secondary. */
.nav-social-profile .avatar { width:22px; height:22px; font-size:10px; }
.nav-social-profile[aria-current=page] .avatar { outline:1.5px solid currentColor; outline-offset:2px; }
.social-profile-heading { gap:20px; align-items:center; margin:8px 0 24px; }
.social-profile-heading>.avatar { width:80px; height:80px; font-size:26px; flex-shrink:0; }
.social-profile-heading h2 { font-size:1.5rem; overflow-wrap:anywhere; }
.profile-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 24px; max-width:460px; }
.profile-counts>div,.profile-counts>.btn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:58px; padding:6px; background:none; border:0; color:var(--ink); }
.profile-counts strong { font-size:1.35rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.profile-counts span { font-size:.85rem; color:var(--muted); }
.profile-roles { color:var(--muted); font-size:.9rem; }
.profile-services { margin:24px 0; }
.profile-services h3 { font-size:1rem; margin-bottom:8px; }
.profile-credentials,.profile-options { border-top:1px solid var(--line); padding-block:4px; }
.profile-credentials summary,.profile-options summary { min-height:48px; padding-block:14px; cursor:pointer; font-weight:550; }
.profile-credentials summary span { margin-left:8px; color:var(--muted); }
.profile-credentials li { margin:10px 0; }
.profile-options .btn { margin:4px 8px 8px 0; }
.profile-empty { text-align:center; padding-block:48px; }
.profile-photo-edit { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.profile-photo-edit .avatar { width:64px; height:64px; }
.profile-photo-edit .field { flex:1; min-width:150px; }
.community-view-profile .community-profile { padding-bottom:20px; }
@media(max-width:790px){.navigation,[data-theme="dark"] .navigation {grid-template-columns:repeat(5,minmax(0,1fr)); max-width:360px;} .community-title>.actions {gap:6px;} .community-title>.actions .btn {padding-inline:4px;font-size:.8rem;} }

.social-profile-heading .profile-counts {flex:1; margin:0; min-width:0;}
.social-profile-heading {gap:16px;}
.community-profile>h2 {font-size:1.3rem; margin:0 0 8px;}
@media(max-width:400px){.social-profile-heading>.avatar {width:68px;height:68px;} .profile-counts strong {font-size:1.1rem;} .profile-counts span {font-size:.75rem;}}

/* Icon-only phone dock. Accessible names live on each button. */
@media(max-width:790px){
 .navigation,[data-theme="dark"] .navigation {max-width:320px;}
 .navigation .nav-item {min-height:46px; padding:10px 0; gap:0; justify-content:center; align-items:center;}
 .navigation .nav-label {display:none;}
 .navigation .nav-item>svg {width:24px;height:24px;flex-shrink:0;}
 .navigation .nav-social-profile .avatar {width:26px;height:26px;font-size:11px;}
}

/* Approved default: midpoint lime, neutral black and crisp white. */
:root {--lime:#c2ff4d;--graphite:#111111;--ink:#111111;--muted:#626262;--canvas:#ffffff;--paper:#f5f5f5;--line:#d6d6d6;--selection:#eaeaea;--positive:#365b0a;color:var(--ink);background:var(--canvas);}
:root[data-theme="dark"] {--canvas:#000000;--paper:#141414;--selection:#242424;--line:#444444;--ink:#f2f2f2;--muted:#b4b4b4;--positive:#c2ff4d;}
:root .btn.primary,:root .btn.primary[data-action="open-editor"] {background:var(--lime);border-color:var(--lime);color:#111111;}
:root .btn.quiet,:root .btn.outline,:root .next-lesson,:root .resource-link,:root .ledger-heading,:root .inbox-tools .sync-state {background:var(--paper);color:var(--ink);border-color:var(--line);}
:root .avatar,:root .badge,:root .section-count,:root .review-filters button span,:root .empty-icon {background:var(--selection);color:var(--ink);}
:root :focus-visible {outline-color:var(--positive);}

:root[data-palette="contrast"][data-lime="electric"] {--lime:#beff3b;}
:root[data-palette="contrast"][data-lime="electric"][data-theme="dark"] {--positive:#beff3b;}

:root[data-palette="contrast"][data-lime="midpoint"] {--lime:#c2ff4d;}
:root[data-palette="contrast"][data-lime="midpoint"][data-theme="dark"] {--positive:#c2ff4d;}

:root .callout:not(.alert) {background:var(--paper);color:var(--ink);border-color:var(--line);}

/* A slightly stronger neutral glass tint separates the light dock from white pages. */
@media(max-width:790px){
 :root[data-theme="light"] .navigation {
  background:rgb(17 17 17 / 12%);
  border-color:rgb(17 17 17 / 22%);
  box-shadow:0 4px 18px rgb(0 0 0 / 8%),inset 0 1px 0 rgb(255 255 255 / 65%);
 }
}


.notice-silence.bell-button {position:relative;width:44px;height:44px;display:grid;place-items:center;justify-self:end;padding:10px;color:var(--ink);border-radius:50%;}
.notice-silence[aria-pressed="true"] {background:var(--selection);box-shadow:none;}
.notice-silence .unread-count {top:-1px;right:-2px;}

.notification-glyph {position:relative;display:inline-flex;width:23px;height:23px;flex:none;}
.bell-button .notification-glyph .unread-count {top:-5px;right:-7px;min-width:16px;height:16px;padding:0 3px;font-size:9px;box-shadow:0 0 0 1.5px var(--paper);}
.notice-silence.bell-button {width:60px;height:56px;padding:6px;gap:3px;border-radius:12px;}
.mute-caption {font-size:10px;line-height:12px;font-weight:600;}
.notice-muted[hidden] {display:none;}

/* Align compact controls by their visible glyphs; pointer clicks do not add rings. */
button:focus:not(:focus-visible),[role="button"]:focus:not(:focus-visible) {outline:none;}
.nav-social-profile[aria-current=page] .avatar {outline:none;}
.navigation .nav-highlight {box-shadow:none;}
:root[data-theme="dark"] .archive-filters button[aria-pressed="true"] {border-color:var(--line);}
.notice-silence.bell-button {width:64px;height:56px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:4px;border:0;}
.notice-silence .notification-glyph,.notice-silence .notification-glyph>svg {width:28px;height:28px;}
.notice-silence .mute-caption {font-size:9px;line-height:11px;text-align:center;white-space:nowrap;}
.btn>svg,.icon-btn>svg,.community-author>svg,.account-row>svg {display:block;flex-shrink:0;}
.community-title>.actions {align-items:center;}
.community-view-feed .community-title {align-items:center;}
.community-feed-controls>.community-tabs {align-items:center;}
.profile-counts>div,.profile-counts>.btn {line-height:1.25;}

/* Keep social header actions on the title row, not beside a multiline subtitle. */
.community-view-feed .community-title,.community-view-discover .community-title {display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:6px;align-items:center;}
.community-view-feed .community-title>div:first-child,.community-view-discover .community-title>div:first-child {display:contents;}
.community-title>.actions {flex-wrap:nowrap;justify-content:flex-end;grid-column:2;grid-row:1;}
.community-view-discover .community-title p {grid-column:1/-1;grid-row:2;max-width:none;margin:0;}
@media(max-width:350px){.community-title>.actions {grid-column:1/-1;grid-row:3;justify-content:flex-start;} .community-view-feed .community-title,.community-view-discover .community-title {grid-template-columns:1fr;}}

/* Give the moving selected tab a visible neutral surface against pure black. */
@media(max-width:790px){
 :root[data-theme="dark"] .navigation {background:rgb(90 90 90 / 18%);border-color:rgb(255 255 255 / 20%);}
 :root[data-theme="dark"] .navigation .nav-highlight {background:rgb(255 255 255 / 16%);}
 :root[data-theme="dark"] .navigation .nav-item[aria-current="page"] {color:var(--lime);}
}

/* Learn uses quiet sections rather than another dashboard of cards. */
.learn-content { max-width:860px; }
.learn-content > section { padding-block:24px; border-bottom:1px solid var(--line); }
.learn-content > section:last-child { border-bottom:0; }
.learn-content .actions { justify-content:flex-start; margin-top:20px; flex-wrap:wrap; }
.learn-content .section-heading { flex-wrap:wrap; gap:12px; }
.learn-content progress { width:100%; height:8px; accent-color:var(--lime); }
.learn-progress strong { font-variant-numeric:tabular-nums; }

/* One quiet activity strip; teaching and learning remain separate from flight totals. */
.learning-strip { display:flex; align-items:center; gap:18px 28px; flex-wrap:wrap; padding:22px 0; margin:20px 0; border-block:1px solid var(--line); }
.learning-strip > div { display:grid; gap:5px; flex:1 1 160px; }
.learning-strip strong { font-size:1.06rem; font-variant-numeric:tabular-nums; }
.learning-strip span,.reward-history small { color:var(--muted); font-size:.86rem; }
.learning-strip .btn { min-height:44px; }
.reward-rules li { padding:16px 0; border-bottom:1px solid var(--line); }
.reward-rules p { margin:6px 0; }
.reward-history li { display:flex; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.reward-history small { display:block; margin-top:6px; }
.reward-history strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
.teaching-next .actions,.flying-circle .actions { justify-content:flex-start; flex-wrap:wrap; }
.flying-circle { border-top:1px solid var(--line); padding-top:24px; }
.pilot-portrait {display:block;width:100%;height:100%;border-radius:50%;background-repeat:no-repeat;}
pilot-avatar-picker {display:block;min-width:0;}
.avatar-picker {border:0;padding:0;margin:8px 0;min-width:0;display:grid;gap:14px;}
.avatar-picker legend {font-weight:650;margin-bottom:12px;}
.avatar-picker-preview {display:flex;justify-content:center;}
.avatar-picker-preview .avatar {width:72px;height:72px;}
.avatar-photo-edit {position:relative;display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--ink);border-radius:50%;cursor:pointer;}
.avatar-photo-edit [data-avatar-preview] {display:flex;}
.avatar-photo-pencil {position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--lime);color:#101010;border:3px solid var(--canvas);pointer-events:none;}
.avatar-photo-edit:focus-visible {outline:2px solid var(--lime);outline-offset:5px;}
.avatar-choices {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 10px;}
.avatar-choice {position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;cursor:pointer;min-width:0;text-align:center;font-size:11px;line-height:1.25;}
.avatar-choice .avatar {width:clamp(44px,13vw,64px);height:clamp(44px,13vw,64px);outline:3px solid transparent;outline-offset:3px;}
.avatar-choice input {position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;}
.avatar-choice input:checked+.avatar {outline-color:var(--lime);}
.avatar-choice input:focus-visible+.avatar {outline:3px solid var(--ink);outline-offset:6px;}
.avatar-upload {display:grid;gap:8px;font-weight:550;font-size:.9rem;}
.avatar-upload input {max-width:100%;font-size:.8rem;}
.avatar-picker small {color:var(--muted);font-size:.75rem;}
/* Keep the dock independent of page length, grid stretching and avatar content. */
@media(max-width:790px){
 .navigation,[data-theme="dark"] .navigation {box-sizing:border-box;align-self:end;flex-shrink:0;height:56px;min-height:56px;max-height:56px;grid-template-rows:46px;align-items:center;width:min(320px,calc(100% - 24px));}
 .navigation .nav-item {box-sizing:border-box;height:46px;min-height:46px;max-height:46px;align-self:center;}
}
.nav-social-profile[aria-current="page"] .avatar {outline:2px solid var(--lime);outline-offset:2px;}
.avatar-upload input::file-selector-button {font:inherit;color:var(--ink);background:var(--selection);border:0;border-radius:8px;padding:10px 12px;margin-right:10px;cursor:pointer;}
/* Learning is a compact, private companion to flight time. */
.learning-strip {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 22px;margin:0 0 24px;padding:18px 20px;border:0;border-radius:18px;background:var(--paper);}
.learning-strip-heading,.learning-strip-footer {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.learning-strip-heading>span:first-child {font-size:.85rem;font-weight:600;color:var(--ink);}
.learning-strip-heading .btn {padding:0;min-height:32px;font-size:.8rem;}
.learning-strip .learning-score,.learning-strip .learning-week {display:grid;grid-template-columns:1fr;gap:4px;min-width:0;}
.learning-strip strong {font-size:1.05rem;line-height:1.3;}
.learning-strip small {font-size:.73rem;line-height:1.5;color:var(--muted);}
.level-progress {display:block;appearance:none;width:100%;height:5px;margin:6px 0;border:0;border-radius:6px;background:var(--selection);accent-color:var(--lime);overflow:hidden;}
.level-progress::-webkit-progress-bar {background:var(--selection);}
.level-progress::-webkit-progress-value {background:var(--lime);border-radius:6px;}
.level-progress::-moz-progress-bar {background:var(--lime);border-radius:6px;}
.learning-day-marks {display:flex;gap:6px;height:5px;margin:6px 0;}
.learning-day-marks i {flex:1;border-radius:6px;background:var(--selection);}
.learning-day-marks i.complete {background:var(--lime);}
.learning-strip-footer {padding-top:12px;border-top:1px solid var(--line);}
.learning-strip-footer>.btn {white-space:nowrap;min-height:40px;padding:8px 12px;font-size:.85rem;background:var(--selection);border:0;}
.learning-strip-footer>small {max-width:24ch;text-align:right;}
.learning-strip .checkin-done {font-size:.85rem;color:var(--ink);font-weight:550;}
.checkin-done>span {display:block;font-size:.73rem;}
.learn-content>.learning-strip {padding:18px 20px;border-bottom:0;margin-block:24px;}
.reward-activity {padding-block:8px 28px;}
.reward-activity>.section-note {margin-top:8px;}
.reward-empty {padding-top:20px;color:var(--muted);}
.reward-history li {align-items:start;}
.reward-history strong {font-size:.9rem;font-weight:600;}
.reward-rule-details {border-top:1px solid var(--line);padding-top:4px;}
.reward-rule-details>summary {cursor:pointer;padding:18px 0;font-weight:600;min-height:48px;}
.reward-rule-details p {max-width:64ch;}
.landing-review {padding:20px;border-radius:16px;background:var(--paper);display:grid;gap:16px;margin-top:8px;}
.landing-review>header {display:flex;justify-content:space-between;align-items:center;gap:12px;}
.landing-review h2 {font-size:1.05rem;}
.landing-review>header>span {font-size:.75rem;color:var(--muted);}
.landing-detected {font-size:.9rem;}
.landing-comparison {display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-top:16px;border-top:1px solid var(--line);}
.landing-comparison dt {font-size:.8rem;color:var(--muted);}
.landing-comparison dd {font-size:1.55rem;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.3;margin-top:5px;}
@media(max-width:400px){.learning-strip {gap:14px;padding:16px;}.learning-strip strong {font-size:.95rem;}.learning-strip span {font-size:.78rem;}.landing-review {padding:16px;}.landing-review>header {align-items:start;}.landing-review>header>span {max-width:9ch;text-align:right;}}
@media(min-width:800px){
 .learning-strip {grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(170px,.7fr);gap:12px 26px;}
 .learning-strip-footer {grid-column:auto;border:0;padding:0;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px;}
 .learning-strip .checkin-done {text-align:right;}
}
.teaching-next {padding-top:0;}
.checkin-done>small {display:block;}

/* Reserve the desktop scrollbar lane even when a destination is short. */
html {scrollbar-gutter:stable;}
/* Contain page motion without transforming the header, dock or dialogs. */
.work-area>main {overflow-x:clip;}
.work-area>main>logbook-community {display:block;}

/* Keep the bell centered with the name; its caption sits independently below. */
.notice-silence.bell-button {width:56px;height:56px;display:grid;place-items:center;padding:0;background:transparent;box-shadow:none;}
.notice-silence.bell-button[aria-pressed="true"] {background:transparent;box-shadow:none;}
.notice-silence .mute-caption {position:absolute;top:calc(50% + 16px);left:0;width:100%;font-size:8px;line-height:10px;font-weight:500;text-align:center;}

:root[data-input-method="pointer"] :is(button,a,summary,[role="button"],[role="switch"],input[type="checkbox"],input[type="radio"]):focus {outline:none;}
:root[data-input-method="pointer"] .theme-switch input:focus-visible+.theme-track {outline:none;}
:root[data-input-method="pointer"] .avatar-choice input:focus-visible:not(:checked)+.avatar {outline-color:transparent;}
:root[data-input-method="pointer"] .avatar-choice input:checked+.avatar {outline:3px solid var(--lime);outline-offset:3px;}
/* The modal covers the scrollbar lane reserved for ordinary app pages too. */
.notice-screen {width:100vw;}

/* Points live in the header; rankings use a quiet, compact list. */
.streak-control {display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:44px;height:44px;border:0;background:transparent;color:var(--ink);font-size:13px;font-weight:650;padding:0 4px;}
.streak-control svg,.points-menu-heading svg {color:var(--lime);filter:drop-shadow(0 0 0.5px #445600);}
.points-popover {position:fixed;inset:68px 24px auto auto;margin:0;width:min(290px,calc(100vw - 32px));padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);box-shadow:0 16px 60px #0003;}
.points-popover:popover-open {animation:points-reveal .2s ease-out;}
.points-menu-heading {display:flex;align-items:center;gap:9px;font-size:14px;}
.points-menu-total {font-size:38px;line-height:1.1;font-weight:650;margin:20px 0 8px;font-variant-numeric:tabular-nums;}
.points-menu-total span {font-size:14px;font-weight:450;}
.points-popover progress {width:100%;height:5px;accent-color:var(--lime);margin:6px 0 12px;}
.points-popover .btn {width:100%;justify-content:center;margin-top:8px;}
.points-board {margin:30px 0;padding:22px 0;border-block:1px solid var(--line);}
.board-filters {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0;}
.board-filters [role=group] {display:flex;background:var(--paper);padding:3px;border-radius:30px;}
.board-filters button {border:0;background:transparent;color:var(--ink);border-radius:24px;padding:10px 14px;font-size:12px;min-height:40px;}
.board-filters button[aria-pressed=true] {background:var(--ink);color:var(--paper);}
.board-list {list-style:none;padding:0;margin:0;}
.board-list li {display:flex;align-items:center;gap:12px;min-height:74px;border-bottom:1px solid var(--line);animation:points-reveal .22s ease-out;}
.board-rank {width:24px;flex-shrink:0;text-align:center;display:grid;place-items:center;font-variant-numeric:tabular-nums;font-size:13px;}
.board-list .avatar {width:36px;height:36px;flex-shrink:0;}
.board-person {flex:1;min-width:0;}
.board-person>strong {display:block;overflow-wrap:anywhere;font-size:14px;}
.board-person>small,.board-score small {display:block;font-size:11px;font-weight:400;opacity:.6;margin-top:4px;}
.board-person strong small {font-size:10px;font-weight:450;margin-left:4px;}
.board-score {font-size:16px;text-align:right;font-variant-numeric:tabular-nums;}
.is-you .board-person>strong {text-decoration:underline;text-decoration-color:var(--lime);text-underline-offset:5px;}
.trophy-1 {color:#af831d;} .trophy-2 {color:#8e98a5;} .trophy-3 {color:#ae7652;}
.board-empty {padding:24px 0;font-size:14px;}
.board-membership {margin-top:20px;max-width:490px;}
.board-footnote {font-size:11px;max-width:500px;}
@keyframes points-reveal {from {opacity:0;transform:translateY(-6px)} to {opacity:1;transform:translateY(0)}}
@media(max-width:790px){.workspace-tools>.streak-control {display:none}.points-popover {top:66px;right:16px}.mobile-tools {gap:0}.streak-control {min-width:40px}}
@media(prefers-reduced-motion:reduce){.points-popover:popover-open,.board-list li {animation:none}}
/* Ranked learning progress: stable rank column and one quiet lime track. */
.board-rank {width:44px;display:flex;gap:7px;justify-content:flex-end;}
.trophy-space {width:18px;}
.board-level {width:150px;flex-shrink:0;}
.board-level>strong {display:block;font-size:12px;font-weight:550;margin-bottom:8px;}
.board-progress {display:flex;gap:9px;align-items:center;}
.board-progress span {width:32px;text-align:right;font-size:11px;font-variant-numeric:tabular-nums;}
.board-progress progress {appearance:none;width:100%;min-width:0;height:5px;border:0;border-radius:6px;overflow:hidden;background:var(--selection);}
.board-progress progress::-webkit-progress-bar {background:var(--selection);border-radius:6px;}
.board-progress progress::-webkit-progress-value {background:var(--lime);border-radius:6px;}
.board-progress progress::-moz-progress-bar {background:var(--lime);border-radius:6px;}
@media(max-width:600px){
 .board-list li {display:grid;grid-template-columns:44px 32px minmax(0,1fr);gap:8px 10px;padding:14px 0;}
 .board-list .avatar {width:32px;height:32px;}
 .board-level {grid-column:3;width:100%;}
 .board-person>small {display:none;}
}
@media(min-width:1000px){
 .notice-screen {inset:0 0 0 auto;width:clamp(280px,18vw,320px);height:100dvh;z-index:1000;border-left:1px solid var(--line);box-shadow:-12px 0 40px #00000018;}
 .notice-topbar {grid-template-columns:44px minmax(0,1fr) 56px;gap:4px;padding:0 12px;min-height:80px;}
 .notice-scroll {padding:24px 18px;}
 .notice-feed h1 {font-size:1.2rem;gap:8px;margin-bottom:22px;}
 .notice-screen .notice-item {padding:14px 0;}
 .notice-screen::backdrop {background:transparent;backdrop-filter:none;}
}
@media(min-width:1000px){
 .app-shell:has(.notice-screen[open]) .work-area {padding-right:clamp(280px,18vw,320px);}
}
/* Presentation only: level and award rules are paused pending founder direction. */
@font-face {font-family:'Space Grotesk';src:url('/assets/SpaceGrotesk.ttf') format('truetype');font-style:normal;font-weight:300 700;font-display:swap;}
:root {font-family:'Space Grotesk',Inter,system-ui,sans-serif;}
h1,h2,h3 {font-weight:600;letter-spacing:-.035em;}
.board-person>strong {font-size:15px;font-weight:600;letter-spacing:-.015em;}
.board-level {width:220px;}
.board-level>strong {font-size:13px;font-weight:600;}
.board-progress progress {height:8px;}
.board-progress span {width:38px;font-size:12px;font-weight:600;flex-shrink:0;}
.board-rank {font-weight:600;}
@media(max-width:600px){.board-level {grid-column:2 / -1;width:100%;margin-top:3px;}}
/* Shared sliding selection, without moving the labels or changing tab widths. */
.board-filters [role=group] {position:relative;display:grid;grid-template-columns:1fr 1fr;isolation:isolate;}
.board-filter-indicator {position:absolute;z-index:-1;left:3px;top:3px;bottom:3px;width:calc((100% - 6px)/2);border-radius:24px;background:var(--ink);pointer-events:none;}
.board-filters button[aria-pressed=true] {background:transparent;color:var(--paper);}
.board-filters button {position:relative;transition:color 180ms ease;white-space:nowrap;}
@media(prefers-reduced-motion:reduce){.board-filters button {transition:none;}}
/* Keep the hollow lime flame legible on white without adding a button box. */
.streak-control .streak-flame,.points-menu-heading .streak-flame {color:var(--lime);filter:none;overflow:visible;}
.streak-flame-edge {stroke:#466b08;stroke-width:3.3;}
:root[data-theme=dark] .streak-flame-edge {stroke:transparent;}
/* One small flare per interaction; embers never affect the header layout. */
.streak-control .streak-flame {transform-origin:50% 90%;}
.streak-spark {opacity:0;fill:var(--lime);stroke:#466b08;stroke-width:.35;pointer-events:none;transform-box:fill-box;transform-origin:center;}
:root[data-theme=dark] .streak-spark {fill:var(--lime);stroke:transparent;}
/* Server-confirmed personal progress, retaining the established monochrome/lime theme. */
.personal-progress {padding:24px 0;border-block:1px solid var(--line);margin:26px 0;}
.personal-progress h2 {font-size:17px;margin:0;}
.personal-rank {margin:18px 0 8px;}
.personal-rank-title {display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:17px;}
.personal-rank-title>span:last-child {margin-left:auto;font-size:12px;color:var(--muted);}
.rank-art-slot {display:inline-block;flex:none;width:20px;height:20px;background:transparent;}
.personal-rank-meter {display:flex;gap:14px;align-items:center;margin:12px 0 8px;}
.personal-rank-meter progress {appearance:none;border:0;background:var(--selection);height:8px;width:100%;border-radius:8px;overflow:hidden;}
.personal-rank-meter progress::-webkit-progress-bar {background:var(--selection);}
.personal-rank-meter progress::-webkit-progress-value {background:var(--lime);border-radius:8px;}
.personal-rank-meter progress::-moz-progress-bar {background:var(--lime);border-radius:8px;}
.personal-rank-meter strong {font-size:13px;font-variant-numeric:tabular-nums;min-width:36px;text-align:right;}
.progress-context {display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;margin-top:16px;}
.progress-confirmed {display:block;color:var(--muted);font-size:10px;}
.personal-progress .section-note,.personal-rank .section-note {font-size:12px;margin:8px 0;}
.rank-journey {margin:32px 0;}
.rank-chapter {border-bottom:1px solid var(--line);}
.rank-chapter>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0;cursor:pointer;font-weight:600;}
.rank-chapter>summary small {font-size:11px;color:var(--muted);font-weight:400;}
.rank-chapter>summary::after {content:'+';font-size:18px;font-weight:400;}
.rank-chapter[open]>summary::after {content:'−';}
.rank-chapter ol {list-style:none;margin:0;padding:0 0 16px;}
.rank-step>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;cursor:pointer;}
.rank-step-name {display:flex;gap:10px;align-items:center;font-size:14px;}
.rank-step-name small {display:block;color:var(--muted);font-size:11px;margin-top:4px;}
.rank-step-state {font-size:11px;color:var(--muted);text-align:right;}
.rank-detail {display:flex;align-items:center;gap:16px;padding:16px 0 22px;font-size:13px;}
.rank-detail p {margin:6px 0;}
.rank-detail small {color:var(--muted);font-size:11px;}
.rank-art-large {width:72px;height:72px;}
.pending-award {display:block;color:var(--muted);margin-top:8px;}
.earning-rules h2 {margin-top:32px;}
.board-person>strong {display:flex;align-items:center;gap:5px;}
.points-popover .personal-rank-title {font-size:15px;}
.progress-compact .personal-rank {max-width:550px;}
@media(max-width:600px){.rank-detail {gap:10px}.rank-art-large {width:52px;height:52px}.personal-rank-title {font-size:16px}.board-level .personal-rank-title {font-size:12px}}

/* Compact strength feedback: color plus a readable label, never color alone. */
.password-meter {margin-top:-6px;}
.password-meter-heading {display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:8px;}
.password-meter-heading [data-strength-label] {color:var(--ink);font-weight:600;}
.password-meter-track {height:4px;border-radius:4px;background:var(--selection);overflow:hidden;}
.password-meter-track span {display:block;height:100%;width:0;background:var(--lime);border-radius:inherit;transition:width 240ms ease-out,background 180ms;}
.password-meter[data-level="1"] .password-meter-track span {width:33.333%;background:#e47e72;}
.password-meter[data-level="2"] .password-meter-track span {width:66.666%;background:#b5b95c;}
.password-meter[data-level="3"] .password-meter-track span {width:100%;background:var(--lime);}
:root:not([data-theme="dark"]) .password-meter[data-level="3"] .password-meter-track span {background:#548600;}
.password-meter p {font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 0;}
@media(prefers-reduced-motion:reduce){.password-meter-track span {transition:none;}}

.provider-signin{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:10px 44px;border:1px solid #747775;border-radius:24px;background:#fff;color:#1f1f1f;font:500 14px/20px Arial,sans-serif;cursor:pointer}
.provider-signin svg{position:absolute;left:14px;flex:none}.provider-signin:disabled{opacity:.6;cursor:wait}
:root[data-theme="dark"] .provider-signin{background:#131314;color:#e3e3e3;border-color:#8e918f}
.auth-divider{text-align:center;color:var(--muted);font-size:12px;margin:20px 0}.auth-step{animation:auth-enter .24s ease-out}
@keyframes auth-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.security-panel h2{font-size:22px}.security-state{font-weight:600;color:var(--positive)}.security-panel details{margin:16px 0}.security-panel summary{cursor:pointer}.security-panel form{margin-top:18px}
.auth-qr{display:block;background:white;border-radius:12px;margin:20px 0;max-width:100%;height:auto}.setup-key{display:block;overflow-wrap:anywhere;padding:14px;background:var(--paper);user-select:all}.security-code{font:500 19px/1.5 monospace;letter-spacing:.08em;width:100%;margin-top:8px}.recovery-codes{padding:0;list-style:none;display:grid;gap:10px;font-size:13px}.recovery-codes code{user-select:all}.security-panel p{line-height:1.6}
@media(prefers-reduced-motion:reduce){.auth-step{animation:none}}

.password-rules{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;font-size:11px;color:var(--muted);margin:12px 0}.password-rules li[data-met="true"]{color:var(--positive)}.password-rules li span{display:inline-block;width:12px}@media(max-width:360px){.password-rules{grid-template-columns:1fr}}
