/* MIRA AI platform — shared core styles (professional light theme, per demos/brand/DESIGN-PRO.md).
   Used by MIRA Watt (EMS) and MIRA Gen (genset) concept demos. */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f9fafb; --sunken: #f2f4f7;
  --line: #e4e7ec; --line-strong: #d0d5dd;
  --text: #101828; --text-2: #475467; --text-3: #98a2b3;
  --primary: #680166; --primary-h: #850083; --tint: #f7eef7; --tint-2: #efdcef; --ring: rgba(104, 1, 102, 0.25);
  --green: #12b76a; --amber: #f79009; --red: #d92d20; --blue: #2e90fa; --grey: #98a2b3;
  --green-t: #ecfdf3; --amber-t: #fffaeb; --red-t: #fef3f2; --blue-t: #eff8ff; --grey-t: #f2f4f7;
  /* legacy aliases used by view code */
  --neon: var(--primary); --neon-2: var(--primary-h); --cyan: var(--blue); --violet: #b678b5; --brand: var(--primary);
  --grad: var(--primary);
  --f-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --f-display: var(--f-body);
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 12px; --rs: 8px; --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, 0.18), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
  --rail: 240px; --top: 60px; --gap: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--f-body); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--tint-2); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--primary-h); outline-offset: 2px; }
.ic { flex: none; }
.mono { font-family: var(--f-mono); }
.num, .kpi .val b, .big-num, .tbl td { font-variant-numeric: tabular-nums; }
.t2 { color: var(--text-2); } .t3 { color: var(--text-3); }
.c-green { color: var(--green); } .c-amber { color: #b54708; } .c-red { color: var(--red); } .c-cyan { color: var(--blue); } .c-neon { color: var(--primary); }
.bg, .scan { display: none; }

/* ---------- rail ---------- */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 40; display: flex; flex-direction: column; padding: 16px 12px 12px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark svg, .brand-mark img { width: 32px; height: 32px; }
.brand-txt b { display: block; font: 700 15px/1.1 var(--f-body); letter-spacing: -0.01em; color: var(--text); }
.brand-txt b em { font-style: normal; color: var(--primary); font-weight: 700; }
.brand-txt small { display: block; margin-top: 2px; font: 500 11.5px/1.2 var(--f-body); color: var(--text-3); }
.plant-pick { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--rs); background: var(--surface-2); margin-bottom: 10px; cursor: pointer; }
.plant-pick b { display: block; font-size: 13px; font-weight: 600; }
.plant-pick small { display: block; font-size: 11.5px; color: var(--text-3); }
.plant-pick .dot { margin-top: 0; }
.nav { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-g { font: 600 11px/1 var(--f-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); padding: 16px 10px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--rs); color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background 0.15s, color 0.15s; margin: 1px 0; }
.nav a .ic { color: var(--text-3); }
.nav a:hover { background: var(--sunken); color: var(--text); }
.nav a.on { color: var(--primary); background: var(--tint); font-weight: 600; }
.nav a.on .ic { color: var(--primary); }
.nav a .tag { margin-left: auto; font: 600 10px/1 var(--f-body); padding: 3px 6px; border-radius: 6px; background: var(--tint); color: var(--primary); border: 0; }
.nav a .cnt { margin-left: auto; font: 500 12px var(--f-body); color: var(--text-3); }
.nav a .cnt.hot { color: var(--red); background: var(--red-t); padding: 1px 7px; border-radius: 10px; font-weight: 600; font-size: 11px; }
.mira-card { margin-top: 8px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); text-align: left; transition: border-color 0.2s, box-shadow 0.2s; }
.mira-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.mira-card .owl { width: 50px; height: 50px; flex: none; display: grid; place-items: center; overflow: visible; }
.mira-card .owl canvas { width: 62px !important; height: 62px !important; margin: -6px; }
.mira-card .owl img { width: 42px; height: 42px; }
.mira-card .owl.away { opacity: 0.4; }
.mira-card .owl.away::after { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 1px dashed var(--line-strong); }
.mc-t b { display: block; font: 600 13.5px var(--f-body); }
.mc-t small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.mira-card kbd { margin-left: auto; font: 500 10.5px var(--f-mono); color: var(--text-3); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; background: var(--surface); }
.rail-foot { padding: 10px 8px 0; font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; }
.rail-foot b { color: var(--text-2); font-weight: 600; }

