.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
h1 { font-size: clamp(38px, 3.7vw, 58px); line-height: 1.06; letter-spacing: -.065em; font-weight: 550; margin: 14px 0 17px; }
.lede { font-size: 12px; color: var(--muted); max-width: 650px; line-height: 1.8; }
.page-heading > .button { flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 10px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 550; line-height: 1.4; transition: background .15s, border-color .15s; }
.button:hover { background: var(--soft); border-color: var(--faint); }
.button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.button .icon { width: 15px; height: 15px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 34px; padding: 7px; border: 1px solid transparent; border-radius: 6px; }
.icon-button:hover { background: var(--soft); }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button.selected { color: var(--accent); background: var(--accent-soft); border-color: var(--line); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 11px; font-weight: 550; line-height: 1.5; }
.text-link:hover { color: var(--accent); }
.text-link .icon { width: 14px; height: 14px; }
.capsule { display: inline-flex; font-size: 9px; font-weight: 600; letter-spacing: .08em; background: #ffffffa6; border: 1px solid #ffffff70; padding: 7px 9px; border-radius: 4px; color: #343b2d; }
.section-heading { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin: 35px 0 18px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { font-size: 22px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; background: var(--surface); min-width: 0; }
.panel > p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin-top: 12px; }
.panel > h2, .panel > h3 { margin-top: 8px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.card-heading h2 { font-size: 17px; }
.card-heading > .icon { color: var(--muted); }
.count-label { color: var(--muted); border: 1px solid var(--line); border-radius: 5px; font-size: 9px; padding: 5px 7px; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 4px; background: var(--soft); color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.badge.done { color: var(--green); background: var(--green-soft); }
.badge.blocked { color: var(--amber); background: var(--amber-soft); }
.badge.review { color: var(--accent); background: var(--accent-soft); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }
.meter { width: 100%; height: 3px; border-radius: 2px; overflow: hidden; background: var(--line); }
.meter-fill { height: 100%; display: block; background: var(--accent-bright); border-radius: inherit; }
.bottom-grid, .decision-grid, .flow-grid, .reference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.info-banner { display: flex; gap: 13px; padding: 20px 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; margin: 24px 0; }
.info-banner > .icon { margin-top: 3px; color: var(--muted); }
.info-banner p { font-size: 12px; color: var(--muted); }
.info-banner p strong { color: var(--ink); }
.info-banner.small { padding: 14px; margin: 18px 0 0; }
.info-banner.small p { font-size: 11px; }
.check-list { margin: 16px 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 10px; font-size: 12px; line-height: 1.8; padding: 9px 0; border-bottom: 1px solid var(--line); }
.check-list .icon { width: 14px; height: 14px; color: var(--green); margin-top: 4px; }
.check-list li:last-child { border: 0; }
.gate-note { border-left: 2px solid var(--line); padding: 3px 0 3px 14px; margin-top: 18px; }
.gate-note > strong { font-size: 11px; }
.gate-note p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.8; }
.key-values { margin: 18px 0 0; }
.key-values > div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.6; }
.key-values > div:last-child { border: 0; }
.key-values dt { color: var(--muted); }
.key-values dd { margin: 0; min-width: 0; }
.hash-value { font-family: ui-monospace, monospace; font-size: 10px; overflow-wrap: anywhere; }
.empty-state { padding: 65px 22px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.empty-state > .icon { margin: 0 auto 20px; color: var(--muted); width: 28px; height: 28px; }
.empty-state p { color: var(--muted); font-size: 12px; margin: 12px 0; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary .icon { transition: transform .2s; }
details[open] > summary .icon { transform: rotate(90deg); }
.phase-tag { font-size: 10px; color: var(--muted); }
