:root {
  color-scheme: light;
  --ink: #172639;
  --muted: #536378;
  --link: #164bab;
  --border: #cbd4e0;
  --soft: #f4f7fb;
  font: 100%/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1460cd; outline-offset: 3px; }
.mast { border-bottom: 1px solid var(--border); background: #fff; }
.mast-inner, main { width: min(100% - 2rem, 46rem); margin-inline: auto; }
.mast-inner { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; gap: .6rem; align-items: center; font-size: 1.08rem; font-weight: 720; color: var(--ink); text-decoration: none; }
.brand-mark { width: .72rem; height: .72rem; border: .2rem solid var(--link); border-radius: 50%; }
.site-link { font-size: .9rem; }
main { padding: clamp(1rem, 4vw, 3rem) 0; }
.panel { padding: clamp(1.25rem, 4vw, 2.5rem); background: white; border: 1px solid var(--border); border-radius: .8rem; }
.login, .welcome { max-width: 38rem; margin-inline: auto; }
.embedded { background: #fff; }
.embedded main { padding: 0; width: 100%; }
.embedded .panel { max-width: 100%; margin: 0; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -.035em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.panel > p { margin-top: 1rem; }
.welcome .primary, .login form { margin-top: 1.5rem; }
.nav, .actions, .case-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.5rem; }
.nav { justify-content: space-between; margin: .75rem 0 1.65rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.text-button { padding: .4rem 0; border: 0; color: var(--link); background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.primary { display: inline-block; padding: .65rem 1.1rem; min-height: 2.8rem; border: 1px solid transparent; border-radius: .45rem; background: #1852c0; color: white; font-weight: 650; text-decoration: none; }
.primary:hover { background: #123f96; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; margin-bottom: 1.15rem; }
.field label, legend { font-weight: 640; }
.field input, textarea { width: 100%; border: 1px solid #8394a7; border-radius: .4rem; padding: .58rem .7rem; background: #fff; }
.field .code { max-width: 11rem; font-variant-numeric: tabular-nums; letter-spacing: .18em; }
textarea { min-height: 6rem; resize: vertical; }
.pair { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
fieldset { padding: 0; border: 0; margin: 0 0 1rem; min-width: 0; }
legend { padding: 0; margin-bottom: .45rem; }
.choice { display: flex; align-items: flex-start; gap: .65rem; padding: .4rem 0; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; margin: .18rem 0 0; accent-color: #1852c0; flex-shrink: 0; }
.consent { margin: 0 0 1rem; }
.notice { border-left: .22rem solid #1852c0; padding: .8rem 1rem; margin-bottom: 1.2rem; background: #edf4ff; }
.cases { margin: 0; padding: 0; list-style: none; }
.case + .case { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.case-meta { justify-content: space-between; margin-bottom: .8rem; }
.status { color: #40566c; font-size: .87rem; font-weight: 650; }
.answered { color: #146346; }
.reference, .panel > .reference { margin: 0 0 .75rem; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.reference code { font: .95em ui-monospace, monospace; }
.excerpt { overflow-wrap: anywhere; }
.inbox .reference { margin: .5rem 0 0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-top: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--border); }
.pagination span { color: var(--muted); }
time, .hint { font-size: .88rem; color: var(--muted); }
.prose { margin-top: .45rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer { border-left: .2rem solid #5584ca; padding: .85rem 1rem; margin-top: 1.1rem; background: var(--soft); }
.answer time { display: block; margin-top: .5rem; }
dl > div { display: flex; flex-wrap: wrap; gap: .4rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.staff-question { margin: 1.1rem 0 1.5rem; }
.login strong { overflow-wrap: anywhere; }
@media (max-width: 32rem) {
  .pair { grid-template-columns: 1fr; }
  .mast-inner, main { width: calc(100% - 1.25rem); }
  .embedded main { width: 100%; }
  .panel { padding: 1rem; }
}
