/* Buttons ---------------------------------------------------------------- */
.btn {
  --b: var(--line-strong); --bg-b: var(--surface); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--b); background: var(--bg-b); color: var(--fg);
  font-weight: 500; font-size: 13px; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn svg { width: 14px; height: 14px; stroke-width: 2; }
.btn:hover { --bg-b: var(--surface-2); }
.btn:active { --bg-b: var(--surface-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { --b: var(--accent); --bg-b: var(--accent); --fg: var(--accent-ink); }
.btn--primary:hover { --bg-b: var(--accent-2); --b: var(--accent-2); }
.btn--primary:active { --bg-b: var(--accent-2); }
.btn--danger { --fg: var(--crit); }
.btn--danger:hover { --b: var(--crit); --bg-b: var(--crit-soft); }
.btn--ghost { --b: transparent; --bg-b: transparent; --fg: var(--ink-2); }
.btn--ghost:hover { --bg-b: var(--surface-3); color: var(--ink); }
.btn--sm { height: 26px; padding: 0 9px; font-size: 12px; }
.btn--lg { height: 32px; padding: 0 14px; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy svg { display: none; }
.btn.is-busy::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}

/* Panels ----------------------------------------------------------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.panel__head { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 42px; border-bottom: 1px solid var(--line); }
.panel__title { font-size: 13px; font-weight: 600; margin: 0; }
.panel__meta { color: var(--ink-3); font-size: 12px; margin-left: auto; }
.panel__body { padding: 14px; }
.panel__link { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--accent); border: 0; background: none; padding: 0; }
.panel__link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* KPI strip: one bordered row of cells, not floating cards. */
.kpis { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.kpi { padding: 12px 16px 13px; position: relative; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi__label { font-size: 12px; color: var(--ink-3); }
.kpi__value { font: 600 24px/1.2 var(--font-ui); margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi__value small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.kpi__foot { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kpi--alert .kpi__value { color: var(--crit); }

/* Badges ----------------------------------------------------------------- */
.sev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.sev::before { content: ""; width: 3px; height: 12px; border-radius: 1px; background: var(--c); }
.sev--CRITICAL { --c: var(--sev-1); }
.sev--HIGH { --c: var(--sev-2); }
.sev--MEDIUM { --c: var(--sev-3); }
.sev--LOW { --c: var(--sev-4); }

/* Status chips are neutral (outlined, ink text); only the leading dot carries
   the state colour, which keeps dense tables calm and readable. */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px 0 6px; border-radius: 3px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap; letter-spacing: .01em;
  color: var(--ink-2); background: var(--badge-bg); border: 1px solid var(--badge-line);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--c, var(--low)); }
.pill--BLOCK, .pill--ISOLATE, .pill--CONFIRMED, .pill--ATTACK_SUCCEEDED, .pill--EXPOSED, .pill--FAILED { color: var(--ink); }
.pill--NEW { --c: var(--accent); --cs: var(--accent-soft); }
.pill--INVESTIGATING { --c: var(--high); --cs: var(--high-soft); }
.pill--INVESTIGATING::before { animation: pulse 1.6s infinite; }
.pill--CONFIRMED, .pill--ATTACK_SUCCEEDED, .pill--BLOCK, .pill--EXPOSED { --c: var(--crit); --cs: var(--crit-soft); }
.pill--CONTAINED, .pill--MITIGATED, .pill--ATTACK_FAILED, .pill--ACTIVE { --c: var(--ok); --cs: var(--ok-soft); }
.pill--FALSE_POSITIVE, .pill--CLOSED, .pill--RECON_ONLY, .pill--DISABLED { --c: var(--low); --cs: var(--low-soft); }
.pill--ISOLATE { --c: var(--high); --cs: var(--high-soft); }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 3px; font: 11.5px var(--font-mono); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag--warn, .tag--ok { background: var(--badge-bg); color: var(--ink-2); border-color: var(--badge-line); }
.tag--warn::before, .tag--ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.tag--warn::before { background: var(--crit); }
.tag--ok::before { background: var(--ok); }
.flow { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.flow svg { width: 11px; height: 11px; color: var(--ink-3); }

/* Tables ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3);
  padding: 0 12px; height: 34px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2);
}
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.is-clickable { cursor: pointer; }
.table tbody tr.is-clickable:hover { background: var(--surface-2); }
.table tbody tr.is-dim { color: var(--ink-3); }
.table tbody tr.is-dim .cell-main { font-weight: 400; }
.table .cell-main { font-weight: 500; max-width: 560px; }
.table .cell-sub { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 1px; }
.table .num { text-align: right; font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.table th.num { font-family: var(--font-ui); font-size: 12px; }
.table-foot { font-size: 12px; color: var(--ink-3); padding: 8px 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rows-in > * { animation: fade-in .25s both; animation-delay: calc(var(--i, 0) * 15ms); }

/* Forms ------------------------------------------------------------------ */
.field { display: grid; gap: 5px; }
.field > span { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; height: 30px; padding: 0 9px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 13px;
}
.textarea { height: auto; min-height: 96px; padding: 7px 9px; resize: vertical; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; }
.select { appearance: none; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%237a818c' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input--mono { font-family: var(--font-mono); font-size: 12.5px; }
.input.is-invalid { border-color: var(--crit); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 9px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon .input { padding-left: 29px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .span-2 { grid-column: span 2; }
.form-error { color: var(--crit); font-size: 12.5px; min-height: 18px; }

/* Segmented control: joined buttons with a shared border. */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; flex-wrap: wrap; }
.seg button {
  border: 0; background: var(--surface); height: 28px; padding: 0 10px;
  font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center;
}
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button:hover { background: var(--surface-2); color: var(--ink); }
.seg button.is-on { background: var(--surface-3); color: var(--ink); font-weight: 500; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.seg .n { font: 11px var(--font-mono); color: var(--ink-3); }

.switch { position: relative; width: 30px; height: 18px; flex: none; border: 0; padding: 0; border-radius: 9px; background: var(--line-strong); transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(12px); }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.toolbar .input-icon { flex: 1; min-width: 200px; max-width: 320px; }
.toolbar__end { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; align-items: center; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  height: 40px;
  padding: 0 12px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
}
.tab svg {
  width: 15px;
  height: 15px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); font-weight: 600; }
.tab.is-on::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; background: var(--accent); }

/* Lists ------------------------------------------------------------------ */
.list__item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.list__item:last-child { border-bottom: 0; }
.list__item.is-clickable { cursor: pointer; }
.list__item.is-clickable:hover { background: var(--surface-2); }
.list__title { font-weight: 500; font-size: 13px; }
.list__sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.feed { display: grid; }
.feed__item { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.feed__item:last-child { border-bottom: 0; }
.feed__time { font: 11.5px/1.7 var(--font-mono); color: var(--ink-3); }
.feed__text { color: var(--ink-2); }
.feed__text b { color: var(--ink); font-weight: 500; }
.feed__detail { color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.feed__item--crit .feed__time { color: var(--crit); }
.feed__item--warn .feed__time { color: var(--high); }

.empty { display: grid; place-items: center; text-align: center; gap: 4px; padding: 36px 20px; color: var(--ink-3); font-size: 13px; }
.empty svg { width: 20px; height: 20px; color: var(--ink-3); margin-bottom: 4px; }
.empty b { color: var(--ink-2); font-weight: 500; }

.code {
  margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line);
  font: 12px/1.6 var(--font-mono); white-space: pre-wrap; word-break: break-all; color: var(--ink-2); max-height: 320px; overflow: auto;
}
mark { background: var(--crit-soft); color: var(--crit); padding: 0 1px; }
[data-theme="dark"] .code { background: #0c0e11; }

.dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; min-width: 0; }

.notice { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); font-size: 12.5px; color: var(--ink-2); }
.notice svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--accent); }
.notice--warn { border-left-color: var(--high); }
.notice--warn svg { color: var(--high); }

.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 3px; min-height: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); animation: shimmer 1.2s infinite; }

.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
.live-dot--warn { background: var(--high); }
.live-dot--off { background: var(--ink-3); }

.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter__track { width: 56px; height: 4px; background: var(--surface-3); overflow: hidden; }
.meter__fill { height: 100%; background: var(--c, var(--accent)); transform-origin: left; animation: grow-x .5s var(--ease-out) both; }

.section-title { font-size: 12px; color: var(--ink-3); font-weight: 500; margin: 0 0 8px; }

/* Overlays --------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 12, 16, .4); z-index: 60; animation: fade-in .15s both; }
.scrim.is-leaving { animation: fade-out .15s both; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); z-index: 61;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; animation: drawer-in .22s var(--ease-out) both;
}
.drawer.is-leaving { animation: drawer-out .15s ease-in both; }
.drawer__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 4px 0 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 18px; display: grid; gap: 18px; align-content: start; }
.drawer__foot { display: flex; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.eyebrow { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.modal {
  position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); z-index: 61;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  animation: modal-in .18s var(--ease-out) both; max-height: 80vh; display: flex; flex-direction: column;
}
.modal.is-leaving { animation: modal-out .12s ease-in both; }
.modal__head { padding: 16px 18px 0; }
.modal__title { font-size: 16px; font-weight: 600; margin: 2px 0 0; }
.modal__body { padding: 14px 18px; overflow-y: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--surface-2); align-items: center; }
.modal__foot .form-error { margin-right: auto; }

.palette { top: 14vh; }
.palette__input { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border-bottom: 1px solid var(--line); }
.palette__input svg { width: 16px; height: 16px; color: var(--ink-3); }
.palette__input input { flex: 1; border: 0; background: transparent; font-size: 14px; outline: none; min-width: 0; }
.palette__results { max-height: 54vh; overflow-y: auto; padding: 4px 0 8px; }
.palette__group { font-size: 11.5px; color: var(--ink-3); padding: 10px 14px 4px; }
.palette__item { display: flex; align-items: center; gap: 10px; padding: 7px 14px; cursor: pointer; font-size: 13px; }
.palette__item svg { color: var(--ink-3); }
.palette__item.is-sel { background: var(--accent-soft); }
.palette__hint { padding: 20px 14px; color: var(--ink-3); font-size: 13px; }
.palette__foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); background: var(--surface-2); }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 6px; width: min(360px, calc(100vw - 32px)); }
.toast {
  display: grid; grid-template-columns: 3px 1fr auto; gap: 10px; align-items: start;
  padding: 10px 12px 10px 0; border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); animation: toast-in .2s var(--ease-out) both; overflow: hidden;
}
.toast.is-leaving { animation: toast-out .15s ease-in both; }
.toast__bar { align-self: stretch; background: var(--accent); margin: -10px 0; }
.toast--error .toast__bar { background: var(--crit); }
.toast--ok .toast__bar { background: var(--ok); }
.toast__title { font-weight: 600; font-size: 13px; }
.toast__msg { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.toast button { border: 0; background: none; color: var(--ink-3); padding: 0 2px; font-size: 16px; line-height: 1; }

@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .dl { grid-template-columns: 110px 1fr; }
}
@media (max-width: 1240px) {
  .kpi:nth-child(4) { border-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .kpi:nth-child(odd) { border-left: 0; }
  .kpi:nth-child(4) { border-left: 1px solid var(--line); }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Enforcement states ------------------------------------------------------ */
.pill--ENFORCED { --c: var(--ok); --cs: var(--ok-soft); }
.pill--PENDING { --c: var(--med); --cs: var(--med-soft); }
.pill--RECORDED, .pill--REMOVED, .pill--NO_RULE { --c: var(--low); --cs: var(--low-soft); }
.pill--FAILED { --c: var(--crit); --cs: var(--crit-soft); }
.pill--admin { --c: var(--accent); --cs: var(--accent-soft); }
.pill--analyst { --c: var(--ink-3); }
.pill--viewer { --c: var(--low); --cs: var(--low-soft); }
.tag--kev { background: var(--crit); color: #fff; border-color: var(--crit); font-weight: 600; }

/* Sign-in gate ------------------------------------------------------------ */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; background: var(--bg); opacity: 0; transition: opacity .25s var(--ease-out); }
.gate.is-in { opacity: 1; }
.gate.is-out { opacity: 0; transition-duration: .2s; }
.gate__side { display: flex; flex-direction: column; padding: 28px 32px; background: var(--rail-bg); color: var(--rail-ink); border-right: 1px solid var(--rail-line);
  background-image: linear-gradient(var(--rail-line) 1px, transparent 1px), linear-gradient(90deg, var(--rail-line) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
.gate__brand { display: flex; align-items: center; gap: 10px; color: var(--rail-ink-strong); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.gate__brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
.gate__brand em { font-style: normal; font-weight: 500; color: var(--rail-ink); margin-left: 2px; }
.gate__copy { margin-top: auto; margin-bottom: auto; max-width: 320px; }
.gate__emblem { display: block; width: 132px; height: 132px; margin: 0 0 22px -6px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); animation: emblem-in .7s var(--ease-out) both; }
@keyframes emblem-in { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gate__emblem { animation: none; } }
.gate__lede { color: var(--rail-ink-strong); font-size: 19px; line-height: 1.35; font-weight: 500; margin: 0 0 22px; letter-spacing: -.01em; }
.gate__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 12.5px; }
.gate__facts li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rail-line); }
.gate__facts span { font: 500 11px/1.6 var(--font-mono); color: #6b7480; text-transform: uppercase; letter-spacing: .06em; }
.gate__foot { font-size: 11px; color: #5d6570; }
.gate__main { display: grid; place-items: center; padding: 32px 20px; }
.gate__card { width: 100%; max-width: 360px; animation: rise .35s var(--ease-out) .05s both; }
.gate__title { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.gate__sub { color: var(--ink-3); margin: 6px 0 22px; font-size: 13px; }
.gate__form { display: grid; gap: 14px; }
.gate__form .input { height: 36px; }
.gate__help { color: var(--ink-3); font-size: 12px; margin-top: -8px; }
.gate__err { min-height: 18px; color: var(--crit); font-size: 12.5px; }
.gate__err:empty { min-height: 0; }
.gate__submit { height: 36px; justify-content: center; }
.gate__note { margin-top: 18px; }
.gate__form.is-shake { animation: shake .32s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (max-width: 760px) {
  .gate { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .gate__copy, .gate__foot { display: none; }
  .gate__side { padding: 16px 20px; }
}

/* Rail account ------------------------------------------------------------ */
.rail-btn { color: var(--rail-ink); width: 26px; height: 26px; }
.rail-btn:hover { color: var(--rail-ink-strong); background: var(--rail-hover); border-color: transparent; }

/* Secrets shown once -------------------------------------------------------- */
.secret { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); border: 1px dashed var(--line-strong); background: var(--surface-2); }
.secret code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; }
.snippet { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 12.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
[data-readonly] .needs-respond, [data-readonly] .needs-configure { display: none !important; }.pill--AWAITING_APPROVAL, .pill--PENDING_APPROVAL { --c: var(--med); --cs: var(--med-soft); }
