:root {
  color-scheme: light;
  --ink: #1b2830;
  --navy: #10273c;
  --action: #005955;
  --muted: #4a5d66;
  --line: #c6d2d6;
  --background: #f2f5f6;
  --paper: #fff;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3 { line-height: 1.16; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.65rem, 4vw, 2.25rem); margin: 0; letter-spacing: -.025em; }
h2 { margin: 0 0 .75rem; font-size: 1.22rem; }
h3 { margin: 1.25rem 0 .5rem; font-size: 1.03rem; }
p { margin: .5rem 0 .8rem; overflow-wrap: anywhere; }
a { color: var(--action); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #1377a5; outline-offset: 3px; }
.skip { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .65rem; background: var(--paper); }
.skip:not(:focus) { clip-path: inset(50%); }
.frame { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.masthead { background: var(--navy); color: #fff; }
.masthead-inner, .account, .page-title, .switch, .actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem;
}
.masthead-inner, .page-title { justify-content: space-between; }
.masthead-inner { min-height: 3.9rem; padding-block: .4rem; }
.brand { font-size: 1.25rem; font-weight: 700; color: white; text-decoration: none; }
.brand span { margin-left: .45rem; padding-left: .65rem; border-left: 1px solid #8396a6; font-size: .85rem; font-weight: 550; }
.account { font-size: .9rem; overflow-wrap: anywhere; }
main { padding-block: 2rem 3rem; }
.page-title { margin-bottom: 1rem; align-items: baseline; }
.paper { background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; min-width: 0; }
.login { max-width: 31rem; margin: 2rem auto; padding: clamp(1rem, 5vw, 2rem); }
.login h1 { margin-bottom: 1rem; }
.inbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 29rem); gap: 1rem; align-items: start; }
.composer, .block { padding: 1rem 1.15rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 1fr); gap: 1rem; align-items: start; }
.detail-layout .paper + .paper { margin-top: 1rem; }
.records, .timeline { margin: 0; padding: 0; list-style: none; }
.record { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem 1rem; padding: .85rem 1rem; }
.record + .record { border-top: 1px solid var(--line); }
.record p { margin: .25rem 0 0; }
.record a, .record strong { overflow-wrap: anywhere; }
.record > div { min-width: min(14rem, 100%); flex: 1; }
.timeline li { border-top: 1px solid var(--line); padding: .55rem 0; overflow-wrap: anywhere; }
.collection > button, .empty { margin: 1rem; }
.empty, .hint, .meta { color: var(--muted); }
.meta, .hint { font-size: .875rem; font-weight: 400; }
.description { white-space: pre-wrap; }
form { display: grid; gap: .8rem; }
label { display: grid; gap: .2rem; font-weight: 600; }
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; min-width: 0; min-height: 2.75rem; padding: .5rem .65rem; border: 1px solid #8298a0; border-radius: .28rem; color: var(--ink); }
textarea { resize: vertical; }
button, .button { min-height: 2.75rem; border: 1px solid var(--action); border-radius: .32rem; padding: .42rem .85rem; background: var(--action); color: #fff; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; place-self: start; }
.secondary, .switch button { background: var(--paper); border-color: #8298a0; color: var(--ink); }
.switch { gap: .45rem; margin-bottom: .85rem; }
.switch button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: #fff; }
.quiet { background: transparent; border-color: #a3b9c9; }
button:disabled { cursor: default; opacity: .62; }
.back { display: inline-block; margin-bottom: .7rem; }
#notice { margin: 0 0 .9rem; padding: .55rem .8rem; border-inline-start: 4px solid var(--action); background: #e6f3ef; }
#notice[data-error="true"] { background: #fff0eb; border-color: #a63322; color: #6c2216; }
.status { display: inline-block; color: var(--navy); background: #e6edf3; padding: .16rem .55rem; border-radius: .25rem; font-size: .88rem; }
.result-version { border-top: 1px solid var(--line); margin-top: .75rem; }
.result-version summary { cursor: pointer; padding: .55rem 0; font-weight: 600; }
.result-version form, .result-preview { margin-top: .7rem; }
.result-content li, .evidence-choice { overflow-wrap: anywhere; }
.result-content li { white-space: pre-wrap; }
.result-evidence { display: grid; gap: .5rem; }
.result-preview { border-inline-start: 3px solid var(--action); padding: .1rem 0 .2rem .9rem; }
.evidence-picker { min-width: 0; margin: 0; padding: .6rem .8rem; border: 1px solid var(--line); }
.evidence-picker legend { font-weight: 600; }
.evidence-choice { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding: .4rem 0; }
.evidence-choice label { display: flex; align-items: baseline; gap: .5rem; flex: 1 1 12rem; min-width: 0; }
.evidence-choice input { width: auto; min-height: auto; flex: none; accent-color: var(--action); }
.actions { margin-block: .6rem; }
@media (max-width: 760px) {
  main { padding-top: 1rem; }
  .inbox, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .login { margin-top: 1rem; }
  .collection .record { padding-inline: .8rem; }
}
