/* VPS Control 26.11.4: the interface, from the 26.11.3 design. No inline styles: the CSP allows none. */
@import url(fonts.css);

:root {
  --bg: #000; --card: #0A0A0A; --deep: #050505; --line: #232323; --line2: #333; --hover: #161616; --raise: #1A1A1A;
  --text: #EDEDED; --text2: #D6D6D6; --sub: #A8A8A8; --muted: #8C8C8C; --dim: #5E5E5E;
  --accent: #7F97FF; --accent2: #A9B8FF; --accent-soft: #1d2131; --accent-line: #3f4978;
  --ok: #3FCB7E; --ok-text: #5FD392; --ok-soft: #12261B; --ok-line: #2F6B47;
  --warn: #EBB14B; --warn-text: #F0BE63; --warn-soft: #2A2213;
  --bad: #F06A66; --bad-text: #F58A86; --bad-soft: #2D1617; --bad-btn: #1A0E0E; --bad-line: #4A2526;
  --violet: #C3A6FF;
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --side: 232px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ic { flex: none; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .sub { color: var(--sub); } .dim { color: var(--dim); }
.ok-t { color: var(--ok-text); } .warn-t { color: var(--warn-text); } .bad-t { color: var(--bad-text); } .acc-t { color: var(--accent); }
.small { font-size: 12.5px; } .tiny { font-size: 12px; } .nowrap { white-space: nowrap; } .num { font-variant-numeric: tabular-nums; }
.grow { flex: 1 1 auto; min-width: 0; } .right { margin-left: auto; } .wrap { flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stack.s12 { gap: 12px; } .stack.s16 { gap: 16px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hidden { display: none !important; }
@keyframes vc-spin { to { transform: rotate(360deg); } }
@keyframes vc-blink { 50% { opacity: 0; } }
@keyframes vc-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- the frame ------------------------------------------------------------------------------------ */
.app { display: flex; min-height: 100vh; }
.side { width: var(--side); flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--bg); scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; color: var(--text); }
.brand:hover { color: var(--text); }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--text); color: #000; display: grid; place-items: center; flex: none; }
.brand-name { font: 600 13.5px var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.menu-g { display: flex; flex-direction: column; gap: 2px; }
.menu-g + .menu-g { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.mi { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; border-radius: 8px; font-weight: 500; color: var(--sub); }
.mi:hover { color: var(--text); background: var(--hover); }
.mi[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.mi .mi-end { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-text);
  font-size: 11.5px; font-weight: 600; display: inline-grid; place-items: center; }
.cnt.bad { background: var(--bad-soft); color: var(--bad-text); } .cnt.info { background: var(--accent-soft); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
.dot.ring { box-shadow: 0 0 0 3px rgba(63, 203, 126, .16); }
.dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.off { background: var(--dim); } .dot.acc { background: var(--accent); }
.spin { width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: vc-spin .8s linear infinite; flex: none; display: inline-block; }
.spin.acc { color: var(--accent); } .spin.lg { width: 14px; height: 14px; }
.jobpill { position: sticky; bottom: 0; margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); }
.jobpill:hover { color: var(--text); border-color: var(--line2); }
.jobpill .t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; line-height: 18px; }
.bar { flex: 1; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .3s; }
.bar.ok > i { background: var(--ok); } .bar.warn > i { background: var(--warn); } .bar.bad > i { background: var(--bad); }
.bar.lg { height: 8px; }
.main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; min-height: 56px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: var(--bg); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--sub); min-width: 0; }
.crumbs a { color: var(--sub); } .crumbs a:hover { color: var(--text); }
.crumbs .here { font-weight: 600; color: var(--text); }
.crumbs .sep { color: var(--muted); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.searchbox { display: inline-flex; align-items: center; gap: 8px; height: 32px; width: 220px; padding: 0 6px 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13px; cursor: pointer; }
.searchbox:hover { color: var(--sub); border-color: var(--line2); }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line2); font: 500 11px/1 var(--mono); color: var(--sub); }
.tbtn { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--sub); cursor: pointer; padding: 0; }
.tbtn:hover { color: var(--text); border-color: var(--line2); }
.tbtn .badge-n { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad);
  color: #000; font-size: 11px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 2px #000; }
