/* AEWAY DCS Console — ABB 浅灰工控 HMI */
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #d6d6d6;
  --surface: #f4f4f4;
  --surface-2: #e8e8e8;
  --surface-hd: #dcdcdc;
  --border: #a0a0a0;
  --border-light: #b8b8b8;
  --text: #1c1c1c;
  --muted: #5c5c5c;
  --data: #0d0d0d;
  --accent: #e60012;
  --accent-hover: #c40010;
  --accent-text: #ffffff;
  --link: #0066b3;
  --link-hover: #004f8c;
  --ok: #2e7d32;
  --ok-bg: #e6f4e7;
  --warn: #9a6700;
  --warn-bg: #fff4d6;
  --alarm: #c62828;
  --alarm-bg: #fde8e8;
  --info: #0066b3;
  --info-bg: #e3f0fa;
  --select-bg: #d4e8f7;
  --font: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Source Code Pro", Consolas, monospace;
  --radius: 3px;
  --nav-w: 196px;
  --header-h: 48px;
  --ease: 150ms ease;
  --shadow-panel: 0 1px 2px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--link-hover); }

.app { min-height: 100vh; display: flex; flex-direction: column; }

/* —— ABB 顶栏：浅灰 + 红色标识线 —— */
.app-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: linear-gradient(180deg, #ececec 0%, #e2e2e2 100%);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 1px 0 var(--border-light);
  flex-shrink: 0;
}

.app-logo {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text);
  padding-right: 14px;
  border-right: 1px solid var(--border);
}

