
:root { color-scheme: light dark;
  --ground: #FBFBFA; --surface: #FFFFFF; --sunken: #FBFBFA; --zebra: #FDFDFC;
  --field: #FFFFFF; --line: #E4E3DF; --line-soft: #F0EFEB; --line-strong: #D5D4CE;
  --ink: #1A1A18; --ink-2: #3D3D39; --muted: #6B6B66; --faint: #75746E;
  --accent: #0A6E62; --accent-hover: #073F38; --accent-fill: #0A5F55;
  --accent-strong: #0A6E62; --mark: #0E8C7D; --accent-bg: #F1F8F6;
  --accent-line: #BFE0DA; --on-accent: #FFFFFF;
  --warn-strong: #B45309; --warn-text: #7A4A12; --warn-bg: #FDF6EC;
  --warn-line: #F0DCC0; --chip-bg: #F4F3F0; --tooltip-bg: #1A1A18;
  --disabled-ink: #8A8982;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141413; --surface: #1C1C1B; --sunken: #232321; --zebra: #201F1E;
    --field: #232321; --line: #343431; --line-soft: #2A2A28; --line-strong: #474742;
    --ink: #F2F1EC; --ink-2: #D6D5CF; --muted: #A5A49D; --faint: #908F88;
    --accent: #5CC8B4; --accent-hover: #8FDDCD; --accent-fill: #46BCA8;
    --accent-strong: #6FD4C2; --mark: #3FB49F; --accent-bg: #16302C;
    --accent-line: #27564E; --on-accent: #0A1F1C;
    --warn-strong: #E0923F; --warn-text: #F0C491; --warn-bg: #2A2118;
    --warn-line: #4A3A22; --chip-bg: #2A2A27; --tooltip-bg: #2F2F2C;
    --disabled-ink: #8E8D87; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans);
       font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
code { font-family: var(--mono); }
h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .inner { max-width: 1180px; margin: 0 auto; padding: 14px 32px; display: flex;
              flex-wrap: wrap; gap: 18px; align-items: center; }
.brand { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.path { font-size: 13px; color: var(--faint); font-family: var(--mono); flex-grow: 1; }
.who { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mark); }
.chip { font-family: var(--mono); font-size: 12px; color: var(--accent);
        background: var(--accent-bg); border: 1px solid var(--accent-line);
        border-radius: 4px; padding: 1px 6px; }

.tabs { background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs .inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; display: flex; gap: 2px; }
.tab { font-size: 14px; color: var(--muted); text-decoration: none; padding: 11px 14px; }
.tab:hover { color: var(--ink); }
.tab.on { font-weight: 500; color: var(--ink); border-bottom: 2px solid var(--accent); }

main { max-width: 1180px; width: 100%; margin: 0 auto; padding: 26px 32px 48px;
       display: flex; flex-direction: column; gap: 20px; }
.lede { font-size: 14px; color: var(--muted); max-width: 72ch; margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.faint { color: var(--faint); font-size: 13px; font-family: var(--mono); }
.mono { font-family: var(--mono); }
.grow { flex-grow: 1; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
         overflow: hidden; }
.panel .head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex;
               flex-wrap: wrap; gap: 10px; align-items: baseline; }
.panel .foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex;
               flex-wrap: wrap; gap: 12px; align-items: center; }

.tiles { display: flex; flex-wrap: wrap; gap: 14px; }
.tile { flex: 1 1 200px; background: var(--surface); border: 1px solid var(--line);
        border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column;
        gap: 5px; }
