@font-face { font-family: "Geist"; src: url("/static/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Pixel"; src: url("/static/fonts/GeistPixel-Square.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root { --bg: #000; --panel: #0d0d10; --panel-2: #16161a; --panel-3: #1f1f24; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
        --text: #f4f4f6; --muted: #8b8b95; --faint: #55555e;
        --accent: #5b21e6; --accent-2: #7443ff; --accent-ink: #fff; --ok: #9be7b0; --warn: #ffd27a; --bad: #ff7b6b; --violet: #b9a6ff; --live: #9be7b0;
        --radius: 22px; --radius-sm: 14px; --shadow: 0 18px 50px rgba(0,0,0,.6);
        --ease: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.34,1.45,.5,1); --t: 180ms var(--ease);
        --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        --px: "Geist Pixel", ui-monospace, Menlo, monospace;
        --page: 1240px; --gutter: clamp(16px, 3.5vw, 48px); }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
::selection { background: var(--accent); color: #fff; }
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; transition: text-decoration-color var(--t), color var(--t); }
a:hover { text-decoration-color: currentColor; }
h1 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.05; margin: 0; letter-spacing: -.035em; font-weight: 700; text-transform: uppercase; }
h2 { font-size: 11px; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .num { font-family: var(--px); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.px { font-family: var(--px); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.bad { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- header: one black bar, wordmark + tabs ---------- */
/* The bar's background runs the window; its contents sit in the page's column (--page, --gutter, shared with main), so the
   wordmark starts where a page's heading does and the account arrow ends on the column's right edge. Logo to first label is
   the same 30px as label to label. Every label sits on the wordmark's baseline: a zero-width strut at the wordmark's size
   (--mark) in each of them sets it, so it holds whatever the font's metrics are. */
.topbar { --bar: 56px; --mark: 18px; display: flex; align-items: center; gap: 18px; height: var(--bar); background: rgba(0,0,0,.82);
          padding: 0 max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
          backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
          border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.brand { font-weight: 800; letter-spacing: -.045em; color: #fff; font-size: var(--mark); text-transform: uppercase; text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand span { font-weight: 500; letter-spacing: .14em; font-size: 10px; color: var(--faint); transition: color var(--t); }
.brand:hover span { color: var(--muted); }
.topbar .tabs-inner { display: flex; gap: 6px; height: 100%; flex: none; min-width: 0; }
/* the right side takes what the tabs leave, and a name too long for it is cut with an ellipsis; -12px is the account button's padding */
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: 1; min-width: 0; margin-right: -12px; }
.env-chip { flex: none; display: inline-flex; align-items: baseline; white-space: nowrap; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.tab::before, .env-chip::before, .user-name::before { content: "\200b"; width: 0; font-size: var(--mark); letter-spacing: 0; line-height: 1.5; }
.tab::before { line-height: var(--bar); }   /* a tab is the height of the bar; the others the wordmark's own line */
.tab { position: relative; display: inline-flex; align-items: baseline; gap: 0; height: 100%; padding: 0 12px; color: var(--muted); font-size: 11.5px; font-weight: 600;
       letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; white-space: nowrap; cursor: pointer; text-decoration: none; border-radius: 0; transition: color var(--t); }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tab:hover { color: var(--text); filter: none; } .tab:hover::after { transform: scaleX(.35); }
.tab.active, .tab-group.active > .tab { color: #fff; } .tab.active::after, .tab-group.active > .tab::after { transform: scaleX(1); }
.tab-group > .tab::after { right: 23px; }   /* under the word, not the arrow: padding + the arrow's margin + its box */
.tab-group { position: relative; height: 100%; } .tab-group > .menu { left: 0; right: auto; top: calc(100% + 6px); min-width: 210px; }
.tab-group .menu a { text-transform: none; letter-spacing: 0; font-size: 14px; }
.caret { font-size: 9px; opacity: .6; transition: transform var(--t); } [data-menu].open .caret { transform: rotate(180deg); }
/* the bar's arrow is drawn, not the glyph, which is a dot at this size; the portal's navbar keeps the rule above */
.topbar .caret { flex: none; align-self: center; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(.5px) rotate(45deg); }
.topbar [data-menu].open .caret { transform: translateY(4px) rotate(-135deg); }
.tab .caret { margin-left: 6px; }
.user-menu { position: relative; min-width: 0; }
.user-btn { background: none; color: var(--text); border: 1px solid transparent; border-radius: 999px; padding: 4px 12px 4px 4px; display: flex; align-items: center; gap: 10px;
            font-weight: 500; font-size: 13px; letter-spacing: 0; text-transform: none; min-width: 0; max-width: 100%; }
.user-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn:hover { background: var(--panel-2); filter: none; transform: none; }
.avatar img, .cr-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar { overflow: hidden; width: 30px; height: 30px; border-radius: 50%; background: #dce9ff; color: #0b0b12; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; letter-spacing: .02em; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; z-index: 60; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 18px;
        box-shadow: var(--shadow); padding: 6px; display: none; }
[data-menu].open > .menu { display: block; animation: pop .22s var(--spring); transform-origin: top left; }
.user-menu .menu { transform-origin: top right; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; color: var(--text); background: none; border: 0; font: inherit;
                        font-weight: 500; text-decoration: none; letter-spacing: 0; text-transform: none; font-size: 14px; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.07); filter: none; transform: none; } .menu a.active { color: #fff; font-weight: 600; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; font-size: 13px; }
.menu-head span { color: var(--muted); font-size: 12px; }
.menu-signout { color: var(--bad) !important; }
@media (max-width: 1120px) { .env-chip { display: none; } }
@media (max-width: 960px) { .user-name { display: none; } }
@media (max-width: 860px) {
  .topbar { gap: 16px; height: 64px; flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 0; }
  .topbar .tabs-inner { --bar: 48px; order: 3; flex-basis: 100%; overflow-x: auto; height: 48px; scrollbar-width: none; }
  .tab { padding: 0 10px; } .tab::after { left: 10px; right: 10px; } .tab-group > .tab::after { right: 21px; }
  .user-name, .env-chip { display: none; }
}

/* ---------- layout ---------- */
main { max-width: var(--page); margin: 0 auto; padding: clamp(20px, 3vw, 36px) var(--gutter) 80px; }
main > * { animation: rise .6s var(--ease) both; }
main > *:nth-child(2) { animation-delay: .06s; } main > *:nth-child(3) { animation-delay: .12s; } main > *:nth-child(4) { animation-delay: .18s; }
main > *:nth-child(5) { animation-delay: .24s; } main > *:nth-child(n+6) { animation-delay: .3s; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { color: var(--muted); max-width: 72ch; margin-top: 6px; font-size: 14px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card { background: none; border: 0; padding: 0; margin-bottom: 36px; }
.card > p.muted, .card > p.small { margin-bottom: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.grid { display: grid; gap: 36px; } .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.side { grid-template-columns: minmax(0, 1.8fr) minmax(310px, 1fr); align-items: start; }
@media (max-width: 1000px) { .grid.two, .grid.three, .grid.side { grid-template-columns: minmax(0, 1fr); } }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head h2 { margin: 0 0 12px; } .section-head a, .section-head span { font-size: 13px; color: var(--muted); }
.section-head a { color: var(--text); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .15em; padding-top: 6px; padding-bottom: 10px; }
th:first-child, td:first-child { padding-left: 0; } th:last-child, td:last-child { padding-right: 0; }
tbody tr { transition: background var(--t); } tbody tr:hover { background: linear-gradient(90deg, transparent, rgba(255,255,255,.028) 12%, rgba(255,255,255,.028) 88%, transparent); }
tr.pending td:first-child { box-shadow: none; }
.nowrap { white-space: nowrap; } .person .who small { white-space: nowrap; }
td .sub, .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.empty { padding: 32px 10px; color: var(--muted); text-align: center; }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.table-card { background: none; border: 0; margin-bottom: 40px; }
.table-card table thead th { background: none; }

/* ---------- stat row: no boxes, pixel numerals ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-bottom: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile { display: block; padding: 18px 18px 18px 0; color: var(--text); text-decoration: none; position: relative; background: none; border: 0; border-radius: 0; }
.tile + .tile { padding-left: 18px; }
.tile + .tile::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.tile .n { font-family: var(--px); font-size: 30px; -webkit-text-stroke: 1px currentColor; line-height: .95; font-variant-numeric: tabular-nums; transition: transform .35s var(--spring), color var(--t); transform-origin: left bottom; }
.tile .l { font-size: 10.5px; color: var(--text); text-transform: uppercase; letter-spacing: .15em; margin-top: 10px; font-weight: 600; }
.tile .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
a.tile:hover { text-decoration: none; } a.tile:hover .n { transform: scale(1.06); }
a.tile .l::after { content: " →"; opacity: 0; display: inline-block; transform: translateX(-6px); transition: opacity var(--t), transform var(--t); }
a.tile:hover .l::after { opacity: 1; transform: none; }
.tile.attention .n { color: var(--warn); } .tile.good .n { color: var(--text); } .tile.bad .n { color: var(--bad); }
.tile.attention .l::before, .tile.bad .l::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
.tile.attention .l::before { background: var(--warn); } .tile.bad .l::before { background: var(--bad); }

/* ---------- badges, dots ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 0; font-size: 13px; font-weight: 500; background: none; color: var(--text); white-space: nowrap;
         letter-spacing: 0; text-transform: none; vertical-align: 1px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--bad); } .badge.muted { color: var(--muted); }
.badge.muted::before { background: var(--faint); }
.badge.accent { color: #cbbcff; }
.badge.plain::before { display: none; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); }
.ai { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.ai::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ai.warn { color: var(--warn); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 9px; vertical-align: 1px; position: relative; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.idle { background: #c9c9d1; }
.dot.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--ease) infinite; }
.status { white-space: nowrap; font-weight: 500; } .status.failed { color: var(--bad); }

/* ---------- forms and buttons ---------- */
input, select, textarea { background: var(--panel-2); color: var(--text); border: 1px solid transparent; border-radius: 999px; padding: 9px 16px; font: inherit;
                          transition: border-color var(--t), box-shadow var(--t), background var(--t); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { background: #1b1b20; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(116,67,255,.2); background: var(--panel-2); }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
         background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%238b8b95'/%3E%3C/svg%3E");
         background-repeat: no-repeat; background-position: right 16px center; }
input[type=file] { padding: 10px 14px; } input[type=checkbox], input[type=radio] { accent-color: var(--accent-2); padding: 0; }
textarea { width: 100%; min-height: 110px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; border-radius: var(--radius-sm); }
label { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.field { margin-bottom: 14px; } .field .help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; }
form.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn, button { position: relative; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 11.5px; font-weight: 700;
               letter-spacing: .13em; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap;
               display: inline-flex; align-items: center; justify-content: center; gap: 8px;
               transition: transform .25s var(--spring), background var(--t), box-shadow var(--t), color var(--t), filter var(--t); }
.btn:hover, button:hover { background: var(--accent-2); box-shadow: 0 10px 30px -8px rgba(116,67,255,.7); transform: translateY(-1px); text-decoration: none; }
.btn:active, button:active { transform: scale(.96); transition-duration: .08s; }
.btn.secondary, button.secondary { background: var(--panel-2); color: var(--text); }
.btn.secondary:hover, button.secondary:hover { background: var(--panel-3); box-shadow: none; }
.btn.light, button.light { background: #fff; color: #000; } .btn.light:hover, button.light:hover { background: #fff; box-shadow: 0 8px 26px -8px rgba(255,255,255,.45); }
.btn.ghost, button.ghost { background: transparent; color: var(--muted); } .btn.ghost:hover, button.ghost:hover { color: var(--text); background: var(--panel-2); box-shadow: none; }
.btn.danger, button.danger { background: rgba(255,123,107,.12); color: var(--bad); } .btn.danger:hover, button.danger:hover { background: rgba(255,123,107,.2); box-shadow: none; }
.btn.ok, button.ok { background: rgba(155,231,176,.14); color: var(--ok); } .btn.ok:hover, button.ok:hover { background: rgba(155,231,176,.22); box-shadow: none; }
.btn.sm, button.sm { padding: 7px 14px; font-size: 10.5px; }
button:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
button.working::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
button.confirming { background: var(--bad); color: #000; }
.htmx-request .btn-label { opacity: .5; } .htmx-indicator { display: none; } .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-block; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.segmented { display: inline-flex; gap: 2px; padding: 4px; background: var(--panel-2); border-radius: 999px; flex-wrap: nowrap; }
.segmented a, .segmented button { padding: 7px 15px; border-radius: 999px; color: var(--text); background: transparent; border: 0; font-size: 13px; font-weight: 500;
                                  letter-spacing: 0; text-transform: none; text-decoration: none; box-shadow: none; white-space: nowrap; transition: background var(--t), color var(--t); }
.segmented a:hover, .segmented button:hover { background: rgba(255,255,255,.06); box-shadow: none; transform: none; }
.segmented a.active, .segmented button[aria-pressed="true"] { background: #fff; color: #000; }

/* ---------- toasts ---------- */
#toast-area { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: center; background: #fff; color: #000; border-radius: 999px; padding: 10px 12px 10px 18px; box-shadow: var(--shadow);
         font-size: 13px; font-weight: 500; animation: toast-in .45s var(--spring); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.toast.error::before { background: #e5484d; } .toast.ok::before { background: #1a9e6c; }
.toast.leaving { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .35s, transform .35s; }
.toast-x { margin-left: auto; background: none; color: #555; font-size: 18px; padding: 0 6px; line-height: 1; letter-spacing: 0; }
.toast-x:hover { color: #000; background: none; box-shadow: none; transform: none; }

/* ---------- misc components ---------- */
.progress { height: 6px; background: var(--panel-3); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--ok); border-radius: inherit; transform-origin: left; animation: grow 1s var(--ease) both; }
.progress.warn > div { background: var(--warn); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } }
.board { width: 100%; border-radius: 18px; border: 1px solid var(--line); display: block; }
.stat { font-family: var(--px); font-size: 26px; } .stat small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 8px; }
.center { max-width: 480px; margin: 90px auto; text-align: center; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); } ul.plain li:last-child { border-bottom: 0; }
.activity li { display: grid; grid-template-columns: 50px 1fr; gap: 12px; font-size: 13.5px; } .activity time { color: var(--muted); font-family: var(--px); font-size: 13px; padding-top: 2px; }
.check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 3px; display: grid; place-items: center; font-size: 11px; }
.check.done { background: var(--ok); border-color: var(--ok); color: #000; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.quick a { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text); text-decoration: none; transition: border-color var(--t), transform .3s var(--spring); }
.quick a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.quick a strong { display: block; } .quick a span { color: var(--muted); font-size: 13px; }
.challenge { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; margin-top: 10px; background: var(--panel); transition: border-color var(--t); }
.challenge:hover { border-color: var(--line-2); }
.challenge .rule { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--muted); }
.creator-strip { display: flex; align-items: center; gap: 12px; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
.creator-strip .progress { flex: 1; }
.scorecard li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: baseline; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; transition: color var(--t); }
details summary::-webkit-details-marker { display: none; } details summary:hover { color: var(--text); }
details[open] > :not(summary) { animation: rise .3s var(--ease); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- person rows (dashboard, queue) ---------- */
.person { display: flex; align-items: center; gap: 12px; } .person .avatar { width: 34px; height: 34px; font-size: 11.5px; }
.person .who { display: flex; flex-direction: column; line-height: 1.2; font-size: 14.5px; font-weight: 500; } .person .who small { color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { display: grid; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding var(--t); }
.rows > li::before { content: ""; position: absolute; inset: 0 -14px; border-radius: 16px; background: rgba(255,255,255,.03); opacity: 0; transition: opacity var(--t); pointer-events: none; }
.rows > li:hover::before { opacity: 1; }
.rows > li:hover .avatar { transform: scale(1.07); } .avatar { transition: transform .3s var(--spring); }
.rows .end { justify-self: end; }
/* needs-you rows: the cells of .what become columns of the row itself (display: contents), so the
   mode, the score and the AI badge (or a creator's country, platform and gamertag) line up down the list */
.rows .what { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.rows .src { color: var(--muted); font-size: 13px; } .rows .src .px { color: var(--text); margin-left: 6px; font-size: 13.5px; }

/* ---------- live now panel ---------- */
.search { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 999px; padding: 0 16px; margin-bottom: 12px; transition: box-shadow var(--t); }
.search:focus-within { box-shadow: 0 0 0 1px var(--accent-2), 0 0 0 5px rgba(116,67,255,.18); }
.search input { flex: 1; background: none; border: 0; padding: 10px 0; box-shadow: none; }
.search svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.live-list { list-style: none; margin: 14px 0 0; padding: 0; max-height: 560px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; }
[hidden] { display: none !important; }   /* a flex or grid display must never override the hidden attribute (the creators filters, 28 Sep) */
.live-cols, .live-list li { display: grid; grid-template-columns: 26px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, auto); gap: 10px; align-items: center; }
.live-list .now { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; font-size: 13px; line-height: 1.25; }
.live-list .now strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.live-list .now small { color: var(--muted); font-size: 11.5px; }
.live-list .now .px { font-size: 12px; color: var(--muted); }
.dot.live, .dot.mw4 { background: var(--ok); } .dot.other { background: var(--warn); } .dot.off { background: var(--bad); }
.live-cols span:nth-child(n+3), .live-list .u { text-align: right; }
.live-list li { padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; transition: opacity var(--t); }
.live-list li:hover { background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent); }
.live-list .pf { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.live-list li[hidden] { display: none; }

/* ---------- jobs page ---------- */
.newjob { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr) auto; gap: 12px; margin-bottom: 12px; }
.newjob select, .newjob input { padding: 12px 20px; font-size: 14px; width: 100%; }
.newjob select { padding-right: 44px; background-position: right 20px center; }
.newjob button { padding: 12px 26px; font-size: 11.5px; }
@media (max-width: 800px) { .newjob { grid-template-columns: 1fr; } }
.jobs td { font-size: 14px; }
.jobs .src a { font-family: var(--px); font-size: 13.5px; }
.jobs .result strong { font-weight: 600; } .jobs .result .links { display: flex; gap: 16px; margin-top: 6px; font-size: 14px; flex-wrap: wrap; }
.jobs pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; color: var(--muted); background: var(--panel); border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; max-width: 520px; }
.jobs tr.just-queued { animation: highlight 2.4s var(--ease); }

/* ---------- running jobs: sweep line and live timer ---------- */
.rows > li.running { overflow: hidden; }
.rows > li.running::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 30%;
                            background: linear-gradient(90deg, transparent, var(--live), transparent); animation: sweep 2.2s var(--ease) infinite; }
.scan { display: block; position: relative; width: 180px; max-width: 100%; height: 3px; margin-top: 10px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.scan::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit;
               background: linear-gradient(90deg, transparent, var(--live), transparent); animation: sweep 1.6s var(--ease) infinite; }
.timer { display: inline-flex; align-items: center; gap: 8px; color: var(--live); font-family: var(--px); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.timer::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid rgba(155,231,176,.25); border-top-color: var(--live); animation: spin 1s linear infinite; }

/* ---------- page furniture shared by the inner pages ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); text-decoration: none; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.back:hover { color: var(--text); } .back::before { content: "←"; transition: transform var(--t); } .back:hover::before { transform: translateX(-4px); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.meta .score { font-family: var(--px); font-size: 20px; color: var(--text); -webkit-text-stroke: .6px currentColor; }
.note { color: var(--muted); font-size: 13.5px; max-width: 80ch; margin-top: 14px; }
.panel h2 { margin-bottom: 16px; } .panel + .panel { margin-top: 18px; }
.panel.card { margin-bottom: 18px; }
button.tile { width: 100%; text-align: left; background: none; color: var(--text); font: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; border-radius: 0; box-shadow: none; display: block; }
button.tile:hover { background: none; box-shadow: none; transform: none; } button.tile:hover .n { transform: scale(1.06); }
button.tile:active { transform: none; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }
.filterbar input[type=search] { flex: 1 1 240px; }
td form.inline { gap: 8px; } td form.inline input, td form.inline select { padding: 8px 14px; font-size: 13.5px; }
td .btn, td button { vertical-align: middle; }
.center.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; text-align: left; }
.center.card h1 { margin-bottom: 12px; } .center.card p { margin-bottom: 18px; } .center.card p:last-child { margin-bottom: 0; }
.center.card form button { width: 100%; margin-top: 6px; }
.challenge .head, .run-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.creator-strip > span:first-child { min-width: 150px; } .creator-strip .num { min-width: 60px; text-align: right; } .creator-strip .state { min-width: 130px; text-align: right; }
.scorecard .mark { font-weight: 700; }
details.build { margin-top: 20px; } details.build > summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; background: var(--panel-2); color: var(--text);
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; transition: background var(--t); }
details.build > summary:hover { background: var(--panel-3); } details.build > summary::before { content: "+"; font-size: 15px; transition: transform var(--t); } details.build[open] > summary::before { transform: rotate(45deg); }

/* ---------- creators: filter bar, channel chips, table foot, dialog ---------- */
.filterbar .search { flex: 1 1 260px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 4px; border-radius: 999px; background: var(--panel-2); font-size: 13px; white-space: nowrap;
        border: 1px solid transparent; transition: background var(--t), border-color var(--t); }
.chip:hover { background: var(--panel-3); }
.chip .pf { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0a0a0c; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.chip .st { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.chip .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ch-active .st { color: var(--ok); } .chip.ch-declared .st::before { background: #f1f1f4; } .chip.ch-expired .st { color: var(--warn); }
.chip.ch-revoked .h { text-decoration: line-through; color: var(--muted); } .chip.ch-revoked .st::before { background: var(--faint); }
button.chip.add { padding: 5px 12px; background: transparent; border: 1px dashed var(--line-2); color: var(--text); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; box-shadow: none; }
button.chip.add:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); transform: none; }
.chip-form { display: inline-flex; gap: 6px; align-items: center; animation: pop .22s var(--spring); }
.chip-form[hidden] { display: none; } .chip-form select { width: 74px; padding: 6px 28px 6px 12px; font-size: 12.5px; background-position: right 11px center; }
.chip-form input { width: 130px; padding: 6px 12px; font-size: 12.5px; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; color: var(--muted); font-size: 13px; }
.modal { width: min(620px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.modal[open] { animation: pop .28s var(--spring); }
.modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .modal-head h2 { margin: 0; color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ac-channels { display: flex; flex-direction: column; gap: 8px; }
.ac-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px; } .ac-row select, .ac-row input { width: 100%; }

/* ---------- approvals ---------- */
.rows-apps > li { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.app-main { display: grid; gap: 12px; min-width: 0; }
.app-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.app-facts div { display: flex; flex-direction: column; gap: 2px; }
.app-facts dt { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.app-facts dd { margin: 0; font-size: 14px; }
.app-decide { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.app-decide input { width: 230px; padding: 8px 14px; font-size: 13px; }
.faint { color: var(--faint); }
a.badge { text-decoration: none; } a.badge:hover { text-decoration: underline; }
@media (max-width: 800px) { .rows-apps > li { grid-template-columns: 1fr; } .app-decide { justify-content: flex-start; } }

/* ---------- signal inventory ---------- */
.sig-tile[aria-pressed="false"] { opacity: .45; }
.sig-measured { color: var(--ok); } .sig-detected { color: var(--warn); } .sig-possible { color: var(--muted); } .sig-designed { color: var(--violet); } .sig-no { color: var(--bad); }
.sig-chip[aria-pressed="true"] { background: #fff; color: #000; }
.sig-row { border-top: 1px solid var(--line); }
.sig-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; width: 100%; padding: 14px 4px; background: none; border: 0; color: var(--text); text-align: left;
            font: inherit; font-weight: 400; cursor: pointer; border-radius: 12px; letter-spacing: 0; text-transform: none; }
.sig-head:hover { background: rgba(255,255,255,.03); box-shadow: none; transform: none; }
.sig-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; white-space: nowrap; }
.sig-body { padding: 0 4px 16px; }
.badge.sig-b-measured { color: var(--ok); } .badge.sig-b-detected { color: var(--warn); } .badge.sig-b-possible { color: var(--muted); }
.badge.sig-b-designed { color: var(--violet); } .badge.sig-b-no { color: var(--bad); } .badge.sig-b-asked { color: #cbbcff; }
@media (max-width: 800px) { .sig-head { flex-direction: column; } .sig-badges { justify-content: flex-start; } }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes highlight { 0% { background: rgba(116,67,255,.18); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---- creators as cards, with live status (28 Sep 2026) ---- */
.cr-legend .mw4::before, .cr-card .mw4 .cr-dot, .cr-live.mw4::before { background: var(--ok); }
.cr-legend .other::before, .cr-card .other .cr-dot, .cr-live.other::before { background: var(--warn); }
.cr-legend .off::before, .cr-card .off .cr-dot, .cr-live.off::before { background: var(--bad); }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; align-items: start; }
.cr-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 18px; transition: border-color var(--t), transform var(--t); }
.cr-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cr-head { display: flex; gap: 18px; align-items: center; }
.cr-avatar { position: relative; width: 66px; height: 66px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 20px; background: #dce9ff; color: #0b0b12; border: 3px solid var(--faint); }
.cr-avatar.mw4 { border-color: var(--ok); } .cr-avatar.other { border-color: var(--warn); } .cr-avatar.off { border-color: var(--bad); }
.cr-dot { position: absolute; right: 0; bottom: 0; width: 15px; height: 15px; border-radius: 50%; border: 3px solid var(--panel); background: var(--faint); }
.cr-id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cr-id h3 { margin: 0; font-size: 20px; line-height: 1.1; }
.cr-id small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-state { font-size: 13.5px; font-weight: 600; }
.cr-state.mw4 { color: var(--ok); } .cr-state.other { color: var(--warn); } .cr-state.off { color: var(--bad); }
.cr-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cr-facts dt { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.cr-facts dd { margin: 0; font-size: 14px; }
.cr-channels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cr-channels li { display: flex; align-items: center; gap: 14px; background: var(--panel-2); border-radius: var(--radius-sm); padding: 11px 14px; }
.cr-channels li.none { background: none; padding: 4px 0; }
.cr-channels .pf { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .05em; background: var(--accent); color: #fff; flex: none; }
.cr-channels .pf-youtube { background: #e3342f; } .cr-channels .pf-kick { background: #53fc18; color: #08110a; } .cr-channels .pf-facebook { background: #1877f2; } .cr-channels .pf-tiktok { background: #111; border: 1px solid var(--line-2); } .cr-channels .pf-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.cr-ch { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cr-ch strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-ch small { color: var(--muted); font-size: 12px; }
.cr-live { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cr-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--faint); }
.cr-live.mw4 { color: var(--ok); } .cr-live.other { color: var(--warn); } .cr-live.off { color: var(--bad); }
.cr-live small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.cr-live .px { font-size: 12px; margin-left: 6px; }
.cr-add { width: 100%; background: transparent; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 13px; font-size: 13px; font-weight: 600; }
.cr-add:hover { background: var(--panel-2); color: var(--text); box-shadow: none; transform: none; }
.cr-add-form { display: flex; gap: 8px; align-items: center; }
.cr-add-form select, .cr-add-form input { flex: 1; min-width: 0; }
.cr-foot { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 6px; font-size: 13px; }
.cr-foot .btn { margin-left: auto; }
@media (max-width: 720px) { .cr-grid { grid-template-columns: 1fr; } }
/* the list view: one line per creator */
.cr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cr-list li { display: grid; grid-template-columns: 44px minmax(160px, 1.3fr) minmax(150px, 1.2fr) minmax(120px, 1fr) minmax(180px, 1.6fr) 64px 100px auto; gap: 16px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cr-list li:not(.cr-cols):hover { background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent); }
.cr-list .cr-cols { font-size: 10px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: 10px 6px; }
.cr-list .r { text-align: right; }
.cr-list .cr-avatar.sm { width: 40px; height: 40px; font-size: 13px; border-width: 2px; }
.cr-list .cr-avatar.sm .cr-dot { width: 11px; height: 11px; border-width: 2px; }
.cr-list .cr-who, .cr-list .cr-state, .cr-list li > span:nth-child(4) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-list .cr-who strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-list small { color: var(--muted); font-size: 12px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-list .cr-state { font-size: 13.5px; }
.cr-list .cr-chs { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); font-size: 12px; color: var(--text); white-space: nowrap; }
.cr-chip .dot { margin: 0; width: 7px; height: 7px; }
@media (max-width: 1100px) { .cr-list li { grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; } .cr-list li > span:nth-child(5), .cr-list li > span:nth-child(6), .cr-list li > span:nth-child(7) { display: none; } }

/* ---- dashboard "Live now" panel, from the NewGen Dashboard prototype (28 Sep 2026) ---- */
:root { --mw4: #3ddc84; --other: #ff9f1c; --tw: #9146ff; --yt: #ff0000; }
.cr-legend .mw4::before, .cr-card .mw4 .cr-dot, .cr-live.mw4::before, .cr-avatar.mw4, .dot.mw4 { border-color: var(--mw4); background-color: var(--mw4); }
.cr-avatar.mw4 { background: #dce9ff; } .cr-state.mw4, .cr-live.mw4 { color: var(--mw4); }
.cr-legend .other::before, .cr-card .other .cr-dot, .cr-live.other::before, .dot.other { background: var(--other); }
.cr-avatar.other { border-color: var(--other); } .cr-state.other, .cr-live.other { color: var(--other); }
.panel.live { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 24px; }
.lv-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lv-pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--faint); }
.lv-pulse.on { background: var(--other); animation: ngpulse 1.6s ease-in-out infinite; }
@keyframes ngpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.lv-meta { font-size: 12px; color: var(--muted); }
.lv-hero { display: flex; align-items: flex-end; gap: 14px; }
.lv-big { font-size: 64px; line-height: .85; }
.lv-of { font-size: 13px; line-height: 1.4; color: var(--muted); padding-bottom: 2px; } .lv-of strong { color: var(--text); font-weight: 500; }
.lv-dots { display: flex; flex-wrap: wrap; gap: 3px; }
.lv-dots i { width: 7px; height: 7px; border-radius: 2px; background: rgba(255,77,77,.35); }
.lv-dots i.mw4 { background: var(--mw4); } .lv-dots i.other { background: var(--other); }
.lv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #111113; border-radius: 999px; padding: 4px; }
.lv-tabs button { height: 34px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.7); font: inherit; font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; box-shadow: none; }
.lv-tabs button:hover { background: rgba(255,255,255,.06); transform: none; box-shadow: none; }
.lv-tabs button[aria-pressed="true"] { background: #fff; color: #000; }
.lv-tabs .d { width: 7px; height: 7px; border-radius: 999px; background: #fff; } .lv-tabs .d.mw4 { background: var(--mw4); } .lv-tabs .d.other { background: var(--other); }
.lv-tabs .px { font-size: 12px; opacity: .55; }
.lv-tools { display: flex; gap: 8px; align-items: center; }
.lv-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 40px; background: #111113; border-radius: 999px; padding: 0 16px; }
.lv-search .ring { width: 11px; height: 11px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; flex: none; }
.lv-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; font-size: 14px; outline: none; padding: 0; box-shadow: none; }
.lv-sort { height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #111113; color: rgba(255,255,255,.75); font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: none; }
.lv-sort:hover { color: #fff; background: #16161a; transform: none; box-shadow: none; }
.lv-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; background: #16161a; border-radius: 14px; min-width: 0; color: inherit; text-decoration: none; transition: background var(--t); }
.lv-row:hover { background: #1a1a1d; text-decoration: none; }
.lv-avatar { position: relative; width: 36px; height: 36px; flex: none; }
.lv-avatar > span { width: 36px; height: 36px; border-radius: 999px; background: #dbf2ff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; box-shadow: 0 0 0 2px var(--faint); }
.lv-avatar.mw4 > span { box-shadow: 0 0 0 2px var(--mw4); } .lv-avatar.other > span { box-shadow: 0 0 0 2px var(--other); }
.lv-avatar .pf { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 5px; background: var(--tw); box-shadow: 0 0 0 2px #16161a; color: #fff; font-size: 7px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; letter-spacing: 0; }
.lv-avatar .pf-youtube { background: #e3342f; } .lv-avatar .pf-kick { background: #53fc18; color: #08110a; } .lv-avatar .pf-facebook { background: #1877f2; }
.lv-avatar .pf-youtube { background: var(--yt); } .lv-avatar .pf-facebook { background: #1877f2; } .lv-avatar .pf-tiktok { background: #111; } .lv-avatar .pf-instagram { background: #dd2a7b; }
.lv-who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.lv-who strong { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-who small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.lv-who small.mw4 { color: var(--mw4); } .lv-who small.other { color: var(--other); }
.lv-nums { text-align: right; flex: none; display: flex; flex-direction: column; }
.lv-nums .px { font-size: 13px; } .lv-nums small { font-size: 11px; color: rgba(255,255,255,.45); }
.lv-none { padding: 24px 0; font-size: 13px; color: var(--muted); margin: 0; }
.lv-foot { display: flex; justify-content: space-between; padding-top: 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
/* handles link to the profile on their platform (approvals, creators): a reviewer opens them in a new tab */
a.chip, a.cr-chip, .cr-ch strong a { color: inherit; text-decoration: none; }
a.chip:hover .h, a.cr-chip:hover, .cr-ch strong a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.chip .ext { font-size: 11px; color: var(--muted); margin-left: -2px; }
/* editing a creator on its card */
.cr-edit { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--panel-2); border-radius: var(--radius-sm); }
.cr-edit .field label { display: block; font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.cr-edit input:not([type=checkbox]) { width: 100%; }
.cr-approve { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.cr-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
.cr-ch-edit { display: flex; gap: 6px; align-items: center; flex-basis: 100%; margin-top: 8px; }
.cr-ch-edit input { flex: 1; min-width: 0; padding: 7px 12px; font-size: 13px; }
.cr-channels li { flex-wrap: wrap; }
.cr-card.editing .cr-live { display: none; }
/* Engine > Stream watching */
.wt-list { list-style: none; margin: 0; padding: 0; }
.wt-list li { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.wt-list li.wt-planned .wt-main { opacity: .7; }
.wt-name { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 15px; }
.wt-main p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; }
.wt-switch { display: flex; justify-content: flex-end; align-items: center; min-height: 32px; }
.tile .n.wt-built { color: var(--ok); } .tile .n.wt-next { color: var(--warn); } .tile .n.wt-planned { color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: var(--panel-3); position: relative; transition: background var(--t); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t); }
.switch input:checked + .track { background: var(--ok); } .switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-2); outline-offset: 2px; }
@media (max-width: 720px) { .wt-list li { grid-template-columns: 1fr; } .wt-switch { justify-content: flex-start; } }
/* Verify > match: corrected cells, the correction rows, keys */
td.fixed, span.fixed { background: rgba(185,166,255,.14); box-shadow: inset 2px 0 0 var(--violet); border-radius: 4px; }
.corr { margin-bottom: 8px; } .corr select { max-width: 200px; } .corr input { padding: 7px 12px; font-size: 13px; }
kbd { font-family: var(--px); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); }
/* Verify > agreement: one rate bar per band; the sample meter under the threshold is faint and carries no rate */
.rate { display: flex; align-items: center; gap: 12px; }
.rate .bar { flex: 1; height: 6px; background: var(--panel-3); border-radius: 999px; overflow: hidden; }
.rate .bar > div { height: 100%; background: var(--violet); border-radius: inherit; animation: grow 1s var(--ease) both; }
.rate .bar.faint > div { background: var(--faint); }
.rate > span { min-width: 64px; text-align: right; }

/* ---------- dashboard rows (5 Oct 2026): the live row across the top, needs-you one row per item,
   recordings beside activity. Built for hundreds of creators: the live grid scrolls, the list stays short. ---------- */
.lv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.lv-top .lv-hero { align-items: center; gap: 12px; } .lv-top .lv-big { font-size: 44px; }
.lv-top .lv-of { padding-bottom: 0; } .lv-top .lv-of .lv-meta a { color: var(--text); }
.lv-top .lv-tabs { grid-template-columns: repeat(3, auto); }
.lv-top .lv-tools { flex: 1; min-width: 260px; justify-content: flex-end; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; }
.lv-grid .lv-none { grid-column: 1 / -1; }
.lv-avatar img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; display: block; }
.lv-reading { color: var(--ok) !important; display: flex; align-items: center; gap: 2px; font-size: 11px !important; }
.lv-reading .dot { width: 6px; height: 6px; margin-right: 4px; }
.lv-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); } .lv-foot a { color: var(--text); }
.needs { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.needs td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.needs td.who { width: 240px; } .needs td.kind { width: 150px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.needs td.end { text-align: right; white-space: nowrap; padding-right: 0; }
.needs .details { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
@media (max-width: 800px) { .needs td.kind, .needs td.nowrap { display: none; } .needs td.who { width: auto; } }

/* ---------- tables with headers, switchable columns and sortable heads (5 Oct 2026) ---------- */
.needs thead th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; text-align: left; padding: 0 12px 8px 0; background: none; border-bottom: 1px solid var(--line); }
.needs thead th.num, .needs td.num { text-align: right; }
.needs td.kind { width: auto; }
.needs.recs td { padding: 9px 12px 9px 0; }
.head-tools { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.head-tools a { color: var(--text); }
details.cols { position: relative; display: inline-block; margin-left: 10px; }
details.cols summary { cursor: pointer; list-style: none; font-size: 12px; color: var(--text); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
details.cols summary::-webkit-details-marker { display: none; }
details.cols > div { position: absolute; right: 0; top: 30px; z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: grid; gap: 6px; min-width: 160px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
details.cols label { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 13px; color: var(--text); white-space: nowrap; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort][data-dir="asc"]::after { content: " ↑"; } th[data-sort][data-dir="desc"]::after { content: " ↓"; }
.chal td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.chal thead th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; text-align: left; padding: 0 12px 8px 0; background: none; border-bottom: 1px solid var(--line); }
.chal thead th.num, .chal td.num { text-align: right; }
tr.chal-row { cursor: pointer; } tr.chal-row:hover td { background: rgba(255,255,255,.03); } tr.chal-row.open td { background: rgba(255,255,255,.04); }
tr.chal-detail > td { padding: 14px 0 18px; background: rgba(255,255,255,.02); }
.chal-detail-body { padding: 0 12px; }
.activity-page li { grid-template-columns: 110px 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- compact settings rows with a help tooltip (Stream watching, 6 Oct 2026) ---------- */
.wt-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.wt-rows > li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wt-rows .wt-title { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.wt-rows .wt-ctl { justify-self: end; }
span.help { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; cursor: help; vertical-align: middle; }
.help .tip { display: none; position: absolute; left: 24px; top: -8px; z-index: 30; width: 380px; max-width: 70vw; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--text); text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,.45); white-space: normal; }
.help:hover .tip, .help:focus .tip, .help:focus-within .tip { display: block; }
@media (max-width: 700px) { .wt-rows > li { grid-template-columns: 1fr auto; } .wt-rows > li > .badge { display: none; } .help .tip { left: auto; right: 0; } }
.queue-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin: -8px 0 18px; border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; }
.queue-bar .queue-nav { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- the creator's challenge card, as the console's "view as creator" page renders it (6 Oct 2026) ---------- */
.cc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); margin-top: 10px; overflow: hidden; }
.cc-strip { height: 3px; background: var(--accent); } .cc-verified .cc-strip { background: var(--ok); } .cc-rejected .cc-strip { background: var(--bad); }
.cc-in { padding: 13px 16px; }
.cc-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cc-type .diamond { display: none; }
.cc-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.cc-ico { display: none; }
.cc-body { flex: 1; min-width: 0; }
.cc-title { font-size: 16px; margin: 0; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.pill .dot { display: none; }
.cc-desc { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.cc-prog { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cc-bar { flex: 1; height: 6px; background: var(--panel-3); border-radius: 999px; overflow: hidden; } .cc-bar i { display: block; height: 100%; background: var(--ok); }
.cc-pending .cc-bar i { background: var(--warn); } .cc-rejected .cc-bar i { background: var(--bad); }
.cc-frac { font-size: 13px; color: var(--muted); white-space: nowrap; } .cc-frac b { color: var(--text); font-weight: 600; }
.cc-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; align-items: center; }
.vtag { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .vtag.done { color: var(--ok); } .vtag.bad { color: var(--bad); } .vtag.review { color: var(--warn); }
.cc-xp { text-align: right; } .cc-xp .v { font-family: var(--px); font-size: 18px; } .cc-xp .u { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cc-evidence { margin-top: 8px; } .cc-evidence summary { font-size: 12px; color: var(--muted); cursor: pointer; }

/* ---------- disputes on Verify (8 Oct 2026, docs/mockups/dispute-console.html) ----------
   A dispute opened in place: what the creator said beside what the reads of that stream have. */
.dz { padding-top: 4px; }
.dz-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 36px; margin-bottom: 16px; }
.dz-h { margin: 0 0 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--text); }
.dz-kv { grid-template-columns: 96px 1fr; gap: 6px 14px; font-size: 13.5px; }
/* a recording as a strip: what was read, what was not, and the stretch the creator gave */
.tl { position: relative; height: 30px; margin-top: 22px; background: var(--panel-2); border-radius: 8px; }
.tl-b { position: absolute; top: 5px; bottom: 5px; border-radius: 5px; }
.tl-b.ok { background: var(--ok); opacity: .8; } .tl-b.pend { background: var(--warn); } .tl-b.rej { background: var(--faint); }
.tl-b.gap { background: repeating-linear-gradient(-45deg, rgba(255,123,107,.5) 0 5px, rgba(255,123,107,.12) 5px 10px); border: 1px solid rgba(255,123,107,.6); }
.tl-c { position: absolute; top: -4px; bottom: -4px; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.tl-c i { position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%); font-style: normal; font-size: 11px; white-space: nowrap; color: var(--text); }
.tl-x { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.tl-key span { display: inline-flex; align-items: center; gap: 7px; } .tl-key i { position: static; display: inline-block; width: 16px; height: 10px; border-radius: 3px; box-shadow: none; } .tl-key i.tl-c { border-width: 1.5px; }
.dz tr.hit td { background: rgba(255,210,122,.07); }
.dz-find { margin: 14px 0 0; padding: 12px 14px; border-left: 2px solid var(--warn); background: rgba(255,210,122,.06); border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--muted); max-width: 96ch; }
.dz-answer { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; } .dz-answer select { max-width: 340px; }
@media (max-width: 900px) { .dz-cols { grid-template-columns: 1fr; } .dz-answer { align-items: stretch; } }