.app-plant {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.env-note {
  flex: 1;
  font-size: 11px;
  font-weight: 500;
  color: var(--warn);
}

.env-note.offline { color: var(--alarm); }

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.badge-ok { color: var(--ok); border-color: #7cb87f; background: var(--ok-bg); }
.badge-warn { color: var(--warn); border-color: #d4a84b; background: var(--warn-bg); }
.badge-alarm { color: var(--alarm); border-color: #e57373; background: var(--alarm-bg); }
.badge-info { color: var(--info); border-color: #5ba3d9; background: var(--info-bg); }
.badge-neutral { color: var(--muted); background: var(--surface-2); }

.app-body {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  flex: 1;
  min-height: calc(100vh - var(--header-h));
}

/* —— 左侧导航 —— */
.app-nav {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.5);
}

.app-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease);
  cursor: pointer;
}

.app-nav a:hover {
  background: var(--surface-2);
  border-color: var(--border-light);
  text-decoration: none;
}

.app-nav a.active {
  color: var(--link);
  background: var(--select-bg);
  border-color: #7eb8dc;
  font-weight: 600;
}

.nav-foot {
  margin-top: auto;
  padding: 10px 10px 4px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.nav-foot a { font-size: 11px; font-weight: 600; }

.app-main {
  min-width: 0;
  padding: 14px 18px 32px;
}

.page-hd {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.page-hd h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.page-hd p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* —— 指标条 —— */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-panel);
}

.stat-strip .stat {
  padding: 14px 16px;
  border-right: 1px solid var(--border-light);
  background: var(--surface);
}

.stat-strip .stat:nth-child(even) { background: #fafafa; }
.stat-strip .stat:last-child { border-right: none; }

.stat-val {
  display: block;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--data);
  line-height: 1.1;
}

.stat-val small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.stat-key {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
}

/* —— 面板 —— */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

.panel-hd {
  padding: 8px 12px;
  background: var(--surface-hd);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-hd h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.panel-body { padding: 12px 14px; }

.var-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.var-grid dt {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.var-grid dd {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--data);
  font-variant-numeric: tabular-nums;
}

.var-grid dd small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.note {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 6px;
}

.note-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.change {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--data);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  padding: 1px 6px;
  border-radius: 2px;
}

.action-line {
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.action-line:last-child { border-bottom: none; }
.action-line strong { font-weight: 600; }

.table-wrap { overflow: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th, td {
  padding: 7px 10px;
  border: 1px solid var(--border-light);
  text-align: left;
}

th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-hd);
  border-color: var(--border);
}

tbody tr:nth-child(even) td { background: #fafafa; }
tbody tr:hover td { background: var(--select-bg); }

.mono { font-family: var(--mono); font-size: 12px; color: var(--data); font-weight: 500; }

.tag-ok { color: var(--ok); font-weight: 600; }
.tag-warn { color: var(--warn); font-weight: 600; }
.tag-ai { color: var(--info); font-weight: 600; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-text);
  transition: background var(--ease), border-color var(--ease);
}

.btn:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn.secondary:hover:not(:disabled) {
  background: #d8d8d8;
  border-color: var(--border);
}

.btn.ghost {
  background: var(--surface);
  color: var(--link);
  border-color: var(--border);
}

.btn.ghost:hover:not(:disabled) {
  background: var(--select-bg);
  border-color: #7eb8dc;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-panel);
}

.card h3 { margin: 0 0 10px; font-size: 12px; font-weight: 700; }

.muted { color: var(--muted); font-size: 12px; line-height: 1.55; }

.kpi-tile .kpi-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.kpi { font-size: 22px; font-weight: 700; color: var(--data); font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.kpi.up { color: var(--ok); }

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.flow span {
  padding: 4px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.flow .arrow { border: none; background: none; padding: 0; }

.bar-wrap { margin-top: 8px; }
.bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.bar { height: 5px; background: var(--surface-2); border: 1px solid var(--border-light); border-radius: 2px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--info); }

.chart {
  height: 140px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.chart .bar-v { width: 100%; border-radius: 2px 2px 0 0; background: #9e9e9e; border: 1px solid var(--border); }
.chart .bar-v.primary { background: var(--info); border-color: #4a90c4; }
.chart .lbl { font-size: 9px; color: var(--muted); font-family: var(--mono); }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-back.show { display: flex; }

.modal {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.modal h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }

.exec-step {
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--muted);
}

.exec-step.done { color: var(--ok); font-weight: 600; }
.exec-step.active { color: var(--text); font-weight: 700; }

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.compare .vs { color: var(--muted); font-size: 12px; font-weight: 600; }

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  padding: 10px 12px;
  height: auto;
  line-height: 1.35;
  cursor: pointer;
}

.preset-btn strong { font-size: 12px; color: var(--text); font-weight: 600; }
.preset-btn span { font-size: 11px; color: var(--muted); }

.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
}

.boot-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* —— DCS Mimic 工艺流程图 —— */
.dash-mimic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.mimic-panel .panel-body { padding: 0; }

.mimic-wrap {
  background: #c8c8c8;
  border-top: 1px solid var(--border);
  min-height: 360px;
  line-height: 0;
  overflow: hidden;
}

.mimic-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 340px;
}

.mimic-clickable {
  cursor: pointer;
  outline: none;
}

.mimic-clickable:focus .mimic-tag-bg,
.mimic-clickable:hover .mimic-tag-bg {
  stroke: #2d6a9f;
  stroke-width: 1.5;
  fill: #fff;
}

.mimic-clickable:focus .mimic-hit,
.mimic-clickable:hover .mimic-hit {
  fill: rgba(45, 106, 159, 0.08);
  stroke: #2d6a9f;
  stroke-width: 1;
}

.mimic-inline-valve .mimic-hit,
.mimic-pump-unit .mimic-hit {
  fill: transparent;
  stroke: transparent;
}

.mimic-inline-valve:hover .mimic-hit,
.mimic-inline-valve:focus .mimic-hit,
.mimic-pump-unit:hover .mimic-hit,
.mimic-pump-unit:focus .mimic-hit {
  fill: rgba(45, 106, 159, 0.1);
  stroke: #2d6a9f;
  stroke-width: 1;
}

.mimic-hit { pointer-events: all; }

.mimic-tag-bg {
  fill: #f8f8f8;
  stroke: #333;
  stroke-width: 1;
}

.mimic-tag-hl .mimic-tag-bg {
  fill: #fff4e0;
  stroke: #c45c00;
  stroke-width: 1.5;
}

.mimic-inline-valve {
  fill: none;
}

.mimic-inline-valve .mimic-valve-body {
  fill: #e8e8e8;
  stroke: #555;
  stroke-width: 1;
}

.mimic-inline-valve.hl .mimic-valve-body {
  fill: #ffe8cc;
  stroke: #c45c00;
}

.mimic-valve-stem {
  stroke: #555;
  stroke-width: 2;
}

.mimic-pump-unit .mimic-pump-body {
  fill: #e0e0e0;
  stroke: #555;
  stroke-width: 1.5;
}

.mimic-pump-unit.hl .mimic-pump-body {
  fill: #ffe8cc;
  stroke: #c45c00;
}

.modal-tag { width: min(440px, 100%); }

.tag-modal-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.tag-modal-id {
  margin: 0 0 6px;
  font-size: 11px;
}

.tag-modal-note {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
}

.tag-modal-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--data);
  margin: 0 0 12px;
  line-height: 1.2;
}