.tbtn .badge-n.warn { background: var(--warn); }
.tbtn .badge-d { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px #000; }
main.page { padding: 24px 28px 56px; width: 100%; max-width: 1240px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
main.page.wide { max-width: none; }
.mtop, .mnav, .mjob { display: none; }

/* ---- page parts ----------------------------------------------------------------------------------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; }
.head-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 420px; }
h1.t { font: 600 26px/1.2 var(--display); letter-spacing: -0.015em; }
h1.t.sm { font-size: 24px; }
.lead { color: var(--sub); font-size: 13.5px; }
.head-a { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eyebrow { font: 500 12px/1.2 var(--mono); color: var(--muted); }
.kicker { font: 600 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--sub); font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow: hidden; }
.card.pad { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.card-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 0 16px; border-bottom: 1px solid var(--line); min-height: 52px; }
.card-h h2 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-h .meta { font-size: 12.5px; color: var(--muted); }
.card-h .acts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; }
.card-b { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.card-f { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lrow { display: grid; grid-template-columns: 18px minmax(160px, 260px) minmax(0, 1fr) 16px; column-gap: 12px; align-items: center; min-height: 48px;
  padding: 6px 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
a.lrow:hover { background: var(--hover); color: var(--text); }
.lrow .w { font-weight: 500; } .lrow .d { font-size: 13px; color: var(--sub); min-width: 0; } .lrow .go { color: var(--muted); }
.kv { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); column-gap: 24px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv > .k { color: var(--sub); font-size: 13px; font-weight: 500; padding-top: 1px; }
.kv > .v { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kv > .v .h { font-size: 12.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .n { font: 600 22px/1.2 var(--display); letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 8px; }
.stat .n small { font: 500 12.5px var(--font); color: var(--sub); letter-spacing: 0; }
.stat .s { font-size: 12.5px; color: var(--sub); }
a.stat:hover { border-color: var(--line2); color: var(--text); }

/* ---- controls ------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px;
  font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; border: 1px solid var(--line2); background: var(--hover); color: var(--text); }
.btn:hover { color: var(--text); background: var(--raise); border-color: #444; }
.btn.sm { height: 30px; padding: 0 10px; gap: 6px; font-size: 12.5px; }
.btn.primary { border-color: var(--accent); background: var(--accent); color: #000; font-weight: 600; }
.btn.primary:hover { background: var(--accent2); border-color: var(--accent2); color: #000; }
.btn.danger { border-color: var(--bad-line); background: var(--bad-btn); color: var(--bad-text); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--sub); }
.btn.quiet:hover { color: var(--text); background: var(--hover); }
.btn.icon { width: 30px; height: 30px; padding: 0; color: var(--sub); }
.btn.icon.lg { width: 36px; height: 36px; }
.btn[disabled], .btn.busy { opacity: .55; cursor: default; pointer-events: none; }
.btn .spin { color: currentColor; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.link { color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; display: inline-flex; align-items: center; gap: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 13px; font-weight: 500; color: var(--sub); }
.field .hint { font-size: 12.5px; color: var(--muted); line-height: 18px; }
.field .err { font-size: 12.5px; color: var(--bad-text); }
.input, .select, .area { height: 36px; padding: 0 11px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg); color: var(--text);
  font: 14px var(--font); width: 100%; min-width: 0; }
.area { height: auto; min-height: 96px; padding: 9px 11px; font: 13px/1.5 var(--mono); resize: vertical; }
.input:focus, .select:focus, .area:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.input.mono { font: 14px var(--mono); }
.input.lg { height: 40px; padding: 0 12px; }
.input.key { height: 56px; padding: 0 16px; border-radius: 8px; font: 500 21px var(--mono); letter-spacing: .04em; }
.input.bad, .field.bad .input { border-color: var(--bad-line); }
.select { -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8A8A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }
.find { position: relative; }
.find .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.find .input { width: 220px; padding-left: 32px; font-size: 13.5px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; }
.check input { margin: 3px 0 0; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check .col { gap: 2px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--bg); }
.choice:hover { border-color: var(--line2); }
.choice:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.choice input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.switch { position: relative; width: 36px; height: 20px; flex: none; -webkit-appearance: none; appearance: none; border-radius: 999px; background: var(--line2);
  cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.switch:checked { background: var(--accent); } .switch:checked::after { transform: translateX(16px); background: #000; }
.strength { display: flex; align-items: center; gap: 10px; }
.strength .segs { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength .segs i { height: 4px; border-radius: 2px; background: var(--line); }
.strength.s1 .segs i:nth-child(-n+1), .strength.s2 .segs i:nth-child(-n+2) { background: var(--warn); }
.strength.s3 .segs i:nth-child(-n+3), .strength.s4 .segs i { background: var(--ok); }

/* ---- badges, notes, tabs ---------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  white-space: nowrap; background: var(--line); color: var(--sub); }
.badge.ok { background: var(--ok-soft); color: var(--ok-text); } .badge.warn { background: var(--warn-soft); color: var(--warn-text); }
.badge.bad { background: var(--bad-soft); color: var(--bad-text); } .badge.info { background: var(--accent-soft); color: var(--accent); }
.badge.mono { font-family: var(--mono); font-size: 11.5px; }
.note { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 20px;
  background: var(--accent-soft); color: var(--text); }
.note > .ic { color: var(--accent); }
.note > .tx { flex: 1 1 320px; min-width: 0; }
.note > .btns { margin-left: auto; }
.note.ok { background: var(--ok-soft); color: var(--ok-text); } .note.ok > .ic { color: var(--ok); }
.note.warn { background: var(--warn-soft); color: var(--warn-text); } .note.warn > .ic { color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad-text); } .note.bad > .ic { color: var(--bad); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--sub); font-weight: 500; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-current="page"], .tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab .c { font-size: 12px; color: var(--muted); font-weight: 400; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.seg > * { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent;
  color: var(--sub); font: 500 13px var(--font); cursor: pointer; white-space: nowrap; }
.seg > *:hover { color: var(--text); }
.seg > [aria-pressed="true"], .seg > [aria-current="page"], .seg > [aria-selected="true"] { background: var(--line); box-shadow: 0 0 0 1px var(--line2); color: var(--text); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.steps li { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 2px solid var(--line2); }
.steps li .n { font-size: 12.5px; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.steps li .w { font-weight: 600; color: var(--sub); }
.steps li.done { border-top-color: var(--ok-line); } .steps li.done .n { color: var(--ok-text); } .steps li.done .w { color: var(--text); }
.steps li[aria-current="step"] { border-top-color: var(--accent); } .steps li[aria-current="step"] .n { color: var(--accent); } .steps li[aria-current="step"] .w { color: var(--text); }
.steps li.skip { border-top-style: dashed; }

/* ---- tables ----------------------------------------------------------------------------------------- */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td, table.t tr.sel td { background: var(--hover); }
table.t td .s { display: block; font-size: 12.5px; color: var(--muted); }
table.t td.acts { text-align: right; white-space: nowrap; }
table.t td.acts .btns { justify-content: flex-end; flex-wrap: nowrap; }
table.t .r { text-align: right; }

/* ---- states ------------------------------------------------------------------------------------------ */
.empty { padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.empty .em-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--hover); color: var(--muted); margin-bottom: 6px; }
.empty .em-t { font-weight: 600; font-size: 15px; } .empty .em-d { font-size: 13px; color: var(--muted); max-width: 460px; }
.empty .btns { justify-content: center; margin-top: 8px; }
.skel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.skel i { display: block; height: 10px; border-radius: 4px; background: #1C1C1C; animation: vc-pulse 1.4s ease-in-out infinite; }
.skel i.sq { width: 28px; height: 28px; border-radius: 8px; background: var(--hover); }
.skel .col { flex: 1; gap: 7px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 24px 16px; font-size: 13px; }
.log { margin: 0; padding: 12px 16px; background: var(--deep); font: 12.5px/1.6 var(--mono); color: var(--text2); white-space: pre-wrap; word-break: break-word;
  max-height: 520px; overflow: auto; }
.log .l-cmd { color: var(--accent); } .log .l-warn { color: var(--warn-text); } .log .l-err { color: var(--bad-text); } .log .l-step { color: var(--text); font-weight: 600; }
.log .l-dim { color: var(--muted); }
.code { margin: 0; padding: 12px 0; background: var(--deep); font: 12.5px/1.6 var(--mono); overflow: auto; max-height: 560px; counter-reset: ln; }
.code .ln { display: block; padding: 0 16px 0 56px; position: relative; white-space: pre; color: var(--text2); min-height: 20px; }
.code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 40px; text-align: right; color: var(--dim); }
.copybox { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); min-width: 0; }
.copybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secret-v { font-family: var(--mono); letter-spacing: .08em; }

