/* Development portfolio dashboard. Colors, families, sizes, radii and spacing come from tokens.css (generated from DESIGN.md). */
@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-ext.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chivo Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/chivo-mono-400.woff2) format("woff2"); }
@font-face { font-family: "Chivo Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/chivo-mono-500.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--surface-0); color: var(--ink);
  font-family: var(--font-body); font-size: var(--size-body); font-weight: var(--weight-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: var(--primary-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--primary); text-decoration-thickness: 2px; }
code, pre, time, kbd { font-family: var(--font-readout); }
code { font-size: 0.85em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--primary); color: var(--on-primary); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1 { font-family: var(--font-display); font-weight: var(--weight-display); font-stretch: 116%; font-size: clamp(2rem, 1.3rem + 2.6vw, var(--size-display)); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
h2 { font-family: var(--font-headline); font-weight: var(--weight-headline); font-stretch: 110%; font-size: clamp(1.3rem, 1.05rem + 0.9vw, var(--size-headline)); line-height: var(--lh-headline); letter-spacing: var(--ls-headline); }
h3 { font-size: var(--size-title); font-weight: var(--weight-title); font-stretch: 104%; line-height: var(--lh-title); margin: var(--s-md) 0 var(--s-sm); }
h4 { font-size: var(--size-body); font-weight: 600; margin: var(--s-sm) 0 var(--s-xs); }
p { margin: 0 0 var(--s-sm); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s-sm); padding-left: 1.2em; }
.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; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.sub { display: block; color: var(--text-muted); font-size: var(--size-small); line-height: var(--lh-small); }
td .sub, th .sub, li .sub { margin-top: 2px; }
.num { font-variant-numeric: tabular-nums; }
td.num, th.num { text-align: right; }

:root { --gutter: clamp(16px, 3vw, 32px); --ease: cubic-bezier(0.25, 1, 0.5, 1); }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 8px 12px; background: var(--ink); color: var(--surface-0); }
.skip:focus { left: 8px; }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--surface-0); border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; align-items: center; gap: var(--s-md); min-height: 56px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.wordmark svg { width: 20px; height: 20px; }
.wm-short { font-family: var(--font-display); font-stretch: 125%; font-weight: 720; font-size: 16px; letter-spacing: 0.01em; }
.wm-long { font-size: var(--size-small); color: var(--text-muted); padding-left: 10px; border-left: 1px solid var(--rule); }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0 2px; margin-left: auto; }
.masthead nav a { padding: 6px 9px; font-size: var(--size-small); color: var(--text-secondary); text-decoration: none; border-bottom: 2px solid transparent; }
.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.masthead nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--primary); }
.nav-count { margin-left: 5px; padding: 0 5px; border-radius: var(--r-pill); background: var(--surface-2); font-family: var(--font-label); font-size: 11px; color: var(--text-secondary); }
.theme { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-md); background: none; color: var(--ink); cursor: pointer; flex: none; }
.theme:hover { border-color: var(--ink); }
.theme svg { width: 15px; height: 15px; }
@media (max-width: 1240px) { .wm-long { display: none; } }
@media (max-width: 900px) {
  .masthead-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 4px; }
  .masthead nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .theme { margin-left: auto; }
}

