/* MyTriton: the v6 mock-up look (D-017). Copied from mockup/mytriton-ovation-v6.html, then extended below. */
:root {
  --bg0: #070E1A; --bg1: #0B1628; --bg2: #0F1E36; --bg3: #132644;
  --text: #EEF3F9; --muted: #B4C2D4; --dim: #8A9BB3;
  --line: rgba(148,170,204,.16); --line-2: rgba(148,170,204,.34);
  --amber: #F59E0B; --amber-ink: #F5B544; --amber-soft: rgba(245,158,11,.14); --on-amber: #170E00;
  --c-floor: #22D3EE; --c-optics: #3DDC84; --c-mes: #3B82F6; --c-ai: #F59E0B;
  --st-open: #60A5FA; --st-wait: #F5B544; --st-hold: #8DA0BA; --st-done: #3DDC84; --st-bad: #F87171;
  --glass: rgba(9,18,34,.78);
  --hero-img-op: .32;
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 3px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg0: #F2F5F9; --bg1: #FFFFFF; --bg2: #F6F8FB; --bg3: #E6ECF4;
  --text: #0B1628; --muted: #3F5F86; --dim: #5A6E88;
  --line: rgba(30,77,140,.12); --line-2: rgba(30,77,140,.24);
  --amber: #F59E0B; --amber-ink: #A35F00; --amber-soft: rgba(245,158,11,.16); --on-amber: #170E00;
  --c-floor: #0891B2; --c-optics: #15803D; --c-mes: #1E4D8C; --c-ai: #B45309;
  --st-open: #1D5FB8; --st-wait: #A35F00; --st-hold: #6B7F99; --st-done: #15803D; --st-bad: #B91C1C;
  --glass: rgba(255,255,255,.86);
  --hero-img-op: .14;
  color-scheme: light; } }
:root[data-theme="light"] {
  --bg0: #F2F5F9; --bg1: #FFFFFF; --bg2: #F6F8FB; --bg3: #E6ECF4;
  --text: #0B1628; --muted: #3F5F86; --dim: #5A6E88;
  --line: rgba(30,77,140,.12); --line-2: rgba(30,77,140,.24);
  --amber: #F59E0B; --amber-ink: #A35F00; --amber-soft: rgba(245,158,11,.16); --on-amber: #170E00;
  --c-floor: #0891B2; --c-optics: #15803D; --c-mes: #1E4D8C; --c-ai: #B45309;
  --st-open: #1D5FB8; --st-wait: #A35F00; --st-hold: #6B7F99; --st-done: #15803D; --st-bad: #B91C1C;
  --glass: rgba(255,255,255,.86);
  --hero-img-op: .14;
  color-scheme: light; }

* { box-sizing: border-box; }
body { background: var(--bg0); color: var(--text); font-family: var(--body); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.lab { font-family: var(--body); font-size: 12.5px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg1); }

.ribbon { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--amber-ink); background: var(--amber-soft); text-align: center; padding-block: 5px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: var(--bg1); border-bottom: 1px solid var(--line-2); }
.top-in { display: flex; align-items: center; gap: 18px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.brand b { font-family: var(--display); display: block; font-weight: 800; letter-spacing: .14em; font-size: 17px; line-height: 1; }
.brand span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.top-r { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.ghost { border: 1px solid var(--line-2); background: transparent; border-radius: var(--r); padding: 7px 11px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
.ghost:hover { color: var(--text); border-color: var(--muted); }
.me { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-2); background: transparent; border-radius: var(--r); padding: 4px 10px 4px 4px; }
.me i { font-style: normal; width: 26px; height: 26px; border-radius: 2px; background: var(--bg3); color: var(--text); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.me span { font-size: 13px; font-weight: 600; }

/* Site tabs */
.sites-bar { border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 11px 16px 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--amber); }
.tabs button em { font-style: normal; color: var(--dim); margin-left: 6px; }

/* Shell */
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-block: 28px 56px; }
nav.rail { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 112px); align-self: start; }
nav.rail a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-left: 3px solid transparent; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav.rail a:hover { color: var(--text); background: var(--bg2); }
nav.rail a.on { color: var(--text); border-left-color: var(--amber); background: var(--bg2); }
nav.rail .c { font-family: var(--mono); font-size: 11px; color: var(--dim); }
nav.rail a.on .c { color: var(--amber-ink); }
.call { margin-top: 22px; border-top: 1px solid var(--line-2); padding-top: 16px; display: grid; gap: 12px; }
.call .n { font-family: var(--mono); font-size: 19px; letter-spacing: -.02em; font-weight: 500; }
.call small { display: block; color: var(--muted); font-size: 13px; }
.call .copy { border: 0; background: none; padding: 0; color: var(--amber-ink); font-size: 13px; font-weight: 600; text-align: left; }

