@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.bd0693c1a36d.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "BRP Title"; src: local("Trade Gothic Next Condensed Heavy Italic"), local("TradeGothicNextLTPro-HvCnIt"), local("Arial Narrow Bold Italic"), local("ArialNarrow-BoldItalic"), url("fonts/barlow-condensed-800-italic.395f8618318e.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "BRP Label"; src: local("Trade Gothic Bold Condensed No. 20"), local("TradeGothicLTStd-BdCn20"), local("Arial Narrow Bold"), local("ArialNarrow-Bold"), url("fonts/barlow-condensed-700-normal.936740600377.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --black: #000;
  --white: #fff;
  --yellow: #ffd200;
  --gray-1: #474546;
  --gray-2: #5c5a5b;
  --gray-3: #c4c8cc;
  --gray-4: #e8e9eb;
  --rail: var(--black);
  --rail-fg: var(--white);
  --rail-mute: var(--gray-3);
  --rail-hover: color-mix(in srgb, var(--gray-1) 45%, var(--black));
  --rail-line: color-mix(in srgb, var(--gray-1) 55%, var(--black));
  --bg: var(--white);
  --panel: var(--white);
  --raise: color-mix(in srgb, var(--gray-4) 55%, var(--white));
  --line: var(--gray-4);
  --fg: var(--black);
  --mute: var(--gray-2);
  --faint: var(--gray-3);
  --brand: var(--yellow);
  --brand-ink: var(--black);
  --on-brand: var(--black);
  --focus: var(--black);
  --ok: #1d8656;
  --warn: #a8690f;
  --bad: #c43a33;
  --ring: color-mix(in srgb, var(--yellow) 55%, transparent);
  --shadow: 0 8px 28px #0000001f;
  --r: 4px;
  --r-sm: 3px;
  --sans: "Trade Gothic LT Std", "Trade Gothic", Arial, Helvetica, sans-serif;
  --title: "BRP Title", "Arial Narrow", sans-serif;
  --label: "BRP Label", "Arial Narrow", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--black); --panel: color-mix(in srgb, var(--gray-1) 18%, var(--black)); --raise: color-mix(in srgb, var(--gray-1) 34%, var(--black)); --line: color-mix(in srgb, var(--gray-1) 55%, var(--black)); --fg: var(--white); --mute: var(--gray-3); --faint: var(--gray-2);
    --brand-ink: var(--yellow); --focus: var(--yellow); --ok: #3cb47c; --warn: #e2a23c; --bad: #ee5f57; --shadow: 0 10px 32px #00000080; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--black); --panel: color-mix(in srgb, var(--gray-1) 18%, var(--black)); --raise: color-mix(in srgb, var(--gray-1) 34%, var(--black)); --line: color-mix(in srgb, var(--gray-1) 55%, var(--black)); --fg: var(--white); --mute: var(--gray-3); --faint: var(--gray-2);
  --brand-ink: var(--yellow); --focus: var(--yellow); --ok: #3cb47c; --warn: #e2a23c; --bad: #ee5f57; --shadow: 0 10px 32px #00000080; color-scheme: dark;
}
html, body { height: 100%; margin: 0; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--fg); font: 13px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.logo-mark { display: block; flex: none; fill: currentColor; }
.mono { font-family: var(--mono); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }

.app { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100%; }
.rail { background: var(--rail); color: var(--rail-fg); border-right: 1px solid var(--rail-line); display: flex; flex-direction: column; gap: 18px; padding: 14px 10px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 8px; color: var(--rail-fg); }
.brand .logo-mark { width: 50px; height: 50px; }
.brand span { font: italic 800 19px/.9 var(--title); text-transform: uppercase; letter-spacing: -.005em; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: var(--r-sm); color: var(--rail-mute); }
.nav a:hover { background: var(--rail-hover); color: var(--rail-fg); }
.nav a[aria-current] { background: var(--rail-hover); color: var(--rail-fg); }
.nav a[aria-current] svg { color: var(--brand); }
.nav a[aria-current]::before { content: ""; position: absolute; left: -10px; top: 5px; bottom: 5px; width: 3px; background: var(--brand); }
.nav svg { width: 16px; height: 16px; flex: none; }
.nav .count { margin-left: auto; font-size: 11px; color: var(--rail-mute); font-variant-numeric: tabular-nums; }
.rail-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; border-top: 1px solid var(--rail-line); }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--brand); color: var(--on-brand); flex: none; }
.mode { font: 700 11.5px/1.2 var(--label); letter-spacing: .04em; text-transform: uppercase; background: var(--brand); color: var(--on-brand); padding: 2px 6px; border-radius: var(--r-sm); }

.main { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; height: 48px; display: flex; align-items: center; gap: 10px; padding-inline: 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { color: var(--faint); }
.crumbs strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .actions { margin-left: auto; display: flex; gap: 6px; }
.view { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.btn { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-sm); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--raise); }
.btn:disabled { opacity: .45; cursor: default; background: var(--panel); }
.btn svg { width: 14px; height: 14px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary { font-weight: 700; }
.btn.primary:hover { background: var(--black); border-color: var(--black); color: var(--yellow); }
.btn.primary:disabled:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--raise); }
.btn.danger { color: var(--bad); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 700 14px/1 var(--label); text-transform: uppercase; letter-spacing: .02em; }
.panel-head > .actions, .panel-head > .mute, .panel-head > form { font: 400 13px/1.45 var(--sans); text-transform: none; letter-spacing: 0; }
.panel-head .actions { margin-left: auto; display: flex; gap: 6px; }
.panel-head .mute { font-weight: 400; }