/* page head */
.page-head { padding: var(--s-xl) 0 var(--s-lg); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-lg); }
.page-head h1 { max-width: 28ch; }
.lede { margin-top: var(--s-md); max-width: 78ch; font-size: clamp(16px, 0.95rem + 0.2vw, 18px); color: var(--text-secondary); }
.note { max-width: 90ch; color: var(--text-secondary); font-size: var(--size-small); }
.crumbs { font-family: var(--font-label); font-size: var(--size-label); color: var(--text-muted); margin-bottom: var(--s-sm); }
.crumbs a { color: var(--text-muted); }
.aliases-line { margin-top: var(--s-sm); color: var(--text-muted); font-size: var(--size-small); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-md) 0 0; }
.tally { display: flex; flex-wrap: wrap; gap: 0; margin: var(--s-lg) 0 var(--s-md); border-top: 2px solid var(--rule-strong); }
.tally > div { padding: var(--s-sm) var(--s-lg) var(--s-sm) 0; margin-right: var(--s-lg); border-right: 1px solid var(--rule); }
.tally > div:last-child { border-right: 0; }
.tally dt { font-family: var(--font-label); font-size: var(--size-label); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tally dt a { color: inherit; }
.tally dd { margin: 2px 0 0; font-family: var(--font-headline); font-stretch: 110%; font-size: 24px; font-weight: 600; }

/* sections */
.section { margin: var(--s-2xl) 0 0; padding-top: var(--s-md); border-top: 2px solid var(--rule-strong); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-sm) var(--s-lg); margin-bottom: var(--s-md); }
.section-intro { max-width: 90ch; color: var(--text-secondary); margin-bottom: var(--s-md); }
.section-aside { font-size: var(--size-small); }
.empty { color: var(--text-muted); padding: var(--s-md) 0; }
.link { font-weight: 600; }
.link::after { content: " \2192"; }
.colophon-note { margin-top: var(--s-xl); color: var(--text-muted); font-size: var(--size-small); }

/* chips and marks */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-secondary); font-family: var(--font-label); font-size: var(--size-label); font-weight: var(--weight-label); line-height: 1.5; white-space: nowrap; }
.chip-stage-released, .chip-activity-active { background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--ink); }
.chip-activity-abandoned { box-shadow: inset 0 0 0 1px var(--rule); background: transparent; color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--text-muted); }
.chip-private { background: var(--ink); color: var(--surface-0); }
.chip-assert-source_reported { box-shadow: inset 0 0 0 1px var(--state-attention); background: transparent; }
.chip-assert-proposed, .chip-rel-proposed, .chip-rel-planned { box-shadow: inset 0 0 0 1px var(--rule); background: transparent; border-style: dashed; }
.chip-rel-current { box-shadow: inset 0 0 0 1px var(--edge-current); background: transparent; }
.mark { display: inline-flex; align-items: baseline; gap: 6px; font-size: var(--size-small); color: var(--ink); }
.mark-shape { display: inline-block; flex: none; width: 9px; height: 9px; transform: translateY(-1px); }
.mark-ok .mark-shape { background: var(--state-ok); }
.mark-attention .mark-shape { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--state-attention); }
.mark-fail .mark-shape { background: var(--state-fail); border-radius: 50%; }
.mark-unknown .mark-shape { border: 2px solid var(--state-unknown); border-radius: 50%; }
.mark-muted .mark-shape { background: var(--rule); }
.refs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ref { font-family: var(--font-label); font-size: 11px; color: var(--text-muted); text-decoration: none; padding: 0 4px; border: 1px solid var(--rule); border-radius: var(--r-sm); }
.ref:hover { color: var(--ink); border-color: var(--ink); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--rule-strong); }
.table { width: 100%; border-collapse: collapse; font-size: var(--size-small); line-height: var(--lh-small); color: var(--text-secondary); }
.table-wrap > .table { border-top: 0; }
:not(.table-wrap) > .table { border-top: 2px solid var(--rule-strong); }
.table th, .table td { padding: 9px 12px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table thead th { background: var(--surface-1); padding-top: 7px; padding-bottom: 7px; font-family: var(--font-label); font-size: var(--size-label); font-weight: var(--weight-label); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.table thead th:first-child, .table tbody th:first-child, .table td:first-child { padding-left: 8px; }
.table tbody th { color: var(--ink); font-weight: 600; }
.table tbody th a { color: var(--ink); }
.table tbody tr:hover { background: var(--surface-1); }
.portfolio-table { min-width: 1180px; }
.portfolio-table td.intent { min-width: 220px; max-width: 320px; }
.intent-kind { font-family: var(--font-label); font-size: var(--size-label); color: var(--text-muted); text-transform: uppercase; }
.aliases { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; }
.attn a { text-decoration: none; }
.attn .num { font-weight: 600; color: var(--ink); }
.scope-table th { width: 180px; color: var(--ink); }
.count { font-family: var(--font-label); font-size: 14px; color: var(--text-muted); }

/* forms */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s-sm) var(--s-md); align-items: end; padding: var(--s-md); background: var(--surface-1); border: 1px solid var(--rule); border-radius: var(--r-md); }
.field { display: flex; flex-direction: column; gap: 3px; font-size: var(--size-small); color: var(--text-muted); }
.field-q { grid-column: span 2; }
@media (max-width: 520px) { .field-q { grid-column: auto; } }
.field span { font-family: var(--font-label); font-size: var(--size-label); text-transform: uppercase; letter-spacing: 0.04em; }
input[type="search"], input[type="text"], input[type="password"], select {
  font: inherit; font-size: var(--size-small); color: var(--ink); background: var(--surface-0); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 6px 8px; min-height: 34px; width: 100%;
}
input:focus, select:focus { border-color: var(--ink); }
.filter-actions { display: flex; gap: var(--s-sm); }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: var(--r-md); background: var(--surface-0); color: var(--ink); font: inherit; font-size: var(--size-small); font-weight: 600; text-decoration: none; cursor: pointer; transition: box-shadow 0.2s var(--ease); white-space: nowrap; }
.btn:hover { box-shadow: inset 0 -3px 0 var(--primary); }
.btn.primary { background: var(--ink); color: var(--surface-0); }
.btn.small { min-height: 28px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-sm) var(--s-md); margin-top: var(--s-md); }
.inline-form .sub { display: inline; }
.flash { margin-top: var(--s-md); padding: var(--s-sm) var(--s-md); border-left: 3px solid var(--primary); background: var(--surface-1); }
.selection { margin: 0 0 var(--s-md); padding: var(--s-md); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface-1); }
.selection fieldset { border: 0; margin: 0 0 var(--s-sm); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-lg); }
.selection legend { font-family: var(--font-label); font-size: var(--size-label); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-sm); }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: var(--size-small); }

