/* ==========================================================================
   VectorVu Plant SCADA – application stylesheet
   Dark, glassy, colourful: VectorVu brand blues + violet, status colours for state.
   ========================================================================== */
:root {
  --bg: #060a14; --bg2: #0a1020;
  --panel: rgba(13, 21, 39, 0.78); --panel-solid: #0d1527; --raise: rgba(255, 255, 255, 0.035); --raise2: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 178, 255, 0.12); --line2: rgba(148, 178, 255, 0.22);
  --text: #eaf0fc; --muted: #9eabc6; --faint: #6b7896;
  --blue: #1a9bfd; --blue-deep: #0a6ff0; --cyan: #2fcff7; --violet: #8b7bff; --teal: #2dd4bf; --pink: #ff5c9a;
  --ok: #34d399; --off: #8a97b0; --bad: #ff5d6c; --warn: #f5a524; --unk: #4a5670;
  --accent: var(--blue);
  --grad: linear-gradient(120deg, #0a6ff0 0%, #1a9bfd 45%, #2fcff7 100%);
  --grad-v: linear-gradient(120deg, #1a9bfd, #8b7bff);
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --head: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef2f9; --bg2: #e6ebf5; --panel: rgba(255, 255, 255, 0.86); --panel-solid: #ffffff; --raise: rgba(10, 30, 70, 0.035); --raise2: rgba(10, 30, 70, 0.06);
  --line: rgba(20, 40, 90, 0.12); --line2: rgba(20, 40, 90, 0.22); --text: #101a2e; --muted: #56627a; --faint: #8390a8; --off: #8a94a6; --unk: #b5bdc9;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex; flex-direction: column; overflow: hidden; color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 600px at 88% -10%, rgba(26, 155, 253, 0.16), transparent 60%), radial-gradient(700px 500px at -10% 30%, rgba(139, 123, 255, 0.12), transparent 60%), var(--bg);
}
:root[data-theme="light"] body { background: radial-gradient(900px 600px at 88% -10%, rgba(26, 155, 253, 0.12), transparent 60%), var(--bg); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
[hidden] { display: none !important; }
code, .mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .sp { flex: 1; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(148, 178, 255, 0.18); border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- buttons, chips, pills */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--raise); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; transition: border-color .2s, background .2s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: var(--cyan); background: rgba(47, 207, 247, 0.08); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 8px 22px -10px rgba(26, 155, 253, .8); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.on { background: rgba(26, 155, 253, 0.18); border-color: var(--blue); color: #fff; }
:root[data-theme="light"] .btn.on { color: var(--blue-deep); }
.btn.small { padding: 2px 9px; font-size: 11.5px; }
.btn.sheet { font-family: var(--mono); color: var(--cyan); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; background: var(--raise); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.pass { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); }
.chip.fail { color: var(--bad); border-color: rgba(255, 93, 108, .45); background: rgba(255, 93, 108, .1); }
.chip.warnc { color: var(--warn); border-color: rgba(245, 165, 36, .45); background: rgba(245, 165, 36, .08); }
.chip.fam { border-color: transparent; background: color-mix(in srgb, var(--fam) 20%, transparent); color: color-mix(in srgb, var(--fam) 60%, var(--text)); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); font-size: 12px; color: var(--muted); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--unk); flex: none; }
.pill.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .pill.bad i { background: var(--bad); } .pill.sim i { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; }
.badge.warnb { background: var(--warn); color: #1a1205; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); }
.seg button { white-space: nowrap; background: none; border: 0; padding: 4px 13px; border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.seg button.on { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 4px 14px -6px rgba(26, 155, 253, .9); }

/* ---------------------------------------------------------------- top bar */
.topbar { display: flex; align-items: center; gap: 14px; padding: 10px 14px 8px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.wordmark { height: 22px; display: block; }
:root[data-theme="light"] .wordmark { filter: invert(1) hue-rotate(180deg) saturate(1.4); }
.brand-sub { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--line2); padding-left: 12px; }
.brand-tag { font: 600 13px var(--head); letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub small { color: var(--muted); font-size: 11.5px; max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selectors { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.field { display: flex; flex-direction: column; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.field select { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px; min-width: 130px; font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--text); }
.field select option { background: var(--panel-solid); }
#areaSel { min-width: 170px; max-width: 210px; }
#siteSel { min-width: 120px; max-width: 160px; }
.search { position: relative; flex: 1; min-width: 150px; max-width: 380px; margin-left: auto; }
.search .ico { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--faint); }
.search input { width: 100%; background: var(--raise); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px 7px 34px; font-size: 12.5px; }
.search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47, 207, 247, .15); }
.search-results { position: absolute; z-index: 60; top: 42px; left: 0; right: 0; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 60vh; overflow: auto; padding: 6px; }
.search-results h4 { margin: 8px 8px 4px; font-size: 10.5px; text-transform: uppercase; color: var(--faint); letter-spacing: .1em; }
.search-results button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.search-results button:hover { background: var(--raise2); }
.search-results code { color: var(--cyan); }
.top-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.btn.tour { background: var(--grad-v); color: #fff; border-color: transparent; font-weight: 600; box-shadow: 0 8px 24px -10px rgba(139, 123, 255, .9); }
.btn.tour .ico { fill: currentColor; stroke: none; width: 12px; height: 12px; }
.theme-btn { width: 34px; height: 32px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; }
.theme-btn:hover { color: var(--text); border-color: var(--cyan); }

/* ---------------------------------------------------------------- layout: floating glass panels */
.layout { display: grid; grid-template-columns: 372px 1fr auto; gap: 10px; flex: 1; min-height: 0; padding: 0 10px 10px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); min-height: 0; }
.left { display: flex; flex-direction: column; overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; border-radius: 10px; padding: 7px 2px 6px; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.tabs button .ico { width: 17px; height: 17px; }
.tabs button:hover { background: var(--raise); color: var(--text); }
.tabs button.on { background: rgba(26, 155, 253, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(26, 155, 253, .45); }
:root[data-theme="light"] .tabs button.on { color: var(--blue-deep); }
.tabs button.on .ico { color: var(--cyan); }
.tabs .badge { position: absolute; top: 2px; right: 6px; }
.tab-body { overflow: auto; padding: 10px; flex: 1; min-height: 0; overflow-anchor: none; }
.center { position: relative; min-width: 0; overflow: hidden; }
.right { width: 440px; max-width: 100vw; overflow: auto; position: relative; padding: 0 0 30px; overflow-anchor: none; }
.right .close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 999px; width: 30px; height: 30px; display: grid; place-items: center; z-index: 3; color: var(--muted); }
.right .close:hover { color: var(--text); border-color: var(--cyan); }

/* ---------------------------------------------------------------- left panel content */
.empty { color: var(--faint); padding: 22px 6px; text-align: center; }
.note { font-size: 12px; color: var(--muted); background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 8px; }
.filter { display: flex; gap: 6px; margin-bottom: 8px; }
.filter input, .filter select { flex: 1; min-width: 0; background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; }
.group-h { margin: 14px 2px 6px; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.group-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.unit-h { margin: 8px 6px 2px; font-size: 11px; color: var(--muted); font-weight: 600; }
.card { position: relative; background: linear-gradient(180deg, var(--raise2), var(--raise)); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px 10px 14px; margin-bottom: 7px; cursor: pointer; overflow: hidden; transition: border-color .2s, transform .15s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fam, var(--line2)); }
.card:hover { border-color: var(--line2); transform: translateY(-1px); }
.card.sel { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 8px 26px -12px rgba(47, 207, 247, .6); }
.card h5 { margin: 1px 0 0; font-size: 13.5px; font-weight: 600; }
.card .sub { color: var(--muted); font-size: 11.5px; }
.card .checks { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.card.unack { animation: unack 1.6s ease-in-out infinite; }
@keyframes unack { 50% { box-shadow: 0 0 0 1px rgba(255, 93, 108, .65), 0 0 18px -4px rgba(255, 93, 108, .55); } }
.card.isact { box-shadow: inset 0 0 0 1px rgba(255, 93, 108, .4); }
.sim { position: relative; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 12.5px; background: linear-gradient(135deg, rgba(139, 123, 255, .14), rgba(26, 155, 253, .08)); border: 1px solid rgba(139, 123, 255, .35); }
.sim b { color: var(--text); }
.sim select { width: 100%; margin: 8px 0; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 8px; font-size: 12.5px; }
.sim .row2 { display: flex; gap: 6px; align-items: center; }
.sim .row2 select { width: auto; margin: 0; padding: 3px 6px; }
.cellstat { margin-bottom: 10px; }
.cellstat .checks, #actChips .checks { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.states .st { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px; font-size: 11.5px; cursor: pointer; transition: border-color .2s; }
.states .st:hover { border-color: var(--line2); }
.states .st span { display: block; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
.states .st b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.states .st.bad { border-color: rgba(255, 93, 108, .55); background: rgba(255, 93, 108, .08); } .states .st.bad b { color: var(--bad); }
.states .st.act { border-color: rgba(26, 155, 253, .45); background: rgba(26, 155, 253, .07); } .states .st.act b { color: var(--cyan); }
.row { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 9px; cursor: pointer; }
.row:hover { background: var(--raise2); }
.row .t { font-family: var(--mono); font-size: 12px; }
.row .n { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .val, .val { color: var(--cyan); font-family: var(--mono); font-size: 11.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--unk); display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .dot.off { background: var(--off); } .dot.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); } .dot.warn { background: var(--warn); } .dot.unk { background: var(--unk); }
.conf { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.conf.exact { color: var(--ok); border-color: rgba(52, 211, 153, .35); } .conf.badc { color: var(--bad); border-color: rgba(255, 93, 108, .45); }
.bad-t { color: var(--bad); }
.eqstate b { color: var(--text); }
.pvals { display: grid; gap: 2px; }
.pv { display: grid; grid-template-columns: 1fr auto 28px; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; font-size: 12.5px; }
.pv:nth-child(odd) { background: var(--raise); }
.pv b { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--cyan); }
.eye { padding: 0; width: 26px; height: 22px; display: grid; place-items: center; font-size: 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--muted); }
.eye:hover { border-color: var(--cyan); color: var(--text); }
.eye.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 12px rgba(47, 207, 247, .5); }
.pbar { height: 5px; background: var(--raise2); border-radius: 4px; margin: 7px 0 4px; overflow: hidden; }
.pbar.big { height: 8px; }
.pbar i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.pbar i.due { background: var(--warn); } .pbar i.overdue { background: var(--bad); }
.card.pm { --fam: var(--off); } .card.pm.due { --fam: var(--warn); } .card.pm.overdue { --fam: var(--bad); }
.pmst { float: right; font-weight: 700; font-size: 10.5px; letter-spacing: .06em; } .pmst.due { color: var(--warn); } .pmst.overdue { color: var(--bad); }
.event { display: grid; grid-template-columns: 74px 1fr; gap: 8px; font-size: 12.5px; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.event .ts { color: var(--faint); font-family: var(--mono); font-size: 11px; }
.event a { color: var(--text); text-decoration: none; } .event a:hover { color: var(--cyan); }
.event.alarm { color: var(--bad); } .event.clear { color: var(--ok); } .event.event { color: var(--warn); } .event.info { color: var(--muted); }
.event .io-st { margin-left: 6px; font-size: 10.5px; font-weight: 700; color: var(--off); } .event .io-st.on { color: var(--ok); }
.event span[data-alarm] { cursor: pointer; }

/* ---------------------------------------------------------------- detail pane (alarm / device / area / maintenance) */
.dp-hero { position: relative; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); background: radial-gradient(420px 160px at 0% 0%, color-mix(in srgb, var(--fam, var(--blue)) 22%, transparent), transparent 70%); }
.dp-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--fam, var(--blue)), transparent); border-radius: var(--radius) var(--radius) 0 0; }
.dp-eyebrow { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding-right: 36px; }
.dp-title { font: 600 19px/1.25 var(--head); margin: 5px 36px 8px 0; letter-spacing: -.01em; }
.dp-title.mono { font-family: var(--mono); font-size: 20px; }
.dp-sub { color: var(--muted); font-size: 12.5px; margin: -4px 0 8px; }
.dp-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.dp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dp-big { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.dp-big b { font: 600 28px var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-summary { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.dp-summary .segs { display: flex; gap: 3px; flex: 1; }
.dp-summary .segs i { flex: 1; height: 5px; border-radius: 3px; background: var(--ok); }
.dp-summary .segs i.fail { background: var(--bad); box-shadow: 0 0 8px rgba(255, 93, 108, .6); } .dp-summary .segs i.unknown { background: var(--unk); }
.dp-summary b { color: var(--text); }
.dp-sec { padding: 12px 18px 4px; }
.dp-h { display: flex; align-items: center; gap: 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.dp-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ck { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); margin-bottom: 5px; font-size: 13px; }
.ck .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.ck.pass .ic { background: rgba(52, 211, 153, .15); color: var(--ok); } .ck.fail .ic { background: rgba(255, 93, 108, .18); color: var(--bad); } .ck.unknown .ic { background: var(--raise2); color: var(--muted); }
.ck.fail { border-color: rgba(255, 93, 108, .5); background: rgba(255, 93, 108, .07); }
.ck small { color: var(--faint); font-size: 11px; display: block; }
.tagbtn { font: 600 11px var(--mono); color: var(--cyan); background: rgba(47, 207, 247, .08); border: 1px solid rgba(47, 207, 247, .25); border-radius: 999px; padding: 1px 8px; text-decoration: none; cursor: pointer; }
.tagbtn:hover { background: rgba(47, 207, 247, .18); }
.likely { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; background: linear-gradient(135deg, rgba(139, 123, 255, .14), rgba(26, 155, 253, .06)); border: 1px solid rgba(139, 123, 255, .3); font-size: 13px; }
.likely .k { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); background: rgba(139, 123, 255, .16); border-radius: 999px; padding: 2px 8px; margin-top: 1px; }
.dp-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 2px; padding: 8px 18px; background: var(--panel-solid); border-bottom: 1px solid var(--line); margin-top: 10px; }
.dp-tabs button { background: none; border: 0; padding: 5px 11px; border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.dp-tabs button:hover { color: var(--text); background: var(--raise); }
.dp-tabs button.on { color: #fff; background: rgba(26, 155, 253, .18); box-shadow: inset 0 0 0 1px rgba(26, 155, 253, .5); }
:root[data-theme="light"] .dp-tabs button.on { color: var(--blue-deep); }
.dp-tabs button i { font-style: normal; font-size: 10.5px; color: var(--faint); }
.steps-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.steps-h .pbar { flex: 1; margin: 0; }
ol.steps { list-style: none; margin: 0; padding: 0; }
ol.steps li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
ol.steps li::before { content: ""; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line2); }
ol.steps li:hover::before { border-color: var(--cyan); }
ol.steps li.done { color: var(--faint); text-decoration: line-through; }
ol.steps li.done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062014' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--ok); }
ol.steps li .chip { margin-left: 4px; font-size: 10px; padding: 0 6px; }
ol.steps.plain li { cursor: default; } ol.steps.plain li::before { content: counter(list-item); display: grid; place-items: center; font-size: 10.5px; color: var(--muted); border-radius: 50%; }
ol.steps.plain { counter-reset: list-item; } ol.steps.plain li { counter-increment: list-item; }
ul.causes { margin: 0; padding: 0; list-style: none; counter-reset: c; }
ul.causes li { counter-increment: c; display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
ul.causes li::before { content: counter(c); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--raise2); color: var(--muted); }
ul.causes li:first-child::before { background: rgba(139, 123, 255, .22); color: var(--violet); }
.dv { display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; align-items: center; padding: 7px 9px; border-radius: 10px; margin-bottom: 4px; background: var(--raise); border: 1px solid transparent; }
.dv:hover { border-color: var(--line2); }
.dv .nm { min-width: 0; } .dv .nm b { font: 600 12px var(--mono); } .dv .nm span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.dv .nm small { display: block; color: var(--faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv .acts { display: flex; gap: 3px; }
.ib { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-solid); color: var(--muted); font: 600 11px var(--mono); }
.ib:hover { color: var(--text); border-color: var(--cyan); }
.ib .ico { width: 14px; height: 14px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.doc { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); text-decoration: none; color: var(--text); cursor: pointer; min-width: 0; }
.doc:hover { border-color: var(--cyan); background: rgba(47, 207, 247, .06); }
.doc .ico { width: 18px; height: 18px; color: var(--cyan); margin-top: 1px; }
.doc.pdf .ico { color: var(--violet); }
.doc div { min-width: 0; } .doc b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.doc small { display: block; color: var(--faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc.wired { border-color: rgba(26, 155, 253, .55); background: rgba(26, 155, 253, .08); }
.doc .wtag { display: inline-block; margin-top: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
details.strat { background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; margin-bottom: 6px; }
details.strat summary { cursor: pointer; font-weight: 600; font-size: 12.5px; }
details.strat ol { margin: 6px 0 2px; padding-left: 20px; font-size: 12.5px; color: var(--muted); }
.rung { font-family: var(--mono); font-size: 12px; line-height: 1.7; background: #050912; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; overflow-wrap: anywhere; color: #b9c6dd; }
:root[data-theme="light"] .rung { background: #f4f7fc; color: #33405a; }
.rung .u { color: var(--faint); display: block; } .rung a { text-decoration: none; padding: 0 3px; border-radius: 4px; }
.rung a.t { color: #0b2e1f; background: var(--ok); } .rung a.f { color: #fff; background: var(--bad); } .rung a.u { color: var(--muted); display: inline; }
.kvt { display: grid; grid-template-columns: 118px 1fr; gap: 5px 10px; font-size: 12.5px; margin: 0 0 6px; }
.kvt dt { color: var(--faint); } .kvt dd { margin: 0; word-break: break-word; }
table.pts { width: 100%; border-collapse: collapse; font-size: 12px; margin: 6px 0; }
table.pts th { text-align: left; color: var(--faint); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); padding: 4px; }
table.pts td { border-bottom: 1px solid var(--line); padding: 5px 4px; }
table.pts a { color: var(--cyan); font-family: var(--mono); text-decoration: none; }
.ok-note { margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .08); color: var(--ok); font-size: 12.5px; }
.force { display: flex; gap: 6px; }

/* ---------------------------------------------------------------- 3D viewer and overlays */
.viewer { position: absolute; inset: 0; overflow: hidden; background: #0b1424; border-radius: var(--radius); }
.viewer canvas { display: block; }
.v-toolbar { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(8, 13, 26, .72); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex-wrap: wrap; max-width: calc(100% - 20px); }
.v-toolbar > button { width: 30px; height: 28px; border-radius: 999px; border: 0; background: var(--raise2); color: var(--text); display: grid; place-items: center; }
.v-toolbar > button:hover { background: rgba(47, 207, 247, .2); }
.chk { display: inline-flex; align-items: center; cursor: pointer; font-size: 12px; color: #c8d3ea; }
.chk input { display: none; }
.chk span { padding: 5px 11px; border-radius: 999px; transition: background .2s, color .2s; }
.chk input:checked + span { background: rgba(26, 155, 253, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(26, 155, 253, .5); }
.chk span:hover { background: var(--raise2); }
.v-status { position: absolute; bottom: 10px; left: 10px; font-size: 11.5px; color: #aab6cf; background: rgba(8, 13, 26, .72); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; z-index: 3; backdrop-filter: blur(8px); }
.v-legend { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 12px; font-size: 11px; color: #aab6cf; background: rgba(8, 13, 26, .72); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; z-index: 3; backdrop-filter: blur(8px); }
.v-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.pipe-legend { position: absolute; left: 10px; bottom: 44px; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; font-size: 11.5px; color: #c8d3ea; background: rgba(8, 13, 26, .82); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; backdrop-filter: blur(8px); }
.pipe-legend b { grid-column: 1 / -1; color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.pipe-legend i { display: inline-block; width: 16px; height: 6px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.sim-badge { position: absolute; right: 12px; bottom: 44px; z-index: 5; padding: 6px 13px; border-radius: 999px; background: linear-gradient(120deg, rgba(139, 123, 255, .92), rgba(26, 155, 253, .92)); color: #fff; font-weight: 600; font-size: 12px; box-shadow: 0 8px 22px -8px rgba(139, 123, 255, .9); pointer-events: none; }
.v-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.v-label { position: absolute; left: 0; top: 0; translate: -50% -100%; background: rgba(6, 10, 20, .86); color: #eaf0fc; border: 1px solid rgba(148, 178, 255, .3); border-radius: 7px; padding: 2px 8px; font: 11px var(--mono); white-space: nowrap; backdrop-filter: blur(4px); }
.v-label.focus { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; font-size: 12px; box-shadow: 0 6px 18px -6px rgba(47, 207, 247, .9); }
.v-label.suspect { border-color: var(--bad); color: #ffd7dc; box-shadow: 0 0 12px rgba(255, 93, 108, .45); }
.v-label.area { background: rgba(139, 123, 255, .85); border-color: transparent; font: 600 12px var(--font); }
.v-label.meas { background: linear-gradient(120deg, #2fcff7, #1a9bfd); color: #031220; border-color: transparent; font-weight: 700; }
.v-label.cam { background: rgba(26, 155, 253, .9); border-color: transparent; color: #fff; }
.v-pick { position: absolute; top: 56px; left: 10px; width: 320px; max-width: calc(100% - 20px); background: var(--panel-solid); border: 1px solid var(--line2); border-radius: var(--radius); padding: 12px 40px 12px 14px; z-index: 4; box-shadow: var(--shadow); font-size: 12.5px; }
.v-pick h4 { margin: 0 0 6px; font: 600 14px var(--head); }
.v-pick .kv { display: grid; grid-template-columns: 76px 1fr; gap: 3px 8px; color: var(--faint); }
.v-pick .kv b { color: var(--text); font-weight: 500; word-break: break-word; }
.v-pick .d-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.close.sm { position: absolute; right: 8px; top: 8px; background: var(--raise); border: 1px solid var(--line); border-radius: 999px; width: 24px; height: 24px; color: var(--muted); }
.ctx { position: absolute; z-index: 12; min-width: 220px; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); padding: 5px; }
.ctx-title { font-size: 11.5px; color: var(--faint); padding: 5px 9px 7px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ctx button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 9px; border-radius: 8px; font-size: 12.5px; }
.ctx button:hover { background: var(--raise2); }
.through-bar { position: absolute; top: 56px; left: 50%; translate: -50% 0; z-index: 7; display: flex; gap: 10px; align-items: center; padding: 6px 8px 6px 14px; background: var(--panel-solid); border: 1px solid var(--cyan); border-radius: 999px; font-size: 12.5px; box-shadow: 0 0 20px -6px rgba(47, 207, 247, .7); }

/* cameras */
.cam-dock { position: absolute; right: 12px; bottom: 46px; max-width: calc(100% - 24px); z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.cam-bar { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 999px; box-shadow: var(--shadow); cursor: move; user-select: none; font-size: 12px; }
.cam-nums { display: inline-flex; gap: 3px; }
.pip-tab { width: 24px; height: 24px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.pip-tab.on { background: var(--grad); border-color: transparent; color: #fff; }
.cam-row { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; align-items: flex-end; }
.pip { flex: 0 1 380px; min-width: 240px; background: transparent; border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.pip.big { flex-basis: 720px; }
.pip.flash { animation: pipFlash .9s ease-out; }
@keyframes pipFlash { 0% { box-shadow: 0 0 0 3px var(--cyan), var(--shadow); } 100% { box-shadow: 0 0 0 0 transparent, var(--shadow); } }
.pip-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--panel-solid); border-bottom: 1px solid var(--line); user-select: none; }
.pip-num { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 6px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; }
.pip-title { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pip-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--text); font-size: 13px; }
.pip-btn .ico { width: 13px; height: 13px; }
.pip-body { position: relative; aspect-ratio: 16 / 9; background: transparent; }
.cctv { box-shadow: inset 0 0 60px rgba(0, 0, 0, .55); }
.cctv-o { position: absolute; inset: 0; pointer-events: none; font: 600 10.5px var(--mono); color: #f2f6fb; text-shadow: 0 1px 2px #000; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); }
.cctv-o span { position: absolute; } .cctv-o span:first-child { left: 8px; top: 6px; } .cctv-o .rec { right: 8px; top: 6px; color: #ff6b6b; animation: rec 1.2s steps(2) infinite; } .cctv-o .ts { left: 8px; bottom: 6px; }
@keyframes rec { 50% { opacity: .2; } }
.pip-foot { padding: 4px 9px; font-size: 10.5px; color: var(--faint); border-top: 1px solid var(--line); background: var(--panel-solid); }

/* HMI window frame */
.hmi, .dwg { position: absolute; inset: 8px 8px 8px 8px; z-index: 9; display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); overflow: hidden; }
.dwg { z-index: 10; }
.hmi.control { border-color: var(--warn); box-shadow: 0 0 0 2px var(--warn), 0 30px 80px -20px rgba(0, 0, 0, .8); }
.hmi-head, .dwg-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: linear-gradient(180deg, var(--raise2), transparent); }
.hmi-title, .dwg-title { font: 600 13.5px var(--head); }
.hmi-head .pill { max-width: none; }
.hmi-screen { position: relative; flex: 1; min-height: 0; background: #070c18; container-type: inline-size; }
.hmi-foot { padding: 5px 12px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line); }
.hmi.control .hmi-foot { color: var(--warn); font-weight: 600; }
.dwg-head select { max-width: 280px; background: var(--raise); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.dwg-head select option { background: var(--panel-solid); }
.dwg-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #dfe4ea; cursor: grab; touch-action: none; }
.dwg-view:active { cursor: grabbing; }
.dwg-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.dwg-canvas svg { display: block; box-shadow: 0 10px 34px rgba(0, 0, 0, .25); }
.dwg-mk { fill: rgba(26, 155, 253, .12); stroke: #1a9bfd; stroke-width: 3; vector-effect: non-scaling-stroke; }
.dwg-mk.pulse { animation: mkp 1.1s ease-out 3; }
@keyframes mkp { 0% { stroke-width: 3; stroke-opacity: 1; } 100% { stroke-width: 26; stroke-opacity: .05; } }
#dwgHitN { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; translate: -50% 0; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 16px; z-index: 100; box-shadow: var(--shadow); font-size: 13px; }

/* ---------------------------------------------------------------- HMI app (operator screens) */
.hm { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; background: #070c18; color: #dbe4ef; font: 13px var(--font); }
.hm-top { display: flex; align-items: center; gap: 14px; padding: 7px 14px; background: linear-gradient(180deg, #0f1c36, #0a1428); border-bottom: 1px solid #1d2c4a; }
.hm-logo { font: 700 13px var(--head); letter-spacing: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-title { font-weight: 600; font-size: 13.5px; }
.hm-sp { flex: 1; }
.hm-kv { display: flex; flex-direction: column; font-size: 10px; color: #8193b3; line-height: 1.1; }
.hm-kv b { font: 600 12.5px var(--mono); color: #6fe3ff; }
.hm-clock { font: 600 13px var(--mono); color: #fff; }
.hm-user { font-size: 11px; color: #8193b3; }
.hm-nav { display: flex; gap: 4px; padding: 6px 10px; background: #0a1222; border-bottom: 1px solid #1a2742; flex-wrap: wrap; }
.hm-nav button { position: relative; background: #0f1a30; border: 1px solid #22324f; color: #c7d4e4; border-radius: 999px; padding: 4px 12px; font-size: 12px; }
.hm-nav button:hover { border-color: var(--cyan); }
.hm-nav button.on { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }
.hm-nav button i { font-style: normal; position: absolute; top: -6px; right: -4px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; line-height: 16px; }
.hm-nav button i:empty { display: none; }
.hm-nav button.alm { animation: navalm 1.2s ease-in-out infinite; }
@keyframes navalm { 50% { border-color: var(--bad); } }
.hm-main { display: grid; grid-template-columns: 1fr 300px; min-height: 0; }
.hm-gfx { position: relative; min-width: 0; min-height: 0; background: radial-gradient(ellipse at 40% 30%, #0f1b33, #070c18); }
.hm-gfx svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-side { border-left: 1px solid #1a2742; background: #0a1222; overflow: auto; padding: 10px 12px; }
.hm-sec h4 { margin: 4px 0 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8193b3; display: flex; justify-content: space-between; }
.hm-sec + .hm-sec { margin-top: 12px; }
.hp-g { font-size: 11px; color: var(--cyan); margin: 10px 0 4px; font-weight: 600; }
.hp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 5px; align-items: center; font-size: 12px; padding: 2px 0; }
.hp-row:has(input + input) { grid-template-columns: 1fr auto auto auto; }
.hp-row span { color: #c7d4e4; }
.hp-row em { font-style: normal; font-size: 9.5px; background: rgba(255, 93, 108, .2); color: #ffc2c8; border-radius: 4px; padding: 0 4px; }
.hp-row input { width: 64px; background: #050912; border: 1px solid #22324f; border-radius: 6px; color: #6fe3ff; font: 600 12px var(--mono); padding: 3px 5px; text-align: right; }
.hp-row input:focus { outline: none; border-color: var(--cyan); }
.hp-row input:disabled { color: #8193b3; border-color: #172238; }
.hp-row i { font-style: normal; color: #8193b3; font-size: 11px; min-width: 40px; }
.hp-cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.hp-cmds .btn { justify-content: center; background: #0f1a30; border-color: #22324f; color: #dbe4ef; }
#hmTrend { width: 100%; height: 130px; background: #050912; border: 1px solid #172238; border-radius: 8px; }
.hm-leg { display: grid; gap: 2px; margin-top: 5px; font-size: 11.5px; }
.hm-leg i { display: inline-block; width: 12px; height: 3px; margin-right: 6px; vertical-align: 3px; border-radius: 2px; }
.hm-leg b { font-family: var(--mono); color: #fff; font-weight: 600; margin-left: 4px; }
.hm-alarms { display: flex; border-top: 1px solid #1a2742; background: #050912; min-height: 64px; }
.hm-al-list { flex: 1; min-width: 0; }
.hm-al { display: grid; grid-template-columns: 80px 100px 1fr 60px; gap: 8px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid #111a2b; }
.hm-al.alarm.unack { background: #5c1820; color: #fff; animation: halm 1s steps(2) infinite; }
.hm-al.alarm.ack { background: #33141a; color: #ffb3bb; }
.hm-al.event { background: #3a2e10; color: #ffd98a; }
.hm-al.none { color: #5f7090; cursor: default; display: block; }
.hm-al .t { font-family: var(--mono); } .hm-al .s { font-size: 11px; text-align: right; }
@keyframes halm { 50% { background: #85232e; } }
.hm-al-side { width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: #8193b3; border-left: 1px solid #1a2742; }
.hm-al-side b { color: #fff; font-size: 18px; }
.hm-al-side button { background: var(--grad); border: 0; border-radius: 999px; padding: 3px 12px; font-weight: 700; color: #fff; font-size: 11.5px; }
.hm-al-side button:disabled { background: #1a2742; color: #6b7896; }
.hm-face { position: absolute; width: 268px; z-index: 3; background: #0d1729; border: 1px solid #2c4170; border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .6); padding: 9px 11px; font-size: 12.5px; }
.fp-h { display: flex; gap: 6px; align-items: baseline; border-bottom: 1px solid #22324f; padding-bottom: 6px; margin-bottom: 7px; }
.fp-h b { font: 700 13.5px var(--mono); color: #fff; } .fp-h span { flex: 1; color: #8193b3; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-h button { background: none; border: 0; color: #c7d4e4; font-size: 16px; }
.fp-st { text-align: center; font-weight: 800; letter-spacing: .08em; padding: 4px; border-radius: 8px; margin-bottom: 7px; font-size: 12px; }
.fp-st.run { background: rgba(52, 211, 153, .18); color: #7dffc8; } .fp-st.stop { background: #16223a; color: #c7d4e4; } .fp-st.flt { background: #7a1f2a; color: #fff; animation: halm 1s steps(2) infinite; } .fp-st.trav { background: rgba(245, 165, 36, .2); color: #ffd98a; }
.fp-r { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; border-bottom: 1px dashed #1a2742; gap: 8px; }
.fp-r span { color: #8193b3; } .fp-r b { font-family: var(--mono); color: #6fe3ff; font-weight: 600; }
.fp-r button, .fp-acts button, .fp-seg button { background: #0f1a30; border: 1px solid #22324f; color: #dbe4ef; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; }
.fp-seg { display: inline-flex; gap: 2px; } .fp-seg button.on { background: var(--grad); border-color: transparent; color: #fff; }
.fp-r input[type=range] { width: 120px; accent-color: var(--cyan); }
.fp-big { font: 700 26px var(--mono); color: #6fe3ff; text-align: center; padding: 4px; }
.fp-spark { width: 100%; height: 40px; background: #050912; border-radius: 6px; margin-top: 6px; } .fp-spark polyline { fill: none; stroke: var(--cyan); stroke-width: 1.5; }
.fp-acts { display: flex; gap: 6px; margin-top: 8px; } .fp-acts button:first-child { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
.fp-note { color: #8193b3; font-size: 11.5px; margin-top: 6px; }
@container (max-width: 980px) { .hm-main { grid-template-columns: 1fr; } .hm-side { display: none; } .hm-user, .hm-kv { display: none; } }

/* HMI SVG graphics */
.hm-gfx text { font-family: var(--font); fill: #c7d4e4; }
.hm-gfx .lbl { font-size: 11px; fill: #95a8c6; } .hm-gfx .lbl.sm, .hm-gfx .sm { font-size: 10px; }
.hm-gfx .tag { font: 600 10.5px var(--mono); fill: #dbe4ef; } .hm-gfx .tag.sm { font-size: 9px; }
.hm-gfx .atitle { font-size: 11px; font-weight: 700; letter-spacing: .08em; fill: #2fcff7; text-transform: uppercase; }
.hm-gfx .area { fill: rgba(16, 28, 52, .72); stroke: #22324f; stroke-width: 1; }
.hm-gfx .go { cursor: pointer; } .hm-gfx .go:hover .area { stroke: #1a9bfd; }
.hm-gfx .lnk { fill: #2fcff7; text-decoration: underline; cursor: pointer; }
.hm-gfx .vlbl { font-size: 9.5px; fill: #8193b3; }
.hm-gfx .vrect { fill: #050912; stroke: #22324f; }
.hm-gfx .vnum { font: 600 12px var(--mono); fill: #6fe3ff; } .hm-gfx .vnum.sm { font-size: 10.5px; } .hm-gfx .vnum.xs { font-size: 9.5px; }
.hm-gfx .vnum.alm, .hm-gfx .kpiv.alm { fill: #ff6b78; animation: valm 1s steps(2) infinite; }
.hm-gfx .vnum.bad, .hm-gfx .kpiv.bad, .hm-gfx .tval.bad { fill: #ff4dff; }
@keyframes valm { 50% { fill: #ffd0d5; } }
.hm-gfx .inalarm .vrect, .hm-gfx .inalarm > rect.area { stroke: #ff5d6c; stroke-width: 2; }
.hm-gfx .kpiv { font: 700 24px var(--mono); fill: #fff; }
.hm-gfx .spark { fill: none; stroke: #2fcff7; stroke-width: 1.4; opacity: .85; }
.hm-gfx .stxt { font-size: 11.5px; font-weight: 600; fill: #6ef0b8; } .hm-gfx .stxt.alm { fill: #ff6b78; } .hm-gfx .stxt.act { fill: #2fcff7; }
.hm-gfx .mode { font: 700 10px var(--mono); fill: #8b7bff; }
.hm-gfx .pidf { cursor: pointer; }
.hm-gfx .hp { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hm-gfx .hf { fill: none; stroke: rgba(255, 255, 255, .75); stroke-dasharray: 5 13; stroke-linecap: round; opacity: 0; animation: hflow 1s linear infinite; pointer-events: none; }
.hm-gfx .hf.on { opacity: 1; }
.hm-gfx .hf.settle { stroke: rgba(200, 255, 250, .35); animation-duration: 6s; }
.hm-gfx .hf.serp { stroke: rgba(180, 220, 255, .7); stroke-width: 2.4; }
@keyframes hflow { to { stroke-dashoffset: -18; } }
.hm-gfx .arr { fill: #95a8c6; }
.hm-gfx .dev { cursor: pointer; } .hm-gfx .dev:hover .pbody, .hm-gfx .dev:hover .mbody, .hm-gfx .dev:hover .vbody, .hm-gfx .dev:hover .vrect { stroke: #2fcff7; stroke-width: 2; }
.hm-gfx .pbody { fill: #1c2840; stroke: #7f90ad; stroke-width: 1.5; }
.hm-gfx .run .pbody, .hm-gfx .run .mbody { fill: #138a5a; stroke: #6ef0b8; }
.hm-gfx .flt .pbody, .hm-gfx .flt .mbody { fill: #b3263a; stroke: #ff9aa6; animation: fltb 1s steps(2) infinite; }
.hm-gfx .unk .pbody, .hm-gfx .unk .mbody { fill: #6b2a6b; stroke: #ff4dff; }
.hm-gfx .man .pbody, .hm-gfx .man .mbody { stroke: #8b7bff; stroke-dasharray: 3 2; }
@keyframes fltb { 50% { fill: #5c1420; } }
.hm-gfx .blade { fill: #c7d4e4; } .hm-gfx .hub { fill: #070c18; }
.hm-gfx .imp { transform-box: fill-box; transform-origin: center; }
.hm-gfx .run .imp { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hm-gfx .mbody { fill: #1c2840; stroke: #7f90ad; stroke-width: 1.5; } .hm-gfx .mtxt { font: 700 11px var(--font); fill: #fff; }
.hm-gfx .shaft { stroke: #95a8c6; stroke-width: 2.5; }
.hm-gfx .blade2 { fill: #f5a524; }
.hm-gfx .pad { transform-box: fill-box; transform-origin: center; }
.hm-gfx .run .pad { animation: flip 2s linear infinite; }
@keyframes flip { 0% { transform: scaleX(1); } 25% { transform: scaleX(.05); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.05); } 100% { transform: scaleX(1); } }
.hm-gfx .vbody { fill: #1c2840; stroke: #9aa6b5; stroke-width: 1.5; } .hm-gfx .vact { fill: #1c2840; stroke: #9aa6b5; }
.hm-gfx .vlv.open .vbody, .hm-gfx .vlv.open .vact { fill: #1aa36a; stroke: #6ef0b8; }
.hm-gfx .vlv.closed .vbody { fill: #0d1527; stroke: #c7d4e4; }
.hm-gfx .vlv.travel .vbody, .hm-gfx .vlv.travel .vact { fill: #d9901a; stroke: #ffd98a; }
.hm-gfx .vlv.fault .vbody, .hm-gfx .vlv.fault .vact { fill: #d42a3a; stroke: #fff; animation: fltb 1s steps(2) infinite; }
.hm-gfx .vlv.unk .vbody { fill: #6b2a6b; stroke: #ff4dff; }
.hm-gfx .tankbg { fill: #050912; stroke: none; } .hm-gfx .tankfr { fill: none; stroke: #7f90ad; stroke-width: 1.6; }
.hm-gfx .tval { font: 700 13px var(--mono); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .6); stroke-width: 3px; }
.hm-gfx .wave { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.hm-gfx .river { fill: #1f5d78; } .hm-gfx .rwave { fill: none; stroke: rgba(210, 240, 255, .45); stroke-width: 1.4; animation: rwave 3s linear infinite; }
@keyframes rwave { to { transform: translateX(-48px); } }
.hm-gfx .scrfr { fill: #1a2c4a; stroke: #7f90ad; }
.hm-gfx .scrband { stroke: #9fb8d8; stroke-width: 18; stroke-dasharray: 3 7; } .hm-gfx .scrband.on { animation: scr 1s linear infinite; }
@keyframes scr { to { stroke-dashoffset: -20; } }
.hm-gfx .col { stroke: #4e5d77; stroke-width: 7; }
.hm-gfx .lamp { fill: #1c2840; stroke: #7f90ad; } .hm-gfx .lamp.ok { fill: #34d399; stroke: #b6ffd8; } .hm-gfx .lamp.bad { fill: #ff5d6c; stroke: #ffd0d5; animation: fltb 1s steps(2) infinite; } .hm-gfx .lamp.off { fill: #1c2840; } .hm-gfx .lamp.unk { fill: #ff4dff; }
.hm-gfx .barbg { fill: #050912; stroke: #22324f; }
.hm-gfx .spline { stroke: #fff; stroke-width: 1.5; }
.hm-gfx .hbtn rect { fill: #1a6ff0; stroke: #2fcff7; } .hm-gfx .hbtn text { font-size: 10.5px; font-weight: 700; fill: #fff; } .hm-gfx .hbtn { cursor: pointer; }
.hm-gfx .basinw { stroke: #7f90ad; stroke-width: 1.4; opacity: .9; }
.hm-gfx .flights rect { fill: #0a1222; stroke: #95a8c6; }
.hm-gfx .flights.on { animation: flights 4s linear infinite; }
@keyframes flights { to { transform: translateX(-56px); } }
.hm-gfx .launder { fill: #8e9aab; }
.hm-gfx .hopper { fill: #1c2840; stroke: #7f90ad; }
.hm-gfx .filtwall { fill: #050912; stroke: #7f90ad; stroke-width: 2.5; }
.hm-gfx .bub { fill: #f2f7ff; animation: bub 1.4s linear infinite; }
@keyframes bub { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-70px); opacity: 0; } }
.hm-gfx .hold { fill: #b3263a; animation: fltb 1s steps(2) infinite; } .hm-gfx .holdt { font-weight: 800; fill: #fff; font-size: 12px; }
.hm-gfx .stepbg { fill: #0f1a30; stroke: #1d2c4a; } .hm-gfx .stepn { fill: #16223a; stroke: #4e5d77; } .hm-gfx .stepnt { font-size: 11px; font-weight: 700; fill: #c7d4e4; }
.hm-gfx .bwstep.done .stepn { fill: #138a5a; stroke: #6ef0b8; } .hm-gfx .bwstep.done text { fill: #6b7896; }
.hm-gfx .bwstep.act .stepbg { fill: #0f2d5c; stroke: #1a9bfd; stroke-width: 2; } .hm-gfx .bwstep.act .stepn { fill: #1a6ff0; stroke: #2fcff7; }
.hm-gfx .bwstep.hold .stepbg { fill: #4a1420; stroke: #ff5d6c; }
.hm-gfx .stepbar { fill: #2fcff7; }
.hm-gfx .baffle { fill: #7f8b9c; }
.hm-gfx .inj { fill: #e8d43a; stroke: #fff; }
.hm-gfx .leg { stroke: #4e5d77; stroke-width: 3; }
.hm-gfx .thk { fill: #1c2840; stroke: #7f90ad; stroke-width: 2; } .hm-gfx .thkin { fill: #4d3c28; }
.hm-gfx .rake { fill: #3c5a8a; stroke: #9fb8d8; } .hm-gfx .rake2 { fill: #f5a524; }
.hm-gfx .gauge { fill: #050912; stroke: #7f90ad; stroke-width: 2; } .hm-gfx .gaugearc { fill: none; stroke: #34d399; stroke-width: 4; } .hm-gfx .needle { stroke: #2fcff7; stroke-width: 3; stroke-linecap: round; }
.hm-gfx .bus { stroke: #c7d4e4; stroke-width: 3; } .hm-gfx .atsline { stroke: #2fcff7; stroke-width: 4; }
.hm-gfx .kpi:hover rect.area { stroke: #1a9bfd; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1750px) { .brand-sub small { display: none; } .pill { max-width: 150px; } }
@media (max-width: 1500px) { #areaSel { min-width: 150px; } .top-acts .icon-btn span { display: none; } }
@media (max-width: 1150px) { .layout { grid-template-columns: 330px 1fr; } .right { position: fixed; right: 10px; top: 60px; bottom: 10px; z-index: 40; } .brand-sub { display: none; } }
@media (max-width: 760px) { body { overflow: auto; } .topbar { flex-wrap: wrap; } .layout { grid-template-columns: 1fr; grid-template-rows: 45vh 1fr; flex: none; } .center { order: -1; height: 45vh; } .left { min-height: 55vh; } .right { width: auto; left: 10px; } .search { max-width: none; order: 3; flex-basis: 100%; } }
.dwg-head { flex-wrap: nowrap; }
.dwg-head .sp { display: none; }
.dwg-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dwg-head .btn { padding: 4px 10px; }
