@font-face {
  font-family: "Inter Variable";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk Variable";
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --background: #f4f5f7;
  --foreground: #060d14;
  --card: #ffffff;
  --secondary: #edf0f3;
  --surface-soft: #f8f9fb;
  --surface-hover: #f2f4f6;
  --surface-table: #f7f8fa;
  --muted: #606a76;
  --muted-light: #89919b;
  --border: #d7dce2;
  --border-light: #e7eaee;
  --input: #98a1ab;
  --primary: #f00020;
  --primary-hover: #d6001d;
  --primary-surface: #fff0f2;
  --primary-border: #f1bcc4;
  --navy: #060d14;
  --success: #187a59;
  --success-surface: #e9f7f0;
  --success-border: #bfe1d2;
  --warning: #8a4b0f;
  --warning-surface: #fff7e9;
  --warning-border: #efd4ab;
  --danger: #b42318;
  --danger-surface: #fff0ee;
  --danger-border: #f0c8c4;
  --radius: 8px;
  --sidebar-width: 232px;
  --shadow: 0 1px 2px rgba(6, 13, 20, 0.035), 0 14px 38px rgba(6, 13, 20, 0.055);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--foreground);
  background: var(--background);
  font-family: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, strong, .font-display { font-family: "Space Grotesk Variable", ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, p { margin-top: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
::selection { color: white; background: var(--primary); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; color: white; background: var(--navy); border-radius: 6px; transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }
[hidden] { display: none !important; }

.loading-view {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  justify-items: center;
}
.loading-logo { width: 132px; height: auto; }
.spinner { color: var(--primary); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.page-enter { animation: enter 420ms var(--ease) both; }
.page-view { display: none; }
.page-view.is-active { display: block; animation: enter 260ms var(--ease) both; }

.eyebrow {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
  align-items: center;
  color: var(--primary);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow > span { width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(24,122,89,.1); }
.eyebrow.muted { color: var(--primary); }

.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(440px, 0.92fr) minmax(560px, 0.78fr);
  background: var(--background);
}
.login-brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 40px;
  overflow: hidden;
  flex-direction: column;
  color: var(--foreground);
  background:
    radial-gradient(circle at 10% 12%, rgba(240,0,32,.055), transparent 31%),
    radial-gradient(circle at 92% 80%, rgba(24,122,89,.04), transparent 28%),
    linear-gradient(135deg, transparent 0%, rgba(6,13,20,.018) 48%, transparent 49%),
    #f4f5f7;
}
.login-brand-panel::after {
  position: absolute;
  right: -160px;
  bottom: -180px;
  width: 560px;
  height: 560px;
  content: "";
  border: 1px solid rgba(6,13,20,.06);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.015), 0 0 0 160px rgba(255,255,255,.01);
}
.login-logo-card {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.login-logo-card img { width: 144px; height: auto; }
.login-hero { position: relative; z-index: 1; max-width: 680px; margin: auto 0; padding: 64px 0; }
.login-hero .eyebrow { color: var(--primary); }
.login-hero .eyebrow span { background: #55dfa1; }
.login-hero h1 { margin: 0; font-size: clamp(46px, 6vw, 78px); font-weight: 650; line-height: .98; letter-spacing: -.05em; }
.login-hero h1 em { color: var(--primary); font-style: normal; }
.login-hero > p:not(.eyebrow) { max-width: 590px; margin: 26px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.login-features { display: grid; max-width: 620px; margin-top: 34px; grid-template-columns: 1fr 1fr; gap: 8px; }
.login-features span { display: flex; min-height: 45px; padding: 10px 13px; gap: 10px; align-items: center; color: var(--foreground); background: #ffffff; border: 1px solid var(--border); border-radius: 8px; font-size: 11px; }
.login-features .icon { width: 15px; height: 15px; color: var(--primary); }
.login-brand-foot { position: relative; z-index: 1; display: flex; padding-top: 20px; align-items: center; justify-content: space-between; color: var(--muted-light); border-top: 1px solid var(--border); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.login-form-panel { position: relative; display: grid; min-height: 100vh; padding: 48px; place-items: center; }
.login-mobile-brand { display: none; }
.login-card { width: min(100%, 520px); padding: 34px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 70px rgba(6,13,20,.1); }
.login-card h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.login-copy { margin: 8px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-submit { width: 100%; justify-content: space-between; padding-inline: 18px; }
.login-note { margin: 20px 4px 0; color: var(--muted-light); font-size: 10px; line-height: 1.65; text-align: center; }

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 17px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button .icon { width: 15px; height: 15px; }
.button.primary { color: white; background: var(--primary); border: 1px solid var(--primary); }
.button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.outline { color: var(--foreground); background: var(--card); border: 1px solid var(--border); }
.button.outline:hover { background: var(--surface-hover); border-color: #566575; }
.button.danger { color: white; background: var(--danger); border: 1px solid var(--danger); }
.button.small { min-height: 34px; padding: 0 12px; font-size: 10px; }
.icon-button { display: inline-grid; width: 38px; height: 38px; padding: 0; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; place-items: center; }
.icon-button:hover { color: var(--foreground); background: var(--surface-hover); }
.icon-button .icon { width: 16px; height: 16px; }
.mobile-menu { display: none !important; }

.form-stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field > span { color: var(--foreground); font-size: 11px; font-weight: 600; }
.field > span small { margin-left: 6px; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--foreground);
  background: #ffffff;
  border: 1px solid var(--input);
  border-radius: 7px;
  outline: 0;
  font-size: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: 98px; padding: 10px 12px; resize: vertical; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(240,0,32,.13); }
.inline-error { padding: 11px 13px; color: var(--danger); background: var(--danger-surface); border: 1px solid var(--danger-border); border-radius: 7px; font-size: 11px; line-height: 1.6; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  padding: 30px 24px 20px;
  flex-direction: column;
  overflow: visible;
  background: #ffffff;
  border-right: 1px solid var(--border);
}
.sidebar-brand { display: flex; margin-bottom: 24px; flex-direction: column; gap: 6px; }
.sidebar-brand img { width: 142px; height: auto; }
.sidebar-brand span { color: var(--muted); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-nav { display: flex; min-height: 0; overflow: visible; flex-direction: column; gap: 3px; }
.sidebar-nav > p { margin: 18px 0 7px; color: var(--muted-light); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav > p:first-child { margin-top: 0; }
.nav-link { display: flex; min-height: 44px; padding: 0 12px; gap: 11px; align-items: center; color: var(--muted); border-radius: 7px; font-size: 12px; font-weight: 500; transition: color 150ms ease, background 150ms ease; }
.nav-link:hover { color: var(--foreground); background: var(--surface-hover); }
.nav-link.is-active { color: var(--foreground); background: var(--primary-surface); }
.nav-link .icon { width: 16px; height: 16px; }
.nav-link.is-active .icon { color: var(--primary); }
.nav-link span:last-child { min-width: 20px; padding: 2px 6px; margin-left: auto; color: var(--muted); background: var(--secondary); border-radius: 20px; font-size: 8px; text-align: center; }
.nav-link .nav-chevron { width: 13px; height: 13px; margin-left: auto; transition: transform 160ms ease; }
.nav-settings { position: relative; }
.nav-settings-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.nav-settings-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-settings-menu {
  position: absolute;
  z-index: 50;
  top: -4px;
  left: calc(100% + 10px);
  width: 224px;
  padding: 5px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(6,13,20,.14);
}
.nav-settings-menu a { display: flex; padding: 10px; gap: 9px; align-items: flex-start; border-radius: 6px; }
.nav-settings-menu a:hover { background: var(--surface-hover); }
.nav-settings-menu a > .icon { width: 15px; height: 15px; margin-top: 1px; color: var(--primary); }
.nav-settings-menu a span { display: flex; flex-direction: column; }
.nav-settings-menu strong { font-size: 10px; }
.nav-settings-menu small { margin-top: 1px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.sidebar-bottom { display: flex; margin-top: auto; flex-direction: column; gap: 12px; }
.host-mini { display: flex; padding: 12px; gap: 9px; align-items: center; background: var(--surface-soft); border: 1px solid var(--border-light); border-radius: 7px; }
.host-mini-dot { width: 7px; height: 7px; flex: 0 0 auto; background: var(--warning); border-radius: 50%; }
.host-mini-dot.ready { background: var(--success); box-shadow: 0 0 0 4px rgba(85,223,161,.09); }
.host-mini div { display: flex; flex-direction: column; min-width: 0; }
.host-mini strong { font-size: 10px; }
.host-mini small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.user-button { display: grid; width: 100%; padding: 8px 5px; grid-template-columns: 32px 1fr 16px; gap: 9px; align-items: center; text-align: left; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.user-button:hover { background: var(--surface-hover); }
.user-button > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.user-button strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-button small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.user-button .icon { width: 14px; color: var(--muted); }
.user-button .chevron { transition: transform 160ms ease; }
.user-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.avatar { display: grid; width: 32px; height: 32px; color: var(--foreground); background: var(--primary-surface); border: 1px solid var(--primary-border); border-radius: 50%; place-items: center; font-family: "Inter Variable", sans-serif; font-size: 9px; font-weight: 700; }

.account-wrap { position: relative; width: 100%; }
.account-menu {
  position: absolute;
  z-index: 60;
  width: 280px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 18px 55px rgba(6,13,20,.16);
}
.account-menu-up { left: 0; bottom: calc(100% + 8px); }
.account-menu-head { display: flex; padding: 14px; gap: 10px; align-items: center; background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.account-avatar { width: 38px; height: 38px; }
.account-menu-head > div { display: flex; min-width: 0; flex-direction: column; }
.account-menu-head strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-head small { overflow: hidden; margin-top: 1px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-head div > span { margin-top: 4px; color: var(--primary); font-size: 7px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.account-menu-links { padding: 5px; }
.account-menu-links a, .account-menu-footer button { display: flex; width: 100%; min-height: 36px; padding: 0 9px; gap: 9px; align-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 5px; cursor: pointer; font-size: 10px; text-align: left; }
.account-menu-links a:hover, .account-menu-footer button:hover { color: var(--foreground); background: var(--surface-hover); }
.account-menu-links .icon, .account-menu-footer .icon { width: 14px; height: 14px; }
.account-menu-footer { padding: 5px; border-top: 1px solid var(--border); }
.account-menu-footer button:hover { color: var(--danger); background: var(--danger-surface); }

.app-page { min-width: 0; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 58px; padding: 0 40px; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
.topbar-left, .topbar-right { display: flex; align-items: center; }
.topbar-left { gap: 10px; }
.topbar-right { gap: 12px; }
.breadcrumbs { display: flex; margin: 0; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; }
.breadcrumbs b { color: var(--muted-light); font-weight: 400; }
.breadcrumbs strong { color: var(--foreground); font-weight: 500; }
.host-state { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 9px; }
.host-state span { width: 6px; height: 6px; background: var(--warning); border-radius: 50%; }
.host-state.ready span { background: var(--success); box-shadow: 0 0 0 4px rgba(85,223,161,.09); }
.top-avatar { width: 32px; height: 32px; }
.top-account-wrap { width: auto; }
.top-account-button { display: flex; min-height: 40px; padding: 4px 6px; gap: 8px; align-items: center; background: transparent; border: 0; border-radius: 7px; cursor: pointer; text-align: left; }
.top-account-button:hover { background: var(--surface-hover); }
.top-account-copy { display: flex; max-width: 144px; flex-direction: column; }
.top-account-copy strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.top-account-copy small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.top-account-button .chevron { width: 13px; height: 13px; color: var(--muted); transition: transform 160ms ease; }
.top-account-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.top-account-menu { top: calc(100% + 8px); right: 0; }

.main-content { width: min(100%, 1440px); padding: 28px 40px 30px; margin: 0 auto; }
.page-heading { display: flex; margin-bottom: 22px; gap: 24px; align-items: center; justify-content: space-between; }
.page-heading h1 { margin: 0; font-size: clamp(32px, 3.2vw, 38px); font-weight: 650; line-height: 1.1; letter-spacing: -.045em; }
.page-heading > div > p:last-child { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.page-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.text-link { display: inline-flex; gap: 4px; align-items: center; color: var(--primary); font-size: 9px; font-weight: 600; }
.text-link:hover { color: #ff667b; }
.text-link .icon { width: 11px; height: 11px; }

.overview-alert { display: flex; padding: 11px 13px; margin-bottom: 12px; gap: 12px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--warning-border); border-left: 3px solid var(--warning); border-radius: 7px; }
.overview-alert > div { display: flex; gap: 9px; align-items: center; }
.overview-alert > div > .icon { width: 15px; height: 15px; color: var(--warning); }
.overview-alert p { display: flex; margin: 0; flex-direction: column; }
.overview-alert p strong { color: var(--warning); font-size: 10px; }
.overview-alert p span { color: var(--muted); font-size: 8px; }

.readiness-panel { margin-bottom: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--warning-border); border-left: 3px solid var(--warning); border-radius: var(--radius); }
.readiness-panel.is-ready { border-color: var(--success-border); border-left-color: var(--success); }
.readiness-panel.is-ready .readiness-head { border-bottom: 0; }
.readiness-panel.is-ready .readiness-head .icon { color: var(--success); }
.readiness-panel.is-ready .readiness-head strong { color: var(--success); }
.readiness-panel.is-ready .readiness-head p { color: var(--muted); }
.readiness-head { display: flex; padding: 15px 17px; gap: 11px; align-items: flex-start; border-bottom: 1px solid var(--warning-border); }
.readiness-head .icon { width: 18px; height: 18px; color: var(--warning); }
.readiness-head div { flex: 1; }
.readiness-head strong { display: block; color: var(--warning); font-size: 12px; }
.readiness-head p { margin: 2px 0 0; color: #755838; font-size: 9px; }
.readiness-list { display: grid; padding: 12px; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.readiness-item { padding: 10px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 6px; }
.readiness-item strong { display: flex; gap: 6px; align-items: center; color: var(--warning); font-size: 9px; }
.readiness-item strong .icon { width: 12px; height: 12px; color: var(--warning); }
.readiness-item p { margin: 3px 0 0; color: #755838; font-size: 8px; line-height: 1.55; }
.readiness-foot { display: flex; padding: 9px 17px; gap: 7px; align-items: center; color: #755838; border-top: 1px solid var(--warning-border); font-size: 8px; }
.readiness-foot code { padding: 2px 5px; background: #fff; border: 1px solid var(--border-light); border-radius: 3px; font-family: ui-monospace, Consolas, monospace; }
.readiness-foot .icon { width: 12px; height: 12px; }

.stats-grid { display: grid; margin-bottom: 16px; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { display: flex; min-height: 108px; padding: 17px; align-items: flex-start; justify-content: space-between; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(6,13,20,.025); }
.stat-card > div { display: flex; flex-direction: column; }
.stat-card p { margin: 0; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .055em; text-transform: uppercase; }
.stat-card strong { margin-top: 9px; font-size: 21px; font-weight: 600; line-height: 1; }
.stat-card small { margin-top: 8px; color: var(--muted-light); font-size: 9px; }
.soft-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 7px; place-items: center; }
.soft-icon .icon { width: 15px; height: 15px; }
.soft-icon.accent { color: var(--primary); background: var(--primary-surface); }
.soft-icon.green { color: var(--success); background: var(--success-surface); }
.soft-icon.slate { color: var(--muted); background: var(--secondary); }
.soft-icon.amber { color: var(--warning); background: var(--warning-surface); }

.overview-lower-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.overview-vm-list { padding: 7px; }
.overview-vm-row { display: grid; min-height: 55px; padding: 8px; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 9px; align-items: center; border-radius: 6px; }
.overview-vm-row:hover { background: var(--surface-hover); }
.overview-vm-main { display: flex; min-width: 0; flex-direction: column; }
.overview-vm-main strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.overview-vm-main small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.overview-vm-ip { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 8px; }
.overview-empty { padding: 30px 16px; color: var(--muted); font-size: 9px; text-align: center; }

.network-summary { padding: 16px 18px 18px; }
.network-summary-block { display: flex; padding: 13px; flex-direction: column; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 7px; }
.network-summary-block > span { color: var(--muted); font-size: 8px; }
.network-summary-block > strong { margin-top: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 500; }
.network-summary-block > small { margin-top: 6px; color: var(--muted); font-size: 8px; }
.network-summary-block code { color: var(--foreground); font-family: ui-monospace, Consolas, monospace; }
.network-mini-grid { display: grid; margin: 10px 0 13px; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.network-mini-grid > div { display: flex; padding: 9px; align-items: center; flex-direction: column; background: var(--surface-soft); border: 1px solid var(--border-light); border-radius: 6px; }
.network-mini-grid strong { font-size: 16px; }
.network-mini-grid span { margin-top: 2px; color: var(--muted); font-size: 8px; }

.mini-stats { display: grid; margin-bottom: 12px; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-stats > div { display: flex; padding: 12px 14px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--border); border-radius: 7px; }
.mini-stats span { color: var(--muted); font-size: 9px; }
.mini-stats strong { font-size: 16px; }

.network-page-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 16px; }
.network-side { display: flex; flex-direction: column; gap: 16px; }
.rule-list { padding: 8px 17px 16px; }
.rule-list > div { display: flex; padding: 8px 0; gap: 9px; }
.rule-list > div > span { display: grid; width: 26px; height: 26px; flex: 0 0 auto; color: var(--primary); background: var(--primary-surface); border-radius: 5px; place-items: center; font-family: ui-monospace, Consolas, monospace; font-size: 8px; }
.rule-list p { display: flex; margin: 0; flex-direction: column; }
.rule-list strong { font-size: 10px; }
.rule-list small { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.network-warning { padding: 17px; border-color: var(--primary-border); background: linear-gradient(145deg, var(--primary-surface), var(--card) 80%); }
.network-warning h2 { margin: 0; font-size: 15px; }
.network-warning > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.65; }

.full-activity-panel .activity-item { padding: 13px 11px; }
.full-activity-panel .activity-item strong { font-size: 11px; }
.host-settings-grid { display: grid; margin-bottom: 16px; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-list { padding: 7px 18px 17px; margin: 0; }
.settings-list > div { display: flex; padding: 10px 0; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-light); }
.settings-list > div:last-child { border-bottom: 0; }
.settings-list dt { color: var(--muted); font-size: 9px; }
.settings-list dd { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: 9px; text-align: right; }
.host-agent-card { margin: 16px 18px 18px; }
.workflow-wide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.workflow-wide li:not(:last-child)::after { display: none; }

.overview-grid, .details-grid { display: grid; margin-bottom: 16px; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr); gap: 16px; }
.panel { min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(6,13,20,.025); }
.host-banner {
  position: relative;
  display: flex;
  min-height: 112px;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  color: var(--foreground);
  background:
    radial-gradient(circle at 95% -10%, rgba(240,0,32,.11), transparent 18rem),
    linear-gradient(135deg, #ffffff, #fff7f8 74%, #ffeef1 145%);
  border-bottom: 1px solid var(--border-light);
}
.host-banner::after { position: absolute; right: -48px; top: -96px; width: 240px; height: 240px; content: ""; border: 1px solid rgba(240,0,32,.1); border-radius: 50%; box-shadow: 0 0 0 46px rgba(240,0,32,.018); }
.host-identity { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; }
.host-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; color: white; background: var(--primary); border: 1px solid var(--primary); border-radius: 8px; place-items: center; box-shadow: 0 8px 20px rgba(240,0,32,.16); }
.host-icon .icon { width: 20px; height: 20px; }
.title-row { display: flex; gap: 9px; align-items: center; }
.title-row h2 { margin: 0; color: var(--foreground); font-size: 20px; }
.host-identity p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.host-interface { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; }
.host-interface span { color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.host-interface strong { margin-top: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 10px; font-weight: 400; }
.host-body { display: grid; padding: 18px 20px 20px; grid-template-columns: 1.5fr .72fr; gap: 20px; }
.section-heading { display: flex; margin-bottom: 14px; gap: 12px; align-items: flex-start; justify-content: space-between; }
.section-heading h3 { margin: 0; font-size: 14px; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.capacity-item + .capacity-item { margin-top: 16px; }
.capacity-label { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.capacity-label > span { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 10px; }
.capacity-label .icon { width: 13px; height: 13px; }
.capacity-label strong { font-family: ui-monospace, Consolas, monospace; font-size: 10px; font-weight: 500; }
.meter { height: 5px; margin-top: 8px; overflow: hidden; background: var(--secondary); border-radius: 20px; }
.meter span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width 500ms var(--ease); }
.meter.warning span { background: var(--warning); }
.meter.danger span { background: var(--danger); }
.capacity-meta { display: flex; margin-top: 6px; justify-content: space-between; color: var(--muted-light); font-size: 8px; }
.telemetry-card { padding: 14px; align-self: stretch; background: var(--surface-soft); border: 1px solid var(--border-light); border-radius: 7px; }
.telemetry-card > p { margin: 0 0 12px; color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.telemetry-card dl { margin: 0; }
.telemetry-row { display: flex; padding: 7px 0; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-light); }
.telemetry-row:first-child { border-top: 0; }
.telemetry-row dt { color: var(--muted); font-size: 9px; }
.telemetry-row dd { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: 9px; }
.telemetry-row dd.good { color: var(--success); }
.telemetry-row dd.bad { color: var(--danger); }

.panel-head { display: flex; padding: 17px 18px; gap: 14px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.panel-head .eyebrow { margin-bottom: 3px; font-size: 8px; }
.badge { display: inline-flex; min-height: 23px; padding: 0 8px; gap: 5px; align-items: center; color: var(--success); background: var(--success-surface); border: 1px solid var(--success-border); border-radius: 4px; font-family: "Inter Variable", sans-serif; font-size: 9px; white-space: nowrap; }
.badge.neutral { color: var(--muted); background: var(--secondary); border-color: var(--border); }
.badge.accent { color: #ff7185; background: var(--primary-surface); border-color: var(--primary-border); }
.badge.warning { color: var(--warning); background: var(--warning-surface); border-color: var(--warning-border); }
.badge.danger { color: var(--danger); background: var(--danger-surface); border-color: var(--danger-border); }
.badge.dark { color: var(--primary); background: var(--primary-surface); border-color: var(--primary-border); }
.badge i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge .icon { width: 10px; height: 10px; }

.network-body { padding: 16px 18px 18px; }
.ip-summary { display: grid; padding: 13px; grid-template-columns: 1fr auto; gap: 7px 10px; align-items: start; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 7px; }
.ip-summary > div { display: flex; flex-direction: column; }
.ip-summary span:first-child { color: var(--muted); font-size: 8px; }
.ip-summary strong { margin-top: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 500; }
.ip-summary > p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.ip-summary code { color: var(--foreground); font-family: ui-monospace, Consolas, monospace; }
.ip-heading { display: flex; margin: 15px 0 7px; align-items: center; justify-content: space-between; color: var(--foreground); font-size: 9px; font-weight: 600; }
.ip-heading small { color: var(--muted); font-size: 8px; font-weight: 400; }
.ip-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ip-item { display: flex; min-height: 34px; padding: 0 9px; gap: 7px; align-items: center; background: white; border: 1px solid var(--border-light); border-radius: 6px; }
.ip-item i { width: 5px; height: 5px; background: var(--warning); border-radius: 50%; }
.ip-item.available i { background: var(--success); }
.ip-item.assigned i { background: var(--primary); }
.ip-item code { min-width: 0; flex: 1; overflow: hidden; font-family: ui-monospace, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; }
.ip-item span { color: var(--muted); font-size: 8px; text-transform: capitalize; }
.ip-empty { padding: 17px; color: var(--muted); background: var(--surface-soft); border: 1px dashed var(--border); border-radius: 6px; font-size: 9px; line-height: 1.65; grid-column: 1 / -1; }

.machines-head { align-items: center; }
.machine-tools { display: flex; gap: 7px; align-items: center; }
.search-box { display: flex; width: 170px; height: 34px; padding: 0 10px; gap: 7px; align-items: center; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 6px; }
.search-box .icon { width: 13px; height: 13px; color: var(--muted); }
.search-box input { width: 100%; padding: 0; color: var(--foreground); background: transparent; border: 0; outline: 0; font-size: 10px; }
.tabs { display: flex; height: 42px; padding: 0 18px; gap: 22px; background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.tab { position: relative; display: flex; padding: 0; gap: 6px; align-items: center; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 500; }
.tab span { color: var(--muted-light); font-family: ui-monospace, Consolas, monospace; font-size: 8px; }
.tab::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; content: ""; background: var(--primary); opacity: 0; transform: scaleX(.5); transition: opacity 150ms ease, transform 150ms var(--ease); }
.tab.is-active { color: var(--foreground); }
.tab.is-active::after { opacity: 1; transform: scaleX(1); }
.table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 780px; border-collapse: collapse; text-align: left; }
th { height: 34px; padding: 0 10px; color: var(--muted); background: var(--surface-table); border-bottom: 1px solid var(--border); font-size: 8px; font-weight: 600; letter-spacing: .075em; text-transform: uppercase; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
td { min-height: 59px; padding: 10px; border-top: 1px solid var(--border-light); font-size: 10px; }
tbody tr { background: var(--card); transition: background 140ms ease; }
tbody tr:hover { background: var(--surface-hover); }
.instance-cell { display: flex; gap: 9px; align-items: center; }
.instance-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; color: var(--primary); background: var(--primary-surface); border-radius: 6px; place-items: center; }
.instance-icon.muted { color: var(--muted); background: var(--secondary); }
.instance-icon .icon { width: 14px; height: 14px; }
.instance-cell > div { min-width: 0; }
.instance-cell strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.instance-cell small { display: block; margin-top: 1px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 8px; }
.resource-cell strong { display: block; font-size: 9px; font-weight: 500; }
.resource-cell small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.ip-copy { display: inline-flex; padding: 0; gap: 5px; align-items: center; color: var(--foreground); background: transparent; border: 0; cursor: pointer; font-family: ui-monospace, Consolas, monospace; font-size: 9px; }
.ip-copy .icon { width: 10px; height: 10px; color: var(--muted); }
.private-ip { display: block; margin-top: 3px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 9px; }
.vpsly-cell { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.vpsly-cell a { display: flex; max-width: 150px; gap: 3px; align-items: center; overflow: hidden; color: var(--primary); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.vpsly-cell a .icon { width: 9px; height: 9px; }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.mini-button { display: grid; width: 29px; height: 29px; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 5px; cursor: pointer; place-items: center; }
.mini-button:hover { color: var(--foreground); background: var(--secondary); }
.mini-button.danger:hover { color: var(--danger); background: var(--danger-surface); }
.mini-button .icon { width: 13px; height: 13px; }
.error-line { max-width: 190px; margin: 4px 0 0; overflow: hidden; color: var(--danger); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.table-foot { display: flex; min-height: 42px; padding: 0 18px; align-items: center; justify-content: space-between; color: var(--muted); background: var(--surface-soft); border-top: 1px solid var(--border); font-size: 8px; }
.table-foot strong { color: var(--foreground); }
.empty-state { min-height: 270px; padding: 30px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-state .soft-icon { width: 42px; height: 42px; }
.empty-state h3 { margin: 11px 0 0; font-size: 13px; }
.empty-state p { max-width: 380px; margin: 4px 0 0; color: var(--muted); font-size: 10px; }

.side-stack { display: flex; flex-direction: column; gap: 16px; }
.workflow-panel { flex: 0 0 auto; }
.workflow { padding: 8px 18px 17px; margin: 0; list-style: none; }
.workflow li { position: relative; display: flex; padding: 9px 0; gap: 10px; }
.workflow li:not(:last-child)::after { position: absolute; top: 34px; bottom: -4px; left: 13px; width: 1px; content: ""; background: var(--border); }
.workflow li > span { z-index: 1; display: grid; width: 27px; height: 27px; flex: 0 0 auto; color: var(--primary); background: var(--primary-surface); border-radius: 6px; place-items: center; font-family: ui-monospace, Consolas, monospace; font-size: 8px; }
.workflow strong { display: block; font-size: 10px; }
.workflow p { margin: 2px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.muted-icon { color: var(--muted); }
.activity-list { padding: 7px; }
.activity-item { display: flex; padding: 9px 8px; gap: 9px; border-radius: 6px; }
.activity-item:hover { background: var(--surface-hover); }
.activity-item > span { display: grid; width: 26px; height: 26px; flex: 0 0 auto; color: var(--primary); background: var(--primary-surface); border-radius: 6px; place-items: center; }
.activity-item .icon { width: 12px; height: 12px; }
.activity-item strong { display: block; font-size: 9px; font-weight: 500; line-height: 1.5; }
.activity-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.activity-empty { padding: 24px 10px; color: var(--muted); font-size: 9px; text-align: center; }

.page-foot { display: flex; padding: 11px 2px 0; align-items: center; justify-content: space-between; color: var(--muted-light); font-family: ui-monospace, Consolas, monospace; font-size: 8px; }
.page-foot span:last-child { display: flex; gap: 6px; align-items: center; }
.page-foot i { width: 5px; height: 5px; background: var(--warning); border-radius: 50%; }
.page-foot.ready i { background: var(--success); }

.dialog { width: min(810px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; color: var(--foreground); background: transparent; border: 0; }
.dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.dialog[open] { animation: pop-in 180ms ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.dialog-card { display: flex; max-height: calc(100vh - 24px); overflow: hidden; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 80px rgba(6,13,20,.18); }
.dialog-head { display: flex; padding: 21px 23px 17px; gap: 15px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--border); }
.dialog-head h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.dialog-head p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.dialog-head .eyebrow { margin-bottom: 4px; font-size: 8px; }
.dialog-body { padding: 21px 23px; overflow-y: auto; }
.form-section + .form-section { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border); }
.plan-grid { display: grid; margin-bottom: 15px; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.plan-card { position: relative; display: flex; min-height: 106px; padding: 13px; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
.plan-card { background: var(--surface-soft); }
.plan-card:hover { border-color: var(--input); }
.plan-card.is-selected { background: #170f13; border-color: var(--primary); box-shadow: 0 0 0 1px rgba(240,0,32,.13); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-top strong { font-size: 11px; }
.plan-top .icon { width: 14px; height: 14px; color: var(--primary); opacity: 0; }
.plan-card.is-selected .plan-top .icon { opacity: 1; }
.plan-card > small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.plan-specs { margin-top: auto; font-family: ui-monospace, Consolas, monospace; font-size: 9px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .full { grid-column: 1 / -1; }
.info-callout { display: flex; padding: 10px 12px; margin-top: 14px; gap: 8px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--border-light); border-radius: 6px; }
.info-callout .icon { width: 13px; height: 13px; margin-top: 1px; color: var(--primary); }
.info-callout p { margin: 0; font-size: 9px; line-height: 1.6; }
.dialog-foot { display: flex; min-height: 68px; padding: 12px 23px; gap: 8px; align-items: center; justify-content: flex-end; background: var(--surface-soft); border-top: 1px solid var(--border); }
.confirm-dialog { width: min(500px, calc(100vw - 24px)); }
.confirm-dialog .dialog-head { border-bottom: 0; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; pointer-events: none; }
.toast { display: grid; width: min(380px, calc(100vw - 32px)); padding: 13px; grid-template-columns: 30px 1fr 24px; gap: 9px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 16px 50px rgba(6,13,20,.14); opacity: 0; pointer-events: auto; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms var(--ease); }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-icon { display: grid; width: 30px; height: 30px; color: var(--success); background: var(--success-surface); border-radius: 6px; place-items: center; }
.toast.error .toast-icon { color: var(--danger); background: var(--danger-surface); }
.toast-icon .icon { width: 14px; height: 14px; }
.toast > div { min-width: 0; }
.toast strong { display: block; font-size: 10px; }
.toast p { margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.toast > button { display: grid; width: 24px; height: 24px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 4px; cursor: pointer; place-items: center; }
.toast > button:hover { background: var(--secondary); }
.toast > button .icon { width: 12px; height: 12px; }

.sidebar-backdrop { display: none; }
.spinning { animation: spin 800ms linear infinite; }

@media (max-width: 1100px) {
  .main-content { padding-inline: 26px; }
  .topbar { padding-inline: 26px; }
  .overview-grid, .details-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .host-body { grid-template-columns: 1fr; }
  .readiness-list { grid-template-columns: 1fr 1fr; }
  .overview-lower-grid, .network-page-grid, .host-settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar { width: 248px; transform: translateX(-102%); transition: transform 220ms var(--ease); }
  .sidebar-is-open .sidebar { transform: translateX(0); box-shadow: 18px 0 50px rgba(6,13,20,.14); }
  .sidebar-backdrop { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(6,13,20,.35); border: 0; opacity: 0; pointer-events: none; backdrop-filter: blur(3px); transition: opacity 180ms ease; }
  .sidebar-is-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .nav-settings-menu { position: static; width: 100%; margin-top: 3px; box-shadow: none; }
  .app-page { margin-left: 0; }
  .mobile-menu { display: inline-grid !important; }
  .overview-grid, .details-grid { grid-template-columns: 1fr; }
  .host-body { grid-template-columns: 1.45fr .75fr; }
  .side-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .overview-lower-grid { grid-template-columns: 1fr 1fr; }
  .workflow-wide { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 767px) {
  .login-view { display: block; min-height: 100vh; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 80px 18px 32px; }
  .login-mobile-brand { position: absolute; top: 22px; left: 22px; display: block; }
  .login-mobile-brand img { width: 128px; }
  .login-card { padding: 24px; }
  .login-card h2 { font-size: 29px; }
  .topbar { height: 60px; padding-inline: 14px; }
  .breadcrumbs span, .breadcrumbs b { display: none; }
  .host-state { display: none; }
  .top-account-copy, .top-account-button > .chevron { display: none; }
  .main-content { padding: 22px 14px 24px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button.primary { flex: 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 100px; padding: 13px; }
  .stat-card strong { font-size: 18px; }
  .stat-card .soft-icon { width: 28px; height: 28px; }
  .host-banner { padding: 16px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .host-interface { align-items: flex-start; }
  .host-body { padding: 16px; grid-template-columns: 1fr; }
  .readiness-list { grid-template-columns: 1fr; }
  .side-stack, .overview-lower-grid { display: flex; flex-direction: column; }
  .overview-alert { align-items: flex-start; flex-direction: column; }
  .overview-vm-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .overview-vm-ip { display: none; }
  .machines-head { align-items: flex-start; flex-direction: column; }
  .machine-tools { width: 100%; }
  .search-box { flex: 1; width: auto; }
  .tabs { padding-inline: 14px; }
  .table-foot { padding-inline: 14px; }
  .table-foot span:last-child { display: none; }
  .dialog { width: 100%; max-width: 100%; margin: auto 0 0; }
  .dialog-card { max-height: calc(100vh - 12px); border-radius: 12px 12px 0 0; }
  .dialog-head { padding: 18px 17px 15px; }
  .dialog-body { padding: 17px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 92px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .full { grid-column: auto; }
  .dialog-foot { padding: 11px 17px; }
  .dialog-foot .button { flex: 1; }
  .page-foot span:last-child { display: none; }
  table[data-mobile-responsive="true"] {
    display: block;
    width: 100%;
    min-width: 0;
  }
  table[data-mobile-responsive="true"] thead { display: none; }
  table[data-mobile-responsive="true"] tbody {
    display: grid;
    gap: 9px;
    padding: 10px;
    background: var(--surface-soft);
  }
  table[data-mobile-responsive="true"] tr {
    display: block;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
  }
  table[data-mobile-responsive="true"] td {
    display: grid;
    min-height: 0;
    padding: 8px 11px !important;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-top: 1px solid var(--border-light);
  }
  table[data-mobile-responsive="true"] td:first-child { border-top: 0; }
  table[data-mobile-responsive="true"] td::before {
    padding-top: 2px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  table[data-mobile-responsive="true"] td > * { min-width: 0; }
  table[data-mobile-responsive="true"] .row-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Readability scale */
body { font-size: 15px; }
.eyebrow { font-size: 10px; letter-spacing: .1em; }
.login-brand-foot { font-size: 10px; }
.login-copy { font-size: 14px; }
.login-note { font-size: 11px; }
.login-features span { font-size: 12px; }
.button { font-size: 13px; }
.button.small { font-size: 11px; }
.field > span { font-size: 12px; }
.field input, .field select { font-size: 14px; }
.field textarea { font-size: 12px; }
.sidebar-brand span { font-size: 10px; }
.nav-link { font-size: 13px; }
.nav-link span:last-child { font-size: 10px; }
.nav-settings-menu strong { font-size: 12px; }
.nav-settings-menu small { font-size: 10px; line-height: 1.55; }
.host-mini strong { font-size: 11px; }
.host-mini small { font-size: 10px; }
.user-button strong { font-size: 12px; }
.user-button small { font-size: 10px; }
.avatar { font-size: 10px; }
.account-menu-head strong { font-size: 12px; }
.account-menu-head small { font-size: 10px; }
.account-menu-links a, .account-menu-footer button { font-size: 12px; }
.breadcrumbs { font-size: 11px; }
.host-state { font-size: 10px; }
.top-account-copy strong { font-size: 12px; }
.top-account-copy small { font-size: 10px; }
.page-heading > div > p:last-child { font-size: 13px; line-height: 1.65; }
.text-link { font-size: 11px; }
.overview-alert p strong { font-size: 12px; }
.overview-alert p span { font-size: 11px; }
.readiness-head strong { font-size: 14px; }
.readiness-head p { font-size: 11px; line-height: 1.55; }
.readiness-item strong { font-size: 12px; }
.readiness-item p { font-size: 11px; line-height: 1.6; }
.readiness-foot { font-size: 10px; line-height: 1.6; }
.stat-card p { font-size: 11px; }
.stat-card small { font-size: 11px; line-height: 1.5; }
.overview-vm-main strong { font-size: 12px; }
.overview-vm-main small { font-size: 10px; }
.overview-vm-ip { font-size: 10px; }
.overview-empty { font-size: 12px; }
.network-summary-block > span { font-size: 10px; }
.network-summary-block > strong { font-size: 14px; }
.network-summary-block > small { font-size: 10px; }
.network-mini-grid span { font-size: 10px; }
.mini-stats span { font-size: 11px; }
.mini-stats strong { font-size: 18px; }
.rule-list > div > span { font-size: 10px; }
.rule-list strong { font-size: 12px; }
.rule-list small { font-size: 10px; line-height: 1.6; }
.network-warning > p:last-child { font-size: 11px; line-height: 1.7; }
.settings-list dt, .settings-list dd { font-size: 11px; }
.host-identity p { font-size: 11px; }
.host-interface span { font-size: 10px; }
.host-interface strong { font-size: 11px; }
.section-heading p { font-size: 11px; }
.capacity-label > span, .capacity-label strong { font-size: 12px; }
.capacity-meta { font-size: 10px; }
.telemetry-card > p { font-size: 10px; }
.telemetry-row dt, .telemetry-row dd { font-size: 11px; }
.panel-head h2 { font-size: 16px; }
.panel-head p { font-size: 11px; line-height: 1.5; }
.panel-head .eyebrow { font-size: 10px; }
.badge { min-height: 25px; font-size: 10px; }
.ip-summary span:first-child { font-size: 10px; }
.ip-summary > p { font-size: 10px; }
.ip-summary strong { font-size: 13px; }
.ip-heading { font-size: 11px; }
.ip-heading small { font-size: 10px; }
.ip-item code { font-size: 10px; }
.ip-item span { font-size: 9px; }
.ip-empty { font-size: 11px; line-height: 1.7; }
.search-box input { font-size: 12px; }
.tab { font-size: 12px; }
.tab span { font-size: 10px; }
th { height: 38px; font-size: 10px; }
td { font-size: 12px; }
.instance-cell strong { font-size: 12px; }
.instance-cell small { font-size: 10px; }
.resource-cell strong, .ip-copy { font-size: 11px; }
.resource-cell small, .vpsly-cell a { font-size: 10px; }
.error-line { font-size: 10px; }
.table-foot { font-size: 10px; }
.empty-state p { font-size: 12px; line-height: 1.6; }
.workflow li > span { font-size: 10px; }
.workflow strong { font-size: 12px; }
.workflow p { font-size: 10px; line-height: 1.6; }
.activity-item strong { font-size: 12px; }
.activity-item small { font-size: 10px; }
.activity-empty { font-size: 11px; }
.page-foot { font-size: 10px; }
.dialog-head p:last-child { font-size: 12px; line-height: 1.65; }
.dialog-head .eyebrow { font-size: 10px; }
.plan-top strong { font-size: 12px; }
.plan-card > small { font-size: 10px; line-height: 1.5; }
.plan-specs { font-size: 11px; }
.info-callout p { font-size: 11px; line-height: 1.65; }
.toast strong { font-size: 12px; }
.toast p { font-size: 11px; line-height: 1.55; }
table[data-mobile-responsive="true"] td::before { font-size: 9px; }
