@font-face { font-family: Geist; src: url(/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #09090b; --surface: #111113; --surface-2: #18181b; --surface-3: #202024;
  --border: #27272a; --border-strong: #3a3a40;
  --text: #fafafa; --text-2: #d4d4d8; --muted: #a1a1aa;
  --accent: #fafafa; --ok: #34d399; --warn: #fbbf24; --danger: #f87171; --danger-solid: #b91c1c;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 Geist, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
a:hover { text-decoration-color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.02em; margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 60; text-decoration: none; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.03em; text-decoration: none; }
.mark { width: 24px; height: 24px; border-radius: 6px; background: url(/favicon.svg) center/contain no-repeat; flex: none; }

input, select { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 9px 12px; width: 100%; outline: none; min-height: 38px; }
input::placeholder { color: #8b8b94; }
input:focus, select:focus { border-color: #71717a; box-shadow: 0 0 0 3px #ffffff14; }
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="checkbox"] { width: 16px; min-height: 0; height: 16px; accent-color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, opacity .15s; }
.btn:hover { background: var(--surface-3); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--text); color: #09090b; border-color: var(--text); }
.btn-primary:hover { background: #e4e4e7; }
.btn-danger { color: var(--danger); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-2); }
.field-error, .error { color: var(--danger); font-size: 13px; margin: 6px 0 0; min-height: 0; }
.error:empty, .field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Login ---- */
.center-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-wrap { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.login-card h1 { font-size: 22px; margin: 18px 0 4px; }
.login-card .sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.login-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; text-align: center; }

.site-footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---- App shell ---- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.topbar .grow { flex: 1; }
.topbar nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.who { font-size: 13px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.on .live-dot { background: var(--ok); box-shadow: 0 0 0 3px #34d39922; }

.layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 59px); }
.side { border-right: 1px solid var(--border); padding: 16px 10px; background: var(--bg); }
.side h2 { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 10px 8px; }
.cat { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; font-size: 14px; color: var(--text-2); min-height: 36px; }
.cat:hover { background: var(--surface-2); }
.cat[aria-current="true"] { background: var(--surface-3); color: var(--text); font-weight: 500; }
.cat .n { font-size: 11.5px; background: var(--accent); color: #09090b; border-radius: 99px; padding: 0 7px; font-weight: 600; }
.main { padding: 16px; min-width: 0; }

.toolbar { display: grid; grid-template-columns: 1fr 140px; gap: 8px; margin-bottom: 8px; }
.toolbar .row2 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.toolbar label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 2px; }

.log { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; background: var(--surface); overflow: hidden; }
.log-head { display: grid; grid-template-columns: 74px 54px 1fr; gap: 4px 12px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font-size: 13.5px; }
.log-head:hover { background: var(--surface-2); }
.log time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lvl { font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; }
.lvl.info { color: var(--muted); } .lvl.warn { color: var(--warn); } .lvl.error { color: var(--danger); }
.log-msg { overflow-wrap: anywhere; }
.log-msg .who-p { color: var(--text); font-weight: 600; }
.log-msg .tag { color: var(--muted); font-size: 12px; margin-left: 6px; }
.log-body { border-top: 1px solid var(--border); padding: 10px 12px; font-size: 13px; background: var(--bg); }
.log-body pre { margin: 8px 0 0; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.log.new { animation: flash 1.2s ease-out; }
@keyframes flash { from { border-color: var(--accent); } }
.empty { text-align: center; color: var(--muted); padding: 56px 16px; border: 1px dashed var(--border-strong); border-radius: 10px; }

/* ---- Admin ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel > p { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 12px; }
.checks label { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); min-height: 28px; }
.item { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.item:first-child { border-top: 0; }
.item .info { min-width: 0; }
.item .info b { font-weight: 600; }
.item .meta { font-size: 12.5px; color: var(--muted); }
.item .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11.5px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 7px; margin-left: 6px; color: var(--text-2); }
.badge.off { color: var(--danger); border-color: var(--danger); }
.secret { font-family: var(--mono); font-size: 13px; word-break: break-all; background: var(--bg); border: 1px solid var(--accent); border-radius: 8px; padding: 12px; margin: 8px 0; user-select: all; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 24px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; border-top: 0; }

/* ---- Doc pages / 404 ---- */
.doc { max-width: 760px; padding: 32px 16px 64px; }
.doc h1 { font-size: 30px; margin-bottom: 8px; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc .updated { color: var(--muted); font-size: 13px; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 16px; }
.notfound .code { font-size: 72px; font-weight: 700; letter-spacing: -.04em; margin: 0; color: var(--border-strong); }
.notfound h1 { font-size: 24px; margin: 8px 0; }
.notfound p { color: var(--muted); }
.notfound .btn { margin-top: 16px; }

/* ---- Toast / cookie banner / dialog ---- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 70; }
.toast { background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 14px; font-size: 14px; max-width: 320px; }
.toast.bad { border-color: var(--danger); }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; z-index: 80; font-size: 13.5px; color: var(--text-2); }
.cookie p { margin: 0; flex: 1; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 14px; padding: 24px; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: #000a; }
dialog h2 { font-size: 18px; margin-bottom: 16px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--border); display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
  .side h2 { display: none; }
  .cat { width: auto; white-space: nowrap; gap: 8px; border: 1px solid var(--border); }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .row2 { grid-template-columns: 1fr 1fr; }
  .log-head { grid-template-columns: 64px 1fr; }
  .log-head .lvl { display: none; }
  .grid2, .stat-row { grid-template-columns: 1fr; }
  .who { display: none; }
  .cookie { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.item.stacked { display: block; }
.item-top { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }

/* ---- Logs page v2 ---- */
.search { position: relative; flex: 1; max-width: 560px; margin: 0 auto 0 8px; }
.search input { padding-left: 36px; padding-right: 36px; background: var(--surface); border-radius: 10px; }
.search-i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 11px var(--mono); color: var(--muted); border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 6px; pointer-events: none; }
.search input:focus ~ .kbd { display: none; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.page-head h1 { font-size: 20px; }
.page-head p { margin: 2px 0 0; font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.seg { background: none; border: 0; border-radius: 7px; padding: 0 12px; min-height: 30px; font-size: 13px; color: var(--muted); }
.seg[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.dates { display: flex; align-items: center; gap: 6px; }
.dates input { width: 140px; min-height: 34px; padding: 4px 8px; font-size: 13px; }
mark { background: #ffffff26; color: var(--text); border-radius: 3px; padding: 0 1px; }
.topbar .live { white-space: nowrap; }
@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .topbar .grow { display: none; }
  .filters { width: 100%; }
}
.btn-danger-solid { background: var(--danger-solid); border-color: var(--danger-solid); color: #fff; }
.btn-danger-solid:hover { background: #991b1b; }
dialog p.muted { margin: 0 0 16px; font-size: 14px; }

/* ================= Motion & polish ================= */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

/* Page transitions (cross-document View Transitions) */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
body.leaving { opacity: 0; transition: opacity .15s ease; }

/* Entrances */
.login-card { animation: rise .6s var(--ease) both; }
.login-card > img { animation: pop .7s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
.doc, .notfound > div { animation: rise .5s var(--ease) both; }
.notfound .code { animation: pop .8s var(--ease) both; }
.topbar { background: #09090bcc; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Interactions */
.btn, .seg, .tab, .cat { transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, opacity .18s ease; }
.btn:active:not(:disabled) { transform: scale(.97); }
input, select { transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.btn-primary:hover { box-shadow: 0 0 0 4px #ffffff18; }
a { transition: text-decoration-color .15s ease, color .15s ease; }
.wordmark .mark { transition: transform .35s var(--ease); }
.wordmark:hover .mark { transform: rotate(-8deg) scale(1.1); }

/* Sliding indicators (tabs + level filter) */
.tabs, .segmented { position: relative; }
.ind { position: absolute; pointer-events: none; opacity: 0; }
.ind.ready { opacity: 1; transition: transform .35s var(--ease), width .35s var(--ease); }
.tabs .ind { left: 0; bottom: 0; height: 2px; background: var(--text); border-radius: 2px; }
.segmented .ind { left: 0; top: 2px; bottom: 2px; background: var(--surface-3); border-radius: 7px; z-index: 0; }
.segmented .seg { position: relative; z-index: 1; background: none !important; }
.tab[aria-selected="true"] { border-bottom-color: transparent; }
.tab:hover { color: var(--text); }
.panel:not([hidden]) { animation: rise .4s var(--ease) both; }

/* Sidebar */
.cat { position: relative; }
.cat::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--accent); transform: translateY(-50%); transition: height .25s var(--ease); }
.cat[aria-current="true"]::before { height: 18px; }
.cat:hover { transform: translateX(2px); }
.cat .n { animation: pop .35s var(--ease) both; }

/* Logs */
#list .log:not(.new):not(.skel) { animation: rise .35s var(--ease) both; }
#list .log:not(.new):not(.skel):nth-child(2) { animation-delay: .03s !important; } #list .log:not(.new):not(.skel):nth-child(3) { animation-delay: .06s !important; }
#list .log:not(.new):not(.skel):nth-child(4) { animation-delay: .09s !important; } #list .log:not(.new):not(.skel):nth-child(5) { animation-delay: .12s !important; }
#list .log:not(.new):not(.skel):nth-child(n+6) { animation-delay: .15s !important; }
.log { transition: border-color .2s ease, background .2s ease, opacity .25s ease, transform .25s ease; }
.log:hover { border-color: var(--border-strong); }
.log.new { animation: slide-in .45s var(--ease), flash 1.4s ease-out; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes flash { from { border-color: #ffffff80; background: #ffffff12; box-shadow: 0 0 0 3px #ffffff0d; } }
.log.gone { opacity: 0; transform: translateX(16px); }
.log-body:not([hidden]) { animation: unfold .25s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
.log.skel { height: 40px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-3) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; border-color: transparent; }
@keyframes shimmer { to { background-position: -150% 0; } }
.live.on .live-dot { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #34d39966; } 70%, 100% { box-shadow: 0 0 0 7px #34d39900; } }

/* Admin items, toasts, dialogs, banner */
.item { transition: background .2s ease; }
.card { transition: border-color .2s ease; }
.card:hover { border-color: var(--border-strong); }
.stat { animation: rise .5s var(--ease) both; }
.stat:nth-child(2) { animation-delay: .06s; } .stat:nth-child(3) { animation-delay: .12s; }
.toast { animation: toast-in .35s var(--ease) both; transition: opacity .25s ease, transform .25s ease; }
.toast.out { opacity: 0; transform: translateX(16px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
dialog[open] { animation: dlg-in .3s var(--ease); }
dialog[open]::backdrop { animation: fade .3s ease; backdrop-filter: blur(3px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.cookie { animation: cookie-in .6s var(--ease) .4s both; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } }
.segmented .seg[aria-pressed="true"] { background: none; }

/* ---- Warn evidence ---- */
.warn-page { max-width: 720px; }
.warn-page h2 { font-size: 17px; margin: 24px 0 12px; }
.ev-form { margin-top: 16px; }
.sum-row { margin: 0 0 4px; overflow-wrap: anywhere; }
progress { width: 100%; height: 6px; accent-color: var(--accent); margin-bottom: 8px; }
.ev-list { display: grid; gap: 12px; }
.ev { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 8px; justify-items: start; animation: rise .35s var(--ease) both; }
.ev-media { max-width: 100%; max-height: 420px; border-radius: 8px; background: var(--bg); }
.ev-link { overflow-wrap: anywhere; color: var(--accent); }
.ev-cap { margin: 0; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.ev-box { margin-top: 10px; display: grid; gap: 10px; }
.ev-box .ev { background: var(--surface-2); }
.tag.ev-tag { color: var(--accent); }

/* ---- Layout fix: centered document pages ---- */
.doc { margin-left: auto; margin-right: auto; width: 100%; }
.warn-page { padding-top: 40px; }
.page-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.warn-page .lead { margin: 6px 0 20px; }
.state-card { max-width: 440px; margin: 14vh auto 0; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 28px; animation: rise .5s var(--ease) both; }
.state-card h1 { font-size: 20px; margin: 14px 0 6px; }
.state-card p { margin: 0 0 18px; font-size: 14px; }
.state-ico { color: var(--muted); }
.state-card.bad .state-ico { color: var(--danger); }
.state-card .btn { margin-top: 4px; }

/* ---- Readable log / warn report ---- */
.detail { display: grid; gap: 16px; }
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-head h3 { font-size: 17px; }
.lvl-badge { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 1px 10px; border: 1px solid var(--border-strong); color: var(--text-2); }
.lvl-badge.warn { color: var(--warn); border-color: #fbbf2455; background: #fbbf2410; }
.lvl-badge.error { color: var(--danger); border-color: #f8717155; background: #f8717110; }
.detail-id { font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 1px 8px; }
.detail-msg { margin: 0; font-size: 13.5px; }
.people { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.people.single { grid-template-columns: minmax(0, 360px); }
.people-arrow { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.avatar { position: relative; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; font-weight: 600; color: var(--muted); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; animation: fade .3s ease; }
.person-info { display: grid; min-width: 0; line-height: 1.35; }
.person-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.person-name { font-size: 15px; overflow-wrap: anywhere; }
.person-id { font-size: 12px; color: var(--muted); text-decoration: none; }
.person-id:hover { color: var(--accent); }
.reason { margin: 0; border-left: 3px solid var(--warn); background: var(--surface-2); border-radius: 0 10px 10px 0; padding: 10px 14px; }
.reason-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.reason p { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.mono { font-size: 12.5px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.raw summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.raw pre { margin: 8px 0 0; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: flex; justify-content: flex-end; }
.log-body .ev-box { margin-top: 0; }
.log-body { padding: 16px; }
@media (max-width: 800px) {
  .people { grid-template-columns: 1fr; }
  .people-arrow { text-align: left; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
}
.finish { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 24px; }
.finish p { margin: 2px 0 0; font-size: 13.5px; }
.ev-link { text-decoration: underline; text-decoration-color: var(--border-strong); }