/* ---- dialogs, menus, toasts -------------------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(5, 5, 5, .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog { width: 520px; max-width: 100%; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line2);
  border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, .6); overflow: hidden; }
.dialog.sm { width: 460px; } .dialog.lg { width: 720px; }
.dlg-h { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; min-height: 56px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { font-size: 16px; font-weight: 600; }
.dlg-x { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--sub); cursor: pointer; }
.dlg-x:hover { color: var(--text); background: var(--hover); }
.dlg-b { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.dlg-hero { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px; }
.dlg-hero .hi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dlg-hero .hi.bad { background: var(--bad-soft); color: var(--bad-text); }
.dlg-hero h2 { font: 600 20px/1.25 var(--display); }
.dlg-hero p { font-size: 13.5px; color: var(--sub); }
.dlg-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.dlg-f .right { display: flex; gap: 8px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12.5px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pop { position: fixed; z-index: 90; min-width: 260px; max-width: 340px; background: var(--card); border: 1px solid var(--line2); border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .6); padding: 6px; display: flex; flex-direction: column; }
.pop .pi { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 7px; color: var(--text); background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.pop .pi:hover { background: var(--hover); color: var(--text); }
.pop .pi .col { gap: 1px; } .pop .pi .s { font-size: 12.5px; color: var(--muted); }
.pop .pi.danger { color: var(--bad-text); }
.pop .ph { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55); font-size: 13.5px; }
.toast.ok .ic { color: var(--ok); } .toast.bad { border-color: var(--bad-line); } .toast.bad .ic { color: var(--bad); }
.palette { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; background: rgba(5, 5, 5, .7); }
.palette .box { width: 640px; max-width: 100%; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, .6); overflow: hidden; }
.palette .q { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.palette .q input { flex: 1; height: 52px; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--text); }
.palette .res { max-height: 60vh; overflow-y: auto; padding: 6px; }
.palette .grp { padding: 8px 10px 4px; font: 600 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.palette .it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; color: var(--text); cursor: pointer; }
.palette .it[aria-selected="true"], .palette .it:hover { background: var(--hover); color: var(--text); }
.palette .it .s { color: var(--muted); font-size: 12.5px; }

/* ---- sign-in and setup (centered) ------------------------------------------------------------------- */
.solo { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 20px; gap: 24px; }
.solo .brand { padding: 0; }
.solo-box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.solo-box.wide { max-width: 760px; }
.solo-foot { margin-top: auto; font-size: 12.5px; color: var(--muted); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.setup-top { width: 100%; max-width: 760px; display: flex; align-items: center; gap: 12px; }
.setup-top .right { font-size: 12.5px; color: var(--muted); }

/* ---- apps grid --------------------------------------------------------------------------------------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; padding: 14px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 10px; color: var(--text); text-align: center; min-width: 0; }
.tile:hover { background: var(--hover); color: var(--text); }
.tile .ap { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 600 15px var(--display); color: #000; background: var(--sub); position: relative; }
.tile .ap .dot { position: absolute; right: -2px; bottom: -2px; box-shadow: 0 0 0 3px var(--bg); }
.tile .nm { font-weight: 500; font-size: 13.5px; max-width: 100%; } .tile .ds { font-size: 12px; color: var(--muted); max-width: 100%; }
.ap.c0 { background: #7F97FF; } .ap.c1 { background: #5FD392; } .ap.c2 { background: #F0BE63; } .ap.c3 { background: #C3A6FF; }
.ap.c4 { background: #7FB4FF; } .ap.c5 { background: #F58A86; } .ap.c6 { background: #8BD49C; } .ap.c7 { background: #D6D6D6; }
.ap.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.term { background: var(--deep); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; }
.term .xterm-host { flex: 1; padding: 8px; min-height: 480px; }
.term-tabs { display: flex; gap: 2px; padding: 6px 6px 0; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; }
.term-tab { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--sub); cursor: pointer; font: 500 13px var(--font); }
.term-tab[aria-selected="true"] { background: var(--deep); color: var(--text); box-shadow: inset 0 2px 0 var(--accent); }

/* ---- small screens: the mobile frame ------------------------------------------------------------------ */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .side, .top { display: none; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 2px; height: 56px; padding: 0 6px 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .mtop.back { padding-left: 4px; }
  .mtop .brand { padding: 0; margin-right: auto; min-height: 44px; }
  .mtop .backlink { display: flex; align-items: center; gap: 2px; min-height: 44px; margin-right: auto; padding-right: 8px; color: var(--text); font-size: 15px; font-weight: 500; min-width: 0; }
  .mtop .mbtn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--sub); background: none; border: 0; }
  .mjob { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 16px; background: var(--accent-soft); border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; }
  .mjob.hidden { display: none; }
  .mjob .pct { font: 13px var(--mono); color: var(--accent); }
  .mjob .line { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--accent); width: 0; }
  .mnav { display: grid; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 4px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .mnav a, .mnav button { display: flex; align-items: center; justify-content: center; min-height: 52px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
  .mnav .pill { position: relative; display: grid; place-items: center; width: 60px; height: 36px; border-radius: 999px; }
  .mnav [aria-current="page"] { color: var(--accent); } .mnav [aria-current="page"] .pill { background: var(--accent-soft); }
  .mnav .mdot { position: absolute; top: 4px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #000; }
  .mnav .mn { position: absolute; top: -2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #000; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #000; }
  .mnav .mn.warn { background: var(--warn-soft); color: var(--warn-text); }
  .main-col { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  main.page { padding: 20px 16px 28px; gap: 16px; }
  h1.t { font-size: 24px; }
  .head-a { margin-left: 0; width: 100%; }
  .find .input { width: 100%; } .find { flex: 1 1 auto; }
  .lrow { grid-template-columns: 18px minmax(0, 1fr) 16px; row-gap: 2px; padding: 10px 16px; }
  .lrow .d { grid-column: 2; }
  .lrow .go { grid-row: 1; grid-column: 3; }
  .kv { grid-template-columns: 1fr; row-gap: 6px; }
  .btn { height: 44px; font-size: 15px; } .btn.sm { height: 36px; font-size: 14px; } .btn.icon { width: 40px; height: 40px; }
  .input, .select { height: 44px; font-size: 16px; }
  table.t th, table.t td { padding: 9px 12px; }
  .hide-m { display: none !important; }
  .overlay { align-items: flex-end; padding: 0; }
  .dialog { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .solo { padding: 28px 16px; }
  .toasts { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: none; }
  .palette { padding: 0; } .palette .box { border-radius: 0; height: 100%; } .palette .res { max-height: none; }
  .apps-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); padding: 10px; }
}
@media (min-width: 761px) { .show-m { display: none !important; } }
.choice-card { text-align: left; cursor: pointer; color: var(--text); font: inherit; align-items: flex-start; }
.choice-card:hover { border-color: var(--line2); }
.choice-card .btn { margin-top: 6px; }
.lrow.act { grid-template-columns: 18px minmax(160px, 260px) minmax(0, 1fr) auto; }
.lrow.act > :last-child { justify-self: end; }
@media (max-width: 760px) { .lrow.act { grid-template-columns: 18px minmax(0, 1fr) auto; } .lrow.act .d { grid-column: 2 / 4; grid-row: 2; } }
.chart { display: block; width: 100%; height: 56px; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.chart .ln.dash { stroke-dasharray: 4 3; opacity: .7; }
.chart .fill { fill: var(--accent); opacity: .12; }
.chart .ax { stroke: var(--line); stroke-width: 1; }
.chart.ok .ln { stroke: var(--ok); } .chart.ok .fill { fill: var(--ok); }
.chart.warn .ln { stroke: var(--warn); } .chart.warn .fill { fill: var(--warn); }
.chart.violet .ln { stroke: var(--violet); } .chart.violet .fill { fill: var(--violet); }
.chart-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); }
.load-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.load-grid > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.load-grid .big { font: 600 24px/1.1 var(--display); display: flex; align-items: baseline; gap: 6px; }
.load-grid .big small { font: 500 13px var(--font); color: var(--sub); }
a.stat { color: var(--text); }

/* headings and folds inside a card */
h3.sub { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--sub); }
.card-b > h3.sub:first-child { margin-top: 0; }
details > summary { cursor: pointer; color: var(--sub); margin: 10px 0 0; width: max-content; }
details[open] > summary { margin-bottom: 10px; }
.field .row > .mono:not(.input) { color: var(--sub); }
.field > .seg { align-self: flex-start; max-width: 100%; }
/* numbered steps written as a list */
.steps-v { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 10px; }
.steps-v li { padding-left: 4px; }
.steps-v li .s { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
/* a QR code keeps a white quiet zone, so phones read it on the dark page */
img.qr { display: block; background: #fff; padding: 10px; border-radius: 10px; margin: 6px 0 12px; image-rendering: pixelated; }
/* codes shown once */
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--deep); margin-bottom: 10px; }
.copybox code.big { font-size: 16px; letter-spacing: .04em; white-space: normal; word-break: break-all; }
.copybox code { white-space: normal; word-break: break-all; }
/* rows that open */
details.act-row > summary { list-style: none; cursor: pointer; }
details.act-row > summary::-webkit-details-marker { display: none; }
details.act-row[open] > summary { background: var(--bg); }
details.act-row { border-top: 1px solid var(--line); }
details.act-row:first-child { border-top: 0; }
h2.sect { font-size: 15px; margin: 6px 0 -4px; }
.t tr.grp th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-top: 14px; }
.notice.unread b, tr.unread b { color: var(--text); }
.notice.unread::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); position: absolute; left: 6px; top: 50%; translate: 0 -50%; }
.notice { position: relative; }
.select.sm, .input.sm { min-height: 28px; height: 28px; padding: 0 8px; font-size: 12.5px; width: auto; }
.input.sm { width: 64px; display: inline-block; }
.solo-card { max-width: 560px; margin: 24px auto; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; flex: none; }
/* a row with one block of text between the icon and its buttons */
.lrow.act:has(> :nth-child(3):last-child) { grid-template-columns: 18px minmax(0, 1fr) auto; }
.lrow > span > .s { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
@media (max-width: 760px) { .lrow.act:has(> :nth-child(3):last-child) > :last-child { grid-column: 2 / 4; justify-self: start; } }
table.t td > span:not(.s) > svg.ic { display: inline-block; vertical-align: -3px; }
.row > .select { width: auto; flex: none; }
.row > .find.grow { flex: 1 1 220px; } .row > .find.grow .input { width: 100%; }
/* a provider's steps, with the pages that do them */
.guide { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--deep); font-size: 13px; }
.guide ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.guide li { line-height: 20px; }
.guide li > .btn { margin-left: 4px; vertical-align: middle; }
.guide p { margin: 0; }
details.fold > summary { cursor: pointer; color: var(--sub); width: fit-content; }
details.fold[open] > summary { margin-bottom: 8px; }