.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dash > .panel { display: flex; flex-direction: column; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; }
.tile span { display: flex; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 700 14px/1 var(--label); text-transform: uppercase; letter-spacing: .02em; }
.tile strong { padding: 12px 14px 14px; font: italic 800 40px/.95 var(--title); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile.hot { border-top: 4px solid var(--brand); }
.avatar.soft { background: var(--raise); color: var(--fg); }
.group { display: flex; align-items: center; height: 32px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--raise); color: var(--mute); font: 700 12.5px/1 var(--label); text-transform: uppercase; letter-spacing: .04em; }

.rows { display: flex; flex-direction: column; }
.row { display: grid; align-items: center; gap: 12px; min-height: 40px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
a.row:hover, .row.click:hover { background: var(--raise); cursor: pointer; }
.row .title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.inc-row { grid-template-columns: 18px 56px minmax(0, 1fr) auto 92px 44px 22px 52px; }
.act-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
.spawn-row { grid-template-columns: auto minmax(0, 1fr) auto auto; color: var(--fg); text-decoration: none; }
.spawn-row:hover { background: var(--raise); }
.conn-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
.pb-row { grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) 60px 80px; }
.empty { padding: 28px; text-align: center; color: var(--mute); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; display: block; border: 1.5px solid currentColor; flex: none; }
.s-open { color: var(--fg); }
.s-open i { background: var(--brand); border-color: var(--fg); }
.s-closed { color: var(--mute); }
.s-closed i { background: var(--mute); border-color: var(--mute); }
.s-blocked { color: var(--ok); } .s-blocked i { background: var(--ok); }
.s-partial { color: var(--warn); } .s-partial i { background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); }
.s-running { color: var(--warn); } .s-running i { animation: pulse 1s infinite; }
.s-failed { color: var(--bad); } .s-failed i { background: var(--bad); }
.s-new, .s-unblocked { color: var(--mute); }
.s-na { color: var(--mute); } .s-na i { border-style: dashed; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .s-running i, .dot.pending { animation: none; } }

.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-sm); background: var(--raise); color: var(--mute); font: 500 11px var(--mono); white-space: nowrap; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--faint); }
.cmark.logo { position: relative; background: #fff; border-color: var(--line); padding: 2px; }
.cmark.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; display: block; }
.cmark.logo b { position: absolute; right: -5px; bottom: -5px; min-width: 13px; height: 13px; padding: 0 3px; border-radius: 7px; background: var(--fg); color: var(--bg); font: 700 9px/13px var(--mono); text-align: center; box-shadow: 0 0 0 1.5px var(--panel); }
.cmark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--raise); color: var(--fg); font: 600 10px var(--mono); border: 1px solid var(--line); flex: none; }

.incident { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; width: 100%; max-width: 1400px; margin-inline: auto; }
.incident-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.head h1 { font: italic 800 28px/.95 var(--title); text-transform: uppercase; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.head { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 1400px; margin-inline: auto; }
.page { width: 100%; max-width: 1040px; margin-inline: auto; }
.form > span > select.field { width: 100%; }
.head .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--mute); }
.details { white-space: pre-wrap; color: var(--fg); padding: 12px 14px; }
.props { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 12px; padding: 14px; align-items: center; }
.props dt { color: var(--mute); }
.props dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.props select { width: 100%; }
form.props > span:not(.dt) { padding-left: 10px; }

.toolbar { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 5px 8px 5px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar > strong { font-weight: 600; margin-right: 6px; }
.toolbar > strong .mute { font-weight: 400; margin-left: 4px; }
.head-row { min-height: 32px; font-size: 12px; color: var(--mute); background: var(--raise); }
.owner { display: flex; gap: 8px; align-items: center; }
.form-wrap { padding: 18px; }
.toolbar .grow { flex: 1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 700 12.5px/1 var(--label); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); padding: 0 10px; height: 32px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0 10px; height: 38px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--raise); }
tbody tr.sel td { background: color-mix(in srgb, var(--brand) 9%, var(--panel)); }
td.val { font-family: var(--mono); font-size: 12px; width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
th.tool, td.tool { text-align: center; width: 52px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint); vertical-align: middle; }
.dot.blocked { background: var(--ok); border-color: var(--ok); }
.dot.pending { border-color: var(--warn); animation: pulse 1s infinite; }
.dot.failed { background: var(--bad); border-color: var(--bad); }
.dot.na { border: 0; width: 10px; height: 1.5px; border-radius: 0; background: var(--faint); }
input[type="checkbox"] { accent-color: var(--brand); width: 14px; height: 14px; margin: 0; vertical-align: middle; }