/* panels and records */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); margin-top: var(--s-lg); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.panel { padding: var(--s-md); border-top: 2px solid var(--rule-strong); background: var(--surface-1); }
.panel-title { font-size: var(--size-title); margin-bottom: var(--s-sm); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-lg); }
.record { border-top: 2px solid var(--rule-strong); padding-top: var(--s-sm); }
.record h3 { margin-top: 0; }
.record-fields { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--s-md); font-size: var(--size-small); margin: var(--s-sm) 0; }
.record-fields dt { font-family: var(--font-label); font-size: var(--size-label); color: var(--text-muted); text-transform: uppercase; padding-top: 2px; }
.record-fields dd { margin: 0; }
.scope-card { margin-bottom: var(--s-lg); }
.scope-card h3 { margin-top: 0; }
.checks { margin-top: var(--s-xs); }
.check-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2px var(--s-md); margin: 4px 0 0; }
.pr-list { list-style: none; padding: 0; }
.pr-list > li { padding: var(--s-xs) 0; border-bottom: 1px dotted var(--rule); }
.claims { list-style: none; padding: 0; }
.claims > li { padding: var(--s-sm) 0; border-bottom: 1px solid var(--rule); }
.claims > li > p:first-child { color: var(--ink); }
.claim-group h3 { font-family: var(--font-label); font-size: var(--size-label); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.limits { margin: 4px 0; color: var(--text-secondary); font-size: var(--size-small); }
.warn { padding: var(--s-sm) var(--s-md); border-left: 3px solid var(--state-attention); background: var(--surface-1); }
.file-list { list-style: none; padding: 0; font-size: var(--size-small); }
.readout { margin: 0; font-family: var(--font-readout); font-size: var(--size-readout); border-top: 1px solid var(--rule); }
.readout-row { display: grid; grid-template-columns: 180px 1fr; gap: var(--s-md); padding: 6px 0; border-bottom: 1px solid var(--rule); }
.readout-row dt { color: var(--text-muted); }
.readout-row dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.readout.compact .readout-row { grid-template-columns: 160px 1fr; padding: 3px 0; }
@media (max-width: 600px) { .readout-row { grid-template-columns: 1fr; gap: 0; } }
.reason-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-lg); }
.reason-list .num { font-family: var(--font-label); color: var(--text-muted); }
.collapsible { margin-top: var(--s-2xl); border-top: 2px solid var(--rule-strong); padding-top: var(--s-md); }
.collapsible > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-sm) var(--s-md); margin-bottom: var(--s-md); }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary::before { content: "+"; font-family: var(--font-label); font-size: 18px; color: var(--text-muted); width: 14px; }
.collapsible[open] > summary::before { content: "\2212"; }
.collapsible > summary h2 { display: inline; }
.collapsible > summary .sub { display: inline; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s-md); margin-top: var(--s-lg); border-bottom: 1px solid var(--rule); }
.tabs a { padding: 6px 0; color: var(--text-secondary); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: var(--size-small); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--primary); }
.tabs .num { font-family: var(--font-label); color: var(--text-muted); margin-left: 3px; }

