:root {
  --bg: #f4f6fb; --surface: #fff; --surface-2: #f8fafc; --surface-3: #eef1f6;
  --border: #e6e9f0; --border-strong: #d7dbe6;
  --text: #101828; --text-2: #475467; --muted: #8a94a6;
  --accent: #0f766e; --accent-ink: #fff; --accent-soft: #e6f6f2;
  --danger: #e5484d; --danger-soft: #fdecec; --ok: #12a06a;
  --r: 12px; --r-sm: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d13; --surface: #161a24; --surface-2: #1b2130; --surface-3: #232a3a;
    --border: #262d3d; --border-strong: #333c50;
    --text: #e9edf5; --text-2: #aab3c4; --muted: #7b8499;
    --accent: #2dd4bf; --accent-ink: #04221c; --accent-soft: #12312c;
    --danger: #ff6b6b; --danger-soft: #2a1a1c; --ok: #34d399;
  }
}
* { box-sizing: border-box; }
html, body, domain-app, domain-login, domain-change, domain-shell { height: 100%; margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; color: var(--text); background: var(--bg); font-size: 14px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.screen { height: 100%; display: grid; place-items: center; padding: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.auth { width: 100%; max-width: 400px; }
h1 { font-size: 20px; margin: 0 0 6px; }
p.lead { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
input, select { height: 36px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 10px; background: var(--surface); color: var(--text); font: inherit; }
input:focus, select:focus { outline: none; border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--block { width: 100%; }
.btn--icon { width: 28px; height: 28px; padding: 0; border: 1px solid var(--border); background: transparent; color: var(--muted); flex: 0 0 28px; }
.btn--icon:hover { color: var(--text); background: var(--surface-2); }
.btn--icon.is-copied { color: var(--ok); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.err { background: var(--danger-soft); color: var(--danger); border-radius: var(--r-sm); padding: 8px 10px; font-size: 13px; }
.shell { height: 100%; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.top h1 { font-size: 18px; }
.top span { color: var(--muted); font-size: 12px; }
.host { flex: 1; overflow: auto; padding: 18px 22px 28px; }
.row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.row label { flex: 1; min-width: 180px; }
.row .btn { margin-bottom: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 14px; }
.tbl th { text-align: left; font-size: 11.5px; color: var(--muted); padding: 0 10px 8px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.copyline { display: inline-flex; align-items: center; gap: 6px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.tag { color: var(--ok); font-size: 12.5px; font-weight: 600; }
.tag--off { color: var(--muted); font-weight: 500; }