.field, select.field, textarea.field { height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); min-width: 0; }
select.field { padding-left: 5px; }
textarea.field { height: auto; padding: 8px 10px; resize: vertical; font-family: var(--mono); font-size: 12px; line-height: 1.6; width: 100%; }
.field:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
.search { width: 220px; }
.filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 40px; padding: 5px 8px 5px 14px; border-bottom: 1px solid var(--line); }
.filters select.field { height: 28px; padding: 0 6px; color: var(--mute); }
.filters select.field.on { color: var(--fg); border-color: var(--fg); background: color-mix(in srgb, var(--brand) 12%, var(--panel)); }
.filters .count { margin-left: auto; color: var(--mute); font-variant-numeric: tabular-nums; padding-right: 6px; }
.list { overflow-x: auto; }
.list .rows { min-width: 980px; }
.list-row { grid-template-columns: var(--cols); cursor: pointer; }
.list-head span[draggable] { cursor: grab; }
.list-head span.drop { box-shadow: inset 3px 0 0 var(--brand), inset 4px 0 0 var(--fg); }
.list-head span.dragging { opacity: .4; }
.list-row:hover { background: var(--raise); }
.list-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-head { min-height: 34px; background: var(--raise); cursor: default; }
.list-head:hover { background: var(--raise); }
.sort { border: 0; background: none; padding: 0; color: var(--mute); font: 700 12.5px/1 var(--label); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sort:hover, .sort.on { color: var(--fg); }
.sort span { font-size: 10px; }
.num-link { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.num-link:hover, .sn-link:hover { text-decoration: underline; }
.sn-link { font-family: var(--mono); font-size: 12px; color: var(--fg); }
.meter { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; color: var(--mute); }
.meter b { display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter b i { display: block; height: 100%; background: var(--ok); }
.who { display: inline-flex; align-items: center; gap: 6px; }
.adder { padding: 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); background: var(--raise); }
.adder .line { display: flex; gap: 6px; justify-content: flex-end; }

.menu { position: relative; }
.menu-list { position: absolute; top: 32px; left: 0; z-index: 20; min-width: 260px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px; display: flex; flex-direction: column; }
.menu-list button { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; }
.menu-list button:hover { background: var(--raise); }
.menu-list .flow { margin-left: auto; }
.menu-right { left: auto; right: 0; min-width: 180px; }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-sm); color: var(--fg); text-decoration: none; }
.menu-list a:hover { background: var(--raise); }
.menu-list a svg { width: 15px; height: 15px; color: var(--mute); }

.tabs { display: flex; gap: 2px; }
.tabs button { border: 0; background: none; height: 26px; padding: 0 10px; border-radius: var(--r-sm); color: var(--mute); cursor: pointer; font-weight: 500; }
.tabs button[aria-pressed="true"] { background: var(--raise); color: var(--fg); }
.tabs .num { margin-left: 4px; color: var(--mute); }

.form { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.form textarea.prose { font-family: var(--sans); font-size: 13px; }
.form label { color: var(--mute); }
.form .top { align-self: start; padding-top: 6px; }
.form-end { grid-column: 2; display: flex; gap: 6px; }
.pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pick select { min-width: 220px; }

.steps { display: flex; flex-direction: column; padding: 18px 18px 0; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 12px; }
.step::before { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.step:last-child::before { display: none; }
.node { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel); font: 500 11px var(--mono); color: var(--mute); position: relative; }
.step-card { border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--panel); }
.step-card select { min-width: 150px; }
.step-card .ctl { display: flex; gap: 2px; margin-left: auto; }
.add-step { margin-left: 40px; }
.pb-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pb-head input { font-size: 16px; font-weight: 600; border: 0; background: none; padding: 0; flex: 1; min-width: 0; }
.pb-head input:focus { outline: none; }