.tile.warn { border-color: var(--warn-line); }
.tile .label { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.tile .value { font-family: var(--mono); font-size: 26px; font-weight: 500; }
.tile.warn .value { color: var(--warn-strong); }
.tile .hint { font-size: 12px; color: var(--faint); line-height: 1.4; }

.toolbar { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
           padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 14px;
           align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px;
         color: var(--muted); }
select, input { min-height: 38px; padding: 0 10px; border-radius: 7px;
                border: 1px solid var(--line-strong); background: var(--field);
                font-family: var(--sans); font-size: 14px; color: var(--ink); }
input { font-family: var(--mono); }
select:focus, input:focus { outline: none; border-color: var(--accent); }
.field select { min-width: 150px; }
.field input { width: 150px; }

.btn { min-height: 38px; padding: 0 16px; border-radius: 7px; border: none;
       background: var(--accent-fill); color: var(--on-accent); font-family: var(--sans);
       font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
       display: inline-flex; align-items: center; }
.btn.ghost { background: var(--surface); color: var(--accent);
             border: 1px solid var(--accent); }
.btn.quiet { background: var(--surface); color: var(--ink); font-weight: 400;
             border: 1px solid var(--line-strong); }
.btn.off { background: var(--surface); color: var(--disabled-ink); font-weight: 400;
           border: 1px solid var(--line); cursor: default; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }

.seg { display: flex; gap: 2px; border: 1px solid var(--line-strong); border-radius: 7px;
       overflow: hidden; }
.seg a, .seg .on { min-height: 38px; padding: 0 16px; font-size: 14px;
                   text-decoration: none; display: inline-flex; align-items: center; }
.seg a { background: var(--surface); color: var(--ink); }
.seg a:hover { color: var(--accent); }
.seg .on { background: var(--accent-fill); color: var(--on-accent); font-weight: 500; }

.scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
table.grid thead tr { background: var(--sunken); }
table.grid th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted);
                padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.grid th.first, table.grid td.first { padding-left: 20px; }
table.grid th.last, table.grid td.last { padding-right: 20px; }
table.grid th.r, table.grid td.r { text-align: right; }
/* A heading over a run of columns, for a table whose numbers are not all the same kind of
   thing. The line under it is the group's own, so the run reads as one block. */
table.grid tr.groups th { padding: 8px 14px 4px; border-bottom: 0; font-size: 12px;
                          letter-spacing: 0.04em; text-transform: uppercase;
                          color: var(--faint); }
table.grid tr.groups th.group { border-bottom: 1px solid var(--line-soft); }
table.grid tr.groups th.group + th.group,
table.grid th.edge { border-left: 1px solid var(--line-soft); }
table.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
                vertical-align: top; }
table.grid tr.alt { background: var(--zebra); }
table.grid tr:last-child td { border-bottom: 0; }
table.grid td.mono, table.grid td.num { font-family: var(--mono); }
table.grid td.num { text-align: right; }
table.grid td.dim { color: var(--ink-2); }
table.grid td.low { color: var(--warn-strong); font-weight: 500; }
table.grid td a { font-family: var(--mono); text-decoration: none; }
table.grid td a:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }
.stackcell { display: flex; flex-direction: column; gap: 2px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px;
         font-family: var(--mono); border-radius: 5px; padding: 2px 8px;
         color: var(--accent); background: var(--accent-bg);
         border: 1px solid var(--accent-line); }
.badge.warn { color: var(--warn-text); background: var(--warn-bg);
              border-color: var(--warn-line); }
.badge.plain { color: var(--ink-2); background: var(--chip-bg); border-color: var(--line); }

.denied { background: var(--surface); border: 1px solid var(--warn-line);
          border-radius: 10px; overflow: hidden; }
.denied .head { border-bottom: 1px solid var(--line); }
.denied .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
               padding: 13px 20px; border-bottom: 1px solid var(--line-soft); }
.denied .row:last-of-type { border-bottom: 0; }
.denied .row .name { font-family: var(--mono); font-size: 14px; flex: 0 0 auto;
                     text-decoration: none; }
.denied .row .reason { font-family: var(--mono); font-size: 13px;
                       color: var(--warn-strong); }
.denied .why { margin: 0; padding: 13px 20px; font-size: 13px; line-height: 1.55;
               color: var(--warn-text); background: var(--warn-bg);
               border-top: 1px solid var(--warn-line); }

.callout { display: flex; align-items: flex-start; gap: 10px; background: var(--warn-bg);
           border: 1px solid var(--warn-line); border-radius: 8px; padding: 15px 17px;
           font-size: 13px; line-height: 1.55; color: var(--warn-text); }
.callout svg { flex-shrink: 0; margin-top: 2px; color: var(--warn-strong); }
.callout.good { background: var(--accent-bg); border-color: var(--accent-line);
                color: var(--accent); }
.callout.good svg { color: var(--accent); }

.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
         padding: 22px 26px 18px; display: flex; flex-direction: column; gap: 18px; }
.chart .top-line { display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline;
                   justify-content: space-between; }
.chart .total { font-family: var(--mono); font-size: 24px; font-weight: 500; }
.plot { display: flex; gap: 12px; }
.axis { display: flex; flex-direction: column; justify-content: space-between; height: 150px;
        font-family: var(--mono); font-size: 12px; color: var(--faint); text-align: right;
        flex-shrink: 0; }
