:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --border: #e1e5e2;
  --border-strong: #cbd2ce;
  --text: #1f2933;
  --muted: #667085;
  --faint: #98a2b3;
  --accent: #2f6f6a;
  --accent-dark: #245752;
  --accent-soft: #e8f1ef;
  --green: #2f7d5f;
  --amber: #b7791f;
  --orange: #c26a1b;
  --red: #c0392b;
  --gray: #98a2b3;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-text b { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.brand-text span { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav a {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.top-status { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.clock { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--gray); }
.pill.online { background: #edf8f2; border-color: #c7e7d8; color: var(--green); }
.pill.online i { background: var(--green); }
.pill.offline { background: #fdf0ee; border-color: #f1cfc9; color: var(--red); }
.pill.offline i { background: var(--red); }
.pill.watch { background: #fdf7ea; border-color: #eeddba; color: var(--amber); }
.pill.watch i { background: var(--amber); }

.container { max-width: 1320px; margin: 0 auto; padding: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 6px 0 18px; }
.page-head h1 { font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: .01em; }
.page-head p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.page-head .head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: 11px; }
.tiny { font-size: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-sm { height: 28px; padding: 0 9px; font-size: 11px; }
.link { color: var(--accent); font-size: 12px; }
.link:hover { text-decoration: underline; }

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 14px; font-weight: 600; }
.card-head .sub { font-size: 11px; color: var(--muted); }
.card-body { padding: 16px 18px; }

.offline-banner {
  display: none;
  align-items: flex-start; gap: 10px;
  margin-bottom: 16px; padding: 12px 14px;
  border: 1px solid #f1cfc9; border-radius: 8px;
  background: #fdf4f2;
  color: #8f2f22;
  font-size: 12.5px;
}
.offline-banner.show { display: flex; }
.offline-banner b { font-weight: 600; }
.offline-banner span { color: #a15a4d; }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); }
.grid-2b { grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); }
.kpi { padding: 15px 16px 14px; min-height: 112px; display: flex; flex-direction: column; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-status { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); }
.kpi-status.ok { background: var(--green); }
.kpi-status.watch { background: var(--amber); }
.kpi-status.alert { background: var(--red); }
.kpi-status.raw { background: var(--faint); }
.kpi-value { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; }
.kpi-value b { font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi-value span { font-size: 10px; color: var(--muted); }
.kpi-foot { margin-top: auto; padding-top: 8px; font-size: 10.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 8px; }
.kpi.offline .kpi-value b { color: var(--faint); }

.risk-hero { display: flex; align-items: center; gap: 18px; }
.risk-number { font-size: 56px; font-weight: 600; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.risk-meta { display: flex; flex-direction: column; gap: 5px; }
.level-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; width: fit-content; }
.level-badge.normal { background: #edf8f2; color: var(--green); }
.level-badge.watch { background: #fdf7ea; color: var(--amber); }
.level-badge.warning { background: #fdf1e6; color: var(--orange); }
.level-badge.critical { background: #fdf0ee; color: var(--red); }
.level-badge.unknown { background: var(--surface-2); color: var(--muted); }
.risk-trend { font-size: 11px; color: var(--muted); }
.risk-trend.up { color: var(--red); }
.risk-trend.down { color: var(--green); }

.material-list { margin-top: 16px; border-top: 1px solid var(--border); }
.material-row { display: grid; grid-template-columns: 94px 1fr 46px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.material-row:last-child { border-bottom: 0; }
.material-name { font-size: 12px; }
.material-name small { display: block; font-size: 10px; color: var(--faint); }
.material-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.material-bar i { display: block; height: 100%; border-radius: 999px; }
.material-risk { text-align: right; font-family: var(--mono); font-size: 12px; }
.material-risk small { display: block; font-family: var(--sans); font-size: 9px; color: var(--faint); }

.alert-list { display: flex; flex-direction: column; }
.alert-item { display: grid; grid-template-columns: 4px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.alert-item:last-child { border-bottom: 0; }
.alert-item .bar { border-radius: 999px; background: var(--gray); }
.alert-item.critical .bar { background: var(--red); }
.alert-item.warning .bar { background: var(--orange); }
.alert-item.watch .bar { background: var(--amber); }
.alert-title { font-size: 12.5px; font-weight: 500; }
.alert-detail { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.65; }
.alert-meta { margin-top: 5px; display: flex; gap: 10px; font-size: 10px; color: var(--faint); }
.empty { padding: 28px 0; text-align: center; font-size: 12px; color: var(--faint); }
.empty strong { display: block; margin-bottom: 4px; color: var(--muted); font-weight: 500; }

.chart-wrap { position: relative; height: 300px; }
.chart-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; gap: 4px; }
.chart-empty b { color: var(--muted); font-weight: 500; }
.chart-tabs { display: flex; gap: 2px; }
.chart-tabs button, .range-tabs button { border: 1px solid transparent; background: transparent; padding: 4px 9px; border-radius: 6px; font-size: 11px; color: var(--muted); }
.chart-tabs button.active, .range-tabs button.active { background: var(--accent-soft); color: var(--accent); }
.range-tabs { display: flex; gap: 2px; }

.ai-card { border-left: 3px solid var(--accent); }
.ai-verdict { font-size: 16px; font-weight: 600; line-height: 1.5; }
.ai-summary { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.ai-claims { margin-top: 14px; display: flex; flex-direction: column; }
.ai-claim { padding: 10px 0; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.75; }
.ai-claim .claim-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ai-actions { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.ai-action { padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; font-size: 11.5px; }
.ai-action b { font-weight: 500; }
.ai-action span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.ai-foot { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--faint); flex-wrap: wrap; }
.mode { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 10px; color: var(--muted); }
.mode.llm { background: var(--accent-soft); border-color: #c9dedb; color: var(--accent); }

.sensor-table { width: 100%; border-collapse: collapse; }
.sensor-table th { text-align: left; font-size: 10px; font-weight: 500; color: var(--faint); padding: 8px 8px; border-bottom: 1px solid var(--border); letter-spacing: .02em; }
.sensor-table td { padding: 8px; border-bottom: 1px solid var(--border); font-size: 11.5px; }
.sensor-table tr:last-child td { border-bottom: 0; }
.sensor-table tr:hover td { background: var(--surface-2); }
.sensor-table td.value { font-family: var(--mono); text-align: right; white-space: nowrap; }
.sensor-table td.source { color: var(--muted); font-size: 10.5px; }
.sensor-table .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 5px; }
.sensor-table .dot.watch { background: var(--amber); }
.sensor-table .dot.alert { background: var(--red); }
.sensor-table .dot.raw { background: var(--faint); }
.sensor-table .dot.offline { background: var(--gray); }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip b { color: var(--text); font-family: var(--mono); font-weight: 500; }

.material-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.material-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.material-card h3 { font-size: 14px; font-weight: 600; }
.material-card .sub { font-size: 10.5px; color: var(--muted); }
.material-card .risk-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.material-card .risk-line b { font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.material-card .risk-line span { font-size: 10px; color: var(--muted); }
.material-card .thresholds { font-size: 10.5px; color: var(--muted); line-height: 1.8; }
.material-card .card-actions { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.material-card .driver { font-size: 10.5px; color: var(--muted); }
.material-card .impact { font-size: 10px; color: var(--green); }

.modal-layer { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-layer.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .38); }
.modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, .22);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 18px; font-weight: 600; }
.modal-head p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.modal-close { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--muted); padding: 2px 6px; }
.modal-body { padding: 20px 22px 24px; }
.modal-section { padding: 16px 0; border-bottom: 1px solid var(--border); }
.modal-section:last-child { border-bottom: 0; }
.modal-section h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 12px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 34px; gap: 10px; align-items: center; font-size: 11px; }
.bar-track { height: 5px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 999px; }
.bar-row b { text-align: right; font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--muted); }
.chart-modal { height: 260px; }

.chat-box { display: flex; flex-direction: column; min-height: 220px; }
.chat-log { flex: 1; min-height: 90px; max-height: 260px; overflow-y: auto; padding: 16px 18px; }
.msg { display: flex; gap: 9px; margin-bottom: 14px; }
.msg.user { flex-direction: row-reverse; }
.msg-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); flex: 0 0 26px; }
.msg.user .msg-avatar { background: var(--accent); border-color: var(--accent); color: #fff; }
.msg-body { max-width: 82%; padding: 9px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.msg.user .msg-body { background: #eef6f4; border-color: #d4e7e4; }
.msg-cite { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.chat-form { display: flex; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; border: 0; outline: none; background: transparent; padding: 12px 16px; font-size: 12px; }
.chat-form button { border: 0; border-left: 1px solid var(--border); background: transparent; padding: 0 18px; font-size: 12px; color: var(--accent); }
.chat-form button:hover { background: var(--surface-2); }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.suggestion { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 10px; font-size: 11px; color: var(--muted); }
.suggestion:hover { border-color: var(--accent); color: var(--accent); }
.chat-note { margin-top: 10px; font-size: 10.5px; color: var(--faint); line-height: 1.7; }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.status-card { padding: 15px 16px; }
.status-card .label { font-size: 10.5px; color: var(--muted); }
.status-card .value { margin-top: 6px; font-size: 18px; font-weight: 600; }
.status-card .note { margin-top: 4px; font-size: 10.5px; color: var(--faint); }
.status-card .value.small-value { font-size: 13px; font-weight: 500; }
.tft-preview { background: #0b100e; border-radius: 10px; padding: 12px; }
.tft-preview canvas { display: block; width: 100%; height: auto; }
.heatmap { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; min-width: 0; }
.heat-cell { height: 14px; border-radius: 2px; background: #d9e6df; }
.heat-cell.suspect { background: #ead8b5; }
.heat-cell.bad { background: #eecfc9; }
.heat-cell.empty { background: #eef1ef; }
.heat-legend { display: flex; gap: 12px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.heat-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; margin-right: 4px; }
.endpoint { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 11.5px; }
.endpoint:last-child { border-bottom: 0; }
.endpoint span { color: var(--muted); }
.endpoint code { font-family: var(--mono); font-size: 10.5px; color: var(--text); overflow-wrap: anywhere; word-break: break-word; }

.footer { max-width: 1320px; margin: 0 auto; padding: 26px 24px 36px; border-top: 1px solid var(--border); color: var(--faint); font-size: 10.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer b { color: var(--muted); font-weight: 500; }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1f2933; color: #fff; padding: 9px 13px; border-radius: 7px; font-size: 11.5px; box-shadow: 0 8px 24px rgba(16, 24, 40, .2); }
.toast.error { background: var(--red); }

@media (max-width: 1180px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .material-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-2b { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topbar-inner { height: auto; min-height: 64px; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
  .top-status { margin-left: auto; }
  .clock { display: none; }
  .container { padding: 16px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .page-head h1 { font-size: 22px; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-number { font-size: 46px; }
  .footer { padding: 20px 16px 30px; }
}
@media (max-width: 620px) {
  .brand-text b { font-size: 12.5px; }
  .brand-text span { font-size: 9px; }
  .grid-6 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { min-height: 100px; padding: 12px; }
  .kpi-value b { font-size: 24px; }
  .material-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .material-row { grid-template-columns: 78px 1fr 40px; gap: 8px; }
  .kv { grid-template-columns: 1fr; }
  .chat-log { max-height: 240px; }
  .modal { max-height: calc(100vh - 24px); }
}

.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note-grid div { padding-right: 16px; border-right: 1px solid var(--border); }
.note-grid div:last-child { border-right: 0; padding-right: 0; }
.note-grid b { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.note-grid p { font-size: 11px; color: var(--muted); line-height: 1.8; }
@media (max-width: 720px) { .note-grid { grid-template-columns: 1fr; gap: 12px; } .note-grid div { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 10px; } .note-grid div:last-child { border-bottom: 0; padding-bottom: 0; } }

.risk-number.empty { font-size: 34px; font-weight: 500; letter-spacing: 0; padding-top: 8px; }

.chat-form input:disabled { color: var(--faint); }
.chat-form button:disabled { color: var(--faint); cursor: not-allowed; }

.confidence-banner {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #edd8b5;
  border-radius: 8px;
  background: #fdf8ee;
  color: #8a5a12;
  font-size: 12.5px;
}
.confidence-banner.show { display: flex; }
.confidence-banner span { color: #a16f25; }
.sensor-table td.conf { font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.sensor-table td.conf.low { color: var(--red); }
.sensor-table td.conf.mid { color: var(--amber); }
.settings-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.field input[type="text"], .field input[type="number"], .field select {
  width: 100%; box-sizing: border-box; height: 36px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface);
  font-size: 12px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }
.json-editor {
  width: 100%; box-sizing: border-box; min-height: 360px; resize: vertical;
  padding: 12px; border: 1px solid var(--border-strong); border-radius: 7px;
  font-family: var(--mono); font-size: 11px; line-height: 1.6; background: #fbfcfb; color: var(--text);
}
.settings-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.settings-status { font-size: 11px; color: var(--muted); }
.settings-status.ok { color: var(--green); }
.settings-status.error { color: var(--red); }
.note-box { padding: 10px 12px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; line-height: 1.8; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.sensor-table .dot.missing { background: var(--faint); }