/* attention */
.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-item { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: var(--s-md) var(--s-lg); padding: var(--s-md) 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .attention-item { grid-template-columns: 1fr; } }
.attention-project { font-family: var(--font-label); font-size: var(--size-label); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.attention-project a { color: var(--text-muted); }
.attention-reason { color: var(--ink); font-weight: 500; }
.disposition { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; align-content: start; }
.disposition label { flex: 1 1 120px; }
.attention-compact { list-style: none; padding: 0; }
.attention-compact li { padding: 4px 0; border-bottom: 1px dotted var(--rule); font-size: var(--size-small); }
.attention-compact .cat { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; color: var(--text-muted); margin-right: 6px; }

/* research */
.metric-group { margin-bottom: var(--s-xl); }
.metric-group h3 { margin-top: 0; }
.scope-panel { margin: 0 0 var(--s-sm); padding: var(--s-sm) var(--s-md); background: var(--surface-1); border-left: 3px solid var(--rule-strong); }
.scope-panel summary { cursor: pointer; font-family: var(--font-label); font-size: var(--size-label); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-xs); }
.metric-table { max-width: 760px; }

/* relationship graph */
.graph-figure { margin: 0; border: 1px solid var(--rule); background: var(--surface-1); }
.graph { display: block; width: 100%; height: auto; max-height: 620px; }
.graph .node circle { fill: var(--surface-0); stroke: var(--rule-strong); stroke-width: 1.5; }
.graph .node text { fill: var(--ink); font-family: var(--font-label); font-size: 11px; }
.graph a:hover circle, .graph a:focus circle { stroke: var(--primary); stroke-width: 3; }
.graph .edge path { fill: none; stroke-width: 1.6; }
.graph .edge-current path { stroke: var(--edge-current); }
.graph .edge-proposed path { stroke: var(--edge-proposed); stroke-dasharray: 5 4; }
.graph .edge-head-current { fill: var(--edge-current); }
.graph .edge-head-proposed { fill: var(--edge-proposed); }
.graph .edge-label { fill: var(--text-muted); font-family: var(--font-label); font-size: 9.5px; paint-order: stroke; stroke: var(--surface-1); stroke-width: 3px; }
.legend { display: flex; gap: var(--s-lg); font-size: var(--size-small); }
.legend-current::before, .legend-proposed::before { content: ""; display: inline-block; width: 26px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px solid var(--edge-current); }
.legend-proposed::before { border-top: 2px dashed var(--edge-proposed); }