.tag-modal-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.tag-modal-status { margin: 0 0 10px; font-size: 12px; }

.tag-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 12px;
}

.tag-detail-grid dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}

.tag-detail-grid dd {
  margin: 0;
  color: var(--text);
}

.tag-detail-full { grid-column: 1 / -1; }

.tag-modal-hint { margin: 12px 0 0; font-size: 11px; }

.tag-adjust-panel {
  margin-top: 14px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tag-adjust-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.tag-adjust-readonly {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.tag-adjust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tag-adjust-input-row { flex-wrap: wrap; }

.tag-adjust-slider {
  flex: 1;
  min-width: 120px;
  accent-color: var(--accent);
}

.tag-adjust-input {
  width: 72px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--surface);
}

.tag-adjust-unit {
  font-size: 12px;
  color: var(--muted);
  min-width: 24px;
}

.tag-adjust-note {
  margin: 0;
  font-size: 10px;
}

.tag-adjust-status {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
}

.tag-step-btn {
  min-width: 44px;
  padding: 5px 8px;
  font-size: 11px;
}

.mimic-bg { fill: #c8c8c8; }

.mimic-loop-band {
  fill: rgba(255, 255, 255, 0.12);
  stroke: #a8a8a8;
  stroke-width: 0.5;
}

.mimic-loop-main { fill: rgba(230, 230, 230, 0.35); }
.mimic-loop-bypass { fill: rgba(255, 248, 220, 0.25); }
.mimic-loop-return { fill: rgba(220, 235, 245, 0.3); }

.mimic-loop-label {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  fill: #666;
}

.mimic-arrow-head { fill: #666; }

.mimic-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  fill: #1a1a1a;
}

.mimic-subtitle {
  font-family: var(--sans);
  font-size: 10px;
  fill: #555;
}

.mimic-equip {
  fill: #e8e8e8;
  stroke: #5a5a5a;
  stroke-width: 1;
}

.mimic-equip-t {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  fill: #222;
}

.mimic-equip-s {
  font-family: var(--sans);
  font-size: 8px;
  fill: #666;
}

.mimic-pipe {
  fill: none;
  stroke: #7a7a7a;
  stroke-width: 2;
  stroke-linecap: round;
}

.mimic-pipe-bypass {
  stroke: #9a8a6a;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.mimic-pipe.flow-on {
  stroke: #4a7a4a;
  stroke-dasharray: 6 4;
  animation: mimic-flow 1.4s linear infinite;
}

@keyframes mimic-flow {
  to { stroke-dashoffset: -12; }
}

@media (prefers-reduced-motion: reduce) {
  .mimic-pipe.flow-on { animation: none; stroke-dasharray: none; }
}

.mimic-tag rect {
  fill: #f8f8f8;
  stroke: #333;
  stroke-width: 1;
}

.mimic-tag-hl rect {
  fill: #fff4e0;
  stroke: #c45c00;
  stroke-width: 1.5;
}

.mimic-tag-id {
  font-family: var(--mono);
  font-size: 7px;
  fill: #555;
  font-weight: 600;
}

.mimic-tag-label {
  font-family: var(--sans);
  font-size: 7px;
  fill: #888;
}

.mimic-tag-val {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  fill: #111;
}

.mimic-unit {
  font-size: 8px;
  font-weight: 500;
  fill: #555;
}

.mimic-valve-body { fill: #ddd; stroke: #555; stroke-width: 1; }
.mimic-valve.hl .mimic-valve-body { fill: #ffe8cc; stroke: #c45c00; }
.mimic-valve-id, .mimic-pump-id {
  font-family: var(--mono);
  font-size: 7px;
  fill: #555;
  font-weight: 600;
}
.mimic-valve-pct, .mimic-pump-pct {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  fill: #111;
}
.mimic-valve-bar-bg { fill: #bbb; }
.mimic-valve-bar { fill: #2d6a9f; }

.mimic-pump-body {
  fill: #e0e0e0;
  stroke: #555;
  stroke-width: 1.5;
}
.mimic-pump.hl .mimic-pump-body { fill: #ffe8cc; stroke: #c45c00; }
.mimic-pump-t {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  fill: #333;
}

.mimic-kpi-bg {
  fill: #b0b0b0;
  stroke: #888;
  stroke-width: 0.5;
}

.mimic-mode {
  font-family: var(--sans);
  font-size: 10px;
  fill: #555;
}

/* —— 运行建议（右侧栏） —— */
.suggest-panel .panel-body {
  padding: 14px 16px;
}

.suggest-panel-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.suggest-panel-detail {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.suggest-panel-active {
  border-color: #e60012;
  background: linear-gradient(180deg, #fff5f5 0%, #fffaf8 100%);
  box-shadow: 0 2px 10px rgba(230, 0, 18, 0.1);
}

.suggest-panel-active .panel-hd {
  border-bottom-color: #f0c0c8;
}

.suggest-panel-attention {
  border-color: #d4a84b;
  background: linear-gradient(180deg, #fff8e6 0%, #fffdf8 100%);
}

.suggest-panel-alarm {
  border-color: #c62828;
  background: linear-gradient(180deg, #ffebee 0%, #fff8f8 100%);
}

.suggest-panel-loading {
  border-color: #7eb8dc;
  background: #f0f6fb;
}

.suggest-panel-quiet {
  border-color: var(--border);
}

.suggest-changes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.suggest-change-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.suggest-panel-active .suggest-change-item {
  border-color: #e8a0a8;
}

.suggest-change-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.suggest-change-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--data);
  line-height: 1.2;
}

.suggest-arrow {
  margin: 0 5px;
  color: var(--accent);
  font-weight: 800;
}

.suggest-predict {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.suggest-panel-actions {
  margin-top: 12px;
  flex-wrap: wrap;
}

.suggest-btn-primary {
  font-size: 12px;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .suggest-panel-active {
    animation: suggest-panel-glow 2.5s ease-in-out infinite;
  }
}

@keyframes suggest-panel-glow {
  0%, 100% { box-shadow: 0 2px 10px rgba(230, 0, 18, 0.1); }
  50% { box-shadow: 0 2px 14px rgba(230, 0, 18, 0.18); }
}

.dash-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-aside .panel { margin: 0; }

.mimic-suggest-vars { margin-top: 12px; }

.dash-constraints { margin-top: 14px; }

@media (max-width: 1100px) {
  .dash-mimic-layout { grid-template-columns: 1fr; }
  .dash-aside { flex-direction: row; flex-wrap: wrap; }
  .dash-aside .panel { flex: 1 1 280px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2) { border-right: none; }
  .stat-strip .stat:nth-child(1),
  .stat-strip .stat:nth-child(2) { border-bottom: 1px solid var(--border-light); }
  .split-2, .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .preset-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .app-body { grid-template-columns: 1fr; }
  .app-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-foot { display: none; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .stat { border-right: none; border-bottom: 1px solid var(--border-light); }
  .grid-2 { grid-template-columns: 1fr; }
  .preset-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-spinner { animation: none; }
  .bar > i, .chart .bar-v { transition: none; }
}

:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}