.conn-line { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1.2fr) 130px 150px; gap: 16px; align-items: center; min-height: 48px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.conn-line:last-child { border-bottom: 0; }
.conn-head { min-height: 36px; color: var(--mute); font: 700 12.5px/1 var(--label); text-transform: uppercase; letter-spacing: .04em; }
.conn-name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.conn-actions, .conn-kinds { color: var(--mute); min-width: 0; }
.conn-test { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--mute); font-size: 12px; }
.bluf-form { grid-template-columns: 230px minmax(0, 1fr); }
.bluf-form textarea.field { font-family: var(--sans); font-size: 13px; min-height: 52px; field-sizing: content; max-height: 360px; }
.bluf-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.bluf-state { margin-left: auto; font-weight: 400; font-size: 12px; }
.bluf-send { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.bluf-send label { color: var(--mute); font-size: 12px; }
.bluf-error { color: var(--bad); font-size: 12px; }
.bluf-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.bluf-buttons .btn { justify-content: center; }
.bluf-refresh { align-self: flex-start; color: var(--mute); padding-left: 0; }
.bluf-sent { grid-template-columns: 22px minmax(0, 1fr) auto; }
.bluf-sent .title { font-weight: 400; color: var(--mute); }
.incident-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-panel .side-body { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.side-panel .side-body .btn { margin-left: auto; }
.audit-wrap { overflow-x: auto; }
.audit { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.audit th { text-align: left; font: 700 12.5px/1 var(--label); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); padding: 8px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); }
.audit td { padding: 10px 14px; height: auto; border-bottom: 1px solid var(--line); vertical-align: middle; overflow: hidden; white-space: normal; line-height: 1.45; }
.audit tbody tr:last-child > td { border-bottom: 0; }
.audit tbody > tr:hover > td { background: var(--raise); }
.audit .a-time { width: 172px; white-space: nowrap; color: var(--mute); font-family: var(--mono); font-size: 12.5px; }
.audit.compact { min-width: 700px; }
.audit.compact .a-time { width: 120px; }
.audit .a-user { width: 150px; white-space: nowrap; text-overflow: ellipsis; }
.audit .a-cat { width: 118px; }
.audit .a-event { overflow-wrap: anywhere; }
.audit .a-note { font-size: 12px; margin-top: 2px; }
.audit .a-alert { color: var(--bad); font-weight: 500; }
.audit .a-inc { width: 22%; }
.audit .a-inc a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); text-decoration: none; }
.audit .a-inc a:hover .mono { text-decoration: underline; }
.audit .a-ip { width: 130px; white-space: nowrap; font-size: 12px; }
.cat { font: 700 12.5px/1.2 var(--label); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--mute); }
.cat-block { color: var(--bad); }
.cat-unblock { color: var(--ok); }
.cat-playbook { color: var(--brand-ink); }
.audit tr:has(+ .a-sub) > td { border-bottom: 0; }
.audit .a-sub > td { padding: 0 14px 12px 454px; }
.audit tbody > tr:hover + .a-sub > td, .audit tbody > tr:has(+ .a-sub:hover) > td { background: var(--raise); }
.audit.compact .a-sub > td { padding-left: 402px; }
.a-results table { table-layout: auto; }
.a-results th:nth-child(1), .a-results td:nth-child(1) { width: 130px; white-space: nowrap; }
.a-results th:nth-child(3), .a-results td:nth-child(3) { width: 120px; }
.a-results { margin: 0; }
.a-results summary { cursor: pointer; color: var(--mute); font-size: 12px; width: max-content; }
.a-results summary:hover { color: var(--fg); }
.a-results table { margin-top: 6px; border-collapse: collapse; font-size: 12px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); }
.a-results th, .a-results td { height: auto; white-space: normal; overflow-wrap: anywhere; padding: 5px 10px; border-bottom: 1px solid var(--line); text-align: left; background: none; }
.a-results th { font-weight: 500; color: var(--mute); }
.a-results tr:last-child td { border-bottom: 0; }
.a-results tbody tr:hover td { background: none; }
.r { font-weight: 600; white-space: nowrap; }
.r-success, .r-existing, .r-saved, .r-removed, .r-absent { color: var(--ok); }
.r-simulated, .r-skipped { color: var(--mute); }
.r-failed, .r-unknown { color: var(--bad); }
.r-pending, .r-running { color: var(--warn); }
.audit-filters { flex-wrap: wrap; }
.audit-filters input[type=date] { width: 140px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid var(--line); }
.step-preview { grid-column: 2; margin-top: -4px; }
.step-preview summary { cursor: pointer; color: var(--mute); font-size: 12px; padding: 2px 4px; width: max-content; }
.step-preview summary:hover { color: var(--fg); }
.step-preview-body { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); font-size: 12px; }
.step-preview-body dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.step-preview-body dt { color: var(--mute); }
.step-preview-body dd { margin: 0; overflow-wrap: anywhere; }
.step-preview-body .btn { align-self: flex-start; }
.step-preview-edit { font-size: 12px; align-self: flex-start; }
.job-summary { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.job-form .setting:last-child { border-bottom: 1px solid var(--line); }
.job-time { display: flex; align-items: center; gap: 8px; }
.setting .job-time .field { width: 120px; }
.job-last { display: flex; align-items: center; gap: 10px; min-width: 0; justify-content: flex-end; }
.job-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.panel-head .actions form { margin: 0; }
.settings.settings-wide { max-width: 1100px; }
.tpl-where { margin: 0; padding: 12px 14px 0; color: var(--mute); }
.tpl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 14px 14px; }
.tpl-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tpl-col textarea { min-height: 150px; field-sizing: content; flex: 1; }
.tpl-label { color: var(--mute); font-size: 12px; }
.tpl-preview { flex: 1; margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--bg); font: 12px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.tpl-help { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.panel > .tpl-help { padding: 0 14px 14px; }
.tpl-ref { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 12px; }
.tpl-ref li { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: baseline; padding: 5px 10px; border-bottom: 1px solid var(--line); }
.tpl-ref li:last-child { border-bottom: 0; }
.tpl-ref-head { color: var(--mute); }
.tpl-token { font: 500 11px var(--mono); color: var(--fg); background: var(--raise); border: 1px solid transparent; padding: 2px 6px; border-radius: var(--r-sm); cursor: pointer; }
.tpl-token:hover, .tpl-token:focus-visible { border-color: var(--focus); outline: 0; }
.tpl-sample { font: 11px/1.5 var(--mono); color: var(--mute); white-space: pre-line; overflow-wrap: anywhere; }
.tpl-note { margin: 0; color: var(--mute); font-size: 12px; }
.tpl-note code { font: 11px var(--mono); }
.tpl-end { display: flex; align-items: center; gap: 6px; padding: 0 14px 14px; }
.tpl-end .grow { flex: 1; }
.tpl-email { grid-template-columns: minmax(0, 1fr) auto; }
.email-preview .panel-head { gap: 12px; font-weight: 500; }
.email-preview iframe { display: block; width: 100%; height: calc(100vh - 170px); border: 0; background: var(--gray-4); border-radius: 0 0 var(--r) var(--r); }
@media (max-width: 760px) {
  .tpl { grid-template-columns: minmax(0, 1fr); }
  .tpl-ref li { grid-template-columns: 110px minmax(0, 1fr); gap: 2px 12px; }
  .tpl-ref .tpl-sample { grid-column: 2; }
  .tpl-ref-head span:last-child { display: none; }
}
.emails { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 30px; padding: 3px 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); cursor: text; min-width: 0; }
.emails:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
.emails-input { flex: 1; min-width: 140px; height: 22px; padding: 0 5px; border: 0; background: transparent; outline: none; }
.email-chip { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 2px 0 8px; border-radius: 11px; background: var(--raise); border: 1px solid var(--line); font-size: 12px; max-width: 100%; min-width: 0; white-space: nowrap; cursor: default; }
.email-chip span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.contacts-list .email-chip { padding-right: 8px; }
.props .top { align-self: start; padding-top: 7px; }
.email-chip.bad { color: var(--bad); border-color: var(--bad); }
.email-chip button { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--mute); cursor: pointer; font-size: 14px; line-height: 1; }
.email-chip button:hover { background: var(--line); color: var(--fg); }
.step-note { flex: 1; color: var(--mute); font-size: 12px; }
.props .emails { width: 100%; }
.contacts-list { display: flex; flex-wrap: wrap; gap: 4px; }
.incident.bluf { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 760px) {
  .conn-line { grid-template-columns: minmax(0, 1fr) auto auto; }
  .conn-line > :nth-child(2), .conn-line > :nth-child(3) { display: none; }
}

