/* Atlas Sites — the public web portal.
   Same design language as the Atlas dashboard (app/web/src/atlas.css): Geist, light,
   hairlines over boxes, pill buttons, controls 8px / surfaces 10px. Rules copied from
   there keep their names so the two read as one product. */

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

:root{
  --ink:#111113; --ink-2:#3f3f46; --ink-3:#71717a; --ink-4:#a1a1aa; --ink-5:#d4d4d8;
  --bg:#fcfcfc; --surface:#ffffff; --bg-subtle:#f6f6f7; --bg-hover:#f1f1f2;
  --line:#ebebec; --line-2:#e0e0e2; --line-3:#cfcfd2;
  --accent:#2563eb; --accent-bg:#eff4fe;
  --ok:#067647; --ok-bg:#ecfdf3; --err:#b42318; --err-bg:#fef3f2;
  --warn:#b54708; --warn-bg:#fffaeb; --mut:#52525b; --mut-bg:#f4f4f5;
  --r-ctl:8px; --r-srf:10px;
  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --sans:'Geist',system-ui,-apple-system,sans-serif;
  --code:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}

*{box-sizing:border-box}
b,strong{font-weight:550}
html{-webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility}
html,body{height:100%}
body{margin:0; background:var(--bg); color:var(--ink-2); font-family:var(--sans); font-size:14px; font-weight:400; line-height:1.55}
button{font:inherit; color:inherit; background:none; border:none; cursor:pointer; padding:0}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--line-3); outline-offset:2px; border-radius:6px}
svg{display:block; flex:none}
[hidden]{display:none !important}
.mono{font-family:var(--code); font-size:.92em}
.grow{flex:1; min-width:0}
.visually-hidden{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:5px}
::-webkit-scrollbar-track{background:transparent}
@media (prefers-reduced-motion: reduce){*{transition:none !important; animation:none !important}}

.boot{display:flex; align-items:center; justify-content:center; min-height:100vh; margin:0; color:var(--ink-4); font-size:.84rem}

