/* Relay — shared visual system. Layout behavior lives in styles.css / operations.css. */
:root, html[data-theme="dark"] {
  color-scheme: dark;
  --page: #111216;
  --surface: #191b21;
  --surface-soft: #202229;
  --sidebar: #15161b;
  --ink: #eeeef3;
  --secondary: #b3b4c0;
  --muted: #90929f;
  --line: #2c2e37;
  --accent: #beb0ff;
  --accent-soft: #2c273e;
  --accent-ink: #211a35;
  --green: #83c6a8;
  --green-soft: #21352d;
  --warning: #dbb67a;
  --warning-soft: #352e23;
  --danger: #e9a0a5;
  --danger-soft: #3a282e;
  --input: #15171c;
  --shadow: none;
  --radius: 14px;
}
html[data-theme="light"] {
  color-scheme: light;
  --page: #f5f6f9;
  --surface: #ffffff;
  --surface-soft: #f3f4f8;
  --sidebar: #fafbfe;
  --ink: #242632;
  --secondary: #5e6171;
  --muted: #6c7080;
  --line: #e6e7ee;
  --accent: #6c56d5;
  --accent-soft: #efebfc;
  --accent-ink: #ffffff;
  --green: #347c5d;
  --green-soft: #e9f4ee;
  --warning: #906a29;
  --warning-soft: #fbf2e2;
  --danger: #a44150;
  --danger-soft: #fbeef0;
  --input: #fafbfe;
  --shadow: 0 3px 14px #24263203;
}
body { font-size: 14px; letter-spacing: -.01em; }
button, input, select, textarea { transition: background-color .15s, border-color .15s, color .15s; }
h1 { font-size: 32px; font-weight: 600; letter-spacing: -1.15px; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 570; letter-spacing: -.35px; }
h3 { font-size: 14px; font-weight: 550; }
.mono { font-size: 11px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
button:disabled { opacity: .45; }
input, textarea, .field-select {
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--input); color: var(--ink); padding: 11px 13px; font-size: 13px;
}
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"] { accent-color: var(--accent); }
.form-field { font-size: 12px; font-weight: 500; gap: 8px; margin-bottom: 20px; }
.form-field input, .form-field textarea, .form-field select { min-width: 0; width: 100%; }
.form-field small { font-size: 11px; font-weight: 400; line-height: 1.65; }
.checkbox-field { font-size: 12px; line-height: 1.6; }
.form-grid { gap: 18px; }
.button {
  min-height: 38px; border-radius: 9px; border: 1px solid var(--line);
  padding: 9px 13px; background: var(--surface); color: var(--ink);
  font-size: 12px; font-weight: 530; line-height: 1.4; box-shadow: none;
}
.button:hover { background: var(--surface-soft); border-color: var(--muted); box-shadow: none; transform: none; }
.button.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: none; }
.button.primary:hover { background: color-mix(in srgb, var(--accent) 87%, var(--ink)); border-color: transparent; }
.button.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.button.danger:hover { background: color-mix(in srgb, var(--danger-soft) 85%, var(--danger)); }
.button.small { min-height: 31px; padding: 6px 10px; font-size: 11px; }
.button.ghost { border-color: transparent; background: transparent; }
.icon-button { width: 34px; height: 34px; border-radius: 9px; color: var(--muted); }
.icon-button:hover { background: var(--surface-soft); color: var(--ink); }
.text-link { color: var(--accent); font-size: 12px; }