/* ---------- top bar ---------- */
.shell { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.crumbs small { display: block; font: 500 12px/1 var(--f-body); color: var(--text-3); margin-bottom: 4px; }
.crumbs h1 { font: 600 16px/1.1 var(--f-body); white-space: nowrap; letter-spacing: -0.01em; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; width: auto; min-width: 200px; max-width: 300px; white-space: nowrap; overflow: hidden; border-radius: var(--rs); border: 1px solid var(--line); background: var(--surface-2); color: var(--text-3); font-size: 13px; }
.search kbd { margin-left: auto; font: 500 10.5px var(--f-mono); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; background: var(--surface); }
.top .site-chip { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--rs); border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.top .site-chip b { color: var(--text); font-weight: 600; }
.clock { font-size: 12.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; } .clock b { color: var(--text-2); font-weight: 500; }
.badge-demo { font: 500 11.5px/1 var(--f-body); color: var(--text-2); padding: 6px 10px; border-radius: 999px; background: var(--grey-t); border: 1px solid var(--line); white-space: nowrap; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--rs); display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); position: relative; transition: 0.15s; flex: none; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.bell .n { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 600 10px/17px var(--f-body); text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.me { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--f-body); background: var(--tint); color: var(--primary); border: 1px solid var(--tint-2); }
.only-m { display: none; }
.sector-bar { display: flex; align-items: center; gap: 6px; padding: 9px 28px; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.sector-bar::-webkit-scrollbar { display: none; }
.ticker { display: flex; align-items: center; gap: 20px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker span { display: inline-flex; align-items: center; gap: 6px; }
.ticker b { color: var(--text); font-weight: 600; }
.sub-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.sec { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--rs); font: 500 13px var(--f-body); color: var(--text-2); white-space: nowrap; border: 1px solid transparent; }
.sec:hover { background: var(--sunken); }
.sec.on { color: var(--primary); background: var(--tint); }

/* ---------- view ---------- */
.view { padding: 24px 28px 64px; outline: none; flex: 1; max-width: 1760px; width: 100%; }
.view.enter > * { animation: rise 0.28s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view-sweep { display: none; }
.ph-row { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ph-row .eyebrow { font: 500 12.5px/1 var(--f-body); color: var(--text-3); margin-bottom: 8px; }
.ph-row h2 { font: 600 22px/1.2 var(--f-body); letter-spacing: -0.015em; }
.ph-row h2 em { font-style: normal; color: inherit; }
.ph-row p { color: var(--text-2); margin-top: 6px; max-width: 720px; font-size: 13.5px; }
.ph-row .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- panels & grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.mt { margin-top: var(--gap); }
.panel { position: relative; min-width: 0; border-radius: var(--r); padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel.flush { padding: 0; overflow: hidden; }
.panel.glow { border-color: var(--line); }
.ph { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 26px; flex-wrap: wrap; }
.ph h3 { font: 600 15px/1.3 var(--f-body); color: var(--text); display: flex; align-items: center; gap: 8px; letter-spacing: -0.005em; }
.ph h3 .ic { color: var(--text-3); }
.ph .r { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 500 11.5px/1 var(--f-body); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; background: var(--surface); }
a.tag:hover { background: var(--surface-2); }
.tag.live { color: #027a48; border-color: #abefc6; background: var(--green-t); }
.tag.ai { color: var(--primary); border-color: var(--tint-2); background: var(--tint); }
.tag.warn { color: #b54708; border-color: #fedf89; background: var(--amber-t); }
.tag.bad { color: #b42318; border-color: #fecdca; background: var(--red-t); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); display: inline-block; flex: none; }
.dot.live { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.15); }
.top .dot.live, .plant-pick .dot.live { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.06); } }

/* buttons / inputs */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--rs); font-size: 13px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); transition: 0.15s; white-space: nowrap; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.btn:hover { background: var(--surface-2); }
.btn .ic { color: var(--text-2); }
.btn.pri { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn.pri .ic { color: #fff; }
.btn.pri:hover { background: var(--primary-h); border-color: var(--primary-h); }
.btn.danger { border-color: var(--red); background: var(--red); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.seg { display: inline-flex; padding: 2px; border-radius: var(--rs); border: 1px solid var(--line); background: var(--sunken); gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 6px; font: 500 12.5px var(--f-body); color: var(--text-2); white-space: nowrap; transition: 0.15s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label { font: 500 12.5px var(--f-body); color: var(--text-2); }
.inp, select.inp { height: 38px; padding: 0 12px; border-radius: var(--rs); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); outline: none; transition: 0.15s; min-width: 0; width: 100%; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.inp:focus { border-color: var(--primary-h); box-shadow: 0 0 0 4px var(--ring); }
.inp:disabled { background: var(--sunken); color: var(--text-3); }
input[type=range] { accent-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--text-2); transition: 0.15s; white-space: nowrap; }
.chip:hover { background: var(--surface-2); }
.chip.on { color: var(--primary); border-color: var(--primary); background: var(--tint); }
.chip .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--grey)); }
.chip .n { font-size: 11.5px; color: var(--text-3); }
.toggle { width: 36px; height: 20px; border-radius: 20px; background: var(--line-strong); position: relative; transition: 0.2s; flex: none; display: inline-block; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2); transition: 0.2s var(--ease); }
.toggle.on { background: var(--primary); }
.toggle.on::after { left: 18px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { overflow: hidden; padding: 16px 18px; }
.kpi .lbl { display: flex; align-items: center; gap: 7px; font: 500 12.5px/1.2 var(--f-body); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .lbl .dot { display: none; }
.kpi .val { display: flex; align-items: baseline; gap: 5px; margin: 10px 0 6px; white-space: nowrap; }
.kpi .val b { font: 600 28px/1 var(--f-body); letter-spacing: -0.02em; }
.kpi .val u { text-decoration: none; font-size: 13px; color: var(--text-3); font-weight: 500; }
.kpi .val .of { font: 500 16px var(--f-body); color: var(--text-3); }
.kpi .sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2px 8px; font-size: 12px; color: var(--text-3); }
/* QA 22-10: let the label wrap to two lines instead of cutting off key words ("vs baseline"); the delta stays on one line */
.kpi .sub > * { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.kpi .sub > :last-child:not(:first-child) { white-space: nowrap; display: block; }
.kpi .up { color: #027a48; font-weight: 500; } .kpi .dn { color: #b42318; font-weight: 500; }
.kpi .spark { margin-top: 10px; }
.kpi .stbar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; gap: 2px; margin-top: 12px; }
.kpi .stbar i { display: block; height: 100%; }

/* Medge-style brand tiles (purple, as in the existing Medge dashboards) */
.kpi.hero { background: var(--primary); border-color: var(--primary); color: #fff; }
.kpi.hero .lbl, .kpi.hero .sub, .kpi.hero .val u, .kpi.hero .val .of { color: rgba(255, 255, 255, 0.78); }
.kpi.hero .up, .kpi.hero .dn { color: #fff; }
.kpi.hero .pbar { background: rgba(255, 255, 255, 0.2); } .kpi.hero .pbar i { background: #fff !important; }
.kpi.hero .spark path:last-of-type { stroke: #fff !important; } .kpi.hero .spark path:first-of-type { fill: rgba(255, 255, 255, 0.12) !important; }

/* status pills */
.st { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--f-body); padding: 4px 9px 4px 8px; border-radius: 999px; white-space: nowrap; }
.st i { width: 6px; height: 6px; border-radius: 50%; }
.st-ok, .st-running { color: #027a48; background: var(--green-t); border: 1px solid #abefc6; } .st-ok i, .st-running i { background: var(--green); }
.st-warn, .st-standby { color: #b54708; background: var(--amber-t); border: 1px solid #fedf89; } .st-warn i, .st-standby i { background: var(--amber); }
.st-bad { color: #b42318; background: var(--red-t); border: 1px solid #fecdca; } .st-bad i { background: var(--red); }
.st-off, .st-offline { color: var(--text-2); background: var(--grey-t); border: 1px solid var(--line); } .st-off i, .st-offline i { background: var(--grey); }
.st-info { color: #175cd3; background: var(--blue-t); border: 1px solid #b2ddff; } .st-info i { background: var(--blue); }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { text-align: left; font: 500 12px/1 var(--f-body); color: var(--text-2); padding: 11px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr.click { cursor: pointer; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.num { text-align: right; }
.mbadge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--rs); font: 600 10.5px var(--f-mono); border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); flex: none; }
.minibar { width: 80px; height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; display: inline-block; vertical-align: middle; }
.minibar i { display: block; height: 100%; border-radius: 6px; background: var(--primary); }

/* charts */
.chart-box { position: relative; width: 100%; }
.chart .gl { stroke: #eaecf0; }
.chart .ax { font: 400 11px var(--f-body); fill: var(--text-3); }
.chart .ln { stroke-dasharray: 2; stroke-dashoffset: 2; animation: draw 0.9s ease-out forwards; }
.chart .area { opacity: 0; animation: fade 0.6s 0.2s forwards; }
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: grow 0.5s ease-out both; animation-delay: calc(var(--d) * 0.4); }
.chart .endring { display: none; }
.chart .xh { stroke: var(--line-strong); stroke-dasharray: 3 3; opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } }
.tip { position: absolute; pointer-events: none; opacity: 0; transition: opacity 0.12s; min-width: 170px; padding: 10px 12px; border-radius: var(--rs); background: var(--surface); border: 1px solid var(--line); font-size: 12px; z-index: 5; box-shadow: var(--shadow-lg); }
.tip b { display: block; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.tip span { display: flex; align-items: center; gap: 7px; color: var(--text-2); line-height: 1.7; }
.tip span i { width: 8px; height: 8px; border-radius: 2px; }
.tip span em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--text); padding-left: 12px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 3px; border-radius: 2px; }
.gauge .tk line { stroke: #d0d5dd; stroke-width: 1; }
.gauge .trk { fill: none; stroke: #eaecf0; stroke-width: 8; stroke-linecap: round; }
.gauge .val { fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round; }
.gauge .gv { font: 600 22px var(--f-body); fill: var(--text); font-variant-numeric: tabular-nums; }
.gauge .gu { font: 400 11px var(--f-body); fill: var(--text-3); }
.gauge .gl2 { font: 500 11px var(--f-body); fill: var(--text-2); }
.donut path { animation: fade 0.5s both; animation-delay: var(--d); }
.ring circle + circle { filter: none !important; }

/* alerts list */
.alist { display: flex; flex-direction: column; }
.al { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.al:last-child { border-bottom: 0; }
.al .sv { width: 32px; height: 32px; border-radius: var(--rs); display: grid; place-items: center; }
.al.high .sv { background: var(--red-t); color: var(--red); }
.al.med .sv { background: var(--amber-t); color: var(--amber); }
.al.low .sv { background: var(--blue-t); color: var(--blue); }
.al.info .sv { background: var(--grey-t); color: var(--text-2); }
.al b { font-size: 13.5px; font-weight: 600; }
.al b em { font-style: normal; font: 500 11.5px var(--f-mono); color: var(--text-2); margin-right: 8px; background: var(--sunken); padding: 2px 6px; border-radius: 4px; }
.al p { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.al time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.al.acked { opacity: 0.6; }

/* MIRA suggestion rows */
.mira-sug { display: flex; flex-direction: column; gap: 8px; }
.sug { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: var(--rs); border: 1px solid var(--line); background: var(--surface); }
.sug:hover { background: var(--surface-2); }
.sug .ai { width: 32px; height: 32px; border-radius: var(--rs); display: grid; place-items: center; color: var(--primary); background: var(--tint); }
.sug b { font-size: 13px; font-weight: 600; display: block; }
.sug b em { font-style: normal; color: var(--primary); }
.sug small { color: var(--text-2); font-size: 12px; display: block; margin-top: 1px; }

/* misc lists */
.contrib { display: flex; flex-direction: column; gap: 8px; }
.contrib div { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.contrib i { width: 10px; height: 10px; border-radius: 3px; }
.contrib em { font-style: normal; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.recon { display: flex; flex-direction: column; gap: 6px; }
.recon-row { display: grid; grid-template-columns: 56px 1fr 60px; gap: 12px; align-items: center; font-size: 12px; padding: 3px 6px; border-radius: 6px; }
.recon-row .bars2 { position: relative; height: 20px; }
.recon-row .bars2 i { position: absolute; left: 0; height: 8px; border-radius: 3px; transform-origin: left; animation: growx 0.6s ease-out both; }
.recon-row .bars2 i.b { top: 0; background: var(--primary); }
.recon-row .bars2 i.m { bottom: 0; background: #b9c0cc; }
.recon-row .var { text-align: right; font-variant-numeric: tabular-nums; }
.recon-row.bad { background: var(--red-t); }
.rep-tabs { display: flex; gap: 10px; margin-bottom: var(--gap); flex-wrap: wrap; }
.rep-tab { flex: 1; min-width: 180px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-align: left; transition: 0.15s; box-shadow: var(--shadow); }
.rep-tab:hover { border-color: var(--line-strong); }
.rep-tab b { display: block; font: 600 13.5px var(--f-body); margin-top: 8px; } .rep-tab small { color: var(--text-3); font-size: 12px; display: block; }
.rep-tab .ic { color: var(--text-3); }
.rep-tab.on { border-color: var(--primary); background: var(--tint); box-shadow: 0 0 0 1px var(--primary); }
.rep-tab.on .ic { color: var(--primary); }
.rep-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row .l { flex: 1; min-width: 0; } .set-row .l b { display: block; font-size: 13.5px; font-weight: 600; } .set-row .l small { color: var(--text-2); font-size: 12.5px; }
.chan { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-3); }
.chan.on { color: var(--primary); background: var(--tint); border-color: var(--tint-2); }
.kvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kvs div { padding: 11px 12px; border-radius: var(--rs); border: 1px solid var(--line); background: var(--surface-2); }
.kvs small { display: block; font-size: 12px; color: var(--text-2); }
.kvs b { font: 600 18px var(--f-body); font-variant-numeric: tabular-nums; } .kvs b u { text-decoration: none; font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 3px; }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.note { font-size: 12.5px; color: var(--text-2); }
.empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 13px; }

/* machine-style cards */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.mcard { cursor: pointer; overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.mcard:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.mcard .glowbar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sc, var(--grey)); }
.mcard .top1 { display: flex; align-items: flex-start; gap: 10px; }
.mcard .top1 h4 { font: 600 14px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .top1 > div { min-width: 0; }
.mcard .top1 small { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.mcard .top1 .st { margin-left: auto; }
.mcard .mid { display: flex; align-items: center; gap: 14px; margin: 14px 0 8px; }
.mcard .big b { font: 600 28px/1 var(--f-body); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mcard .big u { text-decoration: none; font-size: 13px; color: var(--text-3); margin-left: 4px; }
.mcard .big small { display: block; font-size: 12px; color: var(--text-3); margin-top: 5px; }
.mcard .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--rs); overflow: hidden; background: var(--line); margin-top: 10px; border: 1px solid var(--line); }
.mcard .kv div { background: var(--surface-2); padding: 8px 10px; }
.mcard .kv small { display: block; font-size: 11.5px; color: var(--text-3); }
.mcard .kv b { font: 600 13.5px var(--f-body); font-variant-numeric: tabular-nums; }
.mcard .opline { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.mcard .opline .rf { margin-left: auto; font-size: 12.5px; color: var(--primary); font-weight: 500; }
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters .lab { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.params { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--rs); overflow: hidden; border: 1px solid var(--line); }
.params div { background: var(--surface); padding: 12px 14px; }
.params small { display: block; font-size: 12px; color: var(--text-2); }
.params b { display: block; font: 600 19px/1.3 var(--f-body); margin-top: 3px; font-variant-numeric: tabular-nums; }
.params b u { text-decoration: none; font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 4px; }
.params .warnv b { color: #b54708; }
.mhero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mhero .mbadge { width: 52px; height: 52px; font-size: 13px; border-radius: var(--r); }
.mhero h2 { font: 600 22px var(--f-body); letter-spacing: -0.015em; }
.mhero .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.mswitch { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.mswitch a { padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line); font: 500 11.5px var(--f-mono); color: var(--text-2); display: flex; gap: 6px; align-items: center; background: var(--surface); }
.mswitch a i { width: 6px; height: 6px; border-radius: 50%; }
.mswitch a.on { border-color: var(--primary); color: var(--primary); background: var(--tint); }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(16, 24, 40, 0.45); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity 0.2s; }
.modal-bg.in { opacity: 1; }
.modal { width: min(560px, 100%); transform: translateY(8px); transition: transform 0.25s var(--ease); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.25); }
.modal-bg.in .modal { transform: none; }
.modal .ph h3 { font-size: 17px; }
.modal .ph .icon-btn { margin-left: auto; }
.modal .mb { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .mb .full { grid-column: span 2; }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px; transform: translateY(8px); opacity: 0; transition: 0.25s var(--ease); max-width: 400px; }
.toast .ic { color: var(--green); } .toast.ai .ic { color: var(--primary); } .toast.warn .ic { color: var(--amber); }
.toast.in { transform: none; opacity: 1; }

/* MIRA drawer */
.mira { position: fixed; right: 16px; top: 16px; bottom: 16px; width: 400px; z-index: 80; display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.25); transform: translateX(12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.25s var(--ease), opacity 0.2s, visibility 0s 0.25s; }
.mira.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.25s var(--ease), opacity 0.2s, visibility 0s; }
.mira-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mira-h b { display: block; font: 600 15px var(--f-body); } .mira-h small { font-size: 12px; color: var(--text-3); }
.mira-h .icon-btn { margin-left: auto; }
.mira-badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--primary); flex: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.msg.u { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.m { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.msg.m b { color: var(--primary); font-weight: 600; }
.msg.m .btn { margin-top: 8px; display: inline-flex; }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.3; } }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 92px 12px 16px; border-top: 1px solid var(--line); }
.sugg button { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); background: var(--surface); transition: 0.15s; }
.sugg button:hover { color: var(--primary); border-color: var(--tint-2); background: var(--tint); }
.ask { padding: 0 16px 16px; }
.ask-box { --ps: 113px; --pr: 33px; position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.ask-box:focus-within { border-color: var(--primary-h); box-shadow: 0 0 0 4px var(--ring); }
.ask-box textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; color: var(--text); font: 400 13.5px/1.45 var(--f-body); padding: 7px 0; max-height: 104px; overflow-y: auto; }
.ask-box textarea::placeholder { color: var(--text-3); }
.ask-box .btn { height: 34px; }
/* Ollie perches on the top edge of the input box, right-aligned (feet on the border). */
.perch { position: absolute; bottom: 100%; right: calc(10px - var(--pr)); width: var(--ps); height: var(--ps); margin-bottom: -2px; pointer-events: none; z-index: 2; }
.perch canvas, .perch img { display: block; width: 100% !important; height: 100% !important; margin: 0 !important; pointer-events: auto; cursor: pointer; }
.perch { display: flex; align-items: flex-end; justify-content: flex-end; }
.perch img { width: calc(var(--ps) / 1.5) !important; height: auto !important; margin: 0 calc(var(--pr) - 8px) -1px 0 !important; }
.chat-panel { display: flex; flex-direction: column; min-height: 420px; }
.chat-panel .chat-log { padding: 12px; max-height: 380px; min-height: 180px; border-radius: var(--rs); border: 1px solid var(--line); }
.chat-panel .sugg { padding: 12px 92px 12px 0; border-top: 0; }
.chat-panel .ask { padding: 14px 0 0; margin-top: auto; }

/* banners */
.banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r); margin-bottom: var(--gap); border: 1px solid #fedf89; background: var(--amber-t); font-size: 13.5px; }
.banner .bi { width: 34px; height: 34px; border-radius: var(--rs); display: grid; place-items: center; color: #b54708; background: #fef0c7; flex: none; }
.banner b { font-weight: 600; }
.banner p { color: var(--text-2); font-size: 13px; }
.banner .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.banner.red { border-color: #fecdca; background: var(--red-t); } .banner.red .bi { color: var(--red); background: #fee4e2; }
.banner.cyan { border-color: #b2ddff; background: var(--blue-t); } .banner.cyan .bi { color: var(--blue); background: #d1e9ff; }
.banner.purple { border-color: var(--tint-2); background: var(--tint); } .banner.purple .bi { color: var(--primary); background: var(--tint-2); }

/* semi gauge */
.semi .tk line { stroke: #d0d5dd; stroke-width: 1; }
.semi .trk { fill: none; stroke: #eaecf0; stroke-width: 7; stroke-linecap: round; }
.semi .val { fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round; transition: d 0.3s; }
.semi .ndl { stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; }
.semi .hub { fill: var(--text); }
.semi .sv { font: 600 16px var(--f-body); fill: var(--text); font-variant-numeric: tabular-nums; }
.semi .sl { font: 500 9.5px var(--f-body); fill: var(--text-3); }

/* tank */
.tank { position: relative; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--sunken); overflow: hidden; flex: none; }
.tank i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: var(--c); opacity: 0.85; transition: height 0.6s ease-out; }
.tank b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font: 600 12px var(--f-body); color: var(--text); z-index: 1; font-variant-numeric: tabular-nums; }
.tank b u { text-decoration: none; font-size: 9.5px; opacity: 0.7; }

.hring { position: relative; flex: none; }
.hring span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 12.5px var(--f-body); font-variant-numeric: tabular-nums; }

/* insights */
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ins { display: flex; flex-direction: column; gap: 8px; }
.ins .ins-h { display: flex; align-items: center; gap: 8px; }
.ins .ins-h .conf { margin-left: auto; font-size: 12px; color: var(--text-3); }
.ins h4 { font: 600 15px/1.4 var(--f-body); }
.ins h4 em { font-style: normal; color: var(--primary); }
.ins p { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.ins .act { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.ins .act .imp { margin-left: auto; font: 600 13px var(--f-body); color: #027a48; }

.kv4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--rs); overflow: hidden; border: 1px solid var(--line); }
.kv4 > div { background: var(--surface-2); padding: 9px 11px; min-width: 0; }
.kv4 small { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv4 b { display: block; font: 600 14px var(--f-body); margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv4 b u { text-decoration: none; font-size: 11px; color: var(--text-3); margin-left: 2px; font-weight: 500; }
.kv3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pbar { height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--primary)); transform-origin: left; animation: growx 0.6s ease-out both; }
@keyframes growx { from { transform: scaleX(0); } }

.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.small { font-size: 12.5px; }
.tiny { font: 500 11.5px var(--f-body); color: var(--text-3); }
.big-num { font: 600 28px/1 var(--f-body); letter-spacing: -0.02em; }
.big-num u { text-decoration: none; font-size: 13px; color: var(--text-3); margin-left: 4px; font-weight: 500; }
.mt-s { margin-top: 10px; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel h5 { font: 600 13.5px var(--f-body); }

/* language menu */
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: var(--rs); border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.lang-btn:hover { background: var(--surface-2); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 230px; padding: 6px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; z-index: 70; max-height: 70vh; overflow: auto; }
.lang.open .lang-menu { display: block; }
.lang-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--text); text-align: left; }
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.on { color: var(--primary); background: var(--tint); font-weight: 600; }
.lang-menu button small { font-size: 11.5px; color: var(--text-3); font-weight: 400; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) { .search { display: none; } }
/* QA 22-10: tablet widths — the top bar overflowed by up to 158 px at 768–1024. The title may shorten, and the site chip
   (repeated in the sub-bar) and the avatar step aside first. */
.crumbs { min-width: 0; } .crumbs h1 { overflow: hidden; text-overflow: ellipsis; }
.top-r > * { flex-shrink: 0; }
@media (max-width: 1180px) { .top .site-chip, .top .me { display: none; } .badge-demo .hide-s { display: none; } }
@media (max-width: 1280px) {
  .kpis, .kpis.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c3, .c4, .c5, .c6 { grid-column: span 6; } .c7, .c8, .c9 { grid-column: span 12; }
  .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top .clock { display: none; }
}
@media (max-width: 960px) {
  :root { --rail: 0px; }
  .rail { width: 260px; transform: translateX(-100%); transition: transform 0.3s var(--ease); }
  .rail.open { transform: none; box-shadow: var(--shadow-lg); }
  .rail-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(16, 24, 40, 0.4); opacity: 0; pointer-events: none; transition: 0.2s; }
  .rail.open + .rail-scrim { opacity: 1; pointer-events: auto; }
  .only-m { display: grid; }
  .c6 { grid-column: span 12; }
}
@media (max-width: 700px) {
  :root { --gap: 12px; --top: 56px; }
  .top { padding: 0 12px; gap: 8px; }
  .crumbs { min-width: 0; flex: 1; } .crumbs small { display: none; }
  .crumbs h1 { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .top-r { gap: 6px; }
  .hide-s { display: none !important; }
  .badge-demo { font-size: 10.5px; padding: 5px 8px; }
  .sector-bar { padding: 8px 12px; }
  .view { padding: 16px 12px 64px; }
  .kpis, .kpis.k6, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 13px 14px; }
  .kpi .val b { font-size: 22px; }
  .kpi .lbl { font-size: 12px; }
  .kpi .sub { font-size: 11.5px; }
  .kpis > :last-child:nth-child(odd) { grid-column: span 2; }
  .ph-row .acts { margin-left: 0; }
  .c3, .c4, .c5, .c6, .c7, .c8, .c9 { grid-column: span 12; }
  .ph-row h2 { font-size: 20px; }
  .ins-grid { grid-template-columns: 1fr; }
  .kv4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .params { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { flex-wrap: wrap; } .banner .acts { margin-left: 0; }
  .mira { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto; }
  .ask-box { --ps: 93px; --pr: 27px; }
  .sugg, .chat-panel .sugg { padding-right: 78px; }
  .seg { flex-wrap: wrap; }
  .rep-filters { grid-template-columns: 1fr 1fr; }
  .modal .mb { grid-template-columns: 1fr; } .modal .mb .full { grid-column: auto; }
  .tbl-wrap { margin: 0 -14px; padding: 0 14px; }
  .panel { padding: 14px; }
  .mhero h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* QA 22-10: phone tap targets are at least 44 px (UX checklist) */
@media (max-width: 700px) {
  .btn, .btn.sm, .seg button, .seg a, .chip { height: auto; min-height: 44px; }
  select.inp, input.inp, .nav a, .scenes a, .sugg button { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
}

.sugg button:disabled { opacity: 0.5; cursor: progress; }