.toast { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); box-shadow: var(--shadow); font-weight: 500; transition: opacity .2s, transform .2s; }
.toast[hidden] { display: block !important; opacity: 0; transform: translateY(6px); pointer-events: none; }

@media (max-width: 1200px) {
  .incident, .incident.bluf { grid-template-columns: minmax(0, 1fr); }
  .bluf-side { position: static; }
}
@media (max-width: 1020px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3 { grid-column: auto; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .hide-sm, .nav-group { display: none !important; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; padding-block: 8px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); overflow-x: auto; }
  .brand span, .nav .count, .rail-foot a, .rail-foot .mode { display: none; }
  .rail-foot { margin: 0 0 0 auto; padding: 0; border: 0; }
  .nav { flex-direction: row; }
  .nav a { white-space: nowrap; }
  .bar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .view { padding-block: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .inc-row { grid-template-columns: 18px 48px minmax(0, 1fr) auto; }
  .inc-row .hide-sm { display: none; }
  .pb-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pb-row .hide-sm { display: none; }
  .search { width: 100%; }
  .list .rows { min-width: 0; }
  .list-row { grid-template-columns: var(--cols-small); }
  .list-row .hide-sm { display: none; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form-end { grid-column: 1; }
  .bar .actions .label { display: none; }
}

.rail-foot a { display: flex; align-items: center; gap: 8px; color: var(--rail-fg); min-width: 0; }
.rail-foot form { margin: 0; }
.rail-back { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; color: var(--rail-mute); border-radius: var(--r-sm); }
.rail-back:hover { background: var(--rail-hover); color: var(--rail-fg); }
.nav-group { padding: 14px 8px 4px; font: 700 12.5px/1 var(--label); color: var(--rail-mute); text-transform: uppercase; letter-spacing: .05em; }
.notice { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.notice.error { color: var(--bad); }
.errors { color: var(--bad); padding: 0 14px 10px; font-size: 12px; }
.settings { max-width: 860px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.settings h1 { font: italic 800 28px/.95 var(--title); text-transform: uppercase; margin: 0; letter-spacing: -.005em; }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting span:first-child { font-weight: 500; }
.segment { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.segment button { border: 0; background: var(--panel); height: 28px; padding: 0 12px; cursor: pointer; color: var(--mute); font-weight: 500; }
.segment button + button { border-left: 1px solid var(--line); }
.segment button[aria-pressed="true"] { background: var(--raise); color: var(--fg); }
.type-row { grid-template-columns: minmax(0, 1fr) 180px 80px 60px 70px; }
.form-wrap .form + .form-end { margin-top: 12px; }
.form .errorlist { grid-column: 2; margin: -6px 0 0; padding: 0; list-style: none; color: var(--bad); font-size: 12px; }
.mono-input { font-family: var(--mono); font-size: 12px; }
.inline-field { width: 100%; }
.props form { margin: 0; }
.props .field { width: 100%; }
.builder-actions { display: flex; gap: 6px; padding: 0 18px 18px 58px; }
.check-row { display: flex; align-items: center; gap: 8px; }
.test-out { font-size: 12px; }
.test-out.ok { color: var(--ok); }
.test-out.bad { color: var(--bad); overflow-wrap: anywhere; }
.tabs .tab { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-sm); color: var(--mute); font-weight: 500; }
.tabs .tab[aria-pressed="true"] { background: var(--raise); color: var(--fg); }
.sort span { font-size: 10px; }
.props .dt { color: var(--mute); }
[x-cloak] { display: none !important; }
.adder-pop { width: min(580px, calc(100vw - 32px)); padding: 8px; gap: 8px; }
.adder-pop .line { display: flex; justify-content: flex-end; }
.role-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 70px; }
.member-row { grid-template-columns: 22px minmax(0, 1fr) 100px 160px 80px 32px; min-height: 52px; }
.member-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.member-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-mail { color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-menu .btn { width: 30px; padding: 0; justify-content: center; }
.member-menu .menu-list { min-width: 180px; top: 34px; }
.menu-list button.danger { color: var(--bad); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.btn.danger.confirm { border-color: var(--bad); }
.member-row.off { opacity: .55; }
.member-row form { margin: 0; }
.add-member { display: flex; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.add-member input { flex: 1; min-width: 160px; }
.add-member select { width: 160px; }
.setting .field { width: 260px; max-width: 100%; }
.setting input[type="checkbox"] { width: 16px; height: 16px; }
label.setting { cursor: pointer; }

.sim-bar { background: var(--brand); color: var(--on-brand); text-align: center; font: 700 13px/16px var(--label); letter-spacing: .06em; text-transform: uppercase; padding: 3px 0; position: sticky; top: 0; z-index: 6; }
.simulation .bar { top: 22px; }
.simulation .dot.blocked { background: transparent; border-color: var(--ok); }
th.tool.off { color: var(--faint); }
.switch { position: relative; display: inline-block; width: 32px; height: 18px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 9px; background: var(--line); transition: background .15s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); transition: transform .15s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(14px); }
.switch input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 1px; }
.switch.disabled, .switch.disabled input { cursor: not-allowed; opacity: .45; }
.connector-setting .who { gap: 10px; }

.rail-foot a { flex: 1; }
.rail-icon { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: var(--r-sm); background: none; color: var(--rail-mute); cursor: pointer; }
.rail-icon:hover { background: var(--rail-hover); color: var(--rail-fg); }
.rail-icon svg { width: 15px; height: 15px; }

@media (max-width: 1100px) {
  .member-row { grid-template-columns: 22px minmax(0, 1fr) 150px 32px; }
  .member-row > :nth-child(3), .member-row > :nth-child(5) { display: none; }
}
@media (max-width: 760px) {
  .member-row { grid-template-columns: 22px minmax(0, 1fr) 120px 32px; }
  .type-row { grid-template-columns: minmax(0, 1fr) 50px 80px; }
  .role-row { grid-template-columns: minmax(0, 1fr) 70px; }
}
.error-page { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 40px 0; }
.error-page strong { font: italic 800 72px/.9 var(--title); letter-spacing: -.01em; color: var(--fg); box-shadow: inset 0 -.22em 0 var(--brand); padding: 0 .06em; }
.error-page span { color: var(--mute); }
.auth { --field: var(--panel); min-height: 100%; display: flex; flex-direction: column; align-items: center; font-size: 14px; line-height: 1.5; padding: clamp(28px, 9vh, 96px) max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth { --field: var(--bg); } }
:root[data-theme="dark"] .auth { --field: var(--bg); }
.auth-top { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-bottom: 22px; width: 100%; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--fg); }
.auth-brand .logo-mark { width: 64px; height: 64px; }
.auth-brand span { font: italic 800 26px/.9 var(--title); text-transform: uppercase; letter-spacing: -.005em; }
.auth-steps { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--mute); }
.auth-steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.auth-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line); margin-right: 2px; }
.auth-steps .n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--faint); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.auth-steps .n b { font-weight: 600; }
.auth-steps .n svg { width: 11px; height: 11px; display: none; stroke-width: 1.8; }
.auth-steps li.current { color: var(--fg); font-weight: 500; }
.auth-steps li.current .n { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.auth-steps li.done .n { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.auth-steps li.done .n b { display: none; }
.auth-steps li.done .n svg { display: block; }
.auth-steps li.done + li::before { background: var(--mute); }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r); box-shadow: 0 1px 2px #0000000a, 0 12px 40px -12px #0000001f; animation: auth-rise .32s cubic-bezier(.2, .8, .2, 1) both; }
.auth-card.wide { max-width: 456px; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes auth-shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.auth-step { display: flex; flex-direction: column; gap: 14px; padding: 28px; margin: 0; }
.auth-step.center { align-items: center; text-align: center; }
.auth-step.center > .btn, .auth-step.center > .auth-summary { align-self: stretch; }
.auth-step h1 { margin: 0; font: italic 800 30px/.95 var(--title); text-transform: uppercase; letter-spacing: -.005em; }
.auth-sub { margin: 4px 0 0; color: var(--mute); }
.auth-head, .auth-step > h1 { margin-bottom: 6px; }
.auth-row { display: flex; flex-direction: column; gap: 6px; }
.auth-row label, .auth-label { color: var(--mute); font-size: 12px; font-weight: 500; }
.auth .field { height: 38px; width: 100%; padding: 0 12px; border-radius: var(--r); background: var(--field); }
.auth .btn { height: 38px; padding: 0 14px; border-radius: var(--r); justify-content: center; }
.auth .btn.primary { font-weight: 600; }
.auth .btn.primary:disabled { background: var(--raise); border-color: var(--line); color: var(--faint); opacity: 1; cursor: not-allowed; }
.auth .btn.sm { height: 28px; padding: 0 9px; border-radius: var(--r-sm); font-size: 12px; gap: 5px; }
.auth .btn.sm svg { width: 13px; height: 13px; }
.auth .btn.copied { color: var(--ok); }
.auth-sso { gap: 10px; font-weight: 500; text-decoration: none; }
.auth-sso svg { width: 16px; height: 16px; flex: none; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-link { align-self: center; padding: 0; border: 0; background: none; color: var(--mute); font-size: 13px; cursor: pointer; border-radius: var(--r-sm); }
.auth-link:hover { color: var(--fg); text-decoration: underline; }
.auth-error { color: var(--bad); font-size: 12.5px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); border-radius: var(--r); }
.auth-fault { margin: 0; color: var(--bad); font-size: 12.5px; }
.auth-fault:empty { display: none; }
.auth-note { width: 100%; max-width: 400px; margin-bottom: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); font-size: 12.5px; }
.auth-step .auth-note { margin: 0; max-width: none; }
.auth-foot { margin: 18px 0 0; font: 700 12.5px/1 var(--label); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.auth-ident { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); min-width: 0; }
.auth-ident > div { min-width: 0; }
.auth-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--mute); flex: none; }
.auth-mail { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-meta { font-size: 12px; color: var(--mute); }
.auth-pw { position: relative; }
.auth-pw .field { padding-right: 42px; }
.auth-eye { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r-sm); color: var(--mute); cursor: pointer; }
.auth-eye:hover { color: var(--fg); background: var(--raise); }
.auth-eye svg { width: 16px; height: 16px; }
.auth-eye .slash { opacity: 0; }
.auth-eye[aria-pressed="true"] .slash { opacity: 1; }
.auth-rules { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--mute); }
.auth-rules li { display: flex; align-items: center; gap: 8px; }
.auth-rules i { width: 12px; height: 12px; display: grid; place-items: center; flex: none; }
.auth-rules i::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.auth-rules li.ok { color: var(--fg); }
.auth-rules li.ok i::before { width: 9px; height: 5px; border-radius: 0; background: none; border-left: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); transform: translateY(-1px) rotate(-45deg); }
.auth-scan { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); }
.auth-qr { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px; line-height: 0; }
.auth-qr svg { width: 100%; height: auto; display: block; }
.auth-scan-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.auth-key { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.auth-key code { font: 500 12.5px/1.5 var(--mono); overflow-wrap: anywhere; user-select: all; }
.auth .auth-key .btn { width: 28px; height: 28px; padding: 0; border-radius: var(--r-sm); flex: none; }
.auth-apps { margin: 0; font-size: 12.5px; color: var(--mute); }
.auth-otp { display: flex; justify-content: space-between; gap: 8px; }
.auth .auth-otp .field { flex: 1 1 0; min-width: 0; max-width: 52px; height: 54px; padding: 0; text-align: center; font: 500 22px/1 var(--mono); border-radius: var(--r); }
.auth-otp .field:nth-child(4) { margin-left: 10px; }
.auth-otp.bad { animation: auth-shake .32s linear; }
.auth-otp.bad .field { border-color: var(--bad); }
.auth-codes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-actions { display: flex; gap: 8px; }
.auth-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.auth-codes li { display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; background: var(--field); }
.auth-codes li span { color: var(--faint); font: 11px var(--mono); }
.auth-codes code { font: 500 14px/1.2 var(--mono); letter-spacing: .04em; }
.auth-check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.auth-check input { width: 16px; height: 16px; }
.auth-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); color: var(--mute); }
.auth-badge svg { width: 20px; height: 20px; }
.auth-badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.auth-summary { margin: 4px 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); text-align: left; font-size: 13px; }
.auth-summary li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.auth-summary li + li { border-top: 1px solid var(--line); }
.auth-summary span { color: var(--mute); font-size: 12.5px; }
@media (max-width: 480px) {
  .auth-step { padding: 22px 18px; }
  .auth-steps li:not(.current) .t { display: none; }
  .auth-steps li + li::before { width: 20px; }
  .auth-scan { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .auth-qr { width: 168px; }
  .auth-scan-side { width: 100%; }
  .auth-key code { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .auth-card, .auth-otp.bad { animation: none; } }
.password-pop { display: flex; flex-direction: column; gap: 6px; padding: 8px; width: 260px; right: 0; left: auto; }
.password-pop .field { width: 100%; }
.profile-password { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 14px; max-width: 560px; }
.profile-password label { color: var(--mute); }
.profile-password .errorlist { grid-column: 2; margin: -4px 0 0; padding: 0; list-style: none; color: var(--bad); font-size: 12px; }
.profile-password .end { grid-column: 2; }
@media (max-width: 760px) { .profile-password { grid-template-columns: minmax(0, 1fr); } .profile-password .errorlist, .profile-password .end { grid-column: 1; } }

.intel-row { grid-template-columns: 18px 56px minmax(0, 1fr) 150px 56px 80px 120px 100px 64px; }
.x-active { color: var(--ok); } .x-active i { background: var(--ok); border-color: var(--ok); }
.x-expiring { color: var(--warn); } .x-expiring i { background: var(--warn); border-color: var(--warn); }
.x-expired { color: var(--mute); } .x-expired i { background: transparent; }
.x-never { color: var(--mute); } .x-never i { border-style: dashed; }
.x-text-expiring { color: var(--warn); }
.x-text-expired, .x-text-never { color: var(--mute); }
.protected-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px 80px; }
.s-protected { color: var(--warn); }
.s-protected i { border-style: dashed; }
td.seen { white-space: nowrap; }
td.seen .chip { margin-right: 4px; color: var(--fg); }
td.seen .chip:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .intel-row { grid-template-columns: 18px 48px minmax(0, 1fr) 64px; }
  .protected-row { grid-template-columns: minmax(0, 1fr) 80px; }
}
th.tool .cmark { width: 22px; height: 22px; font-size: 10px; }
th.tool.off .cmark { opacity: .35; filter: grayscale(1); }
@media (max-width: 760px) { th.tool, td.tool, th.seen, td.seen { display: none; } }