/* Workspace frame and navigation: the active state is a soft fill, never an edge. */
.sidebar { width: 224px; padding: 28px 16px 16px; background: var(--sidebar); border-right: 1px solid var(--line); color: var(--ink); }
.brand, .brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 27px; font-weight: 650; letter-spacing: -1.25px; }
.brand { margin: 0 10px 26px; line-height: 32px; }
.brand-symbol { width: 31px; height: 31px; flex-shrink: 0; }
.workspace { width: 100%; margin: 0 0 23px; padding: 12px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); gap: 10px; font-size: 12px; }
.workspace:hover { background: var(--surface-soft); }
.workspace small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.workspace-avatar { background: var(--surface-soft); color: var(--accent); border: 1px solid var(--line); border-radius: 8px; width: 30px; height: 32px; }
.workspace-chevron { font-size: 12px; }
.nav-label { margin: 0 12px 10px; font-size: 9px; font-weight: 550; letter-spacing: .12em; color: var(--muted); }
.sidebar nav { flex: 1 1 0; min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.nav-link { min-width: 0; height: 41px; min-height: 41px; gap: 11px; border: 0; padding: 0 12px; margin: 3px 0; border-radius: 8px; color: var(--secondary); font-size: 12px; }
.nav-link > svg { width: 17px; height: 17px; color: var(--muted); }
.nav-link > span:not(.nav-count) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .nav-link:hover { background: var(--surface-soft); color: var(--ink); transform: none; box-shadow: none; }
.sidebar .nav-link.active, .sidebar .nav-link.active:hover {
  background: var(--accent-soft); color: var(--ink); border: 0; box-shadow: none;
}
.nav-link.active > svg { color: var(--accent); }
.nav-count, .nav-link.active .nav-count { background: transparent; color: var(--muted); border: 0; padding: 1px 0 1px 5px; font-size: 10px; }
.nav-section { margin-top: 22px; }
.sidebar > .brand, .sidebar > .workspace, .sidebar > .nav-label, .sidebar-bottom { flex-shrink: 0; }
.collector-note { margin: 16px 10px 10px; padding: 12px 0; color: var(--secondary); font-size: 10px; }
.collector-note small { color: var(--muted); font-size: 9px; }
.pulse-dot { background: var(--green); box-shadow: none; }
.profile { width: 100%; margin: 12px 0 0; padding: 18px 9px 2px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.profile small { font-size: 10px; color: var(--muted); }
.avatar, .avatar.small { background: var(--accent-soft); color: var(--accent); border: 0; border-radius: 9px; }
.shell { margin-left: 224px; }
.topbar { height: 68px; padding: 0 40px; background: var(--page); border-bottom: 1px solid var(--line); }
.breadcrumbs { color: var(--muted); font-size: 11px; gap: 12px; }
.breadcrumbs strong { font-weight: 450; }
.slash { color: var(--muted); opacity: .45; }
.top-actions { gap: 14px; }
.search-trigger { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; color: var(--muted); font-size: 11px; }
.search-trigger kbd { background: var(--surface); border: 0; padding: 1px 5px; margin-left: 20px; }
.top-divider { background: var(--line); }
.menu-backdrop { display: none; }
main { max-width: 1540px; padding: 38px 40px 36px; }
.page-heading { align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.page-heading h1 { font-size: 32px; }
.page-heading p { max-width: 650px; font-size: 13px; line-height: 1.7; margin-top: 9px; color: var(--muted); }
.page-heading > div:first-child > .op-eyebrow { display: none; }
.heading-actions { gap: 9px; flex-wrap: wrap; }
.ux-help-button { flex-shrink: 0; margin-left: auto; border: 1px solid var(--line); width: 35px; height: 35px; background: transparent; }
.page-heading > .ux-help-button { margin-top: 1px; }
.page-heading .heading-actions .ux-help-button { margin-left: 3px; }
.section-header { margin: 28px 0 16px; gap: 14px; }
.section-header h2 { font-size: 15px; font-weight: 550; }
.count { background: var(--surface-soft); border: 0; color: var(--muted); padding: 2px 6px; border-radius: 5px; }
footer { margin: 0 40px; padding: 19px 0 23px; border-color: var(--line); font-size: 10px; color: var(--muted); }
.footer-dot { background: var(--muted); }

/* Summary bands, task shortcuts, and server cards. */
.stats-grid { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 24px; overflow: hidden; }
.stats-grid .stat { background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 23px 24px; box-shadow: none; }
.stats-grid .stat:last-child { border-right: 0; }
.stat-label { font-size: 11px; color: var(--secondary); }
.stat-label svg { color: var(--muted); width: 16px; height: 16px; }
.stat-value { font-size: 34px; font-weight: 500; letter-spacing: -1.2px; margin: 18px 0 10px; }
.stat-value span { font-size: 12px; color: var(--muted); margin-left: 6px; }
.stat-value .stat-denominator { font-size: 20px; color: var(--muted); }
.stat-foot { font-size: 10px; color: var(--muted); line-height: 1.65; min-height: 17px; }
.ux-quick-start { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 26px; }
.ux-quick-card { display: flex; align-items: center; gap: 11px; padding: 16px; border: 1px solid transparent; border-radius: 11px; background: transparent; }
.ux-quick-card:hover { background: var(--surface); border-color: var(--line); }
.ux-quick-card > span { color: var(--accent); align-self: flex-start; margin-top: 2px; }
.ux-quick-card strong { display: block; font-size: 12px; font-weight: 550; margin-bottom: 5px; }
.ux-quick-card small { display: block; font-size: 11px; line-height: 1.6; color: var(--muted); }
.ux-quick-card > svg:last-child { color: var(--muted); width: 13px; margin-left: auto; }
.ux-readiness-summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 10px; background: var(--warning-soft); margin-bottom: 24px; font-size: 12px; color: var(--warning); }
.ux-readiness-summary > span { display: flex; align-items: center; gap: 9px; }
.ux-readiness-summary .button { background: transparent; border-color: transparent; color: var(--warning); }
.servers-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 18px; margin-bottom: 28px; }
.server-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.server-card:hover { border-color: var(--muted); transform: none; }
.server-card-top { padding: 23px 22px; gap: 12px; }
.server-icon { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--secondary); }
.server-icon.central, html[data-theme="dark"] .server-icon.central { background: var(--accent-soft); color: var(--accent); border: 0; }
.server-name button { font-size: 14px; font-weight: 550; }
.server-subtitle { color: var(--muted); font-size: 10px; flex-wrap: wrap; }
.server-subtitle .mono { font-family: inherit; }
.role-label { color: var(--muted); border: 0; background: var(--surface-soft); border-radius: 4px; font-size: 8px; letter-spacing: .06em; padding: 3px 5px; }
.server-top-right { gap: 5px; }
.server-top-right .icon-button { width: 26px; height: 28px; }
.server-top-right .badge { font-size: 9px; }
.server-metrics { padding: 0 22px 23px; gap: 18px; }
.meter-label { font-size: 10px; color: var(--muted); }
.meter-value { font-size: 19px; font-weight: 500; margin: 6px 0 11px; }
.meter-value span { font-size: 10px; color: var(--muted); }
.meter-track { height: 3px; background: var(--line); }
.meter-track span { background: #747f9d; }
.meter-track.cpu span { background: var(--accent); }
.server-card-footer { background: transparent; border-color: var(--line); padding: 13px 22px; font-size: 10px; color: var(--muted); }
.server-card-footer .footer-right { color: var(--muted); }
.server-warning { padding: 0 22px 22px; color: var(--warning); font-size: 12px; line-height: 1.6; }
.badge, .op-badge { display: inline-flex; gap: 6px; align-items: center; border: 0; border-radius: 6px; padding: 5px 8px; font-size: 10px; line-height: 1.4; font-weight: 450; }
.badge.running, .health-badge, .op-badge.success { color: var(--green); background: var(--green-soft); border: 0; }
.badge.stopped, .badge.subtle, .op-badge.neutral { color: var(--secondary); background: var(--surface-soft); }
.badge.warning, .op-badge.warning { color: var(--warning); background: var(--warning-soft); border: 0; }
.op-badge.danger { color: var(--danger); background: var(--danger-soft); border: 0; }
.health-badge { padding: 7px 10px; font-size: 10px; }
.health-badge.warning-health { color: var(--warning); background: var(--warning-soft); }

/* Shared surfaces, charts, and tables. */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.panel-header { padding: 24px 24px 0; }
.panel-title { gap: 10px; }
.panel-title h2 { font-size: 14px; font-weight: 550; }
.chart-grid { gap: 20px; margin-top: 0; }
.live-tag { color: var(--green); font-size: 8px; letter-spacing: .06em; }
.saved-tag, .chart-period { color: var(--muted); font-size: 10px; }
.chart-period { background: var(--surface-soft); border: 0; border-radius: 5px; padding: 4px 7px; }
.chart-values { margin: 20px 24px 10px; padding: 0; gap: 32px; }
.chart-value-label { color: var(--muted); font-size: 10px; }
.chart-value { font-size: 28px; font-weight: 500; margin-top: 8px; }
.chart-value span { color: var(--muted); font-size: 10px; }
.legend-dot, .bar-tx { background: var(--accent); }
.legend-dot.receive, .bar-rx { background: #6f7a94; }
.chart-wrap { padding: 8px 22px; }
.line-chart { height: 165px; }
.chart-grid-line { stroke: var(--line); stroke-dasharray: 2 5; }
.chart-text { fill: var(--muted); font-size: 8px; }
.chart-caption { font-size: 10px; margin: 4px 24px 21px; }
.usage-summary { font-size: 32px; font-weight: 500; padding: 22px 24px 0; }
.usage-summary span { font-size: 11px; }
.usage-legend { margin: 8px 24px 0; padding: 0; font-size: 10px; gap: 16px; }
.bar-chart { height: 169px; margin: 0 24px; border-color: var(--line); }
.bar-column .bar-tx { background: var(--accent); }
.bar-column .bar-rx { background: #6f7a94; }
.bar-axis { margin: 8px 24px 20px; font-size: 9px; }
.mini-tabs { background: var(--page); border: 1px solid var(--line); border-radius: 7px; padding: 3px; }
.mini-tabs button { color: var(--muted); border-radius: 4px; font-size: 10px; padding: 4px 9px; }
.mini-tabs button.active { background: var(--surface-soft); color: var(--ink); box-shadow: none; }
.table-panel { max-width: 100%; overflow-x: auto; }
.table-panel th, .op-table th { font-size: 10px; letter-spacing: .055em; font-weight: 450; background: var(--surface-soft); color: var(--muted); padding: 14px 20px; border-color: var(--line); }
.table-panel td, .op-table td { padding: 18px 20px; font-size: 12px; border-color: var(--line); }
.table-panel tbody tr:hover, .op-table tbody tr:hover { background: color-mix(in srgb,var(--surface-soft) 50%,transparent); }
.instance-cell { gap: 12px; }
.instance-cell strong { font-size: 13px; font-weight: 550; }
.instance-cell small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.game-icon { width: 35px; height: 35px; border: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.table-actions { gap: 7px; flex-wrap: wrap; min-width: 235px; }
.table-actions .button { min-height: 31px; padding: 6px 10px; font-size: 11px; background: transparent; }
.table-actions .button svg { width: 13px; height: 13px; }
.empty-state, .op-empty { padding: 42px 22px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.empty-state strong, .op-empty strong { display: block; color: var(--ink); font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.empty-state p, .op-empty p { color: var(--muted); line-height: 1.7; font-size: 12px; }
.info-strip, .note-box, .op-note { padding: 14px 16px; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--secondary); font-size: 12px; line-height: 1.75; }
.info-strip svg { color: var(--muted); width: 16px; height: 16px; }
.console-note { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 16px; }
.toolbar { gap: 10px; margin-bottom: 18px; }

/* Page-specific composition. */
.dashboard-network-filter { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); }
.dashboard-network-filter select { max-width: 250px; }
.dashboard-network-heading { flex-wrap: wrap; gap: 15px; }
.overview-advanced, .network-details { border: 1px solid var(--line); padding: 17px 20px; background: var(--surface); border-radius: 12px; margin: 24px 0; }
.overview-advanced > summary, .network-details > summary { margin: 0; }
.overview-advanced[open] > summary, .network-details[open] > summary { margin-bottom: 20px; }
.overview-advanced .panel, .network-details .panel { border: 0; border-radius: 0; }
.network-full { margin: 24px 0; }
.network-full .bar-chart { height: 245px; }
.peak-grid .stat { border: 0; border-radius: 10px; box-shadow: none; background: var(--surface-soft); }
.files-controls { padding: 18px 20px 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.files-controls .toolbar { margin-bottom: 16px; }
.files-controls .toolbar:last-child { border-top: 1px solid var(--line); padding-top: 16px; }
.files-controls input[type="search"] { flex: 1; min-width: 180px; }
.files-controls .button { background: transparent; }
.file-path { display: flex; align-items: center; gap: 6px; overflow-x: auto; min-width: 90px; font-family: inherit; font-size: 12px; }
.file-path button { color: var(--secondary); padding: 5px 4px; white-space: nowrap; }
.file-path button:hover { color: var(--accent); }
.file-path > span { color: var(--muted); opacity: .6; }
.file-selection { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0; padding: 11px 20px; border-inline: 1px solid var(--line); background: var(--surface); font-size: 11px; color: var(--muted); }
.file-selection > span { margin-right: auto; }
.file-drop-zone { border-radius: 0 0 var(--radius) var(--radius); }
.file-drop-zone .file-name { font-size: 12px; gap: 11px; }
.file-drop-zone .file-name svg { color: var(--muted); }
.file-drop-zone td:nth-last-child(2) { white-space: nowrap; }
.console-toolbar { background: var(--surface); color: var(--secondary); padding: 17px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.console-toolbar .button { background: transparent; color: var(--secondary); border-color: var(--line); min-height: 32px; font-size: 11px; }
.console-toolbar .heading-actions { gap: 9px; }
.console-toolbar label { font-size: 11px; }
#console-connection { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; }
#console-connection:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
#console-search, #audit-search { border-color: var(--line); background: var(--input); border-radius: 8px; font-size: 12px; padding: 9px 11px; }
.console { background: #101217; color: #d1d3df; padding: 23px; font-size: 12px; line-height: 1.95; min-height: 420px; }
.console-input { background: var(--surface); padding: 17px 20px; border-top: 1px solid var(--line); }
.console-input label { font-size: 11px; color: var(--muted); }
.console-input input { border-color: var(--line); border-radius: 8px; font-size: 12px; background: var(--input); }
.console-input + .console-note { padding: 0 20px 17px; margin: 0; }
.terminal-panel { overflow: hidden; }
.terminal-toolbar { background: var(--surface); padding: 18px 20px; gap: 12px; }
.terminal-toolbar label { font-size: 12px; }
#server-terminal { background: #101217; padding: 18px 20px; height: clamp(370px,64vh,850px); }
.terminal-help { padding: 14px 20px; font-size: 10px; background: var(--surface); gap: 10px; color: var(--muted); line-height: 1.7; }
.workspace-toolbar { align-items: center; gap: 20px; margin-bottom: 24px; }
.workspace-toolbar > .form-field { margin: 0; min-width: 185px; }
.workspace-toolbar > .form-field > select { min-height: 39px; }
.operation-tabs, .ux-tabs { display: flex; gap: 4px; flex-wrap: wrap; border: 0; padding: 4px; border-radius: 10px; background: var(--surface); }
.operation-tabs { margin-top: 20px; }
.operation-tabs button, .ux-tabs button { border: 0; border-radius: 7px; padding: 10px 13px; color: var(--muted); font-size: 12px; }
.operation-tabs button[aria-pressed="true"], .ux-tabs button[aria-pressed="true"] { color: var(--ink); background: var(--surface-soft); font-weight: 500; box-shadow: none; }
.ux-tabs { display: inline-flex; margin-bottom: 28px; border: 1px solid var(--line); }
#workspace-content { gap: 20px; }
.settings-card, .op-card { padding: 25px; }
.settings-card h2, .op-card-heading h2 { font-size: 17px; font-weight: 550; margin-bottom: 9px; }
.settings-card > p, .op-card-heading p { color: var(--muted); font-size: 12px; line-height: 1.75; margin-bottom: 20px; }
.settings-card .operation-form { gap: 10px; }
.settings-card .operation-form > p { font-size: 11px; }
.health-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-top: 22px; }
.health-summary > div { border-right: 1px solid var(--line); padding-right: 20px; }
.health-summary > div:last-child { border: 0; }
.health-summary small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.health-summary strong { font-size: 24px; font-weight: 500; letter-spacing: -.6px; }
.health-summary .health-connected { color: var(--green); font-size: 20px; }
.health-summary p { color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 7px; }
.history-grid { gap: 14px; }
.history-grid > section { border: 0; background: var(--surface-soft); padding: 20px; border-radius: 10px; font-size: 12px; }
.history-grid small { color: var(--muted); font-size: 10px; }
.history-chart { color: var(--accent); height: 120px; }
.history-empty { height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 11px; margin-top: 12px; }
.ux-disclosure, .op-advanced { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; }
.ux-disclosure > summary, .op-advanced > summary { cursor: pointer; color: var(--secondary); font-size: 12px; line-height: 1.7; margin-bottom: 15px; }
.activity-feed { max-height: 460px; overflow: auto; }
.data-list { gap: 10px; }
.data-list > article { border: 0; background: var(--surface-soft); border-radius: 9px; padding: 17px; }
.data-facts dt { font-size: 10px; color: var(--muted); }
.data-facts dd { font-size: 12px; line-height: 1.75; }
.event-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11px; }
.event-line strong { font-size: 12px; font-weight: 500; text-transform: capitalize; }
.event-line time, .event-line > span { color: var(--muted); }
.data-list .op-advanced { margin-top: 10px; padding-top: 9px; }
.data-list .op-advanced > summary { margin-bottom: 0; font-size: 11px; }
.operation-result { background: var(--input); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; line-height: 1.75; }
#monitor-settings { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
#monitor-settings > .form-field:last-of-type, #monitor-settings > .modal-error, #monitor-settings > .button { grid-column: 1/-1; }
#connectivity-check { grid-template-columns: 2fr 1fr; gap: 14px; }
#connectivity-check > .button, #connectivity-check > .modal-error { grid-column: 1/-1; }
.operation-form + .operation-form { margin-top: 24px; }
.release-steps { background: transparent; border: 0; border-radius: 0; gap: 12px; margin-bottom: 24px; }
.release-steps > span, .release-steps > span:nth-child(-n+2) { border: 0; padding: 13px 0; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 9px; }
.release-steps b { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; margin: 0; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 450; }
.release-steps > span.is-current { color: var(--ink); background: transparent; }
.release-steps > span.is-current b { color: var(--accent); background: var(--accent-soft); }
.release-steps > span.is-complete b { color: var(--green); background: var(--green-soft); }
.deploy-guidance { padding: 15px 18px; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--secondary); font-size: 12px; line-height: 1.7; margin-bottom: 24px; }
.deploy-guidance strong { color: var(--ink); }
.op-card-heading { margin-bottom: 22px; }
.op-card-heading p { margin-bottom: 0; }
.op-eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .11em; font-weight: 500; }
.deploy-server-grid > section { border: 0; border-radius: 11px; background: var(--surface-soft); padding: 22px; }
.deploy-server-grid .op-eyebrow { margin-bottom: 18px; }
.deploy-config-grid { gap: 28px; margin-top: 26px; }
.deploy-work-grid { gap: 20px; }
.op-card-footer { border-color: var(--line); padding-top: 19px; margin-top: 20px; font-size: 11px; }
.repo-summary { gap: 8px; font-size: 12px; }
.release-review { border: 0; background: var(--surface-soft); padding: 22px; border-radius: 11px; }
.release-summary-grid { gap: 22px; }
.release-summary-grid small { color: var(--muted); }
.git-folder-actions { display: flex; gap: 9px; align-items: end; flex-wrap: wrap; padding-top: 18px; }
.git-folder-actions .form-field { margin: 0; flex: 1; min-width: 180px; }
.git-folder-actions .button { margin-bottom: 3px; }
.audit-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.audit-toolbar input, .audit-toolbar select { height: 38px; }
.audit-toolbar input[type="search"] { flex: 1; min-width: 190px; }
.audit-toolbar label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.audit-summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin: 18px 2px; }
.audit-detail { min-width: 160px; max-width: 350px; }
.audit-detail > summary { color: var(--secondary); font-size: 11px; cursor: pointer; }
.audit-detail .data-facts { grid-template-columns: 1fr; }
.audit-time { color: var(--muted); font-size: 11px!important; white-space: nowrap; }
.settings-grid { gap: 20px; align-items: start; }
.settings-item { padding: 17px 0; border-color: var(--line); font-size: 12px; }
.settings-item small { font-size: 10px; margin-top: 5px; line-height: 1.7; }
.settings-value { color: var(--secondary); font-size: 12px; }
.settings-grid .text-link { margin-top: 16px; }
.ux-card-actions { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 12px; }
.ux-update-row { display: flex; align-items: flex-start; gap: 17px; padding: 23px 0; border-top: 1px solid var(--line); }
.ux-server-symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--muted); flex-shrink: 0; }
.ux-update-info { flex: 1; min-width: 0; }
.ux-update-info h3 { font-size: 14px; margin-bottom: 7px; }
.ux-update-info p { max-width: 580px; font-size: 12px; line-height: 1.7; color: var(--muted); margin-bottom: 12px; }
.ux-update-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 310px; gap: 10px; }
.ux-update-controls .checkbox-field { width: 100%; justify-content: flex-end; margin: 0 0 5px; font-size: 11px; }
.ux-promise-row { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; margin: 0 0 22px; padding: 12px 0; font-size: 11px; color: var(--muted); }
.ux-promise-row > span { display: inline-flex; align-items: center; gap: 7px; }
.ux-promise-row svg { color: var(--green); width: 14px; height: 14px; }
.ux-notice { display: flex; align-items: flex-start; gap: 14px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 22px; grid-column: 1/-1; }
.ux-notice-icon { color: var(--warning); padding-top: 2px; }
.ux-notice strong { font-size: 13px; font-weight: 550; }
.ux-notice p { font-size: 12px; color: var(--muted); line-height: 1.75; margin: 6px 0; }
.ux-notice small { color: var(--muted); font-size: 11px; }
.ux-notice-actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.offline-strip { background: var(--warning-soft)!important; color: var(--warning)!important; border: 0!important; padding: 14px 17px; border-radius: 10px; font-size: 12px; }

