/* Trace appearance tokens and standalone production wordmark. */
:root{--trace-surface:var(--surface);--trace-surface-soft:var(--sub);--trace-border:var(--line);--trace-text:var(--text);--trace-muted:var(--text-2);--trace-accent:var(--navy);--accent:var(--navy);--action-bg:#0f1742;--action-hover:#1c2766;--action-text:#ffffff}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--canvas:#10151f;--surface:#19212e;--sub:#202b3a;--line:#334052;--line-2:#44546b;--ctl:#788ba6;--text:#f1f4f9;--text-2:#c0cad9;--text-3:#a4b2c6;--navy:#b4c5ed;--navy-hover:#d4def6;--navy-soft:#25344e;--link-line:#859bc4;--row-hover:#243148;--violet:#c2b1e7;--violet-soft:#2b263a;--pos:#87d1ac;--pos-dot:#62c495;--neg:#f6aca6;--bad-bg:#35272d;--bad-line:#69444a;--warn:#e4c384;--warn-bg:#332e24;--warn-line:#635638;--warn-dot:#d6b266;--action-bg:#334775;--action-hover:#405991;--action-text:#ffffff}
.trace-brand{display:inline-grid;justify-items:start;gap:2px;line-height:1;color:var(--text);width:max-content}
.trace-wordmark{display:block;width:180px;line-height:0}
.trace-wordmark img{display:block;width:100%;height:auto}
/* A color-only transform preserves every alpha edge; no contrast sharpening or clipping. */
[data-theme=dark] .trace-wordmark img{filter:brightness(0) invert(1)}
.trace-tagline{display:block;padding-left:8px;white-space:nowrap;font-size:12px;line-height:20px;font-weight:450;letter-spacing:-.01em;color:var(--text-2)}
.trace-tagline strong{font-weight:650;letter-spacing:.02em;color:var(--navy)}
.signin-card .trace-wordmark{width:204px}
.sidebar-brand{gap:0}
.signin-card .trace-tagline{font-size:13px;line-height:22px}
.signin-card>.trace-brand{margin-bottom:6px}
.trace-footer{display:grid;justify-items:center;gap:6px;font-size:14px;line-height:22px;color:var(--text-2);padding:24px 12px 12px;margin-top:28px;border-top:1px solid var(--line)}
.trace-footer-brand{font-weight:600;color:var(--text)}
.trace-footer-credit{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:0 7px}
.trace-footer a{color:var(--navy);text-underline-offset:4px}.trace-footer strong{font-weight:600;color:var(--text)}
body{font-size:14px;line-height:22px}
.field label,.field-label,.hint,.range-preview,.eyebrow{font-size:13px;line-height:20px}
.page-title{font-size:24px;line-height:32px;letter-spacing:-.02em;font-weight:600}
.nav-item{font-size:14px;line-height:20px}.nav-label{font-size:12px;letter-spacing:.02em}
.overview-heading,.group h3,.abuser-column-group legend,.shortcut-group h3{font-size:12px;line-height:18px;letter-spacing:.02em;text-transform:none}
.st-row .st-note,.tile-d,.kv-suffix,.highlights .average .sub{font-size:12px;line-height:18px}
#theme-panel{gap:8px}#theme-panel .field{gap:6px}#theme-choice{max-width:220px}
.notification-control,.notification-control.is-compact{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0;max-width:230px;width:auto}.notification-toggle.btn{display:inline-flex;gap:6px;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border-radius:999px;font-size:12px;line-height:1.2;width:auto;min-width:108px;border-color:var(--line-2);background:var(--surface);color:var(--text-2)}.notification-toggle.btn svg{width:14px;height:14px;flex:none}.notification-toggle.btn.is-on{color:var(--navy);background:var(--navy-soft);border-color:var(--ctl)}.notification-toggle.btn:disabled{opacity:.6}.notification-coverage,.notification-paused{font-size:12px;line-height:1.4;margin:0;padding:2px 0;color:var(--warn);max-width:180px}.notification-feedback{flex-basis:100%;font-size:11px;margin:0}.notification-feedback:empty{display:none}.notification-feedback:not(.error){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.saved-table .saved-notifications{min-width:120px;max-width:180px}.profile-notifications{max-width:230px}
.header-review-group{padding:4px 8px;gap:7px;border-radius:7px;max-width:100%}.header-review-title{font-size:12px;font-weight:600;max-width:120px}.header-review-field{gap:2px}.header-review-field label{font-size:12px;line-height:18px}.header-review-field select{min-width:92px;max-width:145px;min-height:28px;padding:3px 24px 3px 7px;font-size:12px}.header-review{gap:6px}.gender-avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border:1px solid var(--line);border-radius:50%;color:var(--text-2);background:var(--sub)}.gender-avatar svg{width:23px;height:23px}.who{gap:8px}
.member-layout{grid-template-columns:minmax(0,1fr);gap:16px}.staff-create-card{padding:14px 18px}.staff-create-card>summary{cursor:pointer;font-size:14px;font-weight:600;list-style:inside}.staff-create-card>form{margin-top:18px;max-width:480px}.staff-create-card>summary:focus-visible{outline:2px solid var(--navy);outline-offset:4px}
[data-theme=dark] .nav-item:hover,[data-theme=dark] .crumb:hover{background:var(--row-hover)}.btn.primary{background:var(--action-bg);color:var(--action-text);border-color:var(--action-bg)}.btn.primary:hover:not(:disabled){background:var(--action-hover);color:var(--action-text);border-color:var(--action-hover)}[data-theme=dark] .avatar{background:var(--navy-soft);color:var(--navy)}[data-theme=dark] .brand-choice-lonestar,[data-theme=dark] .brand-tag.brand-lonestar{background:#163a2c;color:#89eab5}[data-theme=dark] .brand-choice-realprize,[data-theme=dark] .brand-tag.brand-realprize{background:#2b2845;color:#c4baff}[data-theme=dark] .favorite-toggle.is-saved{background:#362d1c;color:#f4ca71;border-color:#806336}[data-theme=dark] .header-review-abuser{background:var(--bad-bg);border-color:var(--bad-line)}[data-theme=dark] .header-review-vip,[data-theme=dark] .list-badge-vip{background:var(--violet-soft);border-color:#534375;color:var(--violet)}[data-theme=dark] .term .tip{background:var(--sub);color:var(--text);border:1px solid var(--line)}[data-theme=dark] .tilt-evidence,[data-theme=dark] .tilt-watch{background:var(--warn-bg);color:var(--warn);border-color:var(--warn-line)}[data-theme=dark] .tilt-strict{background:var(--bad-bg);color:var(--neg);border-color:var(--bad-line)}
@media(max-width:700px){.notification-toggle.btn{min-height:36px}.header-review-group{flex-wrap:wrap}.header-review-field select{max-width:136px}.trace-footer{justify-items:start;text-align:left}.trace-footer-credit{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.header-review{align-items:flex-end}.header-review-field select{height:28px}.header-review-title{line-height:1.25}.header-review-group{min-height:0}.notification-toggle{position:relative}
[data-theme=dark] .crumb-link:hover{background:var(--row-hover)}[data-theme=dark] .btn.danger{background:var(--bad-bg);color:var(--neg);border-color:var(--bad-line)}[data-theme=dark] .brand-choice[aria-checked=true]{background:var(--navy-soft);color:var(--text);border-color:var(--violet)}[data-theme=dark] .brand-choice.brand-lonestar.is-selected{background:#163a2c;border-color:#7dddb0;box-shadow:inset 0 0 0 1px #7dddb0}[data-theme=dark] .brand-choice.brand-realprize.is-selected{background:#2b2845;border-color:var(--violet);box-shadow:inset 0 0 0 1px var(--violet)}[data-theme=dark] .tilt-evidence-update{background:var(--warn-bg);color:var(--warn);border-color:var(--warn-line)}
[data-theme=dark] .brand-choice.brand-lonestar.is-selected .brand-choice-state{color:#89eab5}[data-theme=dark] .brand-choice.brand-realprize.is-selected .brand-choice-state{color:#c4baff}[data-theme=dark] .brand-choice.brand-lonestar.is-selected .brand-choice-mark{border-color:#89eab5;background:radial-gradient(circle,#89eab5 0 5px,#163a2c 6px)}[data-theme=dark] .brand-choice.brand-realprize.is-selected .brand-choice-mark{border-color:#c4baff;background:radial-gradient(circle,#c4baff 0 5px,#2b2845 6px)}[data-theme=dark] .btn.danger:hover:not(:disabled){background:#473138;color:var(--neg);border-color:var(--neg)}
@media(max-width:680px){.lookup-shortcuts{position:relative;top:0;left:auto;right:auto;width:100%;max-height:300px}}
.abuser-column-badge:empty{display:none}.header-review-group{border:0;background:transparent;padding:2px 4px}.header-review-abuser .header-review-title{color:var(--neg)}.header-review-vip .header-review-title{color:var(--violet)}[data-theme=dark] .header-review-group{border:0;background:transparent}

[data-theme=dark] ::selection{background:#405991;color:#fff}
[data-theme=dark] input:hover:not(:disabled),[data-theme=dark] select:hover:not(:disabled),[data-theme=dark] .btn:hover:not(:disabled){border-color:var(--ctl)}

/* Shared table controls: sorting and help remain independently focusable. */
.table-heading{display:inline-flex;align-items:center;gap:5px;max-width:100%}
.table-sort{display:inline-flex;align-items:center;gap:5px;font:inherit;font-weight:550;line-height:1.4;border:0;background:transparent;color:inherit;padding:3px 0;cursor:pointer;white-space:nowrap;text-align:inherit}
.table-sort:hover{color:var(--navy)}.table-sort-direction{font-size:12px;color:var(--text-3)}
.table-help-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;font:inherit;color:var(--text-3);border:0;background:transparent;cursor:help;padding:3px;line-height:1.4;flex:none}
.table-help-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none}
.table-help-button:hover,.table-help-button[aria-expanded=true]{color:var(--navy)}
.table-help-value{color:var(--text);font-variant-numeric:tabular-nums;padding:2px 0;text-decoration:underline dotted var(--text-3);text-underline-offset:4px;cursor:pointer}
.table-help-value svg{width:12px;height:12px;color:var(--text-3)}
.table-sort:focus-visible,.table-help-button:focus-visible{outline:2px solid var(--navy);outline-offset:3px;border-radius:3px}
.table-help-tooltip{position:fixed;z-index:1000;padding:13px 15px;border:1px solid var(--line-2);border-radius:9px;box-shadow:0 8px 28px #0003;background:var(--surface);color:var(--text);white-space:pre-line;font-size:13px;line-height:1.65;max-height:calc(100vh - 24px);overflow:auto;box-sizing:border-box;font-weight:400;text-align:left}
.table-help-tooltip[hidden]{display:none}
.saved-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.saved-refresh{font-size:12px;min-height:30px;padding:4px 10px}
.saved-data-note{font-size:12px;margin:0;color:var(--text-3)}.saved-table-error{color:var(--warn)}
.saved-table{font-size:13px;line-height:20px}.saved-table td,.saved-table th{padding:12px 10px}.saved-table thead th{font-size:12px;background:var(--sub)}
.saved-table tbody th{font-weight:550}.saved-table .saved-player-name{max-width:160px;overflow:hidden;text-overflow:ellipsis}.saved-table .saved-playthrough{min-width:130px}
.saved-table tbody th[scope="row"]{position:sticky;left:0;z-index:2;background:var(--surface);box-shadow:1px 0 var(--line)}.saved-table thead th:first-child{left:0;z-index:3;box-shadow:1px 0 var(--line)}
.saved-table .saved-label{max-width:110px;overflow:hidden;text-overflow:ellipsis}.saved-table .saved-actions{padding-inline:6px}
@media(max-width:700px){.table-sort,.table-help-button{min-height:32px}.saved-table-toolbar{align-items:flex-start}.saved-data-note{line-height:18px}}
