
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F7F7F5;
  --line: #E7E6E1;
  --text: #16171A; --text-2: #55585F; --text-3: #6B6E75;
  --teal: #0E6B62; --teal-soft: #E8F3F1; --teal-line: #CFE6E2; --on-teal: #FFFFFF;
  --ochre: #8A5A00; --ochre-bg: #FBF3E2; --on-ochre: #FFFFFF;
  --red: #B3261E; --red-bg: #FBEDEC;
  --field-line: #8A8C91;
  --topbar: rgba(255,255,255,.94);
  --display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
@media (max-width: 620px) { body { font-size: 16px; } }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--topbar); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
/* On a phone the bar wraps to more rows, too tall to keep on screen over a long form. */
@media (max-width: 640px) { .topbar { position: static; } }
.topbar-in { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; min-height: 64px; max-width: 1120px; margin: 0 auto; padding: 8px 24px; }
@media (max-width: 620px) { .topbar-in { padding: 8px 16px; gap: 4px 12px; } }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.mark svg { flex: none; width: 26px; height: 26px; display: block; }
.mark-name { font-weight: 600; font-size: 19px; }
.mark-sub { font-size: 13px; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 8px; list-style: none; margin: 0 0 0 -8px; padding: 0; }
.nav a { display: inline-block; white-space: nowrap; padding: 8px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current=page] { color: var(--text); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.who { color: var(--text-3); font-size: 15px; overflow-wrap: anywhere; }
form.inline { display: inline; margin: 0; }
.linkbtn { font: inherit; font-size: 15px; color: var(--text-2); background: none; border: 0; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }

main { max-width: 1120px; margin: 0 auto; padding: 48px 24px 80px; }
@media (max-width: 620px) { main { padding: 32px 16px 64px; } }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.022em; line-height: 1.15; }
h1 { font-size: clamp(32px, 4vw, 42px); margin: 0 0 12px; }
h2 { font-size: 24px; margin: 40px 0 12px; }
p { margin: 0 0 12px; }
.lede { color: var(--text-2); font-size: 19px; margin-bottom: 28px; max-width: 40em; }
@media (max-width: 620px) { .lede { font-size: 17px; } }
.muted { color: var(--text-3); }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.btn { display: inline-block; font: inherit; font-weight: 500; font-size: 15px; line-height: 1.2; padding: 12px 18px; border-radius: 8px; border: 1px solid var(--text); background: var(--text); color: #FFFFFF; text-decoration: none; cursor: pointer; min-height: 44px; white-space: nowrap; }
.btn:hover { background: #000000; border-color: #000000; }
.btn.quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn.quiet:hover { background: transparent; border-color: var(--text-3); }
.btn.small { font-size: 14px; padding: 6px 12px; min-height: 32px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.narrow { max-width: 560px; }
.prose { max-width: 680px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin: 0 0 6px; }
form.sso { margin: 16px 0 0; }
.btn-sso { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; font: inherit; font-weight: 500; font-size: 16px; color: var(--text); background: #FFFFFF; border: 1px solid var(--field-line); border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.btn-sso:hover { background: var(--surface-2); }
.btn-sso:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
/* A form on its way: the button that sent it says so, and no button in it takes another press. */
form[data-sending] button[type=submit] { pointer-events: none; }
.is-sending { cursor: progress; opacity: .8; }
.btn.is-sending, .btn-sso.is-sending { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-sso.is-sending { display: flex; }
.spin { display: inline-block; width: 1em; height: 1em; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -.15em; margin-right: .4em; }
.is-sending .spin { margin-right: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 15px; margin: 20px 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

.notice { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 14px 18px; margin: 0 0 24px; }
.problem { border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--surface-2); border-radius: 8px; padding: 14px 18px; margin: 0 0 24px; }
.problem h2 { margin: 0 0 6px; font-family: var(--sans); font-size: 16px; letter-spacing: 0; line-height: 1.4; color: var(--red); }
.problem ul { margin: 0; padding-left: 20px; }
.problem a { color: var(--text); }

.tbl-wrap { position: relative; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
th:last-child, td:last-child { padding-right: 0; }
thead th { border-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 500; }
td.key { white-space: nowrap; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
td.when { white-space: nowrap; color: var(--text-2); }
td.email { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-top: 1px solid var(--line); padding: 10px 0; }
  table.stack tbody tr:first-child { border-top: 0; }
  table.stack td { border: 0; padding: 3px 0; }
  table.stack td.key, table.stack td.name { font-weight: 600; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin-top: 4px; }
  table.stack .row-actions { margin-top: 8px; }
}
.empty { padding: 20px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }

.status { display: inline-block; font-size: 13px; font-weight: 500; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.status.indeterminate { border-color: var(--teal-line); color: var(--teal); background: var(--teal-soft); }
.flag { display: inline-block; font-size: 13px; font-weight: 500; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.flag.on { background: var(--ochre-bg); border-color: #EBD9B0; color: var(--ochre); font-weight: 600; }
.status.new { border-color: #EBD9B0; color: var(--ochre); background: var(--ochre-bg); }

form.card, .card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
@media (max-width: 620px) { form.card, .card { padding: 20px 16px; } }
.field { margin: 0 0 22px; }
.field:last-child { margin-bottom: 0; }
label, legend { display: block; font-weight: 600; margin: 0 0 4px; }
.opt { font-weight: 400; color: var(--text-3); }
.hint { display: block; color: var(--text-2); font-size: 15px; margin: 0 0 8px; }
.err { display: block; color: var(--red); font-weight: 600; font-size: 15px; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #FFFFFF;
  border: 1px solid var(--field-line); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
input[type=text]:focus-visible, input[type=email]:focus-visible, input[type=search]:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--teal); }
input[type=text]:hover, input[type=email]:hover, input[type=search]:hover, select:hover, textarea:hover { border-color: var(--text-3); }
textarea { min-height: 140px; resize: vertical; }
[aria-invalid=true] { border-color: var(--red) !important; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
/* A grid followed by more fields keeps its last field's gap, which shows once it stacks. */
.grid2:not(:last-child) > .field:last-child { margin-bottom: 22px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.switch { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; margin: 0; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 24px; margin: 0; border-radius: 999px; border: 1px solid var(--field-line); background: #FFFFFF; position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-3); transition: transform .15s; }
.switch input:checked { background: var(--teal); border-color: var(--teal); }
.switch input:checked::after { transform: translateX(20px); background: #ffffff; }
.switch input:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* Raising a case: a start step, then the form in numbered parts with what happens next beside it. */
.ico { flex: none; display: block; }
.crumb { margin: 0 0 20px; font-size: 15px; }
.eyebrow { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--teal); margin: 0 0 8px; }
.start { max-width: 680px; }
.start-form { padding: 24px; }
.start-row { display: flex; gap: 10px; }
.start-row input { flex: 1; min-width: 0; font-size: 17px; min-height: 48px; }
.start-row .btn { min-height: 48px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 480px) { .start-row { flex-direction: column; } }
ul.start-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 10px 28px; flex-wrap: wrap; }
ul.start-links li { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .case-layout { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin: 0 0 16px; }
.step > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 22px; }
.step > h2 .opt { font-family: var(--sans); font-size: 15px; letter-spacing: 0; }
.step-n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); border: 1px solid var(--teal-line); color: var(--teal); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.step-hint { margin: -12px 0 20px 40px; }
.step #expected { min-height: 100px; }
@media (max-width: 640px) { .step { padding: 20px 16px; } .step-hint { margin-left: 0; } }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 16px 44px 16px 16px; font-weight: 400; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--text-3); }
.choice input { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.choice input:focus-visible { outline: none; }
.choice:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 3px; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.choice-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); transition: background-color .15s, color .15s; }
.choice:has(input:checked) .choice-ico { background: var(--teal); color: var(--on-teal); }
.choice-text b { display: block; font-weight: 600; line-height: 1.35; }
.choice-more { display: block; margin-top: 4px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.critical { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s, background-color .15s; }
.critical .switch { display: flex; width: 100%; padding: 14px 16px; }
.critical:has(input:checked) { border-color: var(--ochre); background: var(--ochre-bg); }
.critical .switch input:checked { background: var(--ochre); border-color: var(--ochre); }
.critical .switch input:checked::after { background: var(--on-ochre); }
.case-form:not(:has(#kind-problem:checked)) .if-problem { display: none; }
.case-form:not(:has(#kind-problem:checked)) #kind { margin-bottom: 0; }
.case-form:has(#kind-question:checked) .not-question { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px 8px 12px; min-height: 44px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer; transition: border-color .15s, background-color .15s; }
.pill:hover { border-color: var(--text-3); }
.pill input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.pill input:focus-visible { outline: none; }
.pill:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 3px; }
.pill:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
input[type=file] { display: block; width: 100%; padding: 16px; font: inherit; font-size: 15px; color: var(--text-2); border: 1.5px dashed var(--field-line); border-radius: 8px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
input[type=file]:hover { border-color: var(--teal); background: var(--teal-soft); }
input[type=file]::file-selector-button { font: inherit; font-weight: 500; color: var(--text); background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; margin-right: 14px; cursor: pointer; }
.submit-bar { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 24px 0 0; }
.btn-lg { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; padding: 13px 22px; min-height: 48px; }
.case-aside { position: sticky; top: 88px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
@media (max-width: 900px) { .case-aside { position: static; } }
.case-aside h2 { margin: 0 0 16px; font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.4; color: var(--text-3); font-weight: 500; }
ul.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
ul.next li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text-2); }
ul.next .ico { color: var(--teal); margin-top: 1px; }
.kb-suggest h2 { display: flex; align-items: center; gap: 10px; }
.kb-suggest h2 .ico { color: var(--teal); }
@media (forced-colors: active) {
  .choice:has(input:checked), .pill:has(input:checked), .critical:has(input:checked) { outline: 2px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) { .choice, .choice-ico, .critical, .pill, input[type=file], .switch input, .switch input::after { transition: none; } .spin { animation: none; border-right-color: currentColor; border-style: dotted; } }

.meta { display: flex; gap: 8px 24px; flex-wrap: wrap; color: var(--text-2); font-size: 15px; margin: 0 0 24px; }
.meta dt { display: inline; color: var(--text-3); }
.meta dd { display: inline; margin: 0 0 0 6px; }
.meta div { white-space: nowrap; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: inherit; }
ol.thread { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
form.card + ol.thread, form.card + .empty { margin-top: 20px; }
ol.thread > li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
ol.thread > li.mine { background: var(--surface-2); }
ol.thread > li.warde { background: var(--teal-soft); border-color: var(--teal-line); }
.by-warde { display: inline-flex; align-items: center; gap: 8px; }
.by-warde img { border-radius: 5px; display: block; }
.by { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; font-size: 15px; margin: 0 0 8px; }
.by b { font-weight: 600; }
.by time { color: var(--text-3); }
ul.files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
ul.files a { display: inline-block; font-size: 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; text-decoration: none; overflow-wrap: anywhere; }

ol.history { list-style: none; margin: 0; padding: 0; font-size: 15px; }
ol.history li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; }
ol.history time { color: var(--text-3); white-space: nowrap; }
.tiles { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; min-width: 200px; }
@media (max-width: 620px) { .tile { flex: 1 1 100%; min-width: 0; } }
.tile-n { font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -.022em; margin: 0; line-height: 1.1; }
.tile-l { color: var(--text-2); margin: 6px 0 0; font-size: 15px; }
h3 { font-size: 20px; margin: 28px 0 10px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

.kb-search { margin: 0 0 8px; }
.kb-search-row { display: flex; gap: 8px; }
.kb-search-row input { flex: 1; min-width: 0; }
ul.kb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
ul.kb-list > li { padding: 16px 0; border-top: 1px solid var(--line); }
ul.kb-list > li:first-child { border-top: 0; }
.kb-title { margin: 0 0 2px; font-weight: 600; display: flex; gap: 8px 12px; align-items: baseline; flex-wrap: wrap; }
.kb-sum { margin: 0; color: var(--text-2); font-size: 16px; }
.kb-suggest { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 18px 20px; margin: 0 0 24px; }
.kb-suggest h2 { margin: 0 0 4px; }
.kb-suggest p:last-child { margin: 12px 0 0; }
.kb-next { margin-top: 36px; max-width: 760px; }
.kb-next h2 { margin-top: 0; }
.kb-body { max-width: 760px; }
.kb-body h2 { margin-top: 32px; }
.kb-body ul, .kb-body ol { margin: 0 0 12px; padding-left: 24px; }
.kb-body li { margin: 0 0 6px; }
.kb-body li > ul, .kb-body li > ol { margin: 6px 0 0; }
.kb-body code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.kb-body pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; margin: 0 0 12px; }
.kb-body pre code { background: none; border: 0; padding: 0; }
/* A setting name in a table keeps its column wide enough to show it whole; the table scrolls. */
.kb-body td code { overflow-wrap: normal; white-space: nowrap; }
.kb-body .tbl-wrap, .prose .tbl-wrap { margin: 0 0 16px; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 8px; background: var(--surface-2); padding: 12px 16px; margin: 0 0 16px; }
.callout p:last-child { margin-bottom: 0; }
.callout-warning { border-left-color: var(--ochre); background: var(--ochre-bg); }
.callout-label { font-weight: 600; margin: 0 0 4px; }

footer { border-top: 1px solid var(--line); padding: 40px max(24px, calc((100% - 1072px) / 2)) 56px; color: var(--text-3); font-size: 14px; }
@media (max-width: 620px) { footer { padding: 32px 16px 48px; } }
footer p { margin: 0 0 6px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }
:root { --teal: #2D4BAE; --teal-soft: #EDF0FA; --teal-line: #D3DAF2; }