/* ── sign in (the dashboard's login card) ── */
.login-wrap{position:fixed; inset:0; display:flex; align-items:center; justify-content:center; padding:16px; background:var(--bg)}
.login-wrap::before{content:''; position:absolute; inset:0; background:url('/assets/hands-reaching.jpg') center / cover no-repeat; opacity:.5; pointer-events:none}
.login-card{position:relative; width:380px; max-width:100%; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:40px 36px 28px; text-align:center; box-shadow:0 18px 60px -24px rgba(22,22,26,.28), 0 0 0 8px rgba(255,255,255,.55)}
.login-logo{width:88px; height:88px; border-radius:20px; margin:0 auto 16px; display:flex; align-items:center; justify-content:center; overflow:hidden; border:1px solid var(--line)}
.login-logo img{width:76px; height:76px; object-fit:contain}
.wordmark{font-weight:500; font-size:1.6rem; color:var(--ink); letter-spacing:-.03em}
.login-card .tag{color:var(--ink-3); font-size:.85rem; margin:6px 0 26px}
.login-card form{display:flex; flex-direction:column; gap:10px}
.login-card .inp{padding:10px 14px; font-size:.9rem; border-radius:999px; text-align:center}
.gh-btn{display:flex; align-items:center; justify-content:center; gap:9px; width:100%; background:var(--ink); color:#fff; font-weight:500; border-radius:999px; padding:10px 0; font-size:.9rem; transition:background 150ms var(--ease-out), transform 160ms var(--ease-out)}
.gh-btn:hover{background:#2a2a2e}
.gh-btn:active{transform:scale(.97)}
.gh-btn[disabled]{opacity:.55; pointer-events:none}
.login-foot{margin-top:22px; font-size:.75rem; color:var(--ink-4)}
.login-err{font-size:.8rem; color:var(--err); background:var(--err-bg); border-radius:var(--r-ctl); padding:8px 12px; display:none; text-align:left}
.login-err.show{display:block}

/* ── shell ── */
.shell{display:grid; grid-template-columns:auto 1fr; height:100vh}
aside{display:flex; flex-direction:column; min-height:0; border-right:1px solid var(--line); background:var(--surface); padding:18px 12px 16px; width:230px; transition:width 360ms cubic-bezier(.32,.72,0,1); overflow:hidden}
html.side-collapsed aside{width:64px}
html.side-collapsed .nav-btn span:last-child, html.side-collapsed .cta .lbl, html.side-collapsed .side-brand span, html.side-collapsed .nav-lbl, html.side-collapsed .side-user .who, html.side-collapsed .side-version{display:none}
html.side-collapsed .nav-btn, html.side-collapsed .cta, html.side-collapsed .side-brand, html.side-collapsed .side-user{justify-content:center; padding-left:0; padding-right:0}
.nav-btn, .cta, .side-brand{white-space:nowrap}
.side-inner{display:flex; flex-direction:column; height:100%}
.side-brand{display:flex; align-items:center; gap:10px; padding:2px 10px 18px}
.side-brand img{width:28px; height:28px; border-radius:7px; object-fit:contain; border:1px solid var(--line); flex:none}
.side-brand span{font-weight:500; font-size:1.02rem; color:var(--ink); letter-spacing:-.02em}
.side-brand span small{font-weight:400; color:var(--ink-4); font-size:.8rem; margin-left:6px; letter-spacing:0}
.nav-lbl{font-size:.66rem; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-4); padding:8px 12px 6px; font-weight:500}
.nav-btn{display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:8px 12px; border-radius:var(--r-ctl); color:var(--ink-3); font-weight:400; font-size:.875rem; margin:1px 0; transition:background 120ms, color 120ms}
.nav-btn svg{width:15px; height:15px}
.nav-btn:hover{background:var(--bg-subtle); color:var(--ink)}
.nav-btn.active{background:var(--bg-subtle); color:var(--ink); font-weight:500}
.nav-btn .count{order:2; margin-left:auto; font-size:.72rem; color:var(--ink-4); font-variant-numeric:tabular-nums}
html.side-collapsed .nav-btn .count{display:none}
.side-spacer{flex:1}
.cta{display:flex; align-items:center; justify-content:center; gap:8px; border-radius:999px; padding:9px 12px; font-size:.875rem; font-weight:500}
.cta svg{width:14px; height:14px}
.side-user{display:flex; align-items:center; gap:10px; padding:14px 10px 2px; margin-top:12px; border-top:1px solid var(--line)}
.avatar{width:26px; height:26px; border-radius:50%; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; flex:none}
.avatar svg{width:13px; height:13px}
.side-user .who{min-width:0; flex:1}
.side-user b{display:block; font-size:.8rem; color:var(--ink); line-height:1.2; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.side-user .who span{font-size:.7rem; color:var(--ink-4)}
.logout-btn{color:var(--ink-4); padding:4px; transition:color 120ms}
.logout-btn:hover{color:var(--ink)}
.logout-btn svg{width:14px; height:14px}
html.side-collapsed .side-user{flex-direction:column; gap:8px}
.side-version{padding:10px 4px 0; font-size:.68rem; letter-spacing:.02em; color:var(--ink-5); text-align:center}

main{overflow-y:auto; min-width:0; display:flex; flex-direction:column}
.topbar{position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:12px; background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(8px); padding:12px 32px 8px; min-height:44px}
.top-toggle{display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:8px; color:var(--ink-4); transition:color 120ms, background 120ms; flex:none}
.top-toggle:hover{color:var(--ink); background:var(--bg-subtle)}
.top-toggle svg{width:15px; height:15px}
.crumb{font-size:.83rem; color:var(--ink-4); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.crumb a{color:var(--ink-4)}
.crumb a:hover{color:var(--ink); text-decoration:none}
.crumb b{color:var(--ink); font-weight:500}
.content{padding:10px 32px 64px; max-width:1120px; width:100%}

.page-head{display:flex; align-items:baseline; gap:14px; margin:6px 0 24px; flex-wrap:wrap}
.page-head h1{font-size:1.3rem; font-weight:500; color:var(--ink); margin:0; letter-spacing:-.02em; text-wrap:balance}
.page-head .sub{color:var(--ink-4); font-size:.82rem}
.push{margin-left:auto}

/* ── buttons ── */
.btn{display:inline-flex; align-items:center; gap:7px; background:var(--ink); color:#fff; font-weight:500; font-size:.875rem; padding:7px 17px; border-radius:999px; transition:background 150ms, transform 160ms var(--ease-out); white-space:nowrap}
.btn:hover{background:#2a2a2e; text-decoration:none}
.btn:active{transform:scale(.97)}
.btn svg{width:13px; height:13px}
.btn.ghost{background:transparent; border:1px solid var(--line-2); color:var(--ink-2); font-weight:400}
.btn.ghost:hover{border-color:var(--line-3); background:var(--bg-subtle)}
.btn.danger{background:transparent; border:1px solid #f2c4bf; color:var(--err); font-weight:400}
.btn.danger:hover{background:var(--err-bg)}
.btn.danger-solid{background:var(--err); color:#fff}
.btn.danger-solid:hover{background:#9f1f14}
.btn.sm{padding:4px 13px; font-size:.8rem}
.btn[disabled]{opacity:.45; cursor:default; pointer-events:none}
.spin{width:12px; height:12px; border:2px solid currentColor; border-top-color:transparent; border-radius:50%; animation:spin .7s linear infinite; flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.textbtn{font-size:.78rem; color:var(--ink-3); transition:color 120ms}
.textbtn:hover{color:var(--ink)}
.textbtn.danger:hover{color:var(--err)}

/* metallic button (the dashboard's "New application" CTA) */
.btn-metal{position:relative; isolation:isolate; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:999px; padding:9px 18px; font-size:.875rem; font-weight:500; color:var(--ink); box-shadow:0 8px 22px rgba(0,0,0,.16); transition:transform 160ms var(--ease-out); white-space:nowrap}
.btn-metal:active{transform:scale(.97)}
.btn-metal::before{content:""; position:absolute; inset:0 -18%; z-index:0; background:linear-gradient(105deg,#111 0%,#737373 14%,#fafafa 26%,#525252 38%,#0a0a0a 50%,#a3a3a3 64%,#fff 75%,#404040 87%,#111 100%); animation:metal-drift 8s cubic-bezier(.77,0,.175,1) infinite}
.btn-metal .shine{position:absolute; inset:0 auto 0 -58%; width:52%; z-index:1; transform:skewX(-12deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.5) 48%,transparent); opacity:.5; filter:blur(3px); mix-blend-mode:screen; transition:transform 2.4s cubic-bezier(.77,0,.175,1); pointer-events:none}
.btn-metal:hover .shine{transform:skewX(-12deg) translateX(620%)}
.btn-metal::after{content:""; position:absolute; inset:2px; z-index:2; border-radius:999px; background:var(--surface); box-shadow:inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.16); transition:background 200ms}
.btn-metal:hover::after{background:var(--bg-subtle)}
.btn-metal > *{position:relative; z-index:3}
@keyframes metal-drift{0%,100%{transform:translateX(0)}50%{transform:translateX(9%)}}
@media (prefers-reduced-motion: reduce){.btn-metal::before{animation:none}}

/* ── chips & status ── */
.chip{display:inline-flex; align-items:center; gap:5px; font-size:.72rem; font-weight:500; padding:2px 9px; border-radius:999px; white-space:nowrap}
.chip svg{width:11px; height:11px}
.chip.ok{color:var(--ok); background:var(--ok-bg)}
.chip.warn{color:var(--warn); background:var(--warn-bg)}
.chip.err{color:var(--err); background:var(--err-bg)}
.chip.mut{color:var(--mut); background:var(--mut-bg)}
.status{display:inline-flex; align-items:center; gap:8px; font-size:.82rem; font-weight:500; color:var(--ink-3)}
.status i{width:7px; height:7px; border-radius:50%; background:var(--ink-5); flex:none}
.status.ok{color:var(--ink-2)}
.status.ok i{background:#12b76a; animation:live-pulse 2.4s ease-in-out infinite}
@keyframes live-pulse{0%,100%{opacity:1}50%{opacity:.35}}

/* ── surfaces ── */
.panel{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-srf)}
.panel + .panel{margin-top:14px}
.panel-pad{padding:16px 18px}
.panel-head{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:10px}
.panel h4{margin:0; font-size:.9rem; font-weight:500; color:var(--ink)}
.hint{font-size:.78rem; color:var(--ink-4)}
.empty{padding:44px 20px; text-align:center; color:var(--ink-4)}
.empty .big{font-size:.92rem; font-weight:500; color:var(--ink-2); margin-bottom:4px}
.empty .btn{margin-top:18px}
.errbox{padding:13px 17px; background:var(--err-bg); color:var(--err); border-radius:var(--r-srf); font-size:.84rem; display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.errbox .btn{margin-left:auto}
.loader{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:13px; padding:24px 20px; min-height:40vh}
.spinner{width:20px; height:20px; border:2px solid var(--line-2); border-top-color:var(--ink); border-radius:50%; animation:spin .6s linear infinite}
.load-msg{font-size:.8rem; color:var(--ink-4)}

/* ── site cards (the dashboard's application cards) ── */
.app-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px}
.app-card{position:relative; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:22px 22px 18px; cursor:pointer; text-align:left; width:100%; transition:border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 160ms var(--ease-out); min-height:196px; display:flex; flex-direction:column; animation:card-in 320ms var(--ease-out) both}
.app-card:hover{border-color:var(--line-3); box-shadow:0 1px 2px rgba(18,22,31,.04), 0 8px 28px rgba(18,22,31,.06)}
.app-card:active{transform:scale(.992)}
@keyframes card-in{from{opacity:0; transform:translateY(10px) scale(.985)}to{opacity:1; transform:none}}
.app-card .row1{display:flex; align-items:flex-start; gap:13px; margin-bottom:14px}
.app-card .row1 > div{min-width:0; flex:1}
.app-card .row1 > .app-ic{flex:none}
.app-ic{width:52px; height:52px; border-radius:14px; background:var(--bg-subtle); display:flex; align-items:center; justify-content:center; font-weight:500; font-size:1.15rem; color:#fff; flex:none; text-transform:uppercase; overflow:hidden; box-shadow:inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.12)}
.app-card h3{font-size:1.05rem; font-weight:500; color:var(--ink); letter-spacing:-.015em; margin:0 0 3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.app-card .repo{font-size:.8rem; color:var(--ink-3); line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.app-usage{display:flex; gap:16px; flex-wrap:wrap; font-size:.75rem; color:var(--ink-4); font-variant-numeric:tabular-nums}
.app-usage span{display:inline-flex; align-items:center; gap:5px}
.app-usage svg{width:11px; height:11px}
.circ{width:32px; height:32px; flex:none; border-radius:50%; border:1px solid var(--line-2); display:flex; align-items:center; justify-content:center; color:var(--ink-3); background:var(--surface); transition:color 120ms, border-color 120ms, transform 160ms var(--ease-out)}
.circ:hover{color:var(--ink); border-color:var(--line-3)}
.circ:active{transform:scale(.92)}
.circ svg{width:14px; height:14px}
.card-foot{display:flex; align-items:center; gap:10px; margin-top:auto; padding-top:16px; border-top:1px solid var(--line)}
.card-foot .hint{margin-left:auto}

/* ── site detail ── */
.detail-head{display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:6px 0 22px}
.detail-head .app-ic{width:46px; height:46px; border-radius:12px; font-size:1rem}
.detail-head h1{font-size:1.3rem; font-weight:500; color:var(--ink); margin:0; letter-spacing:-.02em; overflow-wrap:anywhere}
.detail-head .url{font-size:.82rem}
.detail-head .acts{margin-left:auto; display:flex; gap:8px; flex-wrap:wrap}
.facts{display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:14px}
.fact > span{display:block; font-size:.68rem; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-4); font-weight:500}
.fact b{display:flex; align-items:center; gap:6px; font-size:.88rem; color:var(--ink); font-weight:500; margin-top:3px; font-variant-numeric:tabular-nums}
.fact b svg{width:13px; height:13px; color:var(--ink-3)}
.dom-list{border-top:1px solid var(--line)}
.dom-row{display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid var(--line); font-size:.84rem; flex-wrap:wrap}
.dom-row .mono{color:var(--ink); overflow-wrap:anywhere}
.dom-row .acts{margin-left:auto; display:flex; gap:14px; align-items:center}
.connect-row{display:flex; gap:8px; margin-top:12px}

/* ── publish ── */
.dropzone{display:flex; flex-direction:column; align-items:center; gap:6px; width:100%; padding:46px 20px; text-align:center; border:1px dashed var(--line-3); border-radius:var(--r-srf); background:var(--bg-subtle); color:var(--ink-3); cursor:pointer; transition:border-color 150ms, background 150ms, transform 160ms var(--ease-out)}
.dropzone:hover{border-color:var(--ink-4); background:var(--bg-hover)}
.dropzone.over{border-color:var(--accent); background:var(--accent-bg)}
.dropzone:active{transform:scale(.995)}
.dropzone .pic{display:flex; color:var(--ink-4); margin-bottom:4px}
.dropzone .pic svg{width:22px; height:22px}
.dropzone b{font-size:.92rem; font-weight:600; color:var(--ink)}
.dropzone span{font-size:.78rem}
.progress{height:4px; border-radius:999px; background:var(--bg-hover); overflow:hidden; margin-top:14px}
.progress i{display:block; height:100%; width:0; border-radius:999px; background:var(--accent); transition:width 200ms var(--ease-out)}
.upload-line{display:flex; align-items:center; gap:10px; font-size:.86rem; color:var(--ink-2)}
.file-sum{display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid var(--line)}
.file-sum .prov{width:34px; height:34px}
.file-sum .prov svg{width:16px; height:16px}
.file-sum b{display:block; color:var(--ink); font-weight:500; font-size:.9rem; overflow-wrap:anywhere}
.file-sum code{font-family:var(--code); color:var(--ink-3)}
.checks{list-style:none; margin:0 0 16px; padding:0; display:flex; flex-direction:column; gap:8px}
.checks li{display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:var(--r-ctl); font-size:.82rem}
.checks li svg{width:15px; height:15px; margin-top:2px}
.checks li.warn{background:var(--warn-bg); color:var(--warn)}
.checks li.error{background:var(--err-bg); color:var(--err)}
.checks li b{display:block; font-weight:500}
.checks li span{color:var(--ink-2)}
.cfg-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px 18px}
.cfg-grid .wide{grid-column:1 / -1}
.f-lbl{font-size:.78rem; color:var(--ink-2); font-weight:500; margin-bottom:5px; display:block}
.f-lbl small{color:var(--ink-4); font-weight:400}
.inp{background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-ctl); color:var(--ink); padding:7px 11px; font:inherit; font-size:.84rem; width:100%; transition:border-color 150ms}
.inp::placeholder{color:var(--ink-4)}
.inp:focus{outline:none; border-color:var(--ink-4)}
.suffix{display:flex; align-items:stretch; border:1px solid var(--line-2); border-radius:var(--r-ctl); overflow:hidden; background:var(--surface); transition:border-color 150ms}
.suffix:focus-within{border-color:var(--ink-4)}
.suffix .inp{border:none; border-radius:0; min-width:0}
.suffix span{display:flex; align-items:center; padding:0 11px; background:var(--bg-subtle); border-left:1px solid var(--line); color:var(--ink-3); font-size:.8rem; white-space:nowrap}
.f-note{font-size:.76rem; color:var(--ink-4); margin-top:6px; min-height:1.2em; display:flex; align-items:center; gap:5px}
.f-note.ok{color:var(--ok)}
.f-note.bad{color:var(--err)}
.f-note svg{width:12px; height:12px}
.form-foot{display:flex; align-items:center; gap:10px; margin-top:20px; padding-top:16px; border-top:1px solid var(--line); flex-wrap:wrap}

/* ── guided DNS setup (the dashboard's SiteDomainSetup) ── */
.setup{margin-top:14px; border:1px solid var(--line); border-radius:12px; padding:16px 18px; background:var(--surface)}
.setup-head{display:flex; align-items:flex-start; gap:12px; margin-bottom:14px}
.setup-head b{display:block; font-size:.92rem; color:var(--ink); font-weight:500; overflow-wrap:anywhere}
.setup-head .hint{display:block; margin-top:1px}
.setup-head .textbtn{margin-left:auto}
.setup-where{display:flex; align-items:center; gap:14px; flex-wrap:wrap; border:1px solid var(--line); border-radius:12px; padding:14px 16px}
.setup-where > div{flex:1; min-width:200px}
.setup-where b{display:block; font-size:.9rem; color:var(--ink); font-weight:500}
.setup-where span{font-size:.78rem; color:var(--ink-3)}
.prov{width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--bg-subtle); color:var(--ink-2); font-weight:600; font-size:.95rem; flex:none}
.setup-steps{list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:10px}
.setup-steps li{display:flex; gap:10px; font-size:.86rem; color:var(--ink-2); line-height:1.45}
.setup-steps li .n{flex:none; width:22px; height:22px; border-radius:999px; display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:600; background:var(--bg-subtle); color:var(--ink-2)}
.setup-steps li.done{color:var(--ink-4)}
.setup-steps li.done .n{background:var(--ok-bg); color:var(--ok)}
.rec-tbl{border:1px solid var(--line); border-radius:12px; overflow:hidden; margin-top:14px}
.rec-head, .rec-row{display:grid; grid-template-columns:70px minmax(0,1fr) minmax(0,1.5fr) 36px; gap:10px; padding:9px 14px; align-items:center}
.rec-head{font-size:.68rem; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-4); font-weight:500; border-bottom:1px solid var(--line); background:var(--bg-subtle)}
.rec-row{padding:12px 14px; font-size:.84rem; border-bottom:1px solid var(--line)}
.rec-row:last-child{border-bottom:none}
.rec-row .ty{font-weight:500; color:var(--ink)}
.rec-row .mono{font-size:.76rem; color:var(--ink-2); overflow-wrap:anywhere}
.rec-copy{display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:7px; color:var(--ink-4); transition:background 120ms, color 120ms}
.rec-copy:hover{background:var(--bg-subtle); color:var(--ink)}
.rec-copy svg{width:14px; height:14px}
.dns-status{display:flex; align-items:center; gap:8px; font-size:.8rem; color:var(--ink-3); margin-top:14px}
.dns-status .spin{width:11px; height:11px; color:var(--ink-4)}
.setup-done{display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line); border-radius:12px; padding:16px 18px; background:var(--ok-bg)}
.setup-done-ic{flex:none; width:30px; height:30px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:var(--ok); color:#fff}
.setup-done-ic svg{width:15px; height:15px}
.setup-done b{display:block; color:var(--ink); font-size:.92rem; font-weight:500}
.setup-done span{font-size:.82rem; color:var(--ink-2)}

/* ── confirm dialog ── */
.modal-overlay{position:fixed; inset:0; background:rgba(15,16,20,.42); z-index:70; display:flex; align-items:center; justify-content:center; padding:16px; animation:ov-in 160ms var(--ease-out)}
@keyframes ov-in{from{opacity:0}to{opacity:1}}
.modal{background:var(--surface); border-radius:16px; box-shadow:0 24px 80px rgba(0,0,0,.24); width:420px; max-width:100%; padding:22px 24px; animation:md-in 200ms var(--ease-out)}
@keyframes md-in{from{opacity:0; transform:scale(.96)}to{opacity:1; transform:none}}
.modal h3{margin:0 0 6px; font-size:1.05rem; font-weight:500; color:var(--ink); letter-spacing:-.01em; overflow-wrap:anywhere}
.modal p{margin:0; font-size:.86rem; color:var(--ink-3)}
.confirm-foot{display:flex; gap:9px; margin-top:20px}
.confirm-foot .btn{flex:1; justify-content:center}

/* ── toasts (the dashboard's toast stack) ── */
.tstack{position:fixed; bottom:20px; right:20px; z-index:80; display:flex; flex-direction:column; align-items:flex-end; gap:9px; pointer-events:none; width:min(370px, calc(100vw - 32px))}
.tst{pointer-events:auto; display:flex; align-items:flex-start; gap:10px; width:100%; background:var(--surface); border:1px solid var(--line-2); border-radius:12px; padding:11px 12px; box-shadow:0 12px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05); transform-origin:bottom right; animation:tst-in 220ms var(--ease-out); transition:opacity 160ms var(--ease-out), transform 160ms var(--ease-out)}
@keyframes tst-in{from{opacity:0; transform:translateY(8px) scale(.97)}to{opacity:1; transform:none}}
.tst.out{opacity:0; transform:translateY(4px) scale(.98)}
.tst-ic{width:24px; height:24px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; margin-top:1px}
.tst-ic svg{width:13px; height:13px}
.tst-success .tst-ic{background:var(--ok-bg); color:var(--ok)}
.tst-error .tst-ic{background:var(--err-bg); color:var(--err)}
.tst-body{flex:1; min-width:0; font-size:.84rem; font-weight:500; color:var(--ink); line-height:1.4; padding-top:2px; overflow-wrap:anywhere}
.tst-x{color:var(--ink-4); padding:2px; border-radius:6px; flex:none; transition:color 120ms, background 120ms}
.tst-x:hover{color:var(--ink); background:var(--bg-subtle)}
.tst-x svg{width:13px; height:13px}

/* ── narrow screens: the dashboard's icon rail ── */
@media (max-width:760px){
  .shell{grid-template-columns:60px 1fr}
  aside{width:60px; padding-left:8px; padding-right:8px}
  .nav-btn span:last-child, .nav-btn .count, .side-user .who, .nav-lbl, .cta .lbl, .side-brand span, .side-version, .top-toggle{display:none}
  .nav-btn, .cta, .side-brand, .side-user{justify-content:center; padding-left:0; padding-right:0}
  .side-user{flex-direction:column; gap:8px}
  .content{padding:10px 16px 60px}
  .topbar{padding:12px 16px 8px}
  .cfg-grid{grid-template-columns:minmax(0,1fr)}
  .app-grid{grid-template-columns:minmax(0,1fr)}
  .detail-head .acts{margin-left:0; width:100%}
  .rec-head, .rec-row{grid-template-columns:54px minmax(0,1fr) minmax(0,1.3fr) 32px; gap:8px; padding-left:10px; padding-right:10px}
  .login-card{padding:32px 22px 24px}
}