.field-area { flex-grow: 1; min-width: 0; position: relative; }
.lines { position: absolute; left: 0; right: 0; top: 0; height: 150px; display: flex;
         flex-direction: column; justify-content: space-between; }
.lines i { height: 1px; background: var(--line-soft); }
.lines i.base { background: var(--line); }
.bars { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 2px; }
.bars .col { flex-grow: 1; min-width: 0; height: 100%; display: flex;
             flex-direction: column; justify-content: flex-end; position: relative; }
.bars .bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--mark); }
.bars .col:hover .bar { background: var(--accent-strong); }
.bars .tip { position: absolute; bottom: 100%; left: 50%; margin-left: -62px;
             margin-bottom: 7px; width: 124px; text-align: center; background:
             var(--tooltip-bg); color: var(--on-accent); border-radius: 8px;
             padding: 6px 0; font-size: 12px; font-family: var(--mono); visibility: hidden; }
.bars .col:hover .tip { visibility: visible; }
.ticks { display: flex; gap: 2px; margin-top: 9px; }
.ticks span { flex-grow: 1; min-width: 0; text-align: center; font-size: 11px;
              color: var(--faint); }
.h0 { height: 0%; }
.h1 { height: 1%; }
.h2 { height: 2%; }
.h3 { height: 3%; }
.h4 { height: 4%; }
.h5 { height: 5%; }
.h6 { height: 6%; }
.h7 { height: 7%; }
.h8 { height: 8%; }
.h9 { height: 9%; }
.h10 { height: 10%; }
.h11 { height: 11%; }
.h12 { height: 12%; }
.h13 { height: 13%; }
.h14 { height: 14%; }
.h15 { height: 15%; }
.h16 { height: 16%; }
.h17 { height: 17%; }
.h18 { height: 18%; }
.h19 { height: 19%; }
.h20 { height: 20%; }
.h21 { height: 21%; }
.h22 { height: 22%; }
.h23 { height: 23%; }
.h24 { height: 24%; }
.h25 { height: 25%; }
.h26 { height: 26%; }
.h27 { height: 27%; }
.h28 { height: 28%; }
.h29 { height: 29%; }
.h30 { height: 30%; }
.h31 { height: 31%; }
.h32 { height: 32%; }
.h33 { height: 33%; }
.h34 { height: 34%; }
.h35 { height: 35%; }
.h36 { height: 36%; }
.h37 { height: 37%; }
.h38 { height: 38%; }
.h39 { height: 39%; }
.h40 { height: 40%; }
.h41 { height: 41%; }
.h42 { height: 42%; }
.h43 { height: 43%; }
.h44 { height: 44%; }
.h45 { height: 45%; }
.h46 { height: 46%; }
.h47 { height: 47%; }
.h48 { height: 48%; }
.h49 { height: 49%; }
.h50 { height: 50%; }
.h51 { height: 51%; }
.h52 { height: 52%; }
.h53 { height: 53%; }
.h54 { height: 54%; }
.h55 { height: 55%; }
.h56 { height: 56%; }
.h57 { height: 57%; }
.h58 { height: 58%; }
.h59 { height: 59%; }
.h60 { height: 60%; }
.h61 { height: 61%; }
.h62 { height: 62%; }
.h63 { height: 63%; }
.h64 { height: 64%; }
.h65 { height: 65%; }
.h66 { height: 66%; }
.h67 { height: 67%; }
.h68 { height: 68%; }
.h69 { height: 69%; }
.h70 { height: 70%; }
.h71 { height: 71%; }
.h72 { height: 72%; }
.h73 { height: 73%; }
.h74 { height: 74%; }
.h75 { height: 75%; }
.h76 { height: 76%; }
.h77 { height: 77%; }
.h78 { height: 78%; }
.h79 { height: 79%; }
.h80 { height: 80%; }
.h81 { height: 81%; }
.h82 { height: 82%; }
.h83 { height: 83%; }
.h84 { height: 84%; }
.h85 { height: 85%; }
.h86 { height: 86%; }
.h87 { height: 87%; }
.h88 { height: 88%; }
.h89 { height: 89%; }
.h90 { height: 90%; }
.h91 { height: 91%; }
.h92 { height: 92%; }
.h93 { height: 93%; }
.h94 { height: 94%; }
.h95 { height: 95%; }
.h96 { height: 96%; }
.h97 { height: 97%; }
.h98 { height: 98%; }
.h99 { height: 99%; }
.h100 { height: 100%; }
.stream .row { display: flex; flex-direction: column; gap: 9px; padding: 14px 20px;
               border-bottom: 1px solid var(--line-soft); }