/* projections */
.downloads { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.projection-room { margin: var(--s-xl) calc(-1 * var(--gutter)) 0; padding: var(--s-lg) var(--gutter) var(--s-xl); background: var(--projection); color: var(--projection-ink); }
.projection-head { display: flex; justify-content: space-between; gap: var(--s-md); padding-bottom: var(--s-sm); margin-bottom: var(--s-lg); border-bottom: 1px solid var(--projection-rule); font-family: var(--font-label); font-size: var(--size-label); color: var(--projection-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.projection-body { max-width: 1100px; }
.projection-body a { color: var(--projection-link); }
.projection-body h2, .projection-body h3, .projection-body h4 { color: var(--projection-ink); margin: var(--s-lg) 0 var(--s-sm); }
.projection-body h2:first-child, .projection-body h3:first-child { margin-top: 0; }
.projection-body table { width: 100%; border-collapse: collapse; font-size: var(--size-small); margin-bottom: var(--s-md); }
.projection-body th, .projection-body td { border-bottom: 1px solid var(--projection-rule); padding: 6px 10px 6px 0; text-align: left; vertical-align: top; }
.projection-body code { color: var(--projection-ink); }
.projection-body ul { padding-left: 1.2em; }
.kcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-md); margin-bottom: var(--s-lg); }
.kcard { border: 1px solid var(--projection-rule); padding: var(--s-md); }
.kcard h4 { margin-top: 0; }
.kcard-stage, .kcard-tags { font-family: var(--font-label); font-size: var(--size-label); color: var(--projection-muted); }
.kcard-links a { margin-right: 10px; font-size: var(--size-small); }
.coe-insert, .resume-insert, .linear-overview { padding: var(--s-md) 0; border-bottom: 1px solid var(--projection-rule); }
.coe-meta { font-family: var(--font-label); font-size: var(--size-label); color: var(--projection-muted); }
.diff { margin: 0; max-height: 640px; overflow: auto; padding: var(--s-sm) 0; border: 1px solid var(--rule); border-radius: var(--r-md); font-size: 12.5px; line-height: 1.55; background: var(--surface-0); }
.dl { display: block; padding: 0 var(--s-md); white-space: pre-wrap; overflow-wrap: anywhere; }
.dl-add { background: var(--diff-add); }
.dl-del { background: var(--diff-del); }
.dl-hunk { color: var(--text-muted); background: var(--surface-1); }
.dl-file { color: var(--ink); font-weight: 500; }
.block-detail { border-bottom: 1px solid var(--rule); padding: var(--s-sm) 0; }
.block-detail > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.held li { margin-bottom: 4px; }
.owner-only { margin-top: var(--s-2xl); padding: var(--s-md) var(--s-lg) var(--s-lg); border: 1px dashed var(--rule-strong); border-radius: var(--r-md); background: var(--surface-1); }
.owner-only h2 { font-size: var(--size-title); }
.error-panel { padding: var(--s-md) var(--s-lg); border: 2px solid var(--state-fail); border-radius: var(--r-md); }
.error-panel h2 { font-size: var(--size-title); }
.error { color: var(--state-fail); font-weight: 600; }

/* login */
.login { max-width: 520px; padding-top: 12vh; }
.login-form { display: flex; flex-direction: column; gap: var(--s-sm); margin-top: var(--s-lg); }
.login-form label { font-family: var(--font-label); font-size: var(--size-label); text-transform: uppercase; color: var(--text-muted); }
.login-form .btn { align-self: flex-start; margin-top: var(--s-sm); }

/* colophon */
.colophon { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md) var(--s-lg); margin-top: var(--s-3xl); padding-top: var(--s-md); padding-bottom: var(--s-xl); border-top: 1px solid var(--rule); color: var(--text-muted); font-size: var(--size-small); }
.colophon p { margin: 0; flex: 1 1 420px; }
.tz-form select { width: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .masthead, .filters, .disposition, .colophon, .theme { display: none; } }
