* { box-sizing: border-box; }
body { margin: 0; color: #10202a; background: #f4f7f9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button, select { cursor: pointer; }
button { border: 1px solid #b7c7ce; border-radius: 7px; padding: 9px 14px; background: #0d5f70; color: #fff; font-weight: 600; }
button:hover { background: #084b59; }
button:disabled { opacity: .65; cursor: wait; }
button.secondary { background: #fff; color: #0d5f70; }
a { color: #0d5f70; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #c75b21; outline-offset: 3px; }
input, select, textarea { padding: 9px 11px; border: 1px solid #91a5af; border-radius: 5px; background: #fff; color: #10202a; max-width: 100%; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
label input[type=checkbox] { width: auto; }
textarea { min-height: 85px; resize: vertical; }
button small { font-weight: 400; }
h1 { font-size: clamp(25px, 3vw, 38px); line-height: 1.2; letter-spacing: -.025em; margin: 8px 0 16px; }
h2 { font-size: 21px; line-height: 1.3; margin: 6px 0 12px; }
h3 { font-size: 16px; line-height: 1.4; }
p { max-width: 86ch; }
.demo-mast { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 18px 28px; background: #fff; border-bottom: 1px solid #cdd9df; }
.venue-brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #10202a; font-size: 22px; font-weight: 750; }
.venue-brand svg { width: 42px; height: 42px; color: #0d5f70; }
.venue-brand small, .demo-mast div>small { display: block; font-size: 12px; color: #526773; font-weight: 450; }
.state-tag { display: inline-block; padding: 3px 8px; font-size: 12px; font-weight: 700; color: #0d5f70; background: #e6f1f4; border-radius: 4px; }
.demo-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.demo-layout>nav { padding: 22px 14px; border-right: 1px solid #cdd9df; background: #fff; }
.demo-layout>nav button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #334d59; margin: 3px 0; font-size: 14px; font-weight: 500; padding: 10px; }
.demo-layout>nav button[aria-current] { background: #e6f1f4; color: #084b59; box-shadow: inset 3px 0 #0d5f70; font-weight: 700; }
.demo-layout>nav button:hover { background: #f0f5f7; }
.demo-layout>main { padding: 32px; min-width: 0; max-width: 1600px; }
.view-heading { margin-bottom: 28px; }
.view-heading>p:last-child { color: #526773; font-size: 16px; }
.spine-eyebrow { font-size: 11px; letter-spacing: .1em; font-weight: 750; text-transform: uppercase; color: #0d5f70; margin: 0; }
.quiet { color: #526773; font-size: 13px; }
.next-move, article, .scenario, .search-result { background: #fff; border: 1px solid #cdd9df; padding: 22px; border-radius: 10px; margin: 18px 0; }
.next-move { border-left: 4px solid #b6531d; }
.next-move h2 { margin-top: 12px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(185px,1fr)); gap: 14px; margin: 22px 0; }
.metric { text-align: left; background: #fff; color: #10202a; padding: 20px; min-width: 0; border: 1px solid #cdd9df; }
.metric:hover, .case-card:hover, .launch-grid button:hover { background: #eaf3f5; border-color: #0d5f70; }
.metric span, .metric strong, .metric small { display: block; }
.metric strong { font-size: 27px; margin: 9px 0; }
.metric span { color: #526773; font-size: 13px; }
.metric small { color: #0d5f70; font-size: 12px; }
.notice, .warning { padding: 14px 17px; border-left: 3px solid #0d5f70; background: #e9f2f5; border-radius: 0 5px 5px 0; }
.warning { border-color: #b14a17; background: #fff1e7; }
.launch-grid, .case-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(320px,100%),1fr)); gap: 16px; }
.launch-grid button { display: block; text-align: left; background: #fff; color: #10202a; padding: 24px; border: 1px solid #cdd9df; }
.launch-grid span { display: block; font-size: 12px; color: #0d5f70; margin-top: 12px; }
.case-grid article { margin: 0; }
.case-card { text-align: left; display: block; min-width: 0; color: #10202a; background: #fff; border: 1px solid #cdd9df; padding: 22px; }
.case-card h2 { margin-top: 12px; }
.case-card p { font-weight: 400; }
.case-card small, .more-label { color: #0d5f70; font-size: 12px; }
.answer { display: block; font-size: 29px; color: #0d5f70; margin: 10px 0; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 22px 0; }
.toolbar label { flex: 1; min-width: min(200px,100%); }
.controls-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 18px; margin: 22px 0; }
.failure-options { display: grid; gap: 12px; margin-top: 16px; }
.failure-options label { flex-direction: row; align-items: center; font-weight: 450; }
.event-picker { max-width: 600px; margin-bottom: 22px; }
.table-scroll { overflow: auto; border: 1px solid #cdd9df; border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th,td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #dce4e8; vertical-align: top; }
th { background: #eef4f6; font-size: 12px; }
.work-card>label { margin-top: 16px; }
.evidence-tree { margin: 0; font-size: 14px; }
.evidence-tree>div { display: grid; grid-template-columns: minmax(130px,30%) minmax(0,1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid #dce4e8; }
.evidence-tree dt { font-weight: 650; }
.evidence-tree dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.evidence-tree details { padding: 0 6px; }
.evidence-tree summary { cursor: pointer; color: #0d5f70; }
.record-dialog { width: min(1000px,94vw); max-width: 98vw; max-height: 92dvh; min-width: 340px; min-height: 240px; padding: 0; resize: both; overflow: auto; border: 1px solid #7c969f; border-radius: 12px; color: #10202a; background: #fff; }
.record-dialog::backdrop { background: rgba(16,32,42,.6); }
.record-dialog>header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f1f6f8; border-bottom: 1px solid #cdd9df; padding: 18px 22px; cursor: move; z-index: 4; touch-action: none; }
.record-dialog h2 { font-size: 21px; margin: 4px 0 0; }
.record-body { padding: 22px; }
.column-chart { display: flex; gap: 5px; overflow-x: auto; margin: 24px 0; padding: 12px 5px; }
.column-chart button { flex: 1; min-width: 43px; display: flex; flex-direction: column; align-items: center; background: #fff; color: #10202a; border: 1px solid transparent; padding: 5px 2px; font-size: 10px; }
.column-chart button:hover { border-color: #0d5f70; background: #e6f1f4; }
.column-track { display: flex; align-items: end; height: 140px; width: 70%; background: #edf2f4; margin: 7px 0; }
.column-track>span { display: block; width: 100%; background: #0d6f84; }
.money-bars { display: grid; gap: 12px; }
.money-bars button { display: grid; grid-template-columns: minmax(0,1fr) 2fr 100px; gap: 15px; text-align: left; color: #10202a; background: #fff; padding: 18px; border: 1px solid #cdd9df; }
.money-bars small { grid-column: 1/-1; color: #526773; }
.bar-track { height: 20px; background: #eef3f5; }
.bar-track>span { display: block; height: 100%; background: #0d6f84; }
.park-plan { min-width: 0; }
.park-plan svg { max-width: 100%; }
@media (max-width: 760px) {
 .demo-mast { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
 .demo-mast>div { order: 3; width: 100%; }
 .demo-layout { display: block; }
 .demo-layout>nav { display: flex; overflow-x: auto; gap: 7px; padding: 10px; border-right: 0; border-bottom: 1px solid #cdd9df; }
 .demo-layout>nav button { white-space: nowrap; width: auto; margin: 0; }
 .demo-layout>nav p { display: none; }
 .demo-layout>main { padding: 22px 14px; }
 .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .metric { padding: 14px; }
 .metric strong { font-size: 22px; }
 .record-dialog { width: 96vw; min-width: 0; resize: none; max-height: 94dvh; }
 .record-dialog>header, .record-body { padding: 16px; }
 .evidence-tree>div { grid-template-columns: 1fr; gap: 5px; }
 .money-bars button { grid-template-columns: 1fr 80px; }
 .money-bars button>span:first-child { grid-column: 1/-1; }
 .case-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
