/* K&S Industrial DB — one stylesheet, hand-written. Design system: IBM Plex, 4-px grid,
   rows 28 px, hairline #d9d6ce, radius 2, navy #24618f. Professional instrument, not consumer SaaS. */

:root {
  --bg: #f3f1ec; --paper: #fff; --ink: #1b1b19; --ink2: #4a4944; --mute: #78766f; --mute2: #9a978f;
  --hair: #d9d6ce; --hair2: #e9e6df; --hair3: #e3e0d8; --hover: #ece9e2; --line: #b8b4aa; --absent: #cfcbc2;
  --navy: #24618f; --lav-bd: #9490c9; --lav-bg: #f7f7fc; --lav-fg: #3f3d73; --user: #174ea6;
  --sans: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.4 var(--sans); }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.plain { font-weight: 400; }
select, input, textarea, button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
h4 { font-size: 11px; color: var(--mute); letter-spacing: .04em; text-transform: uppercase; font-weight: 400; padding: 6px 0 2px; }
code { font-family: var(--mono); font-size: 12px; }
kbd { font-family: var(--mono); font-size: 10px; padding: 0 4px; border: 1px solid var(--absent); border-radius: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.small { font-size: 11px; }
.strong { font-weight: 500; }
.ink { color: var(--ink); }
.r { text-align: right; }
.c { text-align: center; }
.nowrap { white-space: nowrap; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.right { margin-left: auto; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---- absent data: italic, muted, lower-case, a sentence not a symbol ---- */
.absent { color: var(--mute); font-style: italic; font-size: 12px; }
.absent-block { padding: 12px 0; font-size: 12px; color: var(--mute); font-style: italic; }
.empty-block { padding: 14px 0 16px; max-width: 640px; display: grid; gap: 6px; }
.empty-title { font-size: 13px; font-weight: 500; color: var(--ink2); font-style: italic; }
.empty-body { font-size: 12px; color: var(--ink2); text-wrap: pretty; }
.empty-actions { display: flex; gap: 12px; font-size: 12px; margin-top: 4px; }

/* ---- provenance: NOTHING in the resting state. The tooltip is the only marker. ---- */
.pv { }
.tip { position: fixed; z-index: 1000; max-width: 340px; padding: 6px 8px; background: var(--ink); color: #f4f4f1; border-radius: 2px; font-size: 11px; line-height: 1.4; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); white-space: pre-line; }
.tip-head { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #cfcbc2; margin-bottom: 2px; }
.tip-body { color: #f4f4f1; }

/* ---- top nav ---- */
.topnav { display: flex; align-items: center; gap: 28px; height: 44px; padding: 0 32px; border-bottom: 1px solid var(--ink); background: var(--bg); }
.brand { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.navlinks { display: flex; gap: 22px; font-size: 13px; }
.navlinks a { color: var(--ink2); padding-bottom: 2px; }
.navlinks a.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px var(--navy); }
.search { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; position: relative; }
.search input { width: 100%; max-width: 440px; height: 26px; padding: 0 28px 0 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; font-size: 12px; }
.search input::placeholder { color: var(--mute); }
.search kbd { position: absolute; right: calc(50% - 216px); top: 6px; color: var(--mute); }
@media (max-width: 1100px) { .search kbd { display: none; } }
.whoami { font-size: 12px; color: var(--ink2); white-space: nowrap; }
.page { max-width: 1920px; margin: 0 auto; padding: 16px 32px 56px; }
.foot { display: flex; justify-content: space-between; gap: 24px; padding: 10px 32px 28px; font-size: 11px; color: var(--mute); border-top: 1px solid var(--hair); max-width: 1920px; margin: 0 auto; }
.flash { padding: 8px 32px; font-size: 12px; background: #e8f3ec; color: #1d6b3a; border-bottom: 1px solid #5fa27a; }
.flash-err { background: #fbeaea; color: #9b1c1c; border-color: #d08a8a; }

/* ---- titles / record header ---- */
.titlerow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; padding: 8px 0 12px; }
.titlerow h1 { font-size: 24px; line-height: 1.1; }
.titlerow .sub { font-size: 12px; color: var(--mute); }
.count-lead { font-size: 13px; color: var(--ink2); }
.count-lead .n { font-size: 15px; font-weight: 500; color: var(--navy); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs .here { color: var(--ink); }
.rec-head { display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: flex-end; padding: 8px 0 18px; }
.rec-title { flex: 1 1 420px; min-width: 0; }
.rec-title h1 { font-size: 32px; line-height: 1.1; text-wrap: balance; }
.rec-title h1.wrap { overflow-wrap: anywhere; }
.rec-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 13px; color: var(--ink2); }
.dotsep { color: var(--line); }
.rec-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.rec-side { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-end; }
.kpi .k { font-size: 11px; color: var(--mute); margin-bottom: 2px; }
.kpi .v { display: flex; align-items: baseline; gap: 6px; min-height: 26px; }
.kpi .v.small { font-size: 12px; align-items: center; }
.kpi .unit { font-size: 12px; color: var(--ink2); }
.big { font-family: var(--mono); font-size: 30px; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--navy); }
.rec-side .kpi:not(:first-child) .big { font-size: 24px; }
.muted-big { color: var(--ink2); font-weight: 400; }
.btns { display: flex; gap: 6px; align-self: flex-end; }
.btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); font-size: 12px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--hover); }
.btn.primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn.primary:hover { background: #333; }
.btn.small { height: 22px; padding: 0 8px; font-size: 11px; }
.btn.disabled, .btn:disabled { border: 1px dashed var(--line); background: transparent; color: var(--mute2); cursor: not-allowed; }
.linkbtn { border: 0; background: none; padding: 0; font-size: 11px; color: var(--ink); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.muted { color: var(--mute); }

/* ---- key facts strip ---- */
.facts { display: flex; flex-wrap: wrap; gap: 0 44px; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); margin-bottom: 32px; }
.fact { padding: 4px 0; min-width: 110px; }
.fact .k { font-size: 11px; color: var(--mute); }
.fact .v { display: flex; align-items: center; gap: 6px; height: 22px; font-size: 13px; }

/* ---- columns & panels ---- */
.cols { display: flex; flex-wrap: wrap; gap: 0 40px; align-items: flex-start; }
.cols.top-rule { border-top: 1px solid var(--ink); padding-top: 24px; }
.col-main { flex: 1 1 640px; min-width: 0; }
.col-side { flex: 1 1 380px; min-width: 0; max-width: 100%; }
.col-act { flex: 1 1 320px; min-width: 0; max-width: 100%; }
.panel { border-top: 2px solid var(--navy); margin-bottom: 28px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0 8px; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.panel-head .sub, .panel-head .small, .panel-head a { font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.panel-head .sub { color: var(--mute); }
.panel-head .count { color: var(--ink); }
.panel-head .hint { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: 0; text-transform: none; }
.panel-foot, .note { padding: 8px 0 0; font-size: 11px; color: var(--mute); text-wrap: pretty; }
.panel-foot { border-top: 1px solid var(--hair); padding: 6px 0; }
.kvs .kv, .spec-group .kv { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; align-items: start; padding: 5px 0; min-height: 28px; border-top: 1px solid var(--hair2); }
.kv .k { font-size: 12px; color: var(--mute); padding-top: 1px; }
.kv .v { min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kv-note { font-size: 11px; color: var(--mute); margin-top: 2px; text-wrap: pretty; flex-basis: 100%; }
.kv-hidden { padding: 6px 0 8px; border-top: 1px solid var(--hair2); font-size: 11px; color: var(--mute); font-style: italic; }
.spec-groups { display: flex; flex-wrap: wrap; margin-right: -41px; }
.spec-group { flex: 1 1 240px; min-width: 0; padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--hair3); }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 24px; padding: 8px 0; font-size: 12px; }
.kv-grid > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--hair2); padding: 4px 0; }
.kv-grid .k { color: var(--mute); }
.kv-strip { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 8px 0; border-top: 1px solid var(--hair3); font-size: 12px; }
.kv-strip .k { color: var(--mute); }
.kv-strip .v { font-weight: 500; }

/* ---- ownership chain ---- */
.chain { padding: 10px 0 8px; }
.chain .k { font-size: 11px; color: var(--mute); margin-bottom: 3px; }
.chain-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; padding: 1px 0; }
.chain-row.lead { align-items: flex-start; margin-bottom: 4px; }
.chain-row .glyph { font-family: var(--mono); color: var(--mute2); font-size: 12px; flex: none; }
.chain-row.d1 { padding-left: 0; }
.chain-row.d2 { padding-left: 18px; }
.chain-row .kind { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; flex: none; min-width: 52px; }
.chain-row a { font-weight: 500; overflow-wrap: anywhere; }
.chain-row .self { font-weight: 600; overflow-wrap: anywhere; }
.big-name { font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.thispage { font-size: 10px; padding: 0 5px; height: 15px; display: inline-flex; align-items: center; border: 1px solid var(--navy); color: var(--navy); border-radius: 2px; }
.who { padding: 8px 0; border-top: 1px solid var(--hair3); }
.who .k { font-size: 11px; color: var(--mute); margin-bottom: 2px; }
.who .v { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.person-row { padding: 7px 0; border-bottom: 1px solid var(--hair2); }
.person-row > div:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.person-row .apollo { margin-left: auto; }

/* ---- badges (data badges, not provenance markers) ---- */
.mill { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; background: var(--lav-fg); color: #fff; border-radius: 2px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; vertical-align: middle; }
.tag-derived { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px dashed var(--lav-bd); border-radius: 2px; background: var(--lav-bg); color: var(--lav-fg); font-size: 12px; white-space: nowrap; }
.tag-derived.small { height: 15px; padding: 0 4px; font-size: 10px; background: transparent; vertical-align: middle; }
.tag-absent { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px dashed var(--absent); border-radius: 2px; color: var(--mute); font-size: 12px; font-style: italic; }
.signs { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; background: var(--ink); color: #fff; border-radius: 2px; font-size: 10px; letter-spacing: .04em; white-space: nowrap; vertical-align: middle; }
.type-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid var(--ink); border-radius: 2px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.apollo { font-size: 11px; height: 16px; display: inline-flex; align-items: center; padding: 0 5px; border-radius: 2px; border: 1px solid var(--absent); color: var(--mute); background: transparent; white-space: nowrap; }
.apollo.yes { border-color: #5fa27a; color: #1d6b3a; background: #e8f3ec; }
.conf { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border: 1px solid var(--mute2); background: transparent; color: var(--ink); border-radius: 2px; font-family: var(--sans); font-size: 11px; letter-spacing: 0; text-transform: none; white-space: nowrap; font-weight: 400; }
.conf-verified { color: #1d6b3a; border-color: #5fa27a; background: #e8f3ec; }
.conf-unverified { color: #7a5200; border-color: #cfae5c; background: #fbf4e2; }
.conf-unusable { color: #9b1c1c; border-color: #d08a8a; background: #fbeaea; }
.conf-unknown { color: #5d626b; border-style: dashed; background: #fff; }
.conftext { font-size: 11px; white-space: nowrap; }
.conftext.conf-verified { color: #1d6b3a; } .conftext.conf-sourced { color: var(--ink2); } .conftext.conf-unverified { color: #7a5200; } .conftext.conf-unusable { color: #9b1c1c; } .conftext.conf-unknown { color: var(--mute); font-style: italic; }
.conftext { border: 0; background: none; padding: 0; height: auto; }
.verified { color: var(--user); font-weight: 500; font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; border: 1.5px solid; vertical-align: middle; margin-right: 2px; }
.band { font-size: 10px; color: #4c4a86; }
.dotflag { display: inline-block; width: 8px; height: 8px; border-radius: 4px; border: 1.5px solid var(--absent); }
.dotflag.on { background: #1d6b3a; border-color: #1d6b3a; }
.mask { color: var(--mute2); letter-spacing: .08em; }

/* ---- stage form ---- */
.stage-form { display: flex; align-items: center; gap: 6px; }
.stage-form select { height: 24px; padding: 0 4px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font-size: 12px; }

/* ---- tables ---- */
.tablewrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 12px; }
table.grid th { text-align: left; font-weight: 400; font-size: 11px; color: var(--ink2); padding: 6px 6px; border-bottom: 1px solid var(--ink); vertical-align: bottom; white-space: nowrap; }
table.grid th.on { color: var(--ink); font-weight: 600; }
table.grid th a { color: inherit; }
table.grid th .arrow { font-family: var(--mono); font-size: 10px; color: var(--line); margin-left: 2px; }
table.grid th.on .arrow { color: var(--ink); }
table.grid td { padding: 4px 6px; border-bottom: 1px solid var(--hair2); vertical-align: middle; height: 30px; max-width: 320px; }
table.grid.compact td { height: 26px; padding: 3px 6px; }
table.grid tr.rowlink { cursor: pointer; }
table.grid tr.rowlink:hover td { background: var(--hover); }
table.grid tr.total td { border-bottom: 1px solid var(--hair); color: var(--ink2); background: transparent; }
table.grid td.addr a { font-weight: 500; }
table.grid td.owner { line-height: 1.25; }
table.grid td.owner .parent { display: block; font-size: 11px; color: var(--mute); }
table.grid td.owner .ell { display: block; }
table.grid.list { table-layout: auto; }
table.grid.tenants td, table.grid.dm td { height: 28px; }
table.grid.method td { white-space: normal; vertical-align: top; padding: 6px; font-size: 12px; }
table.grid.method td:first-child { width: 220px; }
.sf-form { display: inline; }
.sf-input { width: 88px; height: 22px; padding: 0 6px; border: 1px solid transparent; border-radius: 2px; background: transparent; font-size: 12px; text-align: right; }
.sf-input::placeholder { color: var(--mute); font-style: italic; font-family: var(--sans); text-align: right; }
.sf-input:hover, .sf-input:focus { border-color: var(--line); background: var(--paper); }
.alloc { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 7px 0; font-size: 12px; border-bottom: 1px solid var(--hair); }
.alloc .k { color: var(--mute); }
.occ-strip, .dm-strip { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 6px 0; border-bottom: 1px solid var(--hair3); font-size: 12px; min-height: 22px; }
.occ-strip .k, .dm-strip .k { color: var(--mute); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hair3); }
.inline-form input[type=text] { height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font-size: 12px; min-width: 200px; }

/* ---- list controls ---- */
.views { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 6px 0; border-top: 1px solid var(--ink); font-size: 12px; }
.views-label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-right: 4px; }
.views a { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.views a.on { border-bottom-color: var(--navy); font-weight: 500; }
.views .saved { display: inline-flex; align-items: center; gap: 2px; }
.views .x { border: 0; background: none; color: var(--mute); cursor: pointer; padding: 0 3px; font-size: 13px; line-height: 1; }
.save-view { margin-left: auto; font-size: 12px; }
.save-view summary { cursor: pointer; color: var(--ink2); list-style: none; }
.save-view form { display: flex; gap: 6px; margin-top: 4px; }
.save-view input { height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 4px 0 8px; border: 1px solid var(--navy); border-radius: 2px; background: #e8eff6; font-size: 12px; }
.chip a { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; color: var(--ink2); font-size: 13px; line-height: 1; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 10px 0 12px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.filters label { display: grid; gap: 3px; min-width: 0; }
.filters label > span { font-size: 11px; color: var(--mute); white-space: nowrap; }
.filters label.grow { flex: 1 1 160px; min-width: 140px; }
.filters select, .filters input[type=text] { height: 26px; padding: 0 4px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font-size: 12px; max-width: 190px; min-width: 0; }
.filters input[type=text] { max-width: none; padding: 0 8px; }
.filters .changed { border-color: var(--navy); background: #e8eff6; }
.filters .apply { display: flex; align-items: center; gap: 10px; height: 26px; }
.filters .apply a { font-size: 12px; color: var(--ink2); }
.pagerrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 0; font-size: 12px; color: var(--ink2); }
.pagerrow .sep { color: var(--line); }
.pager { margin-left: auto; display: flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 11px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 6px; border: 1px solid transparent; border-radius: 2px; }
.pager a.on { border-color: var(--ink); background: var(--paper); }
.pager a.off { color: var(--line); pointer-events: none; }
.pager .gap { padding: 0 4px; color: var(--mute); }

/* ---- dashboard ---- */
.headline { display: flex; flex-wrap: wrap; gap: 0 48px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); margin-bottom: 36px; }
.headline a { display: block; padding: 4px 0; min-width: 120px; }
.headline a:hover { text-decoration: none; }
.headline .v { font-family: var(--mono); font-size: 30px; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--navy); }
.headline .k { font-size: 12px; color: var(--mute); margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 0 56px; align-items: start; }
.chart-panel { margin-bottom: 40px; }
.chart-wrap { position: relative; padding: 14px 0 6px; }
.rows { border-top: 1px solid var(--hair); }
.rows a { display: grid; grid-template-columns: 14px minmax(0, 1fr) 64px 48px 72px; gap: 0 10px; align-items: center; min-height: 24px; font-size: 12px; border-bottom: 1px solid var(--hair2); }
.rows a:hover { background: var(--hover); text-decoration: none; }
.rows .swatch { width: 8px; height: 8px; display: block; }
.rows .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .n { text-align: right; font-weight: 500; }
.rows .pct, .rows .extra { text-align: right; font-size: 11px; color: var(--mute); }
.rows a.muted .lbl { color: var(--mute); font-style: italic; }
.rows a.muted .n { color: var(--mute); font-weight: 400; }
.recent { border-top: 1px solid var(--hair3); padding-top: 4px; }
.recent-row { display: grid; grid-template-columns: 48px 56px minmax(0, 1fr) auto; gap: 0 10px; align-items: center; min-height: 24px; font-size: 12px; border-bottom: 1px solid var(--hair2); }
.kind { font-size: 10px; letter-spacing: .08em; color: var(--mute); }

/* ---- activity ---- */
.act-form { padding: 10px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; }
.act-form input[type=text], .act-form textarea, .act-form input[type=date] { height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font-size: 12px; }
.act-form textarea { height: auto; padding: 6px 8px; resize: vertical; }
.act-form input[type=date] { padding: 0 6px; }
.act-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.act-row .btn { margin-left: auto; }
.radio-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.radio-chips label { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font-size: 11px; cursor: pointer; user-select: none; }
.radio-chips input { display: none; }
.radio-chips label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.act { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hair2); }
.act-when .small { color: var(--ink2); }
.act-subject { font-size: 12px; font-weight: 500; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act-text { font-size: 12px; color: var(--ink2); margin-top: 2px; text-wrap: pretty; }
.act-by { font-size: 11px; color: var(--mute); margin-top: 2px; }
.open-pill { font-size: 10px; padding: 0 5px; height: 15px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; color: var(--ink2); font-weight: 400; }
.open-pill.done { color: var(--mute); border-style: dashed; }

/* ---- import admin ---- */
.bar { height: 6px; background: var(--hair2); border-radius: 2px; overflow: hidden; min-width: 120px; }
.bar span { display: block; height: 100%; background: var(--navy); }
.status { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.status-done { color: #1d6b3a; } .status-running { color: var(--navy); } .status-error { color: #9b1c1c; } .status-pending { color: var(--mute); }
.actions { display: flex; gap: 8px; padding: 10px 0; flex-wrap: wrap; }
.actions form { display: inline; }

@media (max-width: 720px) {
  .topnav { gap: 12px; padding: 0 14px; flex-wrap: wrap; height: auto; }
  .page, .foot, .flash { padding-left: 14px; padding-right: 14px; }
  .dash-grid { grid-template-columns: 1fr; }
  .rec-title h1 { font-size: 24px; }
}