main { min-width: 0; }
.view { display: grid; gap: 28px; align-content: start; }
.view[hidden] { display: none !important; }
.vh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); padding-bottom: 18px; }
.vh h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.05; }
.vh p { color: var(--muted); margin-top: 8px; max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--r); padding: 12px 18px; font-weight: 700; font-size: 14.5px; border: 1px solid var(--line-2); background: transparent; color: var(--text); }
.btn:hover { border-color: var(--muted); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.btn.amber:hover { filter: brightness(1.06); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.arrow::after { content: "\2192"; font-weight: 600; }
.link { border: 0; background: none; padding: 0; color: var(--amber-ink); font-size: 13.5px; font-weight: 600; }

/* Hero */
.hero { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg1); padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("assets/d-floor.jpg") right center / cover no-repeat; opacity: var(--hero-img-op); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg1) 35%, transparent 100%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: var(--r); background: var(--glass); justify-self: start; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-done); box-shadow: 0 0 0 3px rgba(61,220,132,.18); flex: none; }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.grad { background: linear-gradient(90deg, var(--c-floor), var(--c-optics) 55%, var(--c-mes)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* Readings strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg1); border: 1px solid var(--line-2); border-radius: 4px; }
.strip button { border: 0; background: none; text-align: left; padding: 16px 18px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.strip button:first-child { border-left: 0; }
.strip button:hover .v { color: var(--amber-ink); }
.strip .v { font-family: var(--mono); font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.strip .v.warn { color: var(--amber-ink); }
.strip small { color: var(--muted); font-size: 13px; }

/* Announcements */
.ann { display: grid; gap: 0; background: var(--bg1); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 20px; }
.ann:empty { display: none; }
.ann-i:last-child { border-bottom: 0; }
.ann-i { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.ann-i .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.ann-i .k.new { color: var(--c-optics); } .ann-i .k.mnt { color: var(--amber-ink); }
.ann-i b { font-weight: 700; }
.ann-i span.d { color: var(--muted); }
.ann-i .x { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }

.two { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sec { display: grid; gap: 0; background: var(--bg1); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 20px 8px; }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 14px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; background: var(--bg2); border-bottom: 1px solid var(--line-2); border-radius: 4px 4px 0 0; flex-wrap: wrap; }
.sec-h h2 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 12px; color: var(--text); }
.sec-h h2::before { content: ""; width: 4px; height: 22px; background: var(--amber); border-radius: 1px; flex: none; }

/* Ticket rows */
.trow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.trow:hover { background: var(--bg2); }
.trow.urgent::before { content: ""; position: absolute; left: -20px; top: 10px; bottom: 10px; width: 3px; background: var(--amber); }
.trow .id { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.trow .id small { display: block; color: var(--dim); font-size: 11px; margin-top: 2px; }
.trow .s { font-weight: 600; font-size: 15px; line-height: 1.35; }
.trow .m { font-size: 13px; color: var(--muted); margin-top: 3px; }
.trow .m em { font-style: normal; color: var(--text); font-weight: 600; }
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; justify-self: end; align-self: start; padding-top: 2px; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.open { color: var(--st-open); } .st.wait { color: var(--st-wait); } .st.hold { color: var(--st-hold); } .st.closed { color: var(--st-done); }
.urg { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--amber-ink); margin-left: 8px; }
.empty { padding: 22px 2px; color: var(--muted); font-size: 14px; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fchip { border: 1px solid var(--line-2); background: transparent; border-radius: var(--r); padding: 5px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fchip.on { background: var(--text); color: var(--bg0); border-color: var(--text); }
.search { border: 1px solid var(--line-2); background: var(--bg1); border-radius: var(--r); padding: 7px 10px; font-family: var(--mono); font-size: 12px; width: 240px; max-width: 100%; }

/* Ticket detail */
.detail { display: grid; gap: 22px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding-block: 14px; }
.meta div > span:last-child { display: block; font-weight: 600; margin-top: 3px; }
.thread { display: grid; gap: 14px; }
.msg { border: 1px solid var(--line-2); border-radius: 4px; padding: 14px 16px; max-width: 760px; background: var(--bg1); }
.msg .src { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; }
.msg.tri { border-color: rgba(59,130,246,.45); background: linear-gradient(160deg, var(--bg2), var(--bg1)); }
.msg.tri .src { color: var(--amber-ink); }
.msg.me-m { justify-self: end; background: var(--bg2); }

/* Forms */
.form { display: grid; gap: 16px; max-width: 860px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .lab { font-family: var(--body); font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.field input, .field select, .field textarea { border: 1px solid var(--line-2); background: var(--bg1); border-radius: var(--r); padding: 10px 12px; width: 100%; font-size: 15px; }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { color: var(--dim); font-size: 12.5px; }
.r2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf input { background: var(--bg2); color: var(--muted); }
.tag-pf { color: var(--st-done); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; font-weight: 500; }
.tag-gap { color: var(--amber-ink); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; font-weight: 500; }
.gap input { border-color: var(--amber); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.note { font-size: 13.5px; color: var(--muted); }

/* RMA */
.rma { display: grid; gap: 14px; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.rma:last-child, .trow:last-child, .doc:last-child, .tg:last-child { border-bottom: 0; }
.rma-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rma-h b { font-size: 16px; }
.rma-h .m { font-size: 13px; color: var(--muted); margin-top: 3px; }
.line { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.line::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: var(--line-2); }
.stop { position: relative; display: grid; gap: 6px; padding-right: 6px; }
.stop i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg0); position: relative; z-index: 1; }
.stop.done i { background: var(--st-done); border-color: var(--st-done); }
.stop.now i { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.stop span { font-size: 12.5px; font-weight: 600; color: var(--dim); line-height: 1.3; overflow-wrap: anywhere; }
.stop.done span, .stop.now span { color: var(--text); }
.stop small { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.wsteps { display: flex; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.wsteps div { font-size: 14px; font-weight: 600; color: var(--dim); }
.wsteps div.on { color: var(--amber-ink); }
.wsteps div.done { color: var(--st-done); }
.items { display: grid; gap: 0; border-top: 1px solid var(--line); }
.item { display: flex; gap: 14px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item input { width: 17px; height: 17px; accent-color: var(--amber); }
.item .g { flex: 1; min-width: 0; }
.item .g small { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.item .lt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 18px; }
.kv dt { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.kv dd { margin: 0; }
.check { display: flex; gap: 12px; align-items: center; }
.check input { width: 17px; height: 17px; accent-color: var(--amber); }

/* Sites as the stack */
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.site { border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg1); display: grid; }
.site-h { padding: 18px 18px 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.site-h h3 { font-size: 22px; font-weight: 800; }
.site-h .m { font-size: 13px; color: var(--muted); }
.stack { display: grid; gap: 6px; padding: 0 18px 18px; }
.layer { border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 2px; padding: 10px 12px; background: var(--bg2); display: grid; gap: 6px; }
.layer.off { border-left-style: dashed; background: transparent; }
.layer .lk { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--c); text-transform: uppercase; }
.layer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.layer li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.layer li b { font-weight: 600; }
.layer li span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.layer .none { color: var(--dim); font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.l-floor { --c: var(--c-floor); } .l-optics { --c: var(--c-optics); } .l-mes { --c: var(--c-mes); } .l-ai { --c: var(--c-ai); }
.blk { border-top: 1px solid var(--line-2); padding: 14px 18px 18px; display: grid; gap: 10px; }
.blk-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.blk-h .v { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.blk-h .v.warn { color: var(--amber-ink); }
.cells { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.cells i { height: 12px; border-radius: 1px; background: var(--bg3); }
.cells i.f { background: var(--st-done); }
.cells.low i.f { background: var(--amber); }

/* Documents */
.doc { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.doc .ft { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 2px; padding: 4px 0; text-align: center; }
.doc b { font-weight: 600; display: block; }
.doc .m { font-size: 13px; color: var(--muted); margin-top: 3px; }
.only { font-size: 13px; font-weight: 600; color: var(--c-optics); }

/* Profile */
.tg { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.tg input { width: 17px; height: 17px; accent-color: var(--amber); }

footer.ftr { border-top: 1px solid var(--line-2); background: var(--bg1); }
.ftr-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: .04em; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 20; background: var(--text); color: var(--bg0); padding: 11px 16px; border-radius: var(--r); font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; max-width: calc(100% - 32px); box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }


/* v5: four-layer stack in the banner, replacing the photo */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 28px; }
.hero::before, .hero::after { content: none; }
.hero-txt { display: grid; gap: 20px; align-content: center; }
.hero-txt p.sub { color: var(--muted); max-width: 46ch; }
.hero-viz { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 8px; align-items: center; }
.iso { position: relative; height: 300px; perspective: 1400px; }
.iso-in { position: absolute; left: 50%; top: 62%; width: 200px; height: 200px; margin: -100px 0 0 -100px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-42deg); }
.pl { position: absolute; inset: 0; border: 1px solid var(--c); border-radius: 3px; transform: translateZ(var(--z));
  background-color: rgba(var(--cr), .10);
  background-image: repeating-linear-gradient(0deg, rgba(var(--cr), .22) 0 1px, transparent 1px 20px), repeating-linear-gradient(90deg, rgba(var(--cr), .22) 0 1px, transparent 1px 20px);
  box-shadow: 0 0 26px rgba(var(--cr), .28), inset 0 0 18px rgba(var(--cr), .18); transition: opacity .25s, box-shadow .25s; }
.pl.floor { background: url("assets/d-floor.jpg") center / cover; }
.pl.off { border-style: dashed; background-image: none; background-color: rgba(var(--cr), .03); box-shadow: none; opacity: .55; }
.pl .pt { position: absolute; left: 10px; top: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--c); }
.iso.hl .pl { opacity: .18; }
.iso.hl .pl.on-hl { opacity: 1; box-shadow: 0 0 40px rgba(var(--cr), .55), inset 0 0 22px rgba(var(--cr), .3); }
.l-floor { --cr: 34,211,238; } .l-optics { --cr: 61,220,132; } .l-mes { --cr: 59,130,246; } .l-ai { --cr: 245,158,11; }
.lay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lay-list li { border-left: 3px solid var(--c); padding: 6px 0 6px 12px; cursor: pointer; border-radius: 0 3px 3px 0; }
.lay-list li:hover, .lay-list li:focus-visible { background: var(--bg2); }
.lay-list li.off { border-left-style: dashed; }
.lay-list b { display: block; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .01em; color: var(--c); }
.lay-list span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.lay-list .ask { color: var(--amber-ink); font-weight: 600; }
@media (max-width: 1180px) { .hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .hero-viz { grid-template-columns: minmax(0, 1fr); }
  .iso { height: 230px; }
  .iso-in { transform: rotateX(58deg) rotateZ(-42deg) scale(.82); }
}
@media (prefers-reduced-motion: reduce) { .pl { transition: none; } }


/* v6: the website's own stack as a static image; banner always dark like the website hero */
.hero { --text: #EEF3F9; --muted: #B4C2D4; --dim: #8A9BB3; --line-2: rgba(148,170,204,.34); --glass: rgba(9,18,34,.78);
  --bg2: #0F1E36; --amber-ink: #F5B544; --c-floor: #22D3EE; --c-optics: #3DDC84; --c-mes: #3B82F6; --c-ai: #F59E0B;
  background: #08111F; color: var(--text); border-color: rgba(148,170,204,.34); }
.hero-viz { grid-template-columns: minmax(0, 1fr) 200px; }
@media (min-width: 1181px) { .hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); } }
.stack-img { display: block; width: 100%; max-width: 520px; height: auto; justify-self: center;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 52%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 52%, #000 62%, transparent 100%); }
@media (max-width: 560px) { .hero-viz { grid-template-columns: minmax(0, 1fr); } .stack-img { max-width: 340px; } }

@media (max-width: 1100px) { .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 920px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
  nav.rail { position: static; flex-direction: row; overflow-x: auto; gap: 0; border-bottom: 1px solid var(--line-2); }
  nav.rail a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  nav.rail a.on { border-bottom-color: var(--amber); background: none; }
  nav.rail .call { display: none; }
  .site-grid { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip button:nth-child(3) { border-left: 0; }
  .strip button:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .trow .st { justify-self: start; }
  .r2 { grid-template-columns: minmax(0, 1fr); }
  .ann-i { grid-template-columns: minmax(0, 1fr) auto; }
  .ann-i .k { grid-column: 1 / -1; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .me span, #theme-btn { display: none; }
  .cells { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .doc { grid-template-columns: 44px minmax(0, 1fr); }
  .doc .btn { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .stop.now i { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
}

/* ---- MyTriton live additions (phase 1) ---- */
[hidden] { display: none !important; }
.hero::before { background: none; }
.ribbon.pv { background: rgba(96,165,250,.16); color: var(--st-open); display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ribbon.pv button { border: 1px solid currentColor; background: none; color: inherit; font: inherit; letter-spacing: inherit; padding: 2px 8px; border-radius: 2px; }
.lay-list li { cursor: default; }
.lay-list li:hover { background: none; }
.blk-note { color: var(--muted); font-size: 13.5px; }
.loading { padding: 22px 2px; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.err-box { border: 1px solid var(--st-bad); color: var(--st-bad); border-radius: 4px; padding: 12px 14px; font-size: 14px; }
.att { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 8px; display: block; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.btn[disabled] { opacity: .55; cursor: progress; }
.grp { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--dim); padding: 14px 2px 4px; text-transform: uppercase; }
.rma-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rma-row:hover { background: var(--bg2); }
.rma-row:last-child { border-bottom: 0; }

/* sign-in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg0); }
.auth-card { width: 100%; max-width: 440px; background: var(--bg1); border: 1px solid var(--line-2); border-radius: 4px; padding: clamp(22px, 5vw, 34px); display: grid; gap: 18px; }
.auth-card h1 { font-size: 30px; font-weight: 800; }
.auth-card .code { font-family: var(--mono); font-size: 26px; letter-spacing: .4em; text-align: center; }
.auth-foot { font-size: 13px; color: var(--muted); }

/* admin */
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--dim); font-weight: 500; text-transform: uppercase; }
.adm-table td .link { margin-right: 10px; }
pre.raw { background: var(--bg2); border: 1px solid var(--line-2); border-radius: 4px; padding: 12px; font-family: var(--mono); font-size: 12px; overflow: auto; white-space: pre-wrap; }
@media (max-width: 560px) { .rma-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } .rma-row .st { justify-self: start; } }
