:root {
  --ink: #12303F;
  --deep: #0E3A4F;
  --water: #1F7AA0;
  --mist: #E6F3F8;
  --line: #CFE3EC;
  --soft: #5E7F8D;
  --paper: #FFFFFF;
  --bg: #F4F9FB;
  --warn: #A33A2B;
  --ok: #2F7D4F;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
button, input, select { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--water); outline-offset: 2px;
}
a { color: var(--water); }
h1 { font: 600 22px/1.3 Georgia, "Times New Roman", "Noto Serif TC", serif; color: var(--deep); margin: 0 0 4px; }
h2 { font-size: 15px; color: var(--water); margin: 24px 0 8px; }
.muted { color: var(--soft); font-size: 13px; }
.btn {
  border: 1px solid var(--water); background: var(--water); color: #fff;
  border-radius: 7px; padding: 7px 14px; font-weight: 600; cursor: pointer;
}
.btn:hover { background: #17668A; }
.btn.ghost { background: var(--paper); color: var(--water); }
.btn.ghost:hover { background: var(--mist); }
.btn.danger { border-color: var(--warn); background: var(--paper); color: var(--warn); }
.btn:disabled { opacity: .55; cursor: default; }
.field { display: block; margin: 10px 0; }
.field span { display: block; font-weight: 600; margin-bottom: 4px; }
.input {
  width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 7px; padding: 8px 10px;
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status { margin-top: 8px; font-size: 13px; min-height: 1.4em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--warn); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--water); }
