/* ============================================================
   PROXY — desktop register.
   Desktop-sibling of roboalias.com: dot-grid wallpaper, squared
   window chrome, one red accent, SF Pro + system mono, lowercase
   chrome. Record text (tables, evidence, legal values) is never
   transformed. Same lineage as Stake (forked 2026-09-10, see
   docs/FORK.md).
   ============================================================ */
:root{
  --bg:#ffffff;
  --wallpaper-dot:hsl(222.2 84% 4.9% / .06);
  --panel:#ffffff; --panel-2:#fafafa; --panel-3:#f5f5f5;
  --line:hsl(214.3 31.8% 91.4%); --line-2:hsl(214.3 27% 82%);
  --text:hsl(222.2 84% 4.9%); --text-2:hsl(215 15% 25%); --muted:hsl(215.4 16.3% 46.9%); --faint:#8f959e;
  --accent:hsl(0 70% 45%); --accent-2:hsl(0 70% 38%); --brand:hsl(0 70% 45%);
  --hint:#5c6574; --hint-weak:#f3f5f8;
  --warn:#9a6700; --warn-deep:#7a5200; --warn-weak:#fff8e8; --warn-line:#ecd9a8;
  --ok:#0f8a4d; --ok-weak:#e9f6ef; --danger:hsl(0 65% 42%); --danger-weak:#fdecec;
  --radius:0; --radius-sm:0; --radius-chip:0;
  --shadow-sm:0 1px 2px hsl(222.2 84% 4.9% / .05);
  --glow:0 0 64px -28px hsl(0 70% 45% / .12);
  --topbar-h:49px;
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  --sans:"SF Pro Display","SF Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scrollbar-gutter:stable}
html,body{margin:0;padding:0}
body{background-color:var(--bg);background-image:radial-gradient(circle,var(--wallpaper-dot) 1px,transparent 1px);background-size:24px 24px;background-attachment:fixed;color:var(--text);font-family:var(--sans);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font-family:var(--sans)}
::selection{background:#e8eaee}
[hidden]{display:none !important}

/* ---------- window: one squared panel on the wallpaper ---------- */
.window{position:relative;z-index:1;max-width:1280px;margin:18px auto;border:1px solid var(--line);background:var(--panel);box-shadow:var(--glow);display:flex;flex-direction:column;min-height:calc(100dvh - 36px)}
main.content{flex:1}
@media (max-width:760px){.window{margin:0;border:0;min-height:100dvh}}
.tldots{display:inline-flex;gap:6px;flex:none}
.tldots i{width:9px;height:9px;flex:none}
.tldots i:nth-child(1){background:var(--accent)}
.tldots i:nth-child(2){background:#e8b93c}
.tldots i:nth-child(3){background:#c9ccd2}
@media (max-width:680px){.tldots{display:none}}

/* ---------- shell: top bar + tabs ---------- */
.pt-top{position:sticky;top:0;z-index:60;border-bottom:1px solid var(--line);background:hsl(0 0% 100% / .86);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.pt-top{background:var(--panel)}}
.pt-topin{padding:12px 28px;display:flex;align-items:center;justify-content:space-between}
.pt-topin .brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:15px}
.pt-topin .brand img{width:20px;height:20px}
.pt-topin .brand .word{display:inline-block;font-weight:700;letter-spacing:-.01em;line-height:1}
.brand .word::after{content:"";display:inline-block;width:7px;height:13px;margin-left:7px;background:var(--accent);vertical-align:-1px;animation:curs 1.2s steps(1) infinite}
@keyframes curs{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.brand .word::after{animation:none}}
.pt-left{display:flex;align-items:center;gap:12px;min-width:0}
.bc-sep{color:var(--line-2);font-size:15px}
.pt-right{display:flex;align-items:center;gap:10px}
.ptabs{position:sticky;top:var(--topbar-h);z-index:55;border-bottom:1px solid var(--line);background:hsl(0 0% 100% / .86);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.ptabs{background:var(--panel)}}
.pt-tabsin{padding:0 28px;display:flex;gap:26px}
.ptabs a{padding:11px 1px;font-size:13.5px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;display:inline-flex;align-items:center;gap:7px}
.ptabs a:hover{color:var(--text)}
.ptabs a.on{color:var(--brand);font-weight:600;border-color:var(--brand)}
#holder-select{font:inherit;font-size:12px;color:var(--text-2);border:1px solid var(--line-2);padding:4px 8px;background:var(--panel);max-width:220px}
.content{padding:34px 48px 72px}
.pagehead{margin:0 0 22px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.pagehead h1{font-size:24px;font-weight:640;letter-spacing:-.02em;line-height:1.2;margin:0}
.pagehead .actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media (max-width:860px){.content{padding:22px 18px 70px}.pt-topin,.pt-tabsin{padding-left:16px;padding-right:16px}.pt-tabsin{overflow-x:auto;scrollbar-width:none}.pt-tabsin::-webkit-scrollbar{display:none}}

/* ---------- footer: window status bar ---------- */
footer{border-top:1px solid var(--line);padding:12px 28px;color:var(--muted);font-family:var(--mono);font-size:10.5px;display:flex;justify-content:space-between;align-items:baseline;gap:20px;flex-wrap:wrap}
footer .mono{color:var(--faint)}
@media (max-width:760px){footer{padding:12px 16px;display:block}footer span{display:block;margin-top:6px}}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;font-size:13px;font-weight:560;cursor:pointer;border:1px solid transparent;line-height:1.2;white-space:nowrap}
.btn.primary{background:var(--accent);color:#fff}
.btn.primary:hover:not(:disabled){background:var(--accent-2)}
.btn.primary:focus-visible{outline-color:var(--text)}
.btn.ghost{background:var(--panel);border-color:var(--line-2);color:var(--text)}
.btn.ghost:hover:not(:disabled){border-color:var(--faint)}
.btn.sm{padding:5px 10px;font-size:12px}
.btn:disabled{cursor:not-allowed;opacity:.5}
.btn svg{width:14px;height:14px;flex:none}

/* ---------- forms (base; page styling lives in proxy.css) ---------- */
.field input[type=text],.field input[type=email]{max-width:420px}
.field + .field{margin-top:16px}
.form-error{font-size:12px;color:var(--danger);background:var(--danger-weak);border:1px solid #f3caca;padding:9px 11px;margin-top:12px}
.form-error:empty{display:none}
.check input{margin-top:3px}

/* ---------- dialog + toast ---------- */
dialog{border:1px solid var(--line);padding:0;color:var(--text)}
dialog::backdrop{background:hsl(222.2 84% 4.9% / .4);backdrop-filter:blur(3px)}
#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#17181a;color:#fff;padding:12px 22px;z-index:20;font-family:var(--mono);font-size:12px;max-width:90vw}

/* ---------- empty state ---------- */
.empty-state{padding:45px 22px;text-align:center;color:var(--muted)}

/* ---------- utilities ---------- */
.mono{font-family:var(--mono);font-size:12.5px}
.muted{color:var(--muted)}
.fineprint{font-size:11px;color:var(--text-2);line-height:1.6}
.pre{white-space:pre-wrap;overflow-wrap:anywhere}
.m-top{margin-top:24px}
.filter-hide{display:none}

/* ---------- lowercase chrome (never record text: td, dd, inputs,
   .pre, .code, .evidence-text, panel/dialog titles, .linkbtn stay verbatim) ---------- */
.pt-top,.ptabs a,.btn,footer,.pagehead h1,.pagehead .subtitle,.stat span,.eyebrow,
#toast,.empty-state,.field>span,.fineprint,.label-row,.data-grid dt,.pill,
.review-section-title h2,.review-status span{text-transform:lowercase}
#holder-select,#identity{text-transform:none}

/* Safari's system accent must not override the portal's keyboard focus style. */
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
:where(button,a,[tabindex]):focus:not(:focus-visible){outline:none}
