:root {
  color-scheme: dark;
  font-size: 125%;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --shell: #0b1b28;
  --panel: #122938;
  --platinum: #e2e5e8;
  --silver: #e8ecf1;
  --ink: #14161a;
  --muted: #424951;
  --quiet: #515860;
  --accent: #47d4d3;
  --copper: #16757d;
  --edge: #b6bdc4;
  --mono: "IBM Plex Mono", Consolas, monospace;
  color: #f2f3f4;
  background: var(--shell);
}
:root[data-text-size="standard"] { font-size: 112.5%; }
:root[data-text-size="larger"] { font-size: 137.5%; }
:root[data-text-size="largest"] { font-size: 150%; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--shell); isolation: isolate; }
h1, h2, h3, p { margin: 0; }
button, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button:disabled { cursor: default; }
::selection { background: #92e4e2; color: var(--ink); }
header { border-bottom: 1px solid #294151; background: #0a1b28; }
.header-inner, main { width: min(1200px, 100%); margin-inline: auto; padding-inline: clamp(16px, 3vw, 36px); }
.header-inner { position: relative; min-height: 58px; width: min(1350px, 100%); display: flex; align-items: center; gap: clamp(8px, 1.2vw, 18px); padding-block: 6px; }
.header-tools, .type-controls { display: flex; align-items: center; }
.header-tools { gap: 8px; }
.type-controls { border: 1px solid #45494f; border-radius: 8px; overflow: hidden; }
.type-controls button { border: 0; background: #122a39; color: #eef0f2; font-weight: 600; min-width: 44px; min-height: 40px; }
.type-controls button + button { border-left: 1px solid #45494f; }
.type-controls button:hover:enabled { background: #31343a; }
.type-controls button:focus-visible { outline-offset: -3px; }
.type-controls button:disabled { color: #8b939c; }
.brand { display: flex; align-items: center; gap: 8px; font-size: clamp(21px, 1.18rem, 26px); font-weight: 720; letter-spacing: -.05em; }
.local { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #c3d2d9; }
.local i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #193e48; }
main { padding-block: 13px 38px; }
.hero {
  position: relative; display: grid; align-items: center; isolation: isolate; overflow: hidden;
  min-height: 94px; margin-bottom: 14px; border-bottom: 1px solid #36505c;
}
.hero-copy { padding: 6px 0 13px; width: min(73%, 50rem); }
.eyebrow, .kicker, .question-meta, #count, #length { font-family: var(--mono); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #cbd0d6; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.eyebrow span { color: var(--accent); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.2rem); line-height: 1.04; font-weight: 730; letter-spacing: -.055em; margin: 13px 0 11px; text-wrap: balance; }
h1 span { color: var(--accent); }
.hero h1 { font-size: clamp(1.65rem, 2.7vw, 2.12rem); margin: 4px 0 5px; }
.hero .lead { max-width: none; line-height: 1.36; }
#heroTitle { color: inherit; }
.lead, .hint { color: var(--muted); line-height: 1.55; }
.lead { color: #c6cbd1; max-width: 51ch; font-size: 1.02rem; }
.layout { display: grid; grid-template-columns: clamp(224px, 22%, 248px) minmax(0, 1fr); align-items: start; gap: clamp(14px, 1.6vw, 24px); }
aside, .sheet { border-radius: 12px; }
aside { color-scheme: dark; background: var(--panel); border: 1px solid #35505e; padding: 16px 9px 10px; }
.side-title { display: flex; gap: 6px; align-items: center; justify-content: space-between; margin-inline: 8px; }
.side-title h2 { color: #f5f7fa; font-weight: 650; font-size: .94rem; letter-spacing: -.02em; }
#count { color: var(--silver); font-size: .8rem; white-space: nowrap; }
#progress { height: 5px; background: #324c59; margin: 10px 10px 14px; mask-image: repeating-linear-gradient(90deg, black 0 calc(10% - 2px), transparent calc(10% - 2px) 10%); }
#progress i { height: 100%; display: block; background: var(--accent); transition: width .18s; }
nav { display: grid; gap: 3px; }
nav button, .summary-nav {
  display: flex; align-items: center; gap: 12px; border: 1px solid transparent;
  text-align: left; padding: 7px 10px; min-height: 40px; color: var(--silver);
  background: transparent; border-radius: 6px; font-size: .9rem;
}
nav button:hover, .summary-nav:hover { background: #1b394a; color: white; }
nav button.active, .summary-nav.active { background: #38cecf18; border-color: #347a82; color: #9cf3f1; box-shadow: inset 3px 0 var(--accent); font-weight: 600; }
.icon, .nav-icon, .chapter-icon { display: inline-grid; place-items: center; flex: none; }
.icon svg, .nav-icon svg { width: 18px; height: 18px; }
.nav-state { margin-left: auto; color: inherit; font-size: .83rem; }
.summary-nav { width: 100%; position: relative; margin-top: 18px; color: var(--silver); font-weight: 550; }
.summary-nav::before { content: ""; position: absolute; top: -10px; left: 8px; right: 8px; height: 1px; background: #34505c; }
.mobile-menu { display: none; }
.workspace { min-width: 0; }
.sheet {
  --ink: #152e3c;
  --muted: #344f5d;
  --quiet: #415c69;
  color-scheme: light;
  color: var(--ink);
  border: 3px solid transparent;
  background:
    linear-gradient(114deg, transparent 15%, #ffffffbe 25%, #ffffff30 28%, transparent 38%, #ffffffa8 77%, transparent 86%) padding-box,
    linear-gradient(157deg, #b9c3cf, #f8fafc 29%, #d6dce2 50%, #bfc8d2 65%, #fffefa 89%, #d8dee5) padding-box,
    conic-gradient(from 35deg, #788491, white 11%, #a6b1be 20%, #656f7e 35%, white 46%, #bbc4ce 62%, #79828e 72%, white 88%, #788491) border-box;
  box-shadow: inset 0 0 0 1px #ffffffdf, 0 1px 0 #c5cdd5, 0 0 0 1px #454e59, 0 12px 36px #0005;
  overflow: hidden;
}
.chapter {
  position: relative; padding: 11px clamp(18px, 2vw, 26px); display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #949ca5;
  background:
    linear-gradient(180deg, #ffffff78, transparent 31%, #ffffff24 48%, #60718520 50%, transparent 64%, #ffffff92),
    linear-gradient(112deg, #a4afba, #e1e6ec 14%, #ffffff 22%, #bbc6d1 30%, #a7b3bf 47%, #eff2f4 65%, #ffffff 68%, #b0bac5 84%, #e5dfd7);
  box-shadow: inset 0 1px 0 white, inset 0 -1px 0 #ffffffd9, 0 2px 4px #54627238;
}
.chapter-icon { width: 40px; height: 40px; background: #17191c; color: var(--accent); border-radius: 7px; }
.chapter-icon svg { width: 20px; height: 20px; }
.kicker { text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; color: var(--ink); }
.chapter h2 { font-size: 1.06rem; line-height: 1.25; margin-top: 3px; font-weight: 600; }
.question-meta { margin-left: auto; border-left: 2px solid var(--copper); padding: 3px 0 3px 10px; color: var(--ink); font-size: .82rem; white-space: nowrap; }
.card { padding: clamp(18px, 2vw, 26px); }
h3 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); letter-spacing: -.04em; line-height: 1.17; font-weight: 680; text-wrap: balance; }
.hint { font-size: 1rem; margin-top: 10px; max-width: 65ch; }
.editor, #draft {
  background: linear-gradient(116deg, #f0f2f4, #fafbfc 40%, #f2f4f6);
  border: 1px solid #959ea7; border-radius: 8px;
  box-shadow: inset 0 1px 3px #54637320, 0 1px 0 #ffffffc9;
}
.editor { margin-top: 14px; overflow: hidden; }
.editor:focus-within, #draft:focus { border-color: var(--copper); box-shadow: 0 0 0 3px #188b9430; }
textarea { display: block; width: 100%; padding: 10px 14px; color: var(--ink); background: transparent; line-height: 1.55; font-size: 1rem; resize: vertical; outline: none; border: 0; }
textarea::placeholder { color: #536a75; }
#answer { min-height: clamp(5.6rem, 14vh, 8rem); }
#metricQuotes { margin: 12px 0 0; padding: 8px 14px; border-left: 3px solid var(--copper); background: #ffffff75; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.under, .foot { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--quiet); }
.under { min-height: 42px; padding: 0 14px 8px; flex-wrap: wrap; }
.dictate { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; min-height: 40px; font-size: .94rem; font-weight: 600; color: #f1f2f3; background: #143543; border: 1px solid #143543; border-radius: 6px; }
.dictate:hover, .dictate[aria-pressed="true"] { color: #e3fffd; background: #102c38; border-color: var(--copper); }
.dictate[aria-pressed="true"] { box-shadow: inset 3px 0 var(--accent); }
.dictate .icon svg { color: var(--accent); width: 18px; height: 18px; }
#length { margin-left: auto; }
.speech-status { font-size: 1rem; color: var(--muted); line-height: 1.45; margin-top: 9px; }
.speech-status:empty { display: none; }
#saved { color: var(--quiet); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.grow { flex: 1; }
.actions button, #generate, #exportNotes { min-height: 40px; padding: 7px 14px; border-radius: 7px; font-size: .93rem; font-weight: 600; }
.back, .secondary, .plain, .primary {
  color: var(--ink); border: 1px solid #8f99a3;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px #414b561f;
}
.back, .secondary { background: linear-gradient(160deg, white, #f4f6f8 38%, #d1d8df 60%, #e9edf1); }
.plain { background: linear-gradient(155deg, #ecf0f3, white 27%, #c5ced7 62%, #e0e5eb); }
.primary {
  border-color: #76818b;
  background: linear-gradient(115deg, #a8b4c0, #fcfdff 26%, #e9edf1 37%, #adb9c5 64%, #f9fbfd 94%);
  box-shadow: inset 0 1px 0 white, inset 0 -1px 0 #a1a9b1, 0 2px 3px #414b5642;
}
.back:enabled:hover, .secondary:hover, .plain:hover, .primary:enabled:hover {
  border-color: #646c74; box-shadow: inset 0 1px 0 white, 0 2px 4px #28313938;
  filter: brightness(1.05);
}
.primary:disabled, .back:disabled {
  color: #53616a; border-color: #b2b7ba; background: #d9dde0; box-shadow: none;
}
.foot { width: fit-content; margin: 13px 4px 0; line-height: 1.4; color: #abb2bb; background: var(--shell); }
.foot .icon svg { width: 15px; height: 15px; }
#generate { margin-top: 14px; }
.message { color: var(--muted); margin-top: 14px; line-height: 1.5; }
.message:empty { display: none; }
.field-label { display: block; margin: 22px 0 10px; font-weight: 600; }
#notes { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--edge); }
summary { font-weight: 550; }
#notesBody p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; line-height: 1.5; color: var(--muted); }
#notesBody h4 { margin: 18px 0 0; }
#exportNotes { margin-top: 16px; }
.result-actions { margin-top: 12px; }
.proposal-tools { margin-top: 16px; }
.proposal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.proposal-actions button { min-height: 42px; padding: 8px 14px; border-radius: 7px; font-size: .92rem; font-weight: 600; }
.candidate { margin: 16px 0; padding: 15px; border: 1px solid #aab2b9; border-radius: 8px; background: #f5f7f9ba; }
.candidate .field-label { margin: 0 0 8px; }
.candidate textarea, #appendices textarea, #copyFallback { background: #fafbfd; border: 1px solid #969fa8; border-radius: 7px; }
.candidate textarea:focus, #appendices textarea:focus, #copyFallback:focus { outline: 2px solid var(--copper); }
.candidate .proposal-actions, #copyFallback { margin-top: 10px; }
.approval { display: flex; align-items: center; gap: 9px; font-size: .94rem; margin-top: 12px; }
.approval input { width: 1rem; height: 1rem; accent-color: var(--copper); }
.file-link { border: 0; padding: 5px 0; text-align: left; overflow-wrap: anywhere; color: var(--ink); background: transparent; text-decoration: underline; }
.view-nav, .format-control { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.view-nav button, .format-control button {
  background: transparent; color: #c8ced6; border: 1px solid transparent;
  border-radius: 6px; padding: 6px 9px; font-size: clamp(15px, .84rem, 18px); min-height: 40px;
}
.format-control { background-color: var(--shell); }
.view-nav button[aria-current="page"] { color: white; background: #203c4b; box-shadow: inset 0 -2px var(--accent); }
.format-control { border: 1px solid #41454b; border-radius: 8px; padding: 3px; gap: 2px; }
.format-control button { display: inline-flex; align-items: center; gap: 7px; }
.format-control button[aria-pressed="true"] { background: #193e49; color: #a5f4f0; }
.format-control button:hover, .view-nav button:hover { background: #233f4e; }
dialog {
  color-scheme: light; color: #173847; background: linear-gradient(135deg,#e2e7eb,#fbfbfc 45%,#d8dfe5);
  width: min(27rem, calc(100% - 28px)); padding: 0; border: 1px solid #d5dce1; border-radius: 12px; box-shadow: 0 20px 65px #0009;
}
dialog::backdrop { background: #050607ba; }
dialog h2 { font-size: 1.35rem; line-height: 1.2; }
#modePassword { width: 100%; padding: 10px 12px; border: 1px solid #87919c; border-radius: 6px; font: inherit; }
#unlockPanel { margin: 0 0 16px auto; max-width: 25rem; }
#unlockPanel .card { padding: 18px 22px; }
#unlockPanel h2 { font-size: 1.2rem; }
#unlockPanel .field-label { margin-top: 12px; }
#modePassword { color: #173847; background: #fafbfc; }
#newCase { border-color: #45494f; }
#newCaseAfterSave { font-weight: 650; }
.dialogue #conversationFlow { max-height: clamp(14rem, calc(100dvh - 515px), 34rem); overflow-y: auto; padding: 3px 7px 5px 2px; }
.dialogue #currentTurn, .chat-bubble { width: fit-content; max-width: 90%; padding: 12px 16px; border-radius: 12px 12px 12px 3px; background: #f9fafb; border: 1px solid #a3adb6; }
.dialogue #currentTurn h3 { font-size: 1.16rem; line-height: 1.32; letter-spacing: -.02em; }
.dialogue .hint { margin-top: 6px; }
.speaker { font-weight: 650; font-size: .8rem; margin: 0 0 5px; color: #146a72; }
.chat-bubble { margin-bottom: 10px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-bubble.reply { margin-left: auto; border-radius: 12px 12px 3px 12px; color: #eff1f4; background: #22262b; }
.chat-bubble.reply .speaker { color: #7ae2df; }
.edit-reply { color: #e2e6eb; background: transparent; border: 0; text-decoration: underline; padding: 5px 0 0; font-size: .8rem; }
#archivePage { padding-block: 12px 40px; }
#archivePage > .lead { max-width: 65ch; }
#archiveStatus { margin-block: 15px; color: #c3cbd4; }
#archiveList { display: grid; gap: 10px; }
#archiveList button { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; text-align: left; padding: 16px 20px; background: #1c1f23; color: #f0f2f4; border: 1px solid #41464e; border-radius: 8px; overflow-wrap: anywhere; }
#archiveList button:hover { border-color: var(--accent); }
#archiveList time { color: #bac4cf; font-size: .85rem; }
#archiveDate { margin: 16px 0 8px; }
#archiveText { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
@media (max-width: 1220px) { .local { display: none; } }
@media (max-width: 860px) {
  main { padding-top: 8px; }
  .hero { min-height: 104px; margin-bottom: 10px; }
  .hero-copy { width: 78%; }
  .layout { grid-template-columns: 1fr; gap: 12px; }
  aside { padding: 13px 16px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 8px 18px; align-items: center; }
  .side-title { margin: 0; }
  .side-title h2 { font-size: 1rem; }
  #progress { grid-column: 1; margin: 0; align-self: start; }
  #sections, .summary-nav { display: none; }
  .mobile-menu { display: block; position: relative; grid-column: 2; grid-row: 1 / 3; }
  .mobile-menu select { width: 100%; min-height: 44px; appearance: none; padding: 7px 30px 7px 12px; border: 1px solid #347a82; border-radius: 6px; background: #183944; color: #a6efee; font-size: .95rem; }
  .mobile-menu option { color: var(--silver); background: var(--panel); }
  .mobile-menu option:checked { color: #9cf3f1; }
  .mobile-menu i { position: absolute; right: 12px; top: 42%; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; color: var(--accent); }
}
@media (max-width: 560px) {
  .view-nav button, .format-control button { font-size: .84rem; padding-inline: 8px; }
  .dialogue #currentTurn, .chat-bubble { max-width: 97%; padding: 10px 12px; }
  .local { display: none; }
  aside { display: block; }
  #progress { margin: 8px 0 10px; }
  .mobile-menu select { font-size: 1rem; }
  .chapter { flex-wrap: wrap; }

  .brand { font-size: 1.24rem; }
  .brand img { width: 30px; height: 30px; }
  .local { font-size: .82rem; }
  main, .header-inner { padding-inline: 15px; }
  .hero { display: block; min-height: 0; }
  .hero-copy { width: 100%; padding: 5px 0 10px; }
  .hero h1 { font-size: 1.52rem; }
  h1 { font-size: 1.85rem; }
  .eyebrow { font-size: .82rem; }
  .lead { font-size: 1rem; max-width: 41ch; }
  .chapter { padding: 13px 16px; gap: 9px; }
  .chapter-icon { width: 31px; height: 34px; }
  .chapter h2 { font-size: .98rem; }
  .question-meta { font-size: .82rem; padding: 4px 6px; }
  .card { padding: 21px 16px 16px; }
  .hint { margin-top: 9px; }
  .editor { margin-top: 17px; }
  .actions { gap: 4px; }
  .actions button { padding-inline: 11px; }
}
@media (max-width: 370px) {
  aside { gap: 7px 10px; padding-inline: 11px; }
  .side-title h2 { font-size: 1rem; }
  .question-meta { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #progress i { transition: none; }
}
.output-switch { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 9px; background: #d7e1e6; border: 1px solid #93a7b1; }
.output-switch button { flex: 1 1 10rem; padding: 8px 12px; border: 0; border-radius: 6px; color: #20404d; background: transparent; font: inherit; font-weight: 600; }
.output-switch button[aria-pressed="true"] { color: white; background: #155861; }
.article-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.article-heading h4 { margin: 0; }
#articlePreview { max-height: 23rem; overflow: auto; overflow-wrap: anywhere; line-height: 1.55; background: #fcfdfe; border: 1px solid #a1b1b9; border-radius: 8px; padding: clamp(14px,3vw,28px); }
#articlePreview h4, #articlePreview p { margin: 0 0 .65rem; }
#articlePreview h4:not(:first-child) { margin-top: 1.2rem; }
#articlePreview h4:first-child { font-size: 1.23rem; line-height: 1.25; }
#caseHistory, #previousMessages { max-height: 17rem; overflow: auto; }
.editor-message { width: fit-content; max-width: 94%; margin: 6px 0; padding: 9px 13px; border-radius: 9px; background: #f4f8fa; border: 1px solid #adbdc5; }
.editor-message.from-author { margin-inline-start: auto; background: #193d4a; color: #f0f6f8; }
.editor-message strong { font-size: .82rem; }
.editor-message p, #archivedArticleText { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
#previousReview, #saveArea { margin-top: 18px; }
#caseInstruction { background: #fafbfd; border: 1px solid #969fa8; border-radius: 7px; }
.auth-main { max-width: 560px; margin: 9vh auto 0; }
.auth-main input, #article { display:block; width:100%; background:white; color:#173847; border:1px solid #929da7; border-radius:7px; padding:10px; font:inherit; }
.account-link { background:transparent; color:var(--silver); border:1px solid #51555b; border-radius:7px; padding:7px 10px; }
#usersList { max-height:55vh; overflow:auto; padding-left:1.3rem; }
#archivedNotes { white-space:pre-wrap; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--shell) url('/surface.svg') center / cover no-repeat;
}
header { position: relative; z-index: 2; }
.brand { white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
#headerActions { display: flex; align-items: center; flex: 1; gap: clamp(8px, 1.2vw, 18px); }
.view-nav, .format-control, .header-tools { flex-wrap: nowrap; white-space: nowrap; }
.format-control { margin-inline-start: auto; }
.local { margin-inline: 5px; }
.account-link, .menu-toggle { font: inherit; font-size: clamp(15px, .85rem, 18px); min-height: 38px; }
.type-controls { flex: none; }
.type-controls button { font-size: clamp(16px, .86rem, 19px); min-width: 34px; }
.menu-toggle { display: none; background: #153241; color: var(--silver); border: 1px solid #476773; border-radius: 6px; padding: 4px 10px; }
.signature { display: flex; align-items: center; gap: 7px; }
.hero .signature { position: absolute; right: 6px; }
.signature-mark {
  width: 95px; aspect-ratio: 258 / 196;
  background: url('/smart-business.png') center / contain no-repeat;
  mask-image: linear-gradient(90deg, transparent, black 7% 94%, transparent), linear-gradient(transparent, black 8% 93%, transparent);
  mask-composite: intersect;
}
.signature-name { color: #e2edf2; font: 650 14px/1.22 Inter, "Segoe UI", sans-serif; letter-spacing: .16em; }
.signature-name b { display: block; color: #57d7d7; font-weight: 650; }
.auth-main .signature { margin: 0 0 18px; justify-content: center; }
.auth-main { max-width: 500px; }
.foot { background: transparent; color: #c2d2da; }
.primary:enabled { color: #f3ffff; border-color: #0a626b; background: linear-gradient(150deg, #16757e, #09505a); box-shadow: inset 0 1px 0 #6cafb3; }
@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; }
  #headerActions {
    display: none; position: absolute; inset: calc(100% + 1px) 12px auto auto;
    width: min(350px, calc(100% - 24px)); max-height: calc(100dvh - 68px); overflow-y: auto;
    padding: 12px; background: #102634; border: 1px solid #40616f; border-radius: 10px;
    box-shadow: 0 12px 32px #04101866;
  }
  #headerMenu[aria-expanded="true"] + #headerActions { display: grid; gap: 12px; }
  .format-control { margin: 0; width: fit-content; }
  .header-tools:has(.account-link:not([hidden])) { display: flex; }
  .header-tools { display: none; }
  .view-nav { flex-wrap: wrap; }
  .header-inner { gap: 8px; }
}
@media (max-width: 560px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 52px; column-gap: 5px; }
  .hero-copy { width: 100%; }
  .hero .signature { position: static; justify-self: end; }
  .hero .signature-mark { width: 52px; }
  .hero .signature-name { display: none; }
  .menu-toggle { min-height: 40px; }
}
@media (max-width: 370px) {
  .header-inner { padding-inline: 10px; gap: 6px; }
  .brand { font-size: 20px; gap: 6px; }
  .brand img { width: 25px; height: 25px; }
  .menu-toggle { font-size: 15px; padding-inline: 8px; }
  .menu-toggle span { display: none; }
}