.code-input { font-family: var(--mono); font-size: 18px !important; letter-spacing: .2em; text-align: center; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding: 16px 18px; font-size: 14px; }
.source-row { grid-template-columns: minmax(0, 1fr) 180px 100px 60px 70px; }
@media (max-width: 760px) { .source-row { grid-template-columns: minmax(0, 1fr) 50px 80px; } }

.iocbox { --lh: 24px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); min-width: 0; container-type: inline-size; overflow: hidden; }
.iocbox:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
.iocbox textarea.field { display: block; border: 0; border-radius: 0; box-shadow: none; background: transparent; margin: 0; }
.iocbox-gut, .iocbox-ann, .iocbox-back, .iocbox-sum:empty { display: none; }
.iocbox.live .iocbox-ed { display: grid; grid-template-columns: 38px minmax(0, 1fr) 204px; }
.iocbox.live .iocbox-gut, .iocbox.live .iocbox-ann { display: block; overflow: hidden; padding-top: 8px; }
.iocbox-gut { user-select: none; }
.iocbox .ln { height: var(--lh); padding-right: 10px; text-align: right; font: 11px/var(--lh) var(--mono); color: var(--faint); cursor: pointer; }
.iocbox .ln.is-bad { color: var(--bad); }
.iocbox .ln.is-dup, .iocbox .ln.is-guard, .iocbox .ln.is-none { color: var(--warn); }
.iocbox .ln.cur { color: var(--fg); }
.iocbox-main { position: relative; overflow: hidden; }
.iocbox.live .iocbox-back { display: block; position: absolute; inset: 0; padding: 8px 10px 8px 2px; overflow: hidden; pointer-events: none; }
.iocbox-back > div { width: max-content; }
.iocbox .l { height: var(--lh); white-space: pre; }
.iocbox .l.is-bad { color: var(--bad); }
.iocbox .l.is-dup { color: var(--faint); }
.iocbox .l.is-guard, .iocbox .l.is-none { color: var(--warn); }
.iocbox .l.is-known { color: var(--mute); }
.iocbox.live textarea.field, .iocbox-back { font: 12px/var(--lh) var(--mono); font-variant-ligatures: none; letter-spacing: 0; tab-size: 4; }
.iocbox.live textarea.field { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px 10px 8px 2px; resize: none; color: transparent; caret-color: var(--fg); white-space: pre; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
.iocbox.live textarea.field::selection { background: color-mix(in srgb, var(--fg) 15%, transparent); color: transparent; }
.iocbox .a { display: flex; align-items: center; justify-content: flex-end; gap: 6px; height: var(--lh); padding-right: 12px; font-size: 11.5px; color: var(--mute); white-space: nowrap; cursor: default; }
.iocbox .a i { font-style: normal; color: var(--faint); }
.iocbox .a.is-bad { color: var(--bad); }
.iocbox .a.is-dup, .iocbox .a.is-guard, .iocbox .a.is-none { color: var(--warn); }
.iocbox .a .sm { display: none; }
.iocbox .sc { padding: 0; border: 0; border-radius: 3px; background: none; font: inherit; color: var(--fg); cursor: pointer; }
.iocbox .sc:hover { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.iocbox .sc:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.iocbox .dots { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.iocbox .dots u { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.iocbox .dots u.no { background: var(--faint); transform: scale(.34); }
.iocbox .dots u.off { background: none; }
.iocbox .l, .iocbox .ln, .iocbox .a, .iocbox .lg { transition: opacity .12s; }
.iocbox .dim { opacity: .25; }
.iocbox-sum { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; min-height: 38px; padding: 7px 12px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--raise) 45%, var(--panel)); }
.iocbox-tally { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--mute); white-space: nowrap; }
.iocbox-tally span + span::before { content: "·"; margin: 0 7px; color: var(--faint); }
.iocbox-tally b { color: var(--fg); font-weight: 600; }
.iocbox-tally .is-bad { color: var(--bad); }
.iocbox-tally .is-dup, .iocbox-tally .is-guard, .iocbox-tally .is-none { color: var(--warn); }
.iocbox-legend { display: flex; align-items: center; gap: 16px; }
.iocbox .lg { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: default; }
.iocbox .lg .cmark { width: 18px; height: 18px; }
.iocbox .lg .cmark b { right: -4px; bottom: -4px; min-width: 10px; height: 10px; padding: 0 2px; font-size: 7.5px; line-height: 10px; }
.iocbox .lg.off { color: var(--faint); }
.iocbox .lg.off .cmark { opacity: .38; filter: grayscale(1); }
@container (max-width: 560px) {
  .iocbox.live .iocbox-ed { grid-template-columns: 30px minmax(0, 1fr) 98px; }
  .iocbox .ln { padding-right: 8px; }
  .iocbox .a { padding-right: 10px; font-size: 11px; }
  .iocbox .a .lgx, .iocbox .dots { display: none; }
  .iocbox .a .sm { display: inline; }
  .iocbox-legend { gap: 14px; }
}
@media (max-width: 760px) {
  #iocs .toolbar { position: relative; }
  .menu:has(> .adder-pop) { position: static; }
  .adder-pop { left: 8px; right: 8px; top: 38px; width: auto; }
}
