:root {
  color-scheme: light; font-family: system-ui, sans-serif;
  --ink: #17251e; --muted: #4e6457; --green: #176743; --line: #d7e3da; --soft: #eff6ef;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f5f8f5; color: var(--ink); }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
header { border-top: 4px solid var(--green); border-bottom: 1px solid var(--line); background: #fff; }
.shell { width: min(1100px, calc(100% - 36px)); margin-inline: auto; }
.top, .heading, .section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.top { min-height: 63px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.brand img { object-fit: contain; }
.heading { margin: 20px 0 12px; }
.workspace-name { margin-top: 5px; }
h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.05em; line-height: 1.08; }
h2 { font-size: 21px; letter-spacing: -.03em; }
h3 { font-size: 15px; margin-bottom: 7px; }
a, summary { color: #105c39; font-weight: 680; font-size: 13px; }
summary { cursor: pointer; }
:focus-visible { outline: 3px solid #12804b; outline-offset: 3px; }
.columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; align-items: start; }
.columns.approver { grid-template-columns: 1fr; }
.surface { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; }
.team-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.team-controls label { font-size: 13px; font-weight: 700; }
.team-controls select { padding: 7px; border: 1px solid #acc1b2; border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; }
.team-controls button { margin-left: auto; }
.actor { color: #24503a; font-weight: 680; }
.subtle { color: var(--muted); font-size: 12px; line-height: 1.45; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--soft); color: #24503a; font-size: 11px; font-weight: 700; }
.badge.warning { background: #fff1d5; color: #6d4712; }
.badge.success { background: #e1f0e5; color: #175035; }
.queue { padding: 0; list-style: none; margin-top: 7px; }
.queue li + li { border-top: 1px solid var(--line); }
.queue button { width: 100%; padding: 9px 5px; border: 0; border-radius: 5px; color: var(--ink); text-align: left; background: transparent; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 6px; }
.queue button:hover, .queue button[aria-current="true"] { background: var(--soft); }
.queue button .subtle { font-weight: 500; }
.queue .amount { text-align: right; }
button, input, select { font: inherit; }
button { border: 1px solid transparent; border-radius: 7px; cursor: pointer; min-height: 35px; padding: 7px 10px; font-size: 13px; font-weight: 700; }
button.primary { background: var(--green); color: #fff; }
button.quiet { background: #f4f8f4; color: #185036; border-color: #bdd1c3; }
button:disabled { opacity: .58; cursor: default; }
form { display: grid; gap: 8px; margin-top: 9px; }
form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
form input, select { min-width: 0; max-width: 100%; padding: 7px; border: 1px solid #acc1b2; border-radius: 6px; color: var(--ink); background: #fff; font-size: 12px; }
form button { justify-self: start; }
details { margin-top: 10px; }
.inline { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; }
.notice { margin: 12px 0; padding: 9px 10px; border-radius: 7px; background: var(--soft); color: #244c36; font-size: 13px; }
.notice.error { background: #fff1e7; color: #7d321b; }
.case { margin-top: 12px; scroll-margin-top: 10px; }
.case-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 12px; margin-top: 9px; }
.case-layout > section { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.refs { display: flex; gap: 8px 13px; flex-wrap: wrap; margin: 4px 0 7px; }
.refs dt { font-size: 11px; color: var(--muted); }
.refs dd { font-size: 13px; font-weight: 690; overflow-wrap: anywhere; }
.lines { display: grid; gap: 6px; }
.line { border: 1px solid var(--line); padding: 7px; border-radius: 7px; }
.line strong { font-size: 13px; }
.line .issue { color: #754815; font-size: 12px; line-height: 1.4; }
.case-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.check { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 13px; }
pre { background: #f4f7f4; margin: 8px 0 0; border-radius: 6px; padding: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.activity ol { list-style: none; padding: 0; }
.activity li { border-top: 1px solid var(--line); padding: 5px 0; display: grid; grid-template-columns: 140px 1fr; gap: 8px; font-size: 12px; }
.activity li span { color: var(--muted); }
footer { padding-block: 12px; color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 650px) {
  .columns, .case-layout { grid-template-columns: 1fr; }
  .heading { align-items: end; }
  .surface { padding: 11px; }
}