.stream .row:last-of-type { border-bottom: 0; }
.stream .line { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; }
.stream .at { font-family: var(--mono); font-size: 12px; color: var(--faint);
              flex: 0 0 104px; }
.stream .kind { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.stream .kind.warn { color: var(--warn-strong); }
.stream .kind.mark { color: var(--accent); }
.stream a.subject { font-family: var(--mono); font-size: 13px; text-decoration: none; }
.stream .provider { font-family: var(--mono); font-size: 12px; border-radius: 4px;
                    padding: 1px 6px; color: var(--ink-2); background: var(--chip-bg);
                    border: 1px solid var(--line); }
.stream .provider.none { color: var(--faint); background: transparent;
                         border: 1px dashed var(--line); }
.payload { font-family: var(--mono); font-size: 12px; line-height: 1.55;
           color: var(--muted); background: var(--sunken);
           border: 1px solid var(--line-soft); border-radius: 6px; padding: 9px 11px;
           overflow-x: auto; white-space: pre; margin: 0; }

.cols { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.cols .wide { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column;
              gap: 22px; }
.cols .side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column;
              gap: 18px; }
.title-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.title-row h1 { font-family: var(--mono); }
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv th { text-align: left; font-weight: 400; color: var(--muted); padding: 11px 20px;
              border-bottom: 1px solid var(--line-soft); width: 42%;
              font-family: var(--mono); font-size: 13px; }
table.kv td { padding: 11px 20px; border-bottom: 1px solid var(--line-soft);
              font-family: var(--mono); }
table.kv td.empty { color: var(--faint); }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: 0; }
.why { margin: 0; padding: 14px 20px; font-size: 13px; line-height: 1.55;
       color: var(--warn-text); background: var(--warn-bg);
       border-top: 1px solid var(--warn-line); }
.chips { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: baseline; gap: 7px;
              font-family: var(--mono); font-size: 13px; background: var(--sunken);
              border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; }
.chips span i { color: var(--muted); font-style: normal; }
.events .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
               padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.events .row:last-of-type { border-bottom: 0; }
.events .at { font-family: var(--mono); font-size: 12px; color: var(--faint);
              flex: 0 0 96px; }
.events .kind { font-family: var(--mono); font-size: 13px; }
.events .kind.warn { color: var(--warn-strong); }
.events .kind.mark { color: var(--accent); }
.events .detail { font-size: 13px; color: var(--muted); font-family: var(--mono);
                  margin-left: auto; }

form.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
            padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
form.sheet h2 { margin: 0; }
form.sheet label { display: flex; flex-direction: column; gap: 6px; font-size: 13px;
                  color: var(--muted); }
