/* Server Console: one small component layer shared by login and workspace pages. */
:root {
  --bg: #f7f7fb;
  --surface: #fff;
  --subtle: #f4f3f8;
  --text: #1a1c24;
  --muted: #6b7080;
  --faint: #9198a8;
  --line: #e9e8f0;
  --line-strong: #dcd9e7;
  --accent: #6d5efc;
  --accent-hover: #5d4df2;
  --accent-soft: #f0efff;
  --success: #169f69;
  --danger: #c84845;
  --shadow: 0 14px 36px rgb(39 34 58 / 0.05);
  --radius: 10px;
  --radius-frame: 8px;
  /* 所有输入与按钮沿用同一明显圆角，紧凑尺寸不再改形状。 */
  --radius-control: 8px;
  --radius-compact: 5px;
  --sidebar: 200px;
  /* Shared spacing scale. */
  --space-2: 6px;
  --space-3: 10px;
  --space-4: 14px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 28px;
  --space-9: 32px;
  /* Horizontal insets reuse the same scale as vertical spacing. */
  --content-gutter: var(--space-9);
  --content-gutter-compact: var(--space-5);
  --panel-inset: var(--space-5);
  --sidebar-inset: var(--space-5);
  --control-inset: var(--space-4);
  /* 所有可编辑控件的最小字号：避免 iOS Safari 聚焦时自动缩放页面。 */
  --control-font-size: 16px;
  --table-inset: var(--space-4);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
html[data-theme="dark"] {
  --bg: #15161b;
  --surface: #1d1f27;
  --subtle: #252832;
  --text: #f0eff5;
  --muted: #a7adbc;
  --faint: #7e8698;
  --line: #30333e;
  --line-strong: #424653;
  --accent-soft: #302d54;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #15161b;
    --surface: #1d1f27;
    --subtle: #252832;
    --text: #f0eff5;
    --muted: #a7adbc;
    --faint: #7e8698;
    --line: #30333e;
    --line-strong: #424653;
    --accent-soft: #302d54;
    --shadow: none;
  }
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6,
strong,
th {
  font-weight: 500;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.62;
}
.hidden,
[hidden] {
  display: none !important;
}
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
