:root {
  --navy: #0b1f3a;
  --slate: #27333c;
  --gold: #d6a846;
  --gold-text: #7a5c14;
  --ground: #f5f3ee;
  --card: #ffffff;
  --ink: #1b2430;
  --ink-2: #3f4650;
  --muted: #5b6470;
  --line: #e2ded5;
  --line-2: #efece5;
  --on-navy-muted: #c2c8cd;
  --danger: #a3271b;
  --ok-bg: #d6ecd2;
  --ok-ink: #24552a;
  --serif: 'Frank Ruhl Libre', Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); }
[hidden] { display: none !important; }
.app { min-height: 100%; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; background: var(--ground); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--navy); color: #fff; padding: calc(16px + var(--safe-t)) 20px 14px; border-bottom: 4px solid var(--gold); }
.top-row { display: flex; align-items: flex-start; gap: 12px; }
.top-titles { flex: 1; min-width: 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.kicker a { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.top h1 { margin: 2px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.15; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid #3a4a60; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.icon-btn:focus-visible, .btn:focus-visible, .chipbtn:focus-visible, .card-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
#subhead:not(:empty) { margin-top: 12px; }

/* main */
.view { flex: 1; padding: 16px 16px calc(100px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; outline: none; }
.loading { color: var(--muted); padding: 24px 4px; }
h2.sec { margin: 6px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 700; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
h2.sec small { font-family: var(--sans); font-size: 13.5px; font-weight: 400; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.card.pad0 { padding: 0; overflow: hidden; }
.err { background: #fbeceb; border: 1px solid #efc2bd; color: var(--danger); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.err .btn { margin-top: 8px; }
.empty { color: var(--muted); font-size: 15px; text-align: center; padding: 22px 12px; }

/* buttons */
.btn { min-height: 48px; border-radius: 12px; border: none; background: var(--navy); color: #fff; font-weight: 700; font-size: 16px; padding: 0 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #c9c4b8; }
.btn.dashed { background: transparent; color: var(--ink); border: 2px dashed #a9a395; }
.btn[disabled] { background: #d9d5cc; color: #4a4f57; cursor: default; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chipbtn { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #c9c4b8; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.chipbtn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.top .chipbtn { background: transparent; color: #fff; border-color: #5d6b7d; }
.top .chipbtn[aria-pressed="true"] { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.stage { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* lists of amudim */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; background: var(--card); border: 1px solid var(--line); border-left-width: 5px; border-radius: 12px; min-height: 56px; }
.row .rt { flex: 1; min-width: 0; }
.row .rt b { display: block; font-family: var(--serif); font-size: 18px; }
.row .rt span { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star { width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; color: #b9b4a8; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; flex: none; }
.star[aria-pressed="true"] { color: var(--gold); }
.star svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linejoin: round; }
.star[aria-pressed="true"] svg { fill: currentColor; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-btn { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-top-width: 5px; border-radius: 12px; cursor: pointer; min-height: 96px; color: var(--ink); }
.card-btn b { font-family: var(--serif); font-size: 17px; }
.card-btn .who { font-size: 13px; color: var(--muted); }
.card-btn .stage { align-self: flex-start; }

/* progress */
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #ece9e2; }
.bar > i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* deadline */
.dl { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.days { width: 56px; flex: none; border-radius: 12px; background: #efece5; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; }
.days.soon { background: var(--navy); color: #fff; }
.days.late { background: var(--danger); color: #fff; }
.days b { font-size: 22px; line-height: 1; }
.days span { font-size: 11.5px; }
.dl .dt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl .dt b { font-size: 16.5px; }
.dl .dt span { font-size: 14px; color: var(--ink-2); }
.tag { align-self: flex-start; padding: 1px 8px; border-radius: 6px; background: #efece5; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--gold-text); text-transform: uppercase; letter-spacing: .06em; }

/* nav list */
.navlist { display: flex; flex-direction: column; }
.navlist a, .navlist button { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; border: none; border-bottom: 1px solid var(--line-2); background: #fff; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; width: 100%; }
.navlist > :last-child { border-bottom: none; }
.navlist svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.navlist .grow { flex: 1; }
.navlist .aside { font-size: 13px; color: var(--muted); font-weight: 600; }

/* forms */
label.lbl { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 8px; }
select, input[type="text"], input[type="search"], textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid #c9c4b8; background: #fff; font-size: 16px; }
textarea { resize: vertical; min-height: 96px; }
.top input[type="search"] { border: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.summary { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.summary div { display: flex; gap: 10px; }
.summary .k { color: var(--muted); width: 72px; flex: none; }
.summary .v { word-break: break-word; }
.filebox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.filebox .fn { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.done { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 20px 4px; }
.tick { width: 76px; height: 76px; border-radius: 999px; background: var(--ok-bg); display: flex; align-items: center; justify-content: center; }
.tick svg { width: 38px; height: 38px; fill: none; stroke: var(--ok-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { margin: 0; font-family: var(--serif); font-size: 26px; }
.done p { margin: 0; color: var(--ink-2); }

/* guide */
.hits { display: flex; flex-direction: column; }
.hit { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.hit:last-child { border-bottom: none; }
.hit .cells { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.hit .cells .c { font-size: 16px; }
.hit .cells .c:first-child { font-weight: 700; }
.hit .he { font-family: var(--serif); font-size: 19px; direction: rtl; }
.hit .ctx { font-size: 12.5px; color: var(--gold-text); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hit .txt { font-size: 15px; color: var(--ink-2); white-space: pre-wrap; }
mark { background: #f6e6c6; color: inherit; border-radius: 3px; padding: 0 1px; }

/* graphics */
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thumb { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.thumb .img { aspect-ratio: 15.55 / 8; background: #ece9e2 center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.thumb span { font-size: 13px; padding: 8px 10px; word-break: break-all; }
.dot { width: 12px; height: 12px; border-radius: 999px; flex: none; }

/* contacts html */
.page-html table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.page-html td, .page-html th { border-bottom: 1px solid var(--line-2); padding: 8px 6px; text-align: left; vertical-align: top; }
.page-html .tbl { overflow-x: auto; }
.page-html h2, .page-html h3, .page-html h4 { font-family: var(--serif); margin: 14px 0 6px; }
.page-html p { margin: 6px 0; }

/* tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 6px var(--safe-b); max-width: 760px; margin: 0 auto; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--muted); border-top: 3px solid transparent; }
.tabs a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--navy); border-top-color: var(--gold); }
.submit-dot { width: 38px; height: 38px; border-radius: 999px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.submit-dot svg { stroke: var(--gold) !important; stroke-width: 2.2 !important; }

/* toast + sheet */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(84px + var(--safe-b)); z-index: 9; max-width: 728px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; }
.sheet-wrap { position: fixed; inset: 0; z-index: 10; background: rgba(11, 31, 58, .5); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { background: #fff; border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; max-height: 88vh; overflow-y: auto; width: 100%; max-width: 760px; margin: 0 auto; }
.sheet h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.sheet .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sheet .opts button { min-height: 46px; border-radius: 10px; border: 3px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; }
.sheet .opts button[aria-current="true"] { border-color: var(--ink); }

/* sign in */
.signin { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 40px 24px; }
.signin img { width: 96px; height: 96px; border-radius: 22px; }
.signin h2 { margin: 0; font-family: var(--serif); font-size: 28px; }
.signin p { margin: 0; color: var(--ink-2); max-width: 320px; }
.slogan { text-align: center; font-family: var(--serif); font-style: italic; color: var(--muted); margin: 8px 0 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cite { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid #c9c4b8; background: #faf8f3; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer; }
.cite.more { background: #fff; color: var(--muted); }
.ctx { display: flex; flex-direction: column; gap: 6px; }
.ctxrow { padding: 8px 10px; border-radius: 10px; background: #faf8f3; font-size: 15px; }
.ctxrow .he { font-family: var(--serif); font-size: 18px; text-align: right; margin-bottom: 2px; }
.ctxrow.hl { background: #f6e6c6; }
.crumbs { font-size: 14px; color: var(--muted); word-break: break-word; }
.crumbs a { color: var(--navy); font-weight: 600; text-decoration: none; }
.navlist.files a { min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
.navlist.files svg { fill: none; stroke-width: 1.8; }

/* home blocks: phone order is top, list, links */
.homegrid { display: flex; flex-direction: column; gap: 14px; }
.hg-top, .hg-list, .hg-links { display: flex; flex-direction: column; gap: 12px; }
.tabs .brand, .tabs .rail-only, .tabs .rail-sep { display: none; }

/* ---------- wide screens: side rail, wider content ---------- */
@media (min-width: 900px) {
  body { background: var(--ground); }
  .app { max-width: none; margin: 0; display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
  .top { grid-column: 2; grid-row: 1; padding: 22px 40px 16px; }
  .top-row, #subhead { max-width: 1180px; }
  .view { grid-column: 2; grid-row: 2; width: 100%; max-width: 1260px; padding: 28px 40px 48px; }
  .tabs { position: sticky; top: 0; grid-column: 1; grid-row: 1 / span 2; height: 100vh; overflow-y: auto; max-width: none; margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-top: none; border-right: 1px solid var(--line); background: #fff; }
  .tabs .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .tabs .rail-only { display: flex; }
  .tabs .rail-sep { display: block; height: 1px; background: var(--line); margin: 10px 8px; }
  .tabs a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 12px; border-top: none; border-left: 3px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 600; }
  .tabs a:hover { background: #f7f5f0; }
  .tabs a[aria-current="page"] { border-left-color: var(--gold); background: #f5f3ee; color: var(--navy); }
  .tabs a[data-tab="more"] { display: none; }
  .tab-submit { order: -1; margin-bottom: 8px; background: var(--navy); color: #fff !important; border-left: none !important; }
  .tab-submit:hover, .tab-submit[aria-current="page"] { background: var(--slate) !important; color: #fff !important; }
  .submit-dot { width: auto; height: auto; background: transparent; }
  .brand { order: -2; }
  .toast { left: 248px; right: 16px; bottom: 24px; max-width: 520px; margin: 0; }
  .sheet-wrap { justify-content: center; align-items: center; padding: 24px; }
  .sheet { max-width: 620px; border-radius: 18px; max-height: 82vh; padding-bottom: 20px; }
  .grid2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .homegrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); grid-template-areas: "list top" "list links"; align-items: start; gap: 24px 28px; }
  .hg-top { grid-area: top; } .hg-list { grid-area: list; } .hg-links { grid-area: links; }
  .hg-list h2.sec { margin-top: 0; }
  .view[data-screen="submit"], .view[data-screen="feedback"], .view[data-screen="more"] { max-width: 760px; }
  .view[data-screen="deadlines"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  .view[data-screen="deadlines"] > details, .view[data-screen="deadlines"] > p { grid-column: 1 / -1; }
  .hit .cells .c { font-size: 17px; }
  .signin { min-height: 70vh; }
}
@media (min-width: 1300px) {
  .grid2 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 899px) { .view { padding-bottom: calc(100px + var(--safe-b)); } }
@media (min-width: 900px) { .app > .tabs[hidden] + .toast { left: 16px; } }
@media (max-width: 899px) {
  .tabs a { justify-content: flex-end; padding-bottom: 9px; min-height: 66px; }
  .submit-dot { width: 36px; height: 36px; margin-bottom: 1px; }
}

/* form fields never inherit the header's white text */
input, select, textarea { color: var(--ink); }
input::placeholder, textarea::placeholder { color: #7b8189; }

/* phone menu: a drawer that slides in from the left */
.drawer-wrap { position: fixed; inset: 0; z-index: 12; }
.drawer-scrim { position: absolute; inset: 0; border: none; padding: 0; background: rgba(11, 31, 58, .45); opacity: 0; transition: opacity .2s; cursor: pointer; }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); background: #fff; box-shadow: 0 0 30px rgba(0,0,0,.18); transform: translateX(-100%); transition: transform .2s ease; display: flex; flex-direction: column; padding: calc(14px + var(--safe-t)) 10px calc(14px + var(--safe-b)); overflow-y: auto; }
.drawer-wrap.open .drawer { transform: none; }
.drawer-wrap.open .drawer-scrim { opacity: 1; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 8px; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); }
.drawer-head img { width: 34px; height: 34px; border-radius: 9px; }
.drawer-head .grow { flex: 1; }
.drawer-x { width: 44px; height: 44px; border: none; background: transparent; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.drawer-x svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.drawer-who { font-size: 13.5px; color: var(--muted); padding: 0 8px 10px; }
.drawer-links { display: flex; flex-direction: column; gap: 2px; }
.drawer-links a, .drawer-links button { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 12px; border: none; border-left: 3px solid transparent; border-radius: 10px; background: transparent; text-decoration: none; color: var(--ink); font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer; width: 100%; }
.drawer-links a:hover, .drawer-links button:hover { background: #f7f5f0; }
.drawer-links a[aria-current="page"] { background: #f5f3ee; border-left-color: var(--gold); color: var(--navy); }
.drawer-links svg { width: 21px; height: 21px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.drawer-sep { height: 1px; background: var(--line); margin: 8px 10px; }
@media (min-width: 900px) { .drawer-wrap { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim { transition: none; } }

/* Ask Claude */
.ask-log { display: flex; flex-direction: column; gap: 12px; }
.ask-id { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(150deg, #24456f, var(--navy) 55%, #132842); color: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.ask-id .note { color: rgba(255,255,255,.85); margin: 4px 0 0; }
.ask-idt { margin: 0; font: 600 19px/1.2 Georgia, "Times New Roman", serif; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ask-av { flex: none; position: relative; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg, #e6c483, #ad7c2c); color: #132842; display: grid; place-items: center; font: 600 17px/1 Georgia, serif; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.ask-av b { position: absolute; right: -5px; bottom: -3px; background: #fff; color: var(--navy); font: 700 9px/1 system-ui, sans-serif; padding: 3px 4px; border-radius: 6px; letter-spacing: .5px; }
.ask-av.sm { width: 24px; height: 24px; font-size: 10.5px; box-shadow: none; }
.ask-av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ask-ai { font: 700 10px/1 system-ui, sans-serif; letter-spacing: .7px; text-transform: uppercase; color: #8a6420; background: #f6ead2; border-radius: 6px; padding: 3px 6px; }
.ask-id .ask-ai { color: #f3dcab; background: rgba(199,154,74,.22); border: 1px solid rgba(243,220,171,.5); border-radius: 999px; padding: 4px 8px; }
.ask-who { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--navy); margin: 4px 0 -6px; }
.ask-m { line-height: 1.5; font-size: 15.5px; overflow-wrap: anywhere; }
.ask-m.u { align-self: flex-end; max-width: 88%; background: var(--navy); color: #fff; border-radius: 14px 14px 4px 14px; padding: 10px 14px; white-space: pre-wrap; }
.ask-m.a { align-self: flex-start; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 12px 16px; }
.ask-m.a p { margin: 0 0 9px; } .ask-m.a p:last-child { margin-bottom: 0; }
.ask-m.a ul { margin: 4px 0 9px; padding-left: 22px; } .ask-m.a li { margin: 2px 0; }
.ask-m.a code { background: var(--line-2); padding: 0 4px; border-radius: 4px; font-size: .92em; }
.ask-m.a em { font-style: italic; }
.ask-tbl { overflow-x: auto; margin: 4px 0 10px; }
.ask-m.a table { border-collapse: collapse; font-size: 14.5px; }
.ask-m.a th, .ask-m.a td { border: 1px solid var(--line); padding: 5px 10px; text-align: start; vertical-align: top; }
.ask-m.a th { background: #f7f5f0; font-weight: 700; }
.ask-m.s { font-size: 14px; color: var(--gold-text); font-style: italic; padding: 0 4px; }
.ask-m.e { background: #fbeceb; border: 1px solid #efc2bd; color: var(--danger); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.ask-tries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ask-tries .chipbtn { font-weight: 600; text-align: left; height: auto; padding: 7px 14px; line-height: 1.3; flex: 0 1 auto; }
.ask-form { position: sticky; bottom: calc(76px + var(--safe-b)); z-index: 3; display: flex; gap: 8px; align-items: flex-end; background: var(--ground); padding: 8px 0 4px; }
.ask-box { flex: 1; min-width: 0; border: 1px solid #c9c4b8; border-radius: 10px; background: #fff; display: flex; flex-direction: column; }
.ask-box:focus-within { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(31,58,95,.15); }
.ask-tb { display: flex; gap: 2px; padding: 4px 6px 0; }
.ask-tb button { width: 34px; height: 30px; border: 1px solid transparent; background: none; border-radius: 6px; cursor: pointer; color: #5c5650; font-size: 15px; line-height: 1; padding: 0; }
.ask-tb button:hover { background: #f1ede6; }
.ask-tb button.on { background: #e6ecf4; border-color: #c5d2e3; color: var(--navy); }
.ask-ed { font-size: 16px; line-height: 1.45; padding: 4px 12px 10px; min-height: 46px; max-height: 40vh; overflow-y: auto; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; text-align: start; cursor: text; color: var(--ink); }
.ask-ed:empty::before { content: attr(data-ph); color: #7b8189; pointer-events: none; }
.ask-form .btn { flex: none; min-height: 50px; }
.ask-foot { display: flex; flex-direction: column; gap: 10px; }
.chip-ask { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip-ask svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .view[data-screen="ask"] { max-width: 900px; }
  .ask-form { bottom: 0; padding-bottom: 16px; }
  .ask-m.u { max-width: 75%; }
  .ask-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}
.ask-foot .btn { flex: none; white-space: nowrap; }

/* volume banner on the Tracker (as on the site's Workflow page) */
.card.vol { margin-bottom: 12px; }
.volhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.volhead .volcount { margin-left: auto; }
