
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #171717;
  background: white;
  line-height: 1.55;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(100%, 1420px); min-height: 100svh; margin: auto; padding: 0 clamp(18px, 4vw, 54px); display: flex; flex-direction: column; }
header, footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; }
header { min-height: 72px; }
footer { padding-block: 1rem; border-top: 1px solid #dedede; color: #505050; font-size: .9rem; }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.wordmark { font-size: 1.65rem; letter-spacing: -.04em; font-weight: 500; }
header a, footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
header a:hover, footer a:hover { text-decoration: underline; }
main { flex: 1; width: min(100%, 48rem); margin: clamp(2rem, 5vw, 5rem) auto 4rem; overflow-wrap: anywhere; }
main.wide { width: min(100%, 68rem); }
h1 { margin: 0 0 1.05rem; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.06; font-weight: 450; letter-spacing: -.05em; }
h2 { margin: 2rem 0 .7rem; font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 540; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
p { margin: .65rem 0 1rem; }
.lead { font-size: 1.15rem; max-width: 62ch; }
.hint, .field-hint { color: #545454; }
.field-hint { margin: .25rem 0 .5rem; font-size: .94rem; }
a { color: inherit; text-underline-offset: .18em; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.25rem; border: 1px solid #181818; border-radius: 999px; background: #181818; color: white; font: inherit; font-weight: 550; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #373737; }
.secondary { background: white; border-color: #aaa; color: #171717; }
.secondary:hover { background: #f1f1f1; }
.danger { background: white; color: #8d2824; border-color: #b97b77; }
.danger:hover { background: #f9eeed; }
.actions { margin-block: 1rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: 1rem; margin: 1.8rem 0; }
.choices section, .notice, .session, .facts, .evidence { padding: 1.15rem 1.35rem; border: 1px solid #dedede; border-radius: 14px; }
.choices section { display: flex; flex-direction: column; align-items: flex-start; }
.choices h2, .notice h2, .evidence h2 { margin-top: 0; }
.choices .button { margin-top: auto; }
.notice, .session, .facts { background: #f6f6f5; }
.notice, .session, .evidence { margin-block: 1.5rem; }
label { display: block; margin: 1rem 0 .35rem; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 44px; padding: .65rem .8rem; background: white; border: 1px solid #999; border-radius: 7px; color: inherit; font: inherit; }
textarea { resize: vertical; }
input[type=date] { max-width: 16rem; }
.check { display: flex; align-items: flex-start; gap: .75em; font-weight: 500; }
.check input { flex: none; width: 1.2rem; height: 1.2rem; min-height: 0; margin: .22em 0 0; padding: 0; accent-color: #171717; }
form > button { margin-top: .75rem; }
.receipt, .ref, .table-wrap tbody th { font-family: ui-monospace, monospace; }
.facts { display: flex; gap: .9rem 1.75rem; flex-wrap: wrap; }
.facts div { min-width: 7rem; }
.facts dt { color: #555; font-size: .88rem; }
.facts dd { margin: .2rem 0 0; }
.status { display: inline-block; background: #eee; border-radius: 12px; padding: .12rem .5rem; font-size: .9em; }
.status[data-state=answered] { background: #e4f2e7; color: #234c29; }
.status[data-state=waiting_staff] { background: #f6edda; color: #59421c; }
.messages { list-style: none; margin: 1rem 0; padding: 0; }
.messages li { border-top: 1px solid #dedede; padding-block: 1rem; }
.message-heading { display: flex; gap: .3rem 1rem; align-items: baseline; flex-wrap: wrap; }
.message-heading time { color: #555; font-size: .9rem; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0 0; max-width: 80ch; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; }
.filters label { font-size: .9rem; }
.filters > div { flex: 1 1 11rem; }
.filters > a { min-height: 44px; display: inline-flex; align-items: center; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
caption { text-align: left; font-size: 1.3rem; font-weight: 600; margin: .75rem 0; }
th, td { border-bottom: 1px solid #dedede; padding: .65rem; vertical-align: top; }
td time { white-space: nowrap; }
.empty { padding: 1rem 0; color: #555; }
details { padding: .75rem 0; margin-block: .5rem; border-top: 1px solid #dedede; }
summary { font-weight: 600; cursor: pointer; padding-block: .25rem; }
.alert { color: #772522; background: #f9eeed; padding: .75rem 1rem; border-left: 3px solid #b0645f; }
:focus-visible { outline: 2px solid #222; outline-offset: 4px; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-170%); background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }
@media (max-width: 480px) {
  header { align-items: flex-start; flex-direction: column; gap: 0; }
  header nav { font-size: .9rem; }
  .choices section, .notice, .session, .facts, .evidence { padding: 1rem; }
  .filters { display: grid; }
  th, td { padding: .45rem; }
}
