* { box-sizing: border-box; }
:root { color: #252620; background: #f5f3eb; font: 16px/1.6 system-ui, sans-serif; }
body { margin: 0; }
.workbench { max-width: 1232px; margin: 0 auto; padding: 0 42px; }
.masthead { margin-top: 0; }
a { color: #9c341b; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { padding: 10px 16px; color: #252620; background: #e8e6de; border: 1px solid #d3d3c5; border-radius: 2px; cursor: pointer; line-height: 1.35; }
button:hover:not(:disabled) { border-color: #9c341b; background: #e2e0d6; }
button.primary { background: #ad3b20; color: #fff; border-color: #ad3b20; font-weight: 650; }
button.primary:hover:not(:disabled) { background: #923019; }
button:disabled { cursor: wait; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #a44024; outline-offset: 3px; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #d5d4c9; border-radius: 2px; background: #fffefa; color: inherit; }
input[type=file] { min-height: 110px; padding: 16px 10px; border-style: dashed; font-size: 13px; }
input[type=file]::file-selector-button { display: block; margin-bottom: 12px; padding: 6px 10px; background: #eeece4; border: 1px solid #d5d4c9; cursor: pointer; }
input[type=range] { padding: 10px 0; accent-color: #ad3b20; }
textarea { resize: vertical; font-size: 14px; line-height: 1.6; }
label { display: block; margin: 14px 0 6px; color: #55584d; font-size: 13px; font-weight: 600; }
h2 { font-size: 17px; line-height: 1.4; margin: 0 0 18px; }
h3 { font-size: 15px; }
.runtime-bar { display: flex; align-items: center; gap: 10px; min-height: 42px; font: 12px/1.5 ui-monospace, monospace; border-bottom: 1px solid #d5d4c9; }
.runtime-bar p { flex: 1; }
.runtime-dot { width: 7px; height: 7px; background: #b77b19; border-radius: 50%; }
.ready .runtime-dot { background: #507147; }
.local-note { font-size: 13px; color: #55584d; margin: 16px 0 30px; }
.layout { display: grid; grid-template-columns: minmax(230px, 270px) minmax(0, 1fr); gap: 30px; align-items: start; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sidebar, .results, .panel, .two-col > * { min-width: 0; }
.sidebar button { width: 100%; margin-top: 12px; }
.sidebar p, .sidebar details { font-size: 13px; }
.sidebar .example-link { display: inline-block; margin-top: 12px; }
.sidebar .small { color: #66675c; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #d8d7cd; margin-bottom: 24px; }
.tabs button { padding: 12px 11px; border: 0; border-radius: 0; background: transparent; font-size: 13px; border-bottom: 2px solid transparent; }
.tabs button[aria-selected=true] { color: #9c341b; border-bottom-color: #9c341b; }
.panel { padding-top: 6px; }
[hidden] { display: none !important; }
.metric-grid { margin-bottom: 18px; }
.metric { min-width: 0; }
.metric small { overflow-wrap: anywhere; }
.finding { margin: 16px 0; }
details { margin: 12px 0 20px; }
summary { cursor: pointer; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace, monospace; background: #ecebe2; padding: 16px; max-height: 430px; overflow: auto; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.downloads a { padding: 8px 12px; border: 1px solid #c9cabc; background: #fdfcf8; font-size: 13px; }
.planner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; margin-bottom: 18px; }
.planner label { margin-top: 8px; }
.session-controls { display: flex; gap: 16px; align-items: center; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid #d5d4c9; }
.session-controls span { font-size: 12px; color: #66675c; }
.empty { padding: 45px 24px; border: 1px dashed #c8c8bb; color: #66675c; text-align: center; }
.report-frame { width: 100%; height: 720px; }
.stream-controls { display: flex; align-items: center; gap: 12px; margin: 12px 0 24px; }
.stream-controls label { margin: 0; }
.stream-controls input { max-width: 130px; }
.veil-step { margin-top: 28px; }
.veil-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.veil-actions button { font-size: 14px; }
@media(max-width: 740px) {
  .workbench { padding: 0 18px; }
  .layout, .two-col { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .masthead { padding-top: 28px; }
  .masthead h1 { font-size: clamp(34px, 10vw, 50px); }
  .masthead .intro { font-size: 15px; }
  .wordmark { font-size: 9px; gap: 10px; }
  .metric-grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
  .metric { padding: 12px 8px; }
  .metric strong { font-size: 23px; overflow-wrap: anywhere; }
  .metric small { font-size: 10px; }
  .metric > span { font-size: 9px; }
  .session-controls { align-items: flex-start; flex-direction: column; }
  .table-scroll { max-width: 100%; }
  .tabs button { font-size: 12px; padding: 10px 8px; }
}
@media(prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
