@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "JBMono"; src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --paper: #f4f3ee;
  --panel: #ffffff;
  --panel-2: #fafaf7;
  --ink: #15171c;
  --ink-2: #3a3e47;
  --muted: #6c707a;
  --faint: #9a9da5;
  --line: #e3e1d9;
  --line-2: #ecebe5;
  --accent: #1d4ed8;
  --accent-ink: #1a3fae;
  --accent-soft: #e6ecfd;
  --accent-soft-ink: #8fa9f0;
  --ok: #19794b;
  --ok-bright: #22a466;
  --ok-soft: #e3f3ea;
  --warn: #a35f00;
  --warn-bright: #e08a00;
  --warn-soft: #fbf0dc;
  --bad: #b8322a;
  --bad-soft: #fbe5e2;
  --term: #101217;
  --term-2: #1a1d24;
  --term-ink: #d7dae0;
  --radius: 10px;
  --radius-s: 7px;
  --shadow: 0 1px 0 rgba(21, 23, 28, .04), 0 1px 2px rgba(21, 23, 28, .05);
  --shadow-l: 0 18px 50px -12px rgba(21, 23, 28, .28), 0 2px 6px rgba(21, 23, 28, .08);
  --sans: "Schibsted", ui-sans-serif, system-ui, sans-serif;
  --mono: "JBMono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --side-w: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
