Files
linkspin/public/assets/admin.css
T
martbost d1a25e72f2 Admin wears the Control Room: light workspace, dark rail and topbar, Instrument scheme
The /admin console now looks like the member screens instead of the dark-navy
site.css back office (Marty: "the admin should be the same color as the site").
Same recipe as /tools (2026-10-08): cr.css is the design system, site.css loads
inside @layer legacy so the cr tokens win, tools.css restyles the shared legacy
panes, and the new admin.css does the admin-only parts.

- admin.html: page wrapped in #page; the pane menu (nav.bo-menu, same
  data-pane buttons and ids) is a dark rail with the Collapse toggle and Site
  links; topbar carries the crumb, #boTitle, #chainLine readout, admin who
  pill and Log out; a status strip with the chain and a Central clock; the
  sign-in card centred on the light workspace. Inline <style> moved to
  admin.css; the two dark-only inline backgrounds switched to panel tokens.
  Cache tags: admin.css/admin.js ?v=20261012a.
- admin.css: rail buttons mirror cr .rail a (wide and icon-only, phone bottom
  bar scrolls with icon + label), tables with mono headers and hover rows,
  status pills and the house tag in the light scheme, drip steps, rates and
  kv forms, label-wrapped inputs, blue action buttons, phone grids.
- admin.js: rail collapse remembers cr.rail like the member shell, strip
  clock, strip chain line, error text uses var(--bad) instead of #ff8a8a.

Member rail and cr-shell.js are untouched; the admin sign-in flow is the
same /api/admin/auth endpoints as before. Verified locally with Playwright
at 1366x900 and 390x844 on every pane plus /links as a member.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-12 10:55:10 -05:00

153 lines
12 KiB
CSS