/* Dialogs, editors, and one-time setup flows. */
dialog { width: min(610px,calc(100% - 36px)); max-height: 88svh; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 100px #0005; }
dialog::backdrop { background: #080a10a6; backdrop-filter: blur(5px); }
#modal-content, .ux-dialog-body, .path-browser-body { padding: 30px; }
.modal-header { gap: 18px; margin-bottom: 14px; }
.modal-header h2, .ux-dialog-body h2 { font-size: 22px; font-weight: 550; letter-spacing: -.6px; line-height: 1.35; }
.modal-header .icon-button { flex-shrink: 0; }
.modal-description { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 25px; }
.modal-actions { gap: 9px; flex-wrap: wrap; border-color: var(--line); margin-top: 27px; padding-top: 22px; }
.modal-error { color: var(--danger); font-size: 12px; line-height: 1.7; background: var(--danger-soft); padding: 11px 13px; border-radius: 8px; }
.modal-error:empty { display: none; }
.ux-help-copy, .ux-dialog-body > p { color: var(--secondary); font-size: 14px; line-height: 1.9; margin-top: 16px; }
.ux-role-presets { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 15px; background: var(--surface-soft); border: 0; border-radius: 10px; margin: 20px 0; font-size: 11px; }
.ux-role-presets > span { width: 100%; color: var(--muted); margin-bottom: 4px; }
.permission-grid { background: transparent; border-color: var(--line); border-radius: 10px; padding: 17px; gap: 10px; }
.setup-step { font-size: 11px; margin: 17px 0 23px; }
.setup-step > span { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 4px 7px; }
.setup-explanation { font-size: 12px; line-height: 1.8; }
.setup-advanced { font-size: 12px; line-height: 1.8; }
.fingerprint-box { border: 0; background: var(--surface-soft); padding: 19px; border-radius: 10px; }
.setup-checklist li { padding: 14px 0; font-size: 12px; }
.install-progress { padding: 28px 0; }
.install-progress small { font-size: 11px; line-height: 1.8; }
.install-progress-track { height: 4px; }
.path-controls { gap: 8px; }
.path-controls .button { min-height: 28px; padding: 5px 9px; font-size: 10px; background: transparent; }
.path-feedback { font-size: 10px!important; min-height: 16px; }
.path-feedback[data-state="valid"] { color: var(--green); }
.path-feedback[data-state="invalid"] { color: var(--danger); }
.path-browser { width: min(680px,calc(100% - 30px)); }
.path-breadcrumb { background: var(--surface-soft); border: 0; border-radius: 9px; }
.path-entry { padding: 14px 9px; font-size: 12px; }
.path-entry:hover { background: var(--surface-soft); }
.path-entry svg { color: var(--accent); }
.code-editor { background: var(--input); border-radius: 10px; }
.editor-toolbar { margin: 18px 0; font-size: 11px; }
.toast { background: var(--surface-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 10px 45px #0003; padding: 13px 18px; font-size: 12px; }
.toast.error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.is-loading { pointer-events: none; opacity: .65; }
.is-loading:after { content: ''; width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading svg { display: none; }

/* Sign-in and account creation share the same deliberately quiet composition. */
.auth-pending .sidebar, .auth-pending .topbar, .auth-pending footer,
.auth-route .sidebar, .auth-route .topbar, .auth-route .shell > footer { display: none; }
.auth-pending .shell, .auth-route .shell { margin-left: 0; }
.auth-route main { max-width: none; padding: 0; min-height: 100svh; }
.auth-layout { display: grid; grid-template-columns: minmax(380px,.95fr) minmax(420px,1.05fr); min-height: 100svh; }
.auth-story { padding: 42px 54px 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--surface); border-right: 1px solid var(--line); }
.auth-brand { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); width: fit-content; }
.auth-brand .brand-symbol { width: 34px; height: 34px; }
.auth-brand .brand-lockup { font-size: 29px; }
.auth-story-content { position: relative; margin: auto 0; padding: 70px 0 55px; max-width: 530px; }
.auth-story .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.auth-story h1 { font-size: clamp(42px,4.3vw,65px); font-weight: 500; letter-spacing: -2.9px; line-height: 1.12; margin: 24px 0; }
.auth-story h1 em { font-style: normal; color: var(--accent); }
.auth-story-content > p { font-size: 14px; color: var(--muted); line-height: 1.9; max-width: 330px; }
.auth-map { margin: 52px 0 0; padding: 25px 0; display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 355px; }
.auth-map-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.auth-map-item > span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-soft); color: var(--accent); border-radius: 9px; }
.auth-map-item strong { display: block; font-size: 12px; font-weight: 500; }
.auth-map-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.auth-story-footer { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.auth-entry { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 65px 50px 90px; position: relative; }
.auth-card { width: 100%; max-width: 365px; }
.auth-card .eyebrow { font-size: 10px; color: var(--muted); letter-spacing: .12em; font-weight: 500; margin-bottom: 14px; }
.auth-card h2 { font-size: 30px; font-weight: 550; letter-spacing: -.85px; margin-bottom: 11px; }
.auth-card > p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 31px; }
.auth-card .form-field { margin-bottom: 21px; font-size: 12px; }
.auth-card input { min-height: 47px; background: var(--surface); font-size: 13px; }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-field button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); padding: 8px 2px; font-size: 10px; }
.auth-code { margin-top: 3px; }
.auth-code > summary { color: var(--muted); cursor: pointer; font-size: 11px; margin-bottom: 16px; }
.auth-code > summary:hover { color: var(--ink); }
.auth-submit { width: 100%; min-height: 47px; justify-content: space-between; padding: 12px 16px; margin-top: 24px; font-size: 12px; border-radius: 9px; }
.auth-session-note { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.8; display: flex; align-items: flex-start; gap: 8px; }
.auth-session-note svg { width: 13px; height: 13px; margin-top: 3px; }
.auth-entry-footer { position: absolute; left: 30px; right: 30px; bottom: 30px; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.8; }
.connection-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.caps-lock { color: var(--warning); font-size: 11px; margin-top: 10px; }
.setup-next { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.setup-next span:first-child { color: var(--accent); }

/* Public status view shares the brand, typography and surfaces. */
.status-layout { width: min(860px,100%); margin: 65px auto; padding: 24px; }
.status-brand { margin-bottom: 52px; }
.status-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.status-heading p { color: var(--muted); font-size: 12px; margin-top: 12px; line-height: 1.7; }
.status-overview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.status-overview > span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-overview[data-state="online"] > span { background: var(--green); }
.status-overview[data-state="attention"] > span { background: var(--warning); }
.status-server { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.status-server:last-child { border: 0; }
.status-server h2 { font-size: 14px; margin-bottom: 6px; }
.status-server p { color: var(--muted); font-size: 11px; }
.status-footnote { color: var(--muted); font-size: 10px; text-align: center; margin-top: 26px; }

@media (min-width: 1400px) {
  .history-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .auth-story { padding-left: 70px; padding-right: 70px; }
}
@media (max-width: 1190px) {
  .sidebar { width: 208px; padding-inline: 13px; }
  .shell { margin-left: 208px; }
  .topbar { padding-inline: 28px; }
  main { padding: 30px 28px; }
  footer { margin-inline: 28px; }
  .stats-grid .stat { padding: 21px 18px; }
  .stat-value { font-size: 29px; }
  .ux-quick-start { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 15px; }
  .workspace-toolbar { align-items: end; }
  .operation-tabs { margin-top: 0; }
  .ux-notice { flex-wrap: wrap; }
  .ux-notice-actions { margin-left: 31px; }
  .ux-update-row { flex-wrap: wrap; }
  .ux-update-controls { max-width: none; justify-content: flex-start; margin-left: 57px; width: calc(100% - 57px); }
  .ux-update-controls .checkbox-field { width: auto; justify-content: flex-start; margin: 0; }
  .auth-story { padding-inline: 36px; }
  .auth-entry { padding-inline: 35px; }
}
@media (min-width: 841px) {
  .sidebar { transform: none; }
  .mobile-menu { display: none; }
}
@media (max-width: 840px) {
  .sidebar { width: 248px; transform: translateX(-100%); padding: 26px 17px 17px; z-index: 45; }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 80px #0003; }
  .shell { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .menu-backdrop.is-visible { display: block; position: fixed; inset: 0; z-index: 44; background: #080a106b; backdrop-filter: blur(2px); }
  .topbar { height: 64px; padding-inline: 24px; }
  main { padding: 29px 24px; }
  .page-heading h1 { font-size: 29px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid .stat:nth-child(2) { border-right: 0; }
  .stats-grid .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .servers-grid, .settings-grid { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: minmax(310px,.9fr) minmax(360px,1.1fr); }
  .auth-story { padding: 30px; }
  .auth-story h1 { font-size: 44px; letter-spacing: -1.8px; }
  .auth-story-content > p { font-size: 13px; }
  .auth-story-footer > span:last-child { display: none; }
  .auth-entry { padding-inline: 30px; }
}
@media (max-width: 680px) {
  main { padding: 25px 18px 28px; }
  .topbar { padding-inline: 18px; }
  .top-actions { gap: 7px; }
  .search-trigger { padding: 7px; border-color: transparent; }
  .search-trigger > span:nth-child(2), .search-trigger kbd, .top-divider { display: none; }
  .breadcrumbs { gap: 10px; }
  .breadcrumbs > span:first-of-type, .breadcrumbs .slash { display: none; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 17px; margin-bottom: 25px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 12px; max-width: 100%; }
  .page-heading > div:first-child { flex: 1; min-width: 190px; }
  .page-heading > .heading-actions { width: 100%; }
  .page-heading > .heading-actions .ux-help-button { margin-left: auto; }
  .heading-actions .button { font-size: 11px; padding: 8px 11px; }
  .stats-grid .stat { padding: 19px 16px; }
  .stat-value { font-size: 29px; margin-top: 14px; }
  .stat-label { font-size: 10px; }
  .stat-foot { font-size: 9px; }
  .stat-value span { font-size: 10px; }
  .ux-quick-card { padding: 12px 7px; gap: 9px; }
  .ux-quick-card > svg:last-child { display: none; }
  .ux-quick-card small { font-size: 10px; }
  .server-card-top { padding: 20px 18px; }
  .server-metrics { padding-inline: 18px; gap: 14px; }
  .server-card-footer { padding-inline: 18px; }
  .server-subtitle .location-text { display: none; }
  .server-name button { font-size: 13px; }
  .role-label { display: none; }
  .meter-value { font-size: 18px; }
  .settings-card, .op-card { padding: 21px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-field { font-size: 12px; margin-bottom: 19px; }
  .health-summary { grid-template-columns: 1fr; gap: 17px; }
  .health-summary > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; }
  .health-summary strong { font-size: 22px; }
  .workspace-toolbar { gap: 15px; }
  .workspace-toolbar > .form-field { width: 100%; }
  .operation-tabs { width: 100%; gap: 2px; }
  .operation-tabs button { padding: 9px 10px; font-size: 11px; }
  .ux-tabs { gap: 2px; }
  .ux-tabs button { padding: 9px 11px; font-size: 11px; }
  .history-grid { grid-template-columns: 1fr; gap: 10px; }
  #monitor-settings { grid-template-columns: 1fr; }
  .files-controls { padding: 16px 15px 0; }
  .file-path { flex-basis: 100%; }
  .files-controls .toolbar .field-select { min-width: 110px; }
  .file-selection { padding-inline: 15px; }
  .file-drop-zone .file-name { min-width: 130px; }
  .file-drop-zone td:nth-child(4) { font-size: 10px; }
  .table-panel td, .table-panel th { padding: 15px 16px; }
  .op-table td, .op-table th { padding: 13px 10px; }
  .console-toolbar { padding: 14px 16px; }
  .console-toolbar .heading-actions { width: 100%; flex-wrap: wrap; }
  #console-search { flex: 1; min-width: 160px; }
  .console { padding: 18px; font-size: 11px; min-height: 360px; }
  .console-input { padding: 15px; flex-wrap: wrap; }
  .console-input label { width: 100%; }
  .terminal-toolbar { padding: 15px; gap: 10px; }
  .terminal-help { padding: 13px 15px; font-size: 10px; }
  #server-terminal { padding: 14px; height: 58svh; }
  .release-steps { gap: 7px; }
  .release-steps > span { font-size: 10px; gap: 7px; padding: 7px 0; }
  .release-steps b { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; flex-shrink: 0; }
  .deploy-config-grid { gap: 15px; }
  .deploy-server-grid > section { padding: 18px; }
  .op-card-footer { gap: 14px; }
  .op-card-footer .heading-actions { flex-wrap: wrap; }
  .repo-summary { font-size: 11px; }
  .audit-toolbar { padding: 15px; gap: 11px; }
  .audit-toolbar input[type="search"] { width: 100%; flex-basis: 100%; }
  .audit-toolbar label { flex: 1; }
  .audit-toolbar input[type="date"] { min-width: 0; width: 100%; }
  .audit-summary { font-size: 10px; }
  .ux-update-row { gap: 12px; }
  .ux-update-controls { margin: 0; width: 100%; }
  .ux-notice { padding: 17px; gap: 11px; }
  .ux-notice-actions { margin: 0; width: 100%; flex-wrap: wrap; }
  .ux-promise-row { gap: 11px; }
  #modal-content, .path-browser-body, .ux-dialog-body { padding: 24px 20px; }
  .modal-header h2 { font-size: 20px; }
  .modal-description { font-size: 12px; }
  footer { margin-inline: 18px; font-size: 9px; gap: 14px; }
  footer > span:last-child { max-width: 155px; }
  .auth-layout { display: flex; flex-direction: column; min-height: 100svh; }
  .auth-story { padding: 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-story-content, .auth-story-footer { display: none; }
  .auth-brand .brand-lockup { font-size: 26px; }
  .auth-brand .brand-symbol { width: 30px; height: 30px; }
  .auth-entry { padding: 44px 25px 90px; flex: 1; min-height: calc(100svh - 84px); }
  .auth-card h2 { font-size: 28px; }
  .auth-entry-footer { bottom: 24px; }
  .status-layout { margin: 28px auto; padding: 20px; }
  .status-brand { margin-bottom: 38px; }
  .status-heading { flex-wrap: wrap; }
  .status-server { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}

/* Finishing alignment shared by cards and page actions. */
html[data-theme] .avatar.small { background: var(--accent-soft); color: var(--accent); }
.server-card { display: flex; flex-direction: column; }
.server-card:hover { border-color: color-mix(in srgb,var(--line) 72%,var(--muted)); }
.server-card-top { min-height: 95px; }
.server-card-top > div:nth-child(2) { min-width: 0; flex: 1; }
.server-subtitle { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-top-right { flex-shrink: 0; }
.server-card-footer { margin-top: auto; }
.files-controls { padding-bottom: 16px; }
.files-controls .toolbar:last-child { margin-bottom: 0; }
.settings-column { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
#workspace-content[data-tab="Security"] > .settings-column > .settings-card { margin-bottom: 0; }
.settings-grid > .settings-column:only-child { grid-column: 1/-1; }
.console.console-empty { display: grid; place-content: center; text-align: center; color: #a9adbd; font-family: inherit; font-size: 13px; line-height: 1.9; padding: 40px; }
#console-connection:before { background: var(--muted); }
#console-connection[data-state="live"]:before { background: var(--green); }

/* Domain management */
.domain-card { margin-top: 24px; }
.domain-heading, .domain-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.domain-heading p, .domain-list-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.domain-tag { border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.domain-dns-note { display: flex; gap: 12px; padding: 16px; margin: 22px 0; background: var(--input); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.domain-dns-note > svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); }
.domain-dns-note p { margin: 5px 0 0; color: var(--muted); line-height: 1.7; }
.domain-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.domain-presets > span { font-size: 11px; color: var(--muted); margin-right: 4px; }
.domain-presets small { color: var(--muted); font-size: 10px; }
.domain-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.domain-fields .form-field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; min-width: 0; }
.domain-fields input, .domain-fields select { box-sizing: border-box; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--ink); padding: 10px 12px; font: inherit; }
.domain-fields small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.domain-fields input[readonly] { color: var(--muted); }
.domain-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.domain-form-actions > span { font-size: 11px; color: var(--muted); }
.domain-card [hidden] { display: none !important; }
.domain-result:empty { display: none; }
.domain-result { padding: 13px 16px; margin: 16px 0 0; border-radius: 8px; background: var(--input); border: 1px solid var(--line); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.domain-result[data-state="error"] { border-color: #bd6262; color: #d87d7d; }
.domain-result[data-state="success"] { border-color: #568a6c; }
.domain-result a { margin-left: 8px; text-decoration: underline; }
.domain-list-heading { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.domain-list-heading h3 { margin: 0; font-size: 14px; }
#relay-domain-list { margin-top: 16px; }
.domain-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 10px; }
.domain-row-icon { padding: 10px; background: var(--input); border-radius: 8px; display: flex; color: var(--muted); }
.domain-row-icon svg { width: 18px; height: 18px; }
.domain-row-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.domain-row-info a { font-size: 13px; font-weight: 550; }
.domain-row-info small { display: block; margin-top: 5px; color: var(--muted); font: 11px monospace; }
.domain-row-actions { display: flex; gap: 8px; }
@media(max-width: 700px) {
 .domain-fields { grid-template-columns: 1fr; }
 .domain-heading, .domain-list-heading { align-items: flex-start; }
 .domain-tag { display: none; }
 .domain-row { flex-wrap: wrap; }
 .domain-row-actions { width: 100%; justify-content: flex-end; }
 .domain-presets > span { width: 100%; }
}
.domain-server { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; max-width: 480px; font-size: 12px; }
.domain-server select { min-height: 44px; width: 100%; }
.domain-server small { color: var(--muted); font-size: 11px; line-height: 1.7; }