svg { display: block; }
.mono, code, kbd { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 14px; background: var(--panel-2); border-right: 1px solid var(--line); }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.mark { width: 28px; height: 28px; }
.wordmark { font-weight: 640; font-size: 17px; letter-spacing: -.02em; }
.wordmark b { font-weight: 640; color: var(--accent); margin-left: .26em; }
.side .side-close { display: none; }
.org { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.org:hover { border-color: #cfccc2; }
.org-logo { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #3b2a20; color: #f3d9b8; font-weight: 700; font-size: 12px; letter-spacing: .02em; flex: none; }
.org-txt { display: flex; flex-direction: column; min-width: 0; }
.org-txt b { font-weight: 600; font-size: 13.5px; }
.org-txt small { color: var(--muted); font-size: 12px; }
.chev { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.nav a:hover { background: #efeee8; }
.nav a[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.nav a[aria-current="page"] svg { color: var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.side-note { margin: 0; color: var(--muted); font-size: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.me b { display: block; font-weight: 600; font-size: 13px; }
.me small { color: var(--muted); font-size: 12px; }
.avatar { --h: 200; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 650; color: hsl(var(--h) 45% 25%); background: hsl(var(--h) 60% 88%); }
.scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 28px; background: rgba(244, 243, 238, .88); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.top .menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.crumbs b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; width: 240px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; flex: none; }
.search input { border: 0; outline: 0; background: none; min-width: 0; flex: 1; font-size: 13.5px; }
.search kbd { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
#view { padding: 28px 28px 64px; outline: none; max-width: 1320px; width: 100%; }

/* type & layout */
h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin: 0; }
h2 { font-size: 15px; font-weight: 620; margin: 0; letter-spacing: -.005em; }
h3 { font-size: 13.5px; font-weight: 600; margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-h p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.card-b { padding: 16px 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 560; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: var(--shadow); transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: #cdcac0; background: #fbfbf9; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2a2d35; }
.btn.blue { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.blue:hover { background: var(--accent-ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: #ebeae4; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }

/* status */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.dot.ok { background: var(--ok-bright); box-shadow: 0 0 0 3px rgba(34, 164, 102, .16); }
.dot.warn { background: var(--warn-bright); box-shadow: 0 0 0 3px rgba(224, 138, 0, .16); }
.dot.bad { background: var(--bad); }
.dot.busy { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.dot.off { background: #b7b9bf; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(29, 78, 216, .16); } }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 560; background: #efeee9; color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.blue { background: var(--accent-soft); color: var(--accent-ink); }
.badge.off { background: #ecebe6; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 5px; background: #f0efea; color: var(--ink-2); border: 1px solid var(--line-2); }

/* overview */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; }
.stat { padding: 14px 18px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.stat b { font-size: 22px; font-weight: 640; letter-spacing: -.02em; }
.stat b span { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.app-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.app-card:hover { border-color: #cbc8bd; box-shadow: 0 6px 18px -10px rgba(21, 23, 28, .25); }
.app-top { display: flex; align-items: flex-start; gap: 11px; }
.app-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--c-bg, #eef); color: var(--c, var(--accent)); }
.app-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-name { min-width: 0; flex: 1; }
.app-name h3 { font-size: 14.5px; font-weight: 620; font-family: var(--mono); letter-spacing: -.01em; }
.app-name p { margin: 1px 0 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; }
.app-meta dt { color: var(--muted); }
.app-meta dd { margin: 0; color: var(--ink-2); font-weight: 520; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-meta .pair { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.uptime { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.uptime-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.uptime-h b { color: var(--ink); font-weight: 600; }
.spark { width: 100%; height: 26px; }
.app-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.feed { display: flex; flex-direction: column; }
.feed-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .fi { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #efeee9; color: var(--ink-2); }
.feed-item .fi svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feed-item .fi.ok { background: var(--ok-soft); color: var(--ok); }
.feed-item .fi.blue { background: var(--accent-soft); color: var(--accent-ink); }
.feed-item .fi.warn { background: var(--warn-soft); color: var(--warn); }
.feed-item p { margin: 0; color: var(--ink-2); }
.feed-item p b { color: var(--ink); font-weight: 600; }
.feed-item time { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; }
.feed-item.new { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } }
.side-stack { display: flex; flex-direction: column; gap: 16px; }
.watch { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13px; }
.watch span:nth-child(even) { color: var(--muted); }

/* app detail */
.app-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.app-head .app-ico { width: 44px; height: 44px; border-radius: 11px; }
.app-head .app-ico svg { width: 22px; height: 22px; }
.app-head h1 { font-family: var(--mono); font-size: 22px; letter-spacing: -.02em; }
.app-sub { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.app-sub a { color: var(--ink-2); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--ink-2); font-weight: 520; min-width: 0; overflow-wrap: anywhere; }
.iso { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.iso li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); }
.iso svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.mini { padding: 14px 18px; border-right: 1px solid var(--line-2); }
.mini:last-child { border-right: 0; }
.mini small { color: var(--muted); font-size: 12px; }
.mini b { display: block; font-size: 19px; font-weight: 630; letter-spacing: -.01em; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 560; color: var(--muted); font-size: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); white-space: nowrap; }
.table td { padding: 12px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; }
.table .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.table tr.new td { animation: flash 1.8s ease-out; }
.commit { display: flex; flex-direction: column; min-width: 0; }
.commit b { font-weight: 560; }
.who { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.who .avatar { width: 22px; height: 22px; font-size: 9.5px; }

/* charts */
.chart-card .card-b { padding: 12px 10px 8px 6px; }
.chart { width: 100%; height: 190px; }
.chart .grid-l { stroke: var(--line-2); stroke-width: 1; }
.chart .ax { fill: var(--faint); font: 10.5px var(--mono); }
.chart .ln { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart .hover-l { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-wrap { position: relative; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow-l); }
.tip small { display: block; color: #aeb3bd; font-family: var(--mono); font-size: 10.5px; }
.seg { display: inline-flex; padding: 2px; background: #ecebe5; border-radius: 8px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12.5px; font-weight: 560; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* logs */
.term { background: var(--term); color: var(--term-ink); border-radius: var(--radius); font: 12.5px/1.65 var(--mono); padding: 14px 16px; overflow: auto; max-height: 460px; border: 1px solid #000; }
.term .l { white-space: pre; display: block; }
.term .t { color: #6b7280; }
.term .ok { color: #4ade80; }
.term .w { color: #fbbf24; }
.term .e { color: #f87171; }
.term .b { color: #93b4ff; }
.term .d { color: #8a90a0; }

/* backups */
.bk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.window { padding: 16px 18px 18px; }
.window-bar { position: relative; height: 34px; margin-top: 10px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--accent-soft) 0 2px, #f0f3fd 2px 9px); border: 1px solid #d6dffa; }
.window-bar .snap { position: absolute; top: 5px; bottom: 5px; width: 3px; border-radius: 2px; background: var(--accent); }
.window-bar .snap.pre { background: var(--warn-bright); }
.window-bar .now { position: absolute; right: -1px; top: -6px; bottom: -6px; width: 2px; background: var(--ink); }
.window-ax { display: flex; justify-content: space-between; margin-top: 6px; font: 11px var(--mono); color: var(--faint); }

/* modal */
.modal-root:empty { display: none; }
.modal-root { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(21, 23, 28, .42); animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-l); animation: rise .22s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.modal.wide { width: min(760px, 100%); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line-2); }
.modal-h h2 { font-size: 17px; }
.modal-h p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.modal-b { padding: 18px 20px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-f { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: var(--panel-2); }
.modal-f .hint { margin-right: auto; color: var(--muted); font-size: 12.5px; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #cdcac0; }
.opt:has(input:checked) { border-color: var(--accent); background: #f6f8ff; box-shadow: inset 0 0 0 1px var(--accent); }
.opt input { margin: 2px 0 0; accent-color: var(--accent); width: 16px; height: 16px; }
.opt b { font-weight: 580; display: block; }
.opt small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.opt .tag { align-self: center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lab { font-weight: 560; font-size: 13px; }
.field small { color: var(--muted); font-size: 12px; }
.input { height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); outline: none; min-width: 0; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.mono { font-family: var(--mono); font-size: 13px; }
.note { display: flex; gap: 10px; padding: 11px 13px; border-radius: 9px; background: var(--warn-soft); color: #6b4300; font-size: 13px; }
.note.blue { background: var(--accent-soft); color: #1e3a8a; }
.note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stages { display: flex; gap: 4px; }
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.stage i { height: 4px; border-radius: 3px; background: #e7e6e0; position: relative; overflow: hidden; }
.stage.run { color: var(--ink); font-weight: 560; }
.stage.run i::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); border-radius: 3px; animation: slide 1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.stage.done { color: var(--ink-2); }
.stage.done i { background: var(--ok-bright); }
.stage span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 560; }
.result svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.result small { display: block; color: #2f6b4c; font-weight: 450; font-size: 12.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; color: var(--muted); font-size: 13.5px; }
.steps li .si { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d3d1c8; display: grid; place-items: center; }
.steps li.run { color: var(--ink); font-weight: 560; }
.steps li.run .si { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink-2); }
.steps li.done .si { background: var(--ok-bright); border-color: var(--ok-bright); }
.steps li.done .si::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.steps li time { font: 11.5px var(--mono); color: var(--faint); }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 6px; background: #ecebe5; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .3s ease-out; }
.stepper { display: flex; gap: 6px; font-size: 12px; color: var(--muted); }
.stepper span { display: inline-flex; align-items: center; gap: 6px; }
.stepper span b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #ecebe5; font-size: 11px; color: var(--muted); }
.stepper span.on { color: var(--ink); font-weight: 560; }
.stepper span.on b { background: var(--ink); color: #fff; }
.stepper span.done b { background: var(--ok-bright); color: #fff; }
.stepper .sep { width: 14px; height: 1px; background: var(--line); align-self: center; }

/* domains, team, billing */
.dns { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font: 12.5px var(--mono); }
.dns > * { padding: 8px 10px; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
.dns .h { background: var(--panel-2); color: var(--muted); font-family: var(--sans); font-size: 12px; }
.plan-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.big-num { font-size: 32px; font-weight: 650; letter-spacing: -.03em; }
.big-num small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.cc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.cc-logo { width: 42px; height: 28px; border-radius: 5px; background: linear-gradient(135deg, #1e2235, #3b4266); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 10.5px; letter-spacing: .06em; }
.usage { display: flex; flex-direction: column; gap: 14px; }
.usage .u-h { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.usage .u-h span:last-child { color: var(--muted); }

/* toasts */
.toasts { position: fixed; right: 20px; bottom: 52px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 9px; box-shadow: var(--shadow-l); font-size: 13px; max-width: 360px; animation: rise .22s ease-out; }
.toast .dot { box-shadow: none; }

.ribbon { position: fixed; left: 12px; bottom: 12px; z-index: 30; padding: 5px 10px; border-radius: 999px; background: rgba(21, 23, 28, .82); color: #f4f3ee; font: 500 11.5px var(--sans); text-decoration: none; letter-spacing: .01em; }
.ribbon:hover { background: var(--ink); }

/* responsive */
@media (max-width: 1180px) {
  .overview { grid-template-columns: minmax(0, 1fr); }
  .side-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform .25s ease-out; box-shadow: var(--shadow-l); }
  .side.open { transform: none; }
  .side .side-close { display: grid; }
  .scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(21, 23, 28, .35); z-index: 45; }
  .top .menu-btn { display: grid; }
  .top { padding: 0 16px; gap: 10px; }
  .search { width: 180px; }
  #view { padding: 20px 16px 72px; }
  .plan-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .search, .help { display: none; }
  h1 { font-size: 21px; }
  .stats, .bk-stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .side-stack { grid-template-columns: minmax(0, 1fr); }
  .apps { grid-template-columns: minmax(0, 1fr); }
  .mini-charts { grid-template-columns: minmax(0, 1fr); }
  .mini { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .mini:last-child { border-bottom: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 3px 0; border: 0; text-align: left !important; }
  .table td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 92px; color: var(--muted); font-size: 12px; }
  .table td.cell-act { padding-top: 8px; }
  .card-h { flex-wrap: wrap; padding: 12px 16px; }
  .card-b { padding: 14px 16px; }
  .modal-root { padding: 0; align-items: end; }
  .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .stage span { font-size: 11px; }
  .stages { gap: 3px; }
  .dns { grid-template-columns: auto minmax(0, 1fr); }
  .dns .ttl { display: none; }
  .ribbon { left: auto; right: 10px; bottom: 10px; }
  .stat b span { display: block; margin: 2px 0 0; }
  .toasts { left: 12px; right: 12px; bottom: 48px; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.pair-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .pair-2 { grid-template-columns: minmax(0, 1fr); } }
.nw { white-space: nowrap; }
.table.compact .c-took { display: none; }
.table.compact td, .table.compact th { padding-left: 14px; padding-right: 14px; }
.table.compact td:first-child, .table.compact th:first-child { padding-left: 18px; }
.chart { height: 190px; }
@media (max-width: 640px) { .table.compact .c-took { display: block; } .table td.nw { white-space: normal; } }
@media (min-width: 901px) { .shell { background: linear-gradient(90deg, var(--panel-2) calc(var(--side-w) - 1px), var(--line) 0 var(--side-w), transparent 0); } }
.app-head { flex-wrap: nowrap; align-items: flex-start; }
.app-head > div { min-width: 0; }
@media (max-width: 640px) { .app-head .app-ico { width: 38px; height: 38px; } }
@media (min-width: 901px) { .side { padding-bottom: 46px; } }