/* /admin inside the Control Room (2026-10-12, "the admin should be the same color as the site"). cr.css is the design
system, site.css sits in the "legacy" layer, tools.css restyles the shared legacy panes (cards, tables, inputs,
chips, buttons, toast); this file does the admin-only parts: the pane menu as a dark rail, the topbar, the
sign-in card, and the admin tables, pills, drip steps and forms in the INSTRUMENT light scheme. */
/* ── sign-in ── */
.adm-auth{min-height:100vh;display:grid;place-items:center;padding:24px 16px}
.adm-auth .wrap{width:100%;max-width:460px;margin:0;padding:0}
.adm-auth .hero{padding:0 0 14px;text-align:left}
.adm-auth .hero h1{font-family:var(--display);font-size:34px;letter-spacing:.06em;text-transform:uppercase;margin:0 0 8px;color:var(--ink)}
.adm-auth .hero h1 em{color:var(--accent-hi)}
.adm-auth .hero p.lead{font-size:14px;color:var(--ink-2);margin:0}
.adm-auth .card{padding:18px}
.adm-auth .card p{margin:0 0 10px}
.adm-auth .adm-mark{display:inline-flex;align-items:center;gap:10px;margin-bottom:14px;font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
.adm-auth .adm-mark i{position:relative;width:24px;height:24px;border-radius:50%;border:3px solid var(--accent);border-right-color:transparent}
.adm-auth .adm-mark i::after{content:"";position:absolute;right:-5px;top:-3px;width:7px;height:7px;border-radius:50%;background:var(--sig);box-shadow:0 0 0 3px rgba(255,106,26,.25)}
/* ── rail: the admin pane menu, same chrome as the member rail (admin-only page; the member NAV is untouched) ── */
.adm .rail{overflow-y:auto;scrollbar-width:none}
.adm .rail::-webkit-scrollbar{display:none}
.adm .rail .nb{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--chrome-sub);font:600 13px/1 var(--body);letter-spacing:.02em;text-align:left;cursor:pointer;flex:none}
.adm .rail .nb svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.adm .rail .nb:hover{color:#fff;background:transparent}
.adm .rail .nb.on{background:rgba(31,111,235,.22);color:#fff}
.adm .rail .nb.on::before{content:"";position:absolute;left:-10px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--sig)}
.adm .rail .nb .lbl{display:none;white-space:nowrap}
.adm .rail .nb .pill{position:absolute;top:4px;right:4px;margin:0;min-width:16px;height:16px;border-radius:8px;background:var(--sig);color:#fff;font:700 10px/16px var(--mono);padding:0 4px;text-align:center}
.app.wide .rail .nb{width:auto;justify-content:flex-start;gap:12px;padding:0 10px}
.app.wide .rail .nb .lbl{display:inline}
.app.wide .rail .nb .pill{position:static;margin-left:auto}
.adm .rail .rcap{font-family:var(--mono);font-size:9.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--chrome-sub);opacity:.7;padding:10px 10px 4px;display:none}
.app.wide .rail .rcap{display:block}
/* ── topbar + strip ── */
.adm .topbar #boBurger{display:none}
.adm .topbar h1{color:var(--chrome-ink)}
.adm .topbar .readout:empty{display:none}
.adm .topbar .who{cursor:default}
.adm .topbar .who:hover{border-color:var(--chrome-line)}
.adm .topbar .who #adWho{font-size:12px;color:var(--chrome-ink);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adm .topbar a.btn{color:var(--ink)}
.adm .strip a{color:var(--chrome-sub);text-decoration:none} .adm .strip a:hover{color:var(--chrome-ink)}
/* ── content ── */
.adm .bo-content{max-width:1280px}
.adm .pane>.grid:first-child{margin-top:0}
.adm .card p{margin:0 0 10px} .adm .card p:last-child{margin-bottom:0}
.adm .card h3+p,.adm .card-head+p{margin-top:6px}
.adm .bo-content .btn:not(.sec):not(.ghost):not(.pri){background:linear-gradient(180deg,#3A83F0,var(--accent));color:#fff;border-color:var(--accent-hi);box-shadow:0 8px 18px -10px rgba(31,111,235,.9),0 1px 0 rgba(255,255,255,.3) inset}
.adm .bo-content .btn:not(.sec):not(.ghost):not(.pri):hover{background:linear-gradient(180deg,#4A8FF3,#2A77ED)}
.adm .btn.small.ghost{background:transparent;box-shadow:none;border-color:transparent;color:var(--accent-hi)}
.adm .btn.small.ghost:hover{border-color:var(--line-strong)}
.adm .btn.sec:hover{border-color:var(--accent);color:var(--accent-hi)}
.adm label.small{display:grid;gap:4px;font-size:11.5px;font-weight:700;color:var(--ink-2);line-height:1.35}
.adm label.small .muted{font-weight:500}
.adm label.small input:not([type=checkbox]):not([type=radio]),.adm label.small select,.adm label.small textarea{width:100%;min-width:0}
.adm .adm-form label.small{display:block;margin-bottom:4px}
.adm .small{font-size:12.5px}
.adm .card .sub{color:var(--muted)}
.adm .badge.amber{background:var(--warn-soft);color:var(--warn);border-color:rgba(194,65,12,.35)}
.adm code{font-family:var(--mono);font-size:11.5px;background:var(--panel-2);border:1px solid var(--line);border-radius:4px;padding:1px 5px;color:var(--ink)}
.adm pre.small{background:var(--panel-2)!important;color:var(--ink);font-family:var(--mono);font-size:12px}
.adm #memHits{background:#fff}
.adm #memHits button:hover{background:var(--accent-soft)}
.adm .statx .nv{font-size:26px}
.adm .chip.flat{margin-top:6px}
/* tables */
.adm-table{width:100%;table-layout:auto;border-collapse:collapse}
.adm-table th{cursor:pointer;user-select:none;white-space:nowrap}
#trfSources th,#trfAngles th{white-space:normal;text-align:center;line-height:1.2;vertical-align:bottom}
#trfSources td:not(:first-child),#trfAngles td:not(:first-child){text-align:center;font-variant-numeric:tabular-nums}
.adm-table th.sort-asc::after{content:' \25B2';font-size:9px;color:var(--accent)}
.adm-table th.sort-desc::after{content:' \25BC';font-size:9px;color:var(--accent)}
.adm-table.kv th{cursor:default;color:var(--muted);font-weight:500;text-transform:none;letter-spacing:0;font-family:var(--body);font-size:12.5px}
.adm-table.kv th.sort-asc::after,.adm-table.kv th.sort-desc::after{content:''}
.adm-table td.act,.adm-table th:last-child{width:1%;white-space:nowrap}
.adm-table td:first-child{overflow-wrap:anywhere}
.adm-table th,.adm-table td{padding:8px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);font-size:13px;color:var(--ink)}
.adm-table tr:hover td{background:rgba(31,111,235,.04)}
.adm-table td.when{white-space:nowrap}
.adm-table th{color:var(--muted);font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;background:var(--panel-2)}
.adm-table .act{white-space:nowrap}
.adm-table .act button,.adm-table .act .btn{margin-right:6px}
.adm-table a{color:var(--accent-hi)}
.tablewrap{border:1px solid var(--line);border-radius:8px;background:#fff;overflow-x:auto}
.tablewrap:empty,.tablewrap:has(> table:empty){display:none}
/* status pills */
.st{display:inline-block;border-radius:4px;padding:1px 7px;font:700 10px var(--mono);letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--line-strong);color:var(--ink-2);background:var(--panel-2)}
.st.active,.st.running,.st.released,.st.done{background:var(--ok-soft);color:var(--ok);border-color:rgba(14,138,92,.4)}
.st.paused,.st.pending,.st.queued,.st.draft{background:var(--warn-soft);color:var(--warn);border-color:rgba(194,65,12,.4)}
.st.out,.st.ended,.st.finished{background:var(--panel-2);color:var(--muted);border-color:var(--line-strong)}
.st.rejected,.st.burned,.st.failed{background:var(--bad-soft);color:var(--bad);border-color:rgba(185,28,28,.4)}
.house-tag{display:inline-block;white-space:nowrap;overflow-wrap:normal;word-break:normal;border:1px solid rgba(109,74,255,.45);color:#6D4AFF;background:#EEE9FF;border-radius:4px;padding:0 6px;font:700 10px var(--mono);letter-spacing:.06em;text-transform:uppercase;margin-left:6px;vertical-align:middle}
/* forms */
.adm-form p{margin:0 0 10px}
.trunc{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}
textarea.json{font-family:var(--mono);font-size:12px;width:100%;min-height:260px}
.ph-chips{display:inline-flex;gap:6px;flex-wrap:wrap;margin-left:6px;vertical-align:middle}
.ph-chips .chip-t{padding:2px 10px;font-size:11px;font-family:var(--mono);text-transform:none;letter-spacing:0;cursor:pointer;background:#fff}
.drip-steps{display:grid;gap:12px}
.drip-step{border:1px solid var(--line);border-radius:8px;padding:14px 16px;background:var(--panel-2)}
.drip-step .ds-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.drip-step .ds-n{font-family:var(--mono);font-size:11px;font-weight:700;color:var(--accent-hi);letter-spacing:.08em;text-transform:uppercase}
.drip-step .ds-when{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.drip-step .ds-when input{width:80px;text-align:right}
.drip-step .ds-when b{color:var(--ink)}
.drip-step .ds-tools{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
.drip-step .ds-tools .btn{padding:4px 10px;font-size:11px}
.drip-step input.ds-subject{width:100%;margin-bottom:8px;font-weight:700}
.drip-step textarea.ds-body{width:100%;min-height:200px;font-size:13px;line-height:1.5}
.drip-step input,.drip-step textarea{background:#fff}
.rates-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px 22px}
.rates-form .rf{display:flex;flex-direction:column;gap:4px}
.rates-form .rf label{font-size:12.5px;font-weight:700;color:var(--ink)}
.rates-form .rf .hint{font-size:11.5px;color:var(--muted)}
.rates-form .rf input[type=number]{max-width:160px}
.rates-form .rf.wide{grid-column:1/-1}
.rates-form .sub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.rates-form .sub-grid label{font-size:11.5px;font-weight:600;color:var(--muted);display:flex;flex-direction:column;gap:3px}
.rates-form table.tiers{width:auto;font-size:13px}
.rates-form table.tiers td,.rates-form table.tiers th{padding:4px 8px;border:0}
.rates-form table.tiers input{width:90px}
.kv-form{display:grid;gap:8px}
.kv-row{display:grid;grid-template-columns:220px 1fr auto;gap:10px;align-items:center}
.kv-row .k{font-family:var(--mono);font-size:12px;overflow-wrap:anywhere;color:var(--ink-2)}
.kv-row input[type=checkbox]{width:auto;justify-self:start}
.ed-bar button{font-size:12px}
/* phone: the rail is a scrolling bottom bar with icon + label (twelve admin panes do not fit side by side) */
@media (max-width:760px){
.adm .rail{justify-content:flex-start;overflow-x:auto;overflow-y:hidden;gap:2px;scrollbar-width:none}
.adm .rail .nb,.app.wide .rail .nb{flex-direction:column;justify-content:center;gap:3px;width:auto;min-width:62px;height:50px;padding:0 6px;border-radius:8px}
.adm .rail .nb .lbl,.app.wide .rail .nb .lbl{display:inline;font-size:9.5px;letter-spacing:0}
.adm .rail .nb .pill,.app.wide .rail .nb .pill{position:absolute;top:2px;right:6px;margin:0}
.adm .rail .nb.on::before{display:none}
.adm .rail .rcap,.adm .rail a.rsec{display:none}
.adm .main{padding-bottom:72px;min-height:100vh}
.adm .topbar .who{display:none}
.adm .topbar h1{font-size:20px}
.adm .grid.c2,.adm .grid.c3{grid-template-columns:1fr}
.adm .pane>.grid[style*="minmax(200px"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.adm .statx{padding:10px 12px} .adm .statx .nv{font-size:22px}
.adm .pane [style*="grid-template-columns:1fr auto"]{grid-template-columns:1fr!important}
.adm .bo-content{padding:12px 14px 20px}
.kv-row{grid-template-columns:1fr} .kv-row .btn{justify-self:start}
.adm .pane [style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important}
.trunc{max-width:160px}
}