:root {
  color-scheme: light;
  --ink: #18342e;
  --muted: #566a63;
  --brand: #17624e;
  --brand-dark: #104b3b;
  --line: #d8e3dc;
  --surface: #ffffff;
  --canvas: #f3f6f2;
  --warning: #765016;
  --error: #a02d2d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, summary, input[type="file"] { cursor: pointer; }
button { min-height: 42px; padding: 9px 17px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: white; font-weight: 650; line-height: 1.4; }
button:hover:not(:disabled) { background: var(--brand-dark); }
button.secondary { background: white; color: var(--brand); border-color: #a9c0b4; }
button.secondary:hover:not(:disabled), button.quiet:hover:not(:disabled) { background: #edf4ee; }
button.quiet { background: transparent; border-color: transparent; color: var(--brand); padding-inline: 9px; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #bc7918; outline-offset: 3px; }
.topbar { padding: 20px max(24px, calc((100vw - 1500px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: white; border-bottom: 1px solid var(--line); }
.brand, .account { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { display: grid; place-items: center; background: var(--brand); width: 41px; height: 41px; border-radius: 10px; font-size: 23px; font-weight: 750; color: white; flex-shrink: 0; }
.brand strong { display: block; font-size: 20px; letter-spacing: -.5px; }
.brand div > span { display: block; font-size: 12px; color: var(--muted); }
.account { font-size: 12px; overflow-wrap: anywhere; }
.account button { flex-shrink: 0; }
.trial-banner { display: flex; gap: 18px; padding: 11px max(24px, calc((100vw - 1500px) / 2)); background: #faf0d9; color: #624612; font-size: 13px; border-bottom: 1px solid #eadcba; }
.trial-banner strong { white-space: nowrap; }
main { max-width: 1548px; padding: 20px 24px 50px; margin: auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 3vw, 35px); line-height: 1.2; letter-spacing: -.9px; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.35px; margin-bottom: 13px; }
h3 { font-size: 15px; margin-bottom: 10px; }
p { margin-bottom: 15px; }
.page-heading { margin: 18px 0 27px; }
.page-heading p:last-child { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: 1.3px; font-weight: 750; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.console-status { color: var(--muted); font-size: 13px; min-height: 20px; margin-bottom: 10px; }
.workspace-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); align-items: start; gap: 22px; }
.main-column { min-width: 0; display: grid; gap: 22px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 25px; box-shadow: 0 2px 3px #1a3c2603; min-width: 0; }
.cases-panel { padding: 20px 15px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading > div { min-width: 0; }
.muted { color: var(--muted); font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); }
.tag, .status-tag { display: inline-flex; align-items: center; background: #ecf3ed; color: #345447; font-size: 12px; border: 1px solid #d5e4d8; border-radius: 6px; padding: 4px 9px; overflow-wrap: anywhere; }
.status-tag[data-status="indeterminate"], .status-tag[data-status="result_pending"], .status-tag[data-status="request_pending"], .status-tag[data-status="uncertain"] { background: #fff3d8; color: var(--warning); border-color: #efd9ae; }
.status-tag[data-status="failed"] { background: #fff0ee; color: var(--error); border-color: #efcfca; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 10px; }
.file-control { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12px; }
.file-control label { margin: 0; }
.file-control input { max-width: 255px; padding: 5px; font-size: 12px; }
input, textarea, select { width: 100%; border: 1px solid #adbbb2; border-radius: 6px; background: white; color: var(--ink); padding: 10px 12px; }
input:disabled, textarea:disabled, select:disabled { background: #f3f5f1; color: var(--muted); }
textarea { resize: vertical; min-height: 90px; }
label { display: block; font-size: 13px; font-weight: 650; margin: 13px 0 6px; }
.json-editor, pre, code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.json-editor { font-size: 13px; line-height: 1.65; tab-size: 2; }
pre { margin: 0; padding: 15px; background: #f5f7f3; border: 1px solid #e0e7df; border-radius: 7px; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 460px; overflow: auto; min-height: 130px; }
.record-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 18px 0; }
.record-grid section { min-width: 0; }
.mono { overflow-wrap: anywhere; font-size: 12px; }
.callout { padding: 13px 15px; background: #f3f6f1; border-left: 3px solid #afc5b8; font-size: 13px; margin-top: 15px; }
.callout.warning { background: #fff5df; border-color: #d39e39; color: #6e4b13; }
.trace, .timeline { padding-left: 25px; font-size: 13px; }
.trace li, .timeline li { padding: 6px 0 11px 4px; overflow-wrap: anywhere; }
.trace time, .timeline time { display: block; color: var(--muted); font-size: 12px; }
.timeline li { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.timeline p { white-space: pre-wrap; margin: 7px 0; }
.timeline pre { min-height: 0; margin-top: 9px; }
.timeline-heading { margin-top: 30px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#review-message { margin-top: 12px; }
#review-action { max-width: 310px; }
.error { background: #fff2ef; color: var(--error); border-left: 3px solid #c85846; padding: 11px 13px; font-size: 13px; overflow-wrap: anywhere; margin: 12px 0; }
.case-list { display: grid; gap: 9px; margin: 16px 0; max-height: 740px; overflow-y: auto; padding: 3px; }
.case-button { text-align: left; width: 100%; padding: 12px; background: #fff; border-color: var(--line); color: var(--ink); font-weight: 400; }
.case-button:hover:not(:disabled) { background: #f1f6ef; }
.case-button[aria-current="true"] { background: #eaf3ea; border-color: var(--brand); box-shadow: inset 3px 0 var(--brand); }
.case-button strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.case-button span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.full-width { width: 100%; }
.login-panel { width: 100%; max-width: 480px; margin: 48px auto 80px; padding: 32px; }
.login-panel h1 { font-size: 27px; }
.login-panel p { color: var(--muted); font-size: 14px; }
.login-panel button { width: 100%; margin-top: 20px; }
summary { color: var(--brand); font-size: 14px; padding: 10px 0; }
footer { padding: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { display: block; padding: 12px; background: white; }
@media (min-width: 1200px) { .cases-panel { position: sticky; top: 18px; } }
@media (max-width: 1000px) { .workspace-grid { grid-template-columns: 235px minmax(0, 1fr); gap: 16px; } .panel { padding: 20px; } .record-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 740px) {
  .topbar { padding: 15px 16px; align-items: flex-start; }
  .brand div > span { max-width: 150px; }
  .account { flex-direction: column; align-items: flex-end; gap: 5px; max-width: 43%; }
  .account #identity { font-size: 10px; }
  .trial-banner { display: block; padding: 11px 16px; font-size: 12px; }
  .trial-banner strong { display: block; margin-bottom: 4px; }
  main { padding: 16px 12px 32px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 18px; }
  .case-list { max-height: 290px; }
  .section-heading { align-items: flex-start; gap: 10px; }
  .toolbar { align-items: stretch; }
  .toolbar > button { flex: 1 1 190px; }
  .file-control { width: 100%; }
  .file-control input { max-width: 100%; }
  .login-panel { margin: 25px auto 50px; }
  .json-editor { font-size: 14px; }
  input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) { button { transition: background-color .12s ease; } }