form.sheet label input, form.sheet label select { width: 100%; min-height: 40px; }
form.sheet .note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
form.sheet button { align-self: stretch; min-height: 44px; font-size: 15px; }
.box { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.box .caption { padding: 10px 14px; background: var(--sunken);
                border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.box .line { display: flex; flex-wrap: wrap; justify-content: space-between;
             align-items: baseline; gap: 10px; padding: 10px 14px;
             border-bottom: 1px solid var(--line-soft); }
.box .line:last-child { border-bottom: 0; }
.box .k { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.box .v { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono);
          font-size: 13px; }
.box .was { color: var(--faint); text-decoration: line-through; }
.box .now { color: var(--accent); font-weight: 500; }
.box .same { padding: 12px 14px; font-size: 13px; color: var(--faint); }
.list { margin: 0; padding: 0 0 0 18px; font-size: 13px; line-height: 1.6;
        color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.info { flex: 1 1 300px; min-width: 0; background: var(--surface);
        border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px;
        display: flex; flex-direction: column; gap: 12px; }
.info ol, .info dl { margin: 0; }
.info ol { padding: 0 0 0 20px; font-size: 13px; line-height: 1.6; color: var(--ink-2);
           display: flex; flex-direction: column; gap: 6px; }
.info dl { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.info dt { font-family: var(--mono); color: var(--ink); }
.info dd { margin: 0; color: var(--muted); line-height: 1.5; }
.alias { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono);
         font-size: 13px; }
.alias .from, .alias .arrow { color: var(--faint); }
.enter { padding: 56px 32px; gap: 10px; }
.standbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.remote { border-color: var(--warn-line); }

table.grid.wide { min-width: 1100px; }
table.grid td input { width: 100%; min-width: 86px; min-height: 34px; text-align: right;
                      font-size: 14px; border-color: var(--line); }
table.grid td input.edited { border-color: var(--accent); background: var(--accent-bg);
                             font-weight: 500; }
table.grid td select { width: 100%; min-height: 34px; font-size: 13px; }
/* A date needs ten characters, and the default cell width cuts it at nine. */
table.grid td input.day { min-width: 112px; text-align: left; }
/* The row that is not a row yet: an empty line at the foot of an editable table, dashed so
   that it does not read as a record somebody already entered. */
table.grid tr.fresh td { background: var(--sunken); border-top: 1px dashed var(--line); }
table.grid tr.fresh td input::placeholder { color: var(--faint); }
table.grid td .stackcell { align-items: flex-end; gap: 3px; }
table.grid td.first .stackcell { align-items: flex-start; }
.flag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
        font-size: 12px; color: var(--ink-2); }
.flag input[type=checkbox] { width: 16px; height: 16px; min-height: 0; padding: 0;
                             accent-color: var(--accent); }
.flag.wrap { align-items: flex-start; font-family: var(--sans); font-size: 13px;
             color: var(--ink-2); max-width: 320px; line-height: 1.45; }
.flags { display: flex; flex-direction: column; gap: 7px; }
.apply { align-items: flex-start; background: var(--sunken); }
.apply.live { background: var(--warn-bg); border-top-color: var(--warn-line); }
.apply .title { font-size: 14px; font-weight: 500; display: block; margin-bottom: 10px; }
.apply .box { border: 0; }
.apply .box .line { border-bottom: 1px solid var(--line-soft); padding-left: 0; }
.apply .box .line:last-child { border-bottom: 0; }
.apply .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plan-edit { display: inline-flex; margin-top: 7px; font-size: 12px; color: var(--accent); }
.modal-shade { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .68); }
.plan-dialog[open] { position: fixed; z-index: 101; left: 50%; top: 50%;
                     transform: translate(-50%, -50%); margin: 0; padding: 0;
                     width: min(880px, calc(100vw - 32px)); max-height: 90vh;
                     display: flex; flex-direction: column; overflow: hidden;
                     border: 1px solid var(--line-strong);
                     border-radius: 18px; background: var(--surface); color: var(--ink);
                     box-shadow: 0 24px 80px rgba(0, 0, 0, .32); }
.plan-dialog form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.plan-dialog .modal-head, .plan-dialog .apply, .plan-dialog .modal-actions { flex-shrink: 0; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between;
              gap: 20px; padding: 25px 30px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 4px 0 0; font-size: 24px; }
.modal-head .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
                       color: var(--accent); }
.modal-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
                color: var(--ink-2); text-decoration: none; display: grid; place-items: center;
                font-size: 24px; flex-shrink: 0; }
.modal-close:hover { background: var(--sunken); }
.modal-body { padding: 24px 30px 28px; overflow-y: auto; min-height: 0; }
.modal-body .note { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.modal-identity { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline;
                  font-family: var(--mono); margin-bottom: 20px; }
.modal-identity span:first-child { font-size: 17px; color: var(--ink); }
.modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.modal-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px;
               font-weight: 500; color: var(--ink-2); }
.modal-field input { width: 100%; min-height: 44px; font-size: 15px; }
.modal-flags { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.modal-check { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); }
.modal-check input[type=checkbox] { min-height: 18px; width: 18px; accent-color: var(--accent); }
.modal-actions { padding: 20px 30px; border-top: 1px solid var(--line);
                 display: flex; justify-content: flex-end; }
.plan-dialog .apply { border-top: 1px solid var(--line); padding: 16px 30px;
                      display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.plan-dialog .apply .flag.wrap { display: block; width: 100%; max-width: none; }
.plan-dialog .apply .flag.wrap input { vertical-align: middle; margin-right: 8px; }
.plan-dialog .apply .buttons { justify-content: flex-end; }
.modal-error { color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-line);
               border-radius: 8px; padding: 10px 12px; }
.plan-dialog :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .modal-head, .modal-body, .modal-actions, .plan-dialog .apply { padding-left: 18px; padding-right: 18px; }
  .modal-grid { grid-template-columns: 1fr; }
}
.bars .peak { position: absolute; bottom: 100%; left: 0; right: 0; text-align: center;
              font-family: var(--mono); font-size: 12px; color: var(--ink);
              margin-bottom: 5px; }
.events .list { padding-left: 18px; }
