@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 300; font-display: swap; src: url("/static/vendor/quicksand/quicksand-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/vendor/quicksand/quicksand-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/vendor/quicksand/quicksand-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/vendor/quicksand/quicksand-latin-700-normal.woff2") format("woff2"); }
/* Fleetmarshal: Deltrolux palette. Dark Green ground, Hunter Green actions, Fire Brick only for the dot and failures. No blue. */
:root {
  --bg: #f2f3f1; --panel: #fff; --panel-2: #f7f8f6; --text: #0f1611; --muted: #5d6660; --border: #e1e4e0; --border-strong: #c9cec9;
  --accent: #23592F; --accent-hover: #1b4725; --accent-soft: #e8f0ea; --accent-text: #fff;
  --ok: #2b7a3c; --ok-soft: #e4f2e7; --warn: #a8560b; --warn-soft: #fbf0e1; --bad: #B12024; --bad-soft: #fbeaea;
  --side: #162D1A; --side-2: #1d3a22; --side-text: #c3cbc5; --side-muted: #7f9284; --side-active: #23592F;
  --red: #B12024;
  --radius: 12px; --shadow: 0 1px 2px rgba(15, 22, 17, .05), 0 1px 3px rgba(15, 22, 17, .04);
  --shadow-lg: 0 12px 32px rgba(15, 22, 17, .10), 0 2px 6px rgba(15, 22, 17, .05);
  --focus: 0 0 0 3px rgba(35, 89, 47, .22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c120d; --panel: #131c15; --panel-2: #172219; --text: #e7ebe8; --muted: #9aa59d; --border: #243127; --border-strong: #33443a;
    --accent: #39934C; --accent-hover: #44a557; --accent-soft: #1a2e1f; --ok: #5cc272; --ok-soft: #16301d;
    --warn: #f0b44c; --warn-soft: #2e2412; --bad: #e86a6e; --bad-soft: #321617;
    --side: #0f1f12; --side-2: #15291a; --side-active: #1f4127;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
    --focus: 0 0 0 3px rgba(57, 147, 76, .35);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 500 14px/1.5 "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
code { font-size: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
::selection { background: #cfe3d4; }

/* ---------- layout ---------- */
#app { display: flex; min-height: 100%; }
#side { width: 236px; flex: none; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
#side .brand { font-weight: 700; font-size: 18px; color: #fff; padding: 20px 20px 18px; display: flex; align-items: center; gap: 11px; letter-spacing: .1px; }
#side .brand .mark { width: 26px; height: 28px; flex: none; }
#side .brand small { display: block; font-weight: 300; font-size: 10.5px; letter-spacing: 2.4px; color: var(--side-muted); margin-top: 1px; }
#side nav { padding: 0 12px; }
#side .navlabel { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--side-muted); padding: 18px 10px 6px; }
#side nav a { display: flex; gap: 11px; align-items: center; padding: 8px 10px; margin: 1px 0; color: var(--side-text); text-decoration: none; border-radius: 8px; position: relative; transition: background .12s, color .12s; }
#side nav a:hover { background: var(--side-2); color: #fff; }
#side nav a.active { background: var(--side-active); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
#side nav a .ico { width: 18px; height: 18px; flex: none; display: inline-flex; opacity: .85; }
#side nav a.active .ico { opacity: 1; }
#side .ico svg, .kpi .ico svg, .feat svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#side .foot { margin-top: auto; padding: 14px 16px 16px; font-size: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
#side .foot .pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
#side .foot .s-ok { color: #8fd49d; }
#side .foot button { background: none; border: 1px solid #3d5a42; color: var(--side-text); border-radius: 7px; padding: 4px 11px; cursor: pointer; font: inherit; }
#side .foot button:hover { border-color: #5f7f65; color: #fff; }
#main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; flex-wrap: wrap; position: sticky; top: 0; z-index: 500;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); min-height: 64px; }
.topbar h1 { font-size: 21px; margin: 0; letter-spacing: -.1px; }
.topbar .spacer { flex: 1; }
#topActions { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page { padding: 22px 28px 40px; max-width: 1440px; }
#menuBtn { display: none; }
@media (max-width: 860px) {
  #side { position: fixed; left: -260px; z-index: 1000; transition: left .2s; box-shadow: var(--shadow-lg); }
  #side.open { left: 0; }
  #menuBtn { display: inline-block; }
  .topbar, .page { padding-left: 16px; padding-right: 16px; }
}

/* ---------- components ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h2 { font-size: 15px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; letter-spacing: .1px; }
.card h2 .right { margin-left: auto; font-weight: 500; }
.card > p:first-child { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.grid2 > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }

/* KPI tiles on the overview, coloured by position: Devices, Online, Offline, Low battery, Updating */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 15px 64px; cursor: pointer; position: relative; box-shadow: var(--shadow); transition: border-color .12s, transform .12s, box-shadow .12s; min-height: 86px; }
.kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.kpi .v { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.kpi .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.kpi::before { content: ""; position: absolute; left: 16px; top: 18px; width: 36px; height: 36px; border-radius: 10px; background: var(--kc-soft, var(--accent-soft)); }
.kpi::after { content: ""; position: absolute; left: 24px; top: 26px; width: 20px; height: 20px; background: var(--kc, var(--accent)); -webkit-mask: var(--ki) center / contain no-repeat; mask: var(--ki) center / contain no-repeat; }
.kpi:nth-child(1) { --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E"); }
.kpi:nth-child(2) { --kc: var(--ok); --kc-soft: var(--ok-soft); --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E"); }
.kpi:nth-child(3) { --kc: var(--muted); --kc-soft: var(--panel-2); --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8.8a15 15 0 0 1 4.2-2.6M10 5.1A15 15 0 0 1 22 8.8M5 12.5a10 10 0 0 1 3.4-2M15.6 10.6A10 10 0 0 1 19 12.5M8.5 16.1a5 5 0 0 1 7 0M12 20h.01M3 3l18 18'/%3E%3C/svg%3E"); }
.kpi:nth-child(4) { --kc: var(--warn); --kc-soft: var(--warn-soft); --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='17' height='10' rx='2.5'/%3E%3Cpath d='M22 11v2M6 11v2'/%3E%3C/svg%3E"); }
.kpi:nth-child(5) { --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E"); }
#kpiLic { --ki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4.5'/%3E%3Cpath d='M11.2 11.8L20 3M16 7l3 3M14 9l2 2'/%3E%3C/svg%3E"); animation-delay: .25s; }
.kpi.plain { padding-left: 18px; } .kpi.plain::before, .kpi.plain::after { display: none; }

/* tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; background: var(--panel-2); border-bottom-color: var(--border); }
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--text); }
tr.click { cursor: pointer; }
tr.click td { transition: background .1s; }
tr.click:hover td { background: var(--panel-2); }
tr.sel td, tr.sel:hover td { background: var(--accent-soft); }
td b { font-weight: 700; }
.scroll { overflow-x: auto; }

/* forms */
label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
label.inline { display: inline-flex; align-items: center; gap: 7px; color: var(--text); margin: 0 12px 0 0; font-weight: 500; }
input, select, textarea { padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-weight: 500; transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: #9aa29c; }
input:hover, select:hover, textarea:hover { border-color: #aeb5af; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
select { padding-right: 30px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6660' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 14px; }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea { display: block; width: 100%; max-width: 400px; margin-top: 5px; color: var(--text); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 0; vertical-align: middle; accent-color: var(--accent); box-shadow: none; }
input[type=file] { border-style: dashed; background: var(--panel-2); cursor: pointer; }

/* buttons */
.btn { background: var(--accent); color: var(--accent-text); border: 1px solid transparent; border-radius: 8px; padding: 8px 15px; cursor: pointer; font: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; transition: background .12s, border-color .12s, box-shadow .12s; text-decoration: none; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.secondary { background: var(--panel); color: var(--text); border-color: var(--border-strong); font-weight: 600; }
.btn.secondary:hover { background: var(--panel-2); border-color: #aeb5af; }
.btn.small { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn.danger { background: var(--panel); color: var(--bad); border-color: var(--border-strong); font-weight: 600; }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn:disabled, .btn:disabled:hover { opacity: .45; cursor: default; background: var(--panel); }
.btn:not(.secondary):not(.danger):disabled { background: var(--accent); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { min-width: 220px; flex: 1; max-width: 380px; padding-left: 34px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa29c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center / 16px; }
/* device page: keep the destructive actions apart, on the right */
.toolbar > [data-act="wipe"] { margin-left: auto; }
.bulk { display: none; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: var(--accent-soft); border: 1px solid #cfe0d3; border-radius: 10px; margin-bottom: 14px; }
.bulk.show { display: flex; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nw { white-space: nowrap; }

/* status */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--border); white-space: nowrap; color: var(--text); line-height: 1.6; }
a.pill:hover { text-decoration: none; border-color: var(--border-strong); }
.pill.s-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.pill.s-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill.s-bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.pill.s-off { background: var(--panel-2); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.pill.s-ok .dot { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.s-ok { color: var(--ok); } .s-warn { color: var(--warn); } .s-bad { color: var(--bad); } .s-off { color: var(--muted); }
.bar { height: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width .4s; border-radius: 99px; }
.bar.ok > i { background: var(--ok); } .bar.bad > i { background: var(--bad); }
.bar.indet > i { width: 35% !important; animation: indet 1.2s infinite ease-in-out; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 0 12px; margin: 0; }
.kv dt, .kv dd { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.kv dd .muted, .kv dd .small { font-weight: 500; }
#toast { position: fixed; bottom: 20px; right: 20px; background: #10201a; color: #fff; padding: 11px 16px; border-radius: 10px; display: none; max-width: calc(100% - 40px); z-index: 2000; box-shadow: var(--shadow-lg); border-left: 3px solid #39934C; font-weight: 600; }

/* ---------- sign in ---------- */
#login:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.loginbrand { background: var(--side); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate; }
.loginbrand::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask: linear-gradient(160deg, #000 0%, transparent 65%); mask: linear-gradient(160deg, #000 0%, transparent 65%); }
.loginbrand .watermark { position: absolute; right: -90px; bottom: -70px; width: 460px; height: 506px; z-index: -1; color: rgba(255, 255, 255, .04); }
.loginbrand .watermark path { stroke-width: 6; }
.loginbrand .watermark circle { fill: rgba(255, 255, 255, .04); }
.loginbrand .lockup { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 700; }
.loginbrand .lockup .mark { width: 36px; height: 40px; }
.loginbrand .hero { font-size: 50px; font-weight: 700; line-height: 1.06; max-width: 520px; margin-top: auto; letter-spacing: -.8px; }
.loginbrand .hero em { font-style: normal; color: #9fd0aa; }
.loginbrand .sub { font-size: 17px; color: #c3cbc5; max-width: 480px; margin-top: 18px; line-height: 1.55; }
.loginbrand .feats { display: grid; gap: 14px; margin-top: 34px; max-width: 460px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat i { width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); display: inline-flex; padding: 9px; color: #b9dcc0; }
.feat b { display: block; font-size: 14.5px; }
.feat span { color: #a9b5ac; font-size: 13px; }
.loginbrand .by { font-weight: 300; letter-spacing: 3px; color: #a9b5ac; font-size: 13px; margin-top: auto; padding-top: 40px; }
.loginpane { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: var(--panel); }
.loginpane .card { width: 100%; max-width: 400px; padding: 0; border: 0; box-shadow: none; background: none; margin: 0; }
.loginpane .card .mark-sm { width: 44px; height: 48px; color: var(--side); margin-bottom: 22px; }
.loginpane .card h2 { font-size: 28px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.3px; }
.loginpane #loginMsg { margin: 0 0 26px; font-size: 14.5px; }
.loginpane input { width: 100%; max-width: none !important; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.loginpane .btn { width: 100%; justify-content: center; padding: 12px 22px; border-radius: 10px; font-size: 15px; margin-top: 4px; }
.loginpane #keyToggle { display: block; margin: 18px 0 0 !important; text-align: center; font-size: 13px; }
.loginpane .legal { margin-top: 40px; font-size: 12px; color: var(--muted); text-align: center; }
@media (prefers-color-scheme: dark) { .loginpane .card .mark-sm { color: #e7ebe8; } }
@media (max-width: 860px) {
  #login:not([hidden]) { grid-template-columns: 1fr; }
  .loginbrand { padding: 26px 20px 28px; }
  .loginbrand .hero { font-size: 30px; margin-top: 26px; }
  .loginbrand .sub { font-size: 15px; }
  .loginbrand .feats, .loginbrand .by, .loginbrand .watermark { display: none; }
  .loginpane { justify-content: flex-start; padding-top: 32px; }
  .loginpane .card .mark-sm { display: none; }
}

/* ---------- views ---------- */
#map { height: calc(100vh - 160px); min-height: 400px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.minimap { height: 240px; border-radius: 10px; border: 1px solid var(--border); }
.leaflet-container { font-family: inherit; }
.rollout { border-top: 1px solid var(--border); padding: 14px 0; }
.rollout:first-child { border-top: 0; padding-top: 0; }
.rollout summary { cursor: pointer; list-style: none; }
.stage { margin-top: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); }
.stage.pilot { background: var(--accent-soft); border-color: #cfe0d3; }
.stage.paused { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.stage.paused .small { color: var(--text); }
.appcard .head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.appcard .head b { font-size: 16px; }
.assign { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--border); }
.assign:last-child { border-bottom: 0; }
.assign .g { min-width: 120px; font-weight: 600; color: var(--muted); font-size: 13px; }
.fleet h2 { font-size: 17px; }
.phone { width: 220px; height: 400px; border-radius: 24px; border: 7px solid #0f1611; overflow: hidden; background-size: cover; background-position: center; padding: 10px; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.phone .st { font-size: 10px; text-align: right; opacity: .85; }
.phone .hd { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.phone .hd img { max-height: 28px; max-width: 70px; }
.phone .pgrid { display: grid; gap: 8px; margin-top: 8px; }
.phone .tile { text-align: center; font-size: 10px; }
.phone .ft { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 8px; letter-spacing: .08em; opacity: .8; }
.phone .tile b { display: block; margin: 0 auto 4px; border-radius: 10px; background: rgba(255,255,255,.85); }
.imgrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.imgrow img { max-height: 40px; max-width: 100px; border-radius: 6px; }
#qrImg img { width: 100%; max-width: 380px; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--border); }
.empty { padding: 34px 24px; text-align: center; color: var(--muted); }
.empty::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 12px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323592F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.2 7.8-8 9-4.8-1.2-8-4.5-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") no-repeat center / 20px; }
td.empty::before { display: none; }
.tabs { display: inline-flex; gap: 4px; padding: 3px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.tabs .btn { border: 0; }
.tabs .btn.secondary { background: none; color: var(--muted); }
.tabs .btn:not(.secondary) { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.profiles { display: grid; grid-template-columns: 290px 1fr; gap: 18px; align-items: start; }
.profiles > .card { margin-bottom: 0; position: sticky; top: 82px; }
@media (max-width: 860px) { .profiles { grid-template-columns: 1fr; } .profiles > .card { position: static; } }
.plist { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; margin: 1px 0; }
.plist:hover { background: var(--panel-2); text-decoration: none; }
.plist.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }
.fleet .assign .g { min-width: 104px; }
.fleet .assign select { width: 160px; }
/* signal strength */
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: 4px; vertical-align: -1px; }
.sig i { width: 3px; border-radius: 1px; background: var(--border-strong); }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6.5px; } .sig i:nth-child(3) { height: 9px; } .sig i:nth-child(4) { height: 12px; }
.sig i.on { background: var(--ok); }
/* overview fleet health */
.fleetbars { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fleetbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--panel-2); }
.fleetbar:hover { text-decoration: none; border-color: var(--border-strong); background: var(--panel); }
.stackbar { grid-column: 1 / -1; display: flex; height: 7px; border-radius: 99px; overflow: hidden; background: var(--border); margin-top: 6px; }
.stackbar i.ok { background: var(--ok); } .stackbar i.warn { background: var(--warn); }
/* remote control */
.remote { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.rscreen { position: relative; background: #111; border-radius: 12px; display: flex; justify-content: center; padding: 10px; min-height: 420px; }
.rscreen canvas { max-height: calc(100vh - 170px); max-width: 100%; border-radius: 6px; cursor: pointer; touch-action: none; background: #000; }
.rmsg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #e5e7eb; font-size: 15px; pointer-events: none; }
.rmsg.bad { color: #fca5a5; }
.rside { display: flex; flex-direction: column; gap: 10px; }
.rkeys { display: flex; gap: 6px; flex-wrap: wrap; }
.rkeys .btn { flex: 1; }
.rtext { display: flex; gap: 6px; }
.rtext input { flex: 1; min-width: 0; }
@media (max-width: 800px) { .remote { grid-template-columns: 1fr; } }
/* accounts and roles */
#login label { display: block; margin-bottom: 10px; }
#login .err { color: var(--bad, #dc2626); min-height: 18px; margin-bottom: 8px; }
.whoami { display: block; color: var(--side-text); text-decoration: none; margin-bottom: 8px; line-height: 1.35; }
.whoami b { color: #fff; font-weight: 600; }
.whoami:hover b { text-decoration: underline; }
body[data-rank="0"] [data-min="support"], body[data-rank="0"] [data-min="manager"], body[data-rank="0"] [data-min="admin"],
body[data-rank="1"] [data-min="manager"], body[data-rank="1"] [data-min="admin"],
body[data-rank="2"] [data-min="admin"] { display: none !important; }
.rolepill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.rolepill.admin { background: #fee2e2; color: #991b1b; }
.rolepill.manager { background: #fef3c7; color: #92400e; }
.rolepill.support { background: #dcfce7; color: #166534; }
.banner { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.banner.bad { background: #fdf0f0; border-color: #e8a5a7; color: #6e1416; }
.qr svg { width: 200px; height: 200px; }
.tabs2 { display: flex; gap: 6px; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) {
  .banner { background: #2a2110; border-color: #78590f; color: #fde68a; }
  .banner.bad { background: #2e1213; border-color: #7a2326; color: #fecaca; }
  .rolepill { background: var(--accent-soft); color: #bfe3c7; }
  .rolepill.admin { background: #3b1414; color: #fecaca; }
  .rolepill.manager { background: #3a2a0c; color: #fde68a; }
  .rolepill.support { background: #0f2e1c; color: #bbf7d0; }
}

.mark { display: block; }
.mark path { fill: none; stroke: currentColor; stroke-width: 9; stroke-linejoin: round; }
.mark circle { fill: var(--red); }
h1, h2, h3, .kpi .v { font-weight: 700; }

.pchecks { display: flex; flex-direction: column; gap: 10px; }
label.pcheck { align-items: flex-start; }
label.pcheck input { margin-top: 3px; }
.wrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 110px minmax(0, 1.4fr) auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.wrow input:not([type=checkbox]), .wrow select { width: 100%; min-width: 0; }
@media (max-width: 860px) { .wrow { grid-template-columns: 1fr 1fr; } }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; font-size: 12.5px; color: var(--text); background: var(--panel); border: 1px solid var(--border-strong); border-radius: 7px; padding: 5px 11px; margin-right: 10px; cursor: pointer; }

/* =====================================================================
   Fleetmarshal "formation" layer: depth, glow and motion on top of the base styles.
   Brand: Dark Green ground, Hunter Green actions, Fire Brick only for the lead dot. No blue.
   ===================================================================== */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
:root { --glow: #9fd0aa; --deep: #0d1c11; --hero-1: #1a3a21; --hero-2: #0e2013; }
body { background: radial-gradient(1100px 520px at 100% -12%, rgba(57, 147, 76, .10), transparent 62%), radial-gradient(800px 400px at 0% 110%, rgba(35, 89, 47, .06), transparent 60%), var(--bg); background-attachment: fixed; }

/* sidebar: layered green with a glowing active rail */
#side { background: radial-gradient(130% 50% at 0% 0%, rgba(57, 147, 76, .28), transparent 62%), radial-gradient(120% 40% at 100% 100%, rgba(35, 89, 47, .35), transparent 60%), linear-gradient(180deg, #183520 0%, #102317 100%); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05); }
#side .brand .mark { filter: drop-shadow(0 0 10px rgba(159, 208, 170, .25)); }
#side .brand .mark circle, .lockup .mark circle { animation: beacon 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
#side nav a.active { background: linear-gradient(90deg, rgba(57, 147, 76, .42), rgba(57, 147, 76, .10)); box-shadow: inset 0 0 0 1px rgba(159, 208, 170, .16), 0 6px 18px rgba(0, 0, 0, .18); }
#side nav a.active::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 4px; border-radius: 0 4px 4px 0; background: var(--glow); box-shadow: 0 0 14px #39934C, 0 0 4px var(--glow); }
#side nav a:hover .ico { transform: translateX(2px); }
#side nav a .ico { transition: transform .15s; }

/* buttons with depth */
.btn:not(.secondary):not(.danger) { background: linear-gradient(180deg, #2b6b39 0%, #23592F 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 6px rgba(35, 89, 47, .25); }
.btn:not(.secondary):not(.danger):hover { background: linear-gradient(180deg, #2f7640 0%, #1f5029 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px rgba(35, 89, 47, .32); transform: translateY(-1px); }
.btn { transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:active { transform: translateY(0); }

/* cards: branded heading tick and soft lift */
.page .card h2::before { content: ""; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, #39934C, #23592F); flex: none; }
.card { transition: box-shadow .2s, border-color .2s; }
tr.click:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* KPI tiles: hover glow in the tile's own colour */
.kpi { overflow: hidden; }
.kpi:hover { border-color: color-mix(in srgb, var(--kc, var(--accent)) 45%, var(--border)); box-shadow: 0 10px 28px color-mix(in srgb, var(--kc, var(--accent)) 18%, transparent), var(--shadow); }
.kpi .v { font-variant-numeric: tabular-nums; }
.kpis .kpi { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.kpis .kpi:nth-child(2) { animation-delay: .05s; } .kpis .kpi:nth-child(3) { animation-delay: .1s; }
.kpis .kpi:nth-child(4) { animation-delay: .15s; } .kpis .kpi:nth-child(5) { animation-delay: .2s; }

/* live status: online dots breathe */
.pill.s-ok .dot { animation: ping 2.2s ease-out infinite; }

/* ring gauge (conic), animates in once */
.ring { --c: var(--accent); --size: 66px; --w: 7px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; position: relative; flex: none;
  background: conic-gradient(from -90deg, var(--c) calc(var(--p) * 1%), var(--track, var(--border)) 0); animation: ringin 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.ring::before { content: ""; position: absolute; inset: var(--w); border-radius: 50%; background: var(--ring-bg, var(--panel)); }
.ring > span { position: relative; text-align: center; line-height: 1.05; }
.ring b { font-size: 15px; font-weight: 700; } .ring b.sm { font-size: 11.5px; }
.ring small { display: block; font-size: 11px; opacity: .75; letter-spacing: .4px; }
.ring.ok { --c: var(--ok); } .ring.warn { --c: var(--warn); } .ring.bad { --c: var(--bad); } .ring.off { --c: var(--border); }

/* overview hero */
.ovhero { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 30px 34px; margin-bottom: 18px; color: #fff; display: flex; align-items: center; gap: 28px; min-height: 196px;
  background: radial-gradient(520px 300px at 78% 40%, rgba(57, 147, 76, .42), transparent 62%), radial-gradient(520px 280px at 0% 120%, rgba(35, 89, 47, .7), transparent 60%), linear-gradient(135deg, var(--hero-1), var(--hero-2) 70%);
  box-shadow: 0 18px 40px rgba(13, 28, 17, .22), inset 0 0 0 1px rgba(255, 255, 255, .06); animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.ovhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px); background-size: 20px 20px; -webkit-mask: linear-gradient(100deg, transparent 30%, #000 75%); mask: linear-gradient(100deg, transparent 30%, #000 75%); }
.hero-formation { position: absolute; z-index: -1; right: 32px; top: 50%; width: 540px; transform: translateY(-50%); }
.ovhero .fdot.lead { display: none; }  /* the health ring leads this formation */
.hero-text { flex: 1; min-width: 0; max-width: 640px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--glow); }
.ovhero h2 { font-size: 34px; line-height: 1.1; margin: 8px 0 8px; letter-spacing: -.6px; }
.ovhero p { margin: 0; font-size: 16px; color: #c9d3cc; }
.ovhero p b { color: #fff; }
.ovhero p a { color: var(--glow); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: #c9d3cc; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.chip b { color: #fff; font-size: 14px; }
.hero-ring { margin: 0 40px 0 auto; }
.hero-ring .ring { --size: 150px; --w: 12px; --ring-bg: #132b19; --track: rgba(255, 255, 255, .09); box-shadow: 0 0 40px rgba(57, 147, 76, .35); }
.hero-ring .ring b { font-size: 34px; letter-spacing: -.8px; } .hero-ring .ring small { font-size: 12px; }
.hero-ring .ring.ok { --c: #5cc272; } .hero-ring .ring.warn { --c: #f0b44c; } .hero-ring .ring.bad { --c: #e86a6e; }

/* the formation artwork (hero and sign-in) */
.fdot { animation: flyin .9s cubic-bezier(.2, .7, .2, 1) both, bob 5s ease-in-out infinite; animation-delay: var(--d, 0s), calc(var(--d, 0s) + .9s); }
.fdot circle { fill: rgba(159, 208, 170, .78); }
.fdot .trail { stroke: rgba(159, 208, 170, .22); stroke-width: 2; stroke-linecap: round; fill: none; }
.fdot.lead circle { fill: #B12024; filter: drop-shadow(0 0 9px rgba(177, 32, 36, .85)); }
.fdot.lead .trail { stroke: rgba(255, 255, 255, .28); stroke-width: 2.5; }

/* device page hero */
.dhero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 26px; border-radius: 20px; margin-bottom: 16px; color: #fff;
  background: radial-gradient(420px 220px at 100% 0%, rgba(57, 147, 76, .38), transparent 62%), linear-gradient(135deg, var(--hero-1), var(--hero-2) 75%); box-shadow: 0 14px 34px rgba(13, 28, 17, .2), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.dhero:empty { display: none; }
.dhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask: linear-gradient(90deg, transparent 40%, #000); mask: linear-gradient(90deg, transparent 40%, #000); }
.dphone { width: 74px; height: 120px; border-radius: 16px; border: 3px solid rgba(255, 255, 255, .82); display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2f7a43, #162D1A 70%); box-shadow: inset 0 0 0 4px #0b160d, 0 12px 26px rgba(0, 0, 0, .35); position: relative; }
.dphone::after { content: ""; position: absolute; top: 6px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: rgba(255, 255, 255, .5); }
.dphone .mark { width: 32px; height: 36px; color: #fff; }
.dphone.online { animation: halo 2.6s ease-out infinite; }
.dphone.offline { filter: grayscale(.8) brightness(.8); }
.dinfo h2 { font-size: 26px; margin: 4px 0 4px; letter-spacing: -.3px; }
.dinfo .muted { color: #a9b5ac; font-size: 13px; }
.dpills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dhero .pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: #e7ebe8; }
.dhero .pill.s-ok { color: #8fd49d; } .dhero .pill.s-warn { color: #f0c27a; } .dhero .pill.s-bad { color: #f19a9d; }
.gauges { display: flex; gap: 20px; }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: #a9b5ac; font-weight: 600; }
.gauge .ring { --ring-bg: #142b19; --track: rgba(255, 255, 255, .1); }
.gauge .ring.ok { --c: #5cc272; } .gauge .ring.warn { --c: #f0b44c; } .gauge .ring.bad { --c: #e86a6e; } .gauge .ring.off { --c: rgba(255, 255, 255, .15); }
@media (max-width: 980px) { .dhero { grid-template-columns: auto 1fr; } .gauges { grid-column: 1 / -1; justify-content: flex-start; } .hero-ring { display: none; } .hero-formation { right: -120px; opacity: .55; } }
@media (max-width: 560px) { .ovhero { padding: 22px; } .ovhero h2 { font-size: 26px; } .dphone { width: 56px; height: 90px; } }

/* page transitions */
#page.enter > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
#page.enter > *:nth-child(2) { animation-delay: .06s; } #page.enter > *:nth-child(3) { animation-delay: .12s; } #page.enter > *:nth-child(4) { animation-delay: .18s; }

/* sign-in: one dark scene, formation flying across, floating glass card */
#login:not([hidden]) { background: radial-gradient(900px 620px at 18% 8%, rgba(57, 147, 76, .34), transparent 60%), radial-gradient(760px 520px at 92% 105%, rgba(35, 89, 47, .55), transparent 62%), linear-gradient(140deg, #15301b 0%, #0b180f 100%); }
#login .loginbrand { background: transparent; }
#login .loginbrand .formation { display: block; width: 100%; max-width: 620px; flex: 1 1 auto; min-height: 0; max-height: 280px; margin: 24px 0 8px -20px; }
#login .loginbrand .hero { margin-top: 0; }
#login .loginpane { background: transparent; }
#login .loginpane .card { background: color-mix(in srgb, var(--panel) 97%, transparent); padding: 40px 38px 34px; border-radius: 24px; max-width: 440px; box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .14); animation: rise .7s cubic-bezier(.2, .7, .2, 1) both .15s; position: relative; }
#login .loginpane .card::after { content: ""; position: absolute; inset: -1px; border-radius: 25px; padding: 1.5px; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; background: linear-gradient(140deg, rgba(159, 208, 170, .7), transparent 40%, transparent 70%, rgba(57, 147, 76, .6)); }
#login .loginpane .legal { color: rgba(255, 255, 255, .5); }
#login .loginbrand .hero-line { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
#login .loginbrand .hero { text-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
#login .loginbrand .hero em { background: linear-gradient(90deg, #9fd0aa, #5cc272); -webkit-background-clip: text; background-clip: text; color: transparent; }
#login .feat { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
#login .feat:nth-child(2) { animation-delay: .1s; } #login .feat:nth-child(3) { animation-delay: .2s; }
@media (max-width: 860px) { #login .loginbrand .formation { max-height: 120px; margin: 12px 0 0; } #login .loginpane .card { padding: 28px 22px; } }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes flyin { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 7px -5px; } }
@keyframes ringin { from { --p: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes halo { 0% { box-shadow: inset 0 0 0 4px #0b160d, 0 12px 26px rgba(0, 0, 0, .35), 0 0 0 0 rgba(92, 194, 114, .45); } 80%, 100% { box-shadow: inset 0 0 0 4px #0b160d, 0 12px 26px rgba(0, 0, 0, .35), 0 0 0 14px rgba(92, 194, 114, 0); } }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (prefers-color-scheme: dark) {
  :root { --hero-1: #17341e; --hero-2: #0b180e; }
  .ovhero, .dhero { box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .07); }
  #login .loginpane .card { box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
}
@media (max-width: 560px) { .hero-formation { display: none; } }

/* remote control: the live screen sits in a phone mockup */
.rscreen { background: radial-gradient(420px 360px at 50% 45%, rgba(57, 147, 76, .22), transparent 70%), linear-gradient(160deg, #142a19, #0a140c); border-radius: 20px; padding: 28px 16px 32px; min-height: 520px; align-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.rscreen::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px); background-size: 20px 20px; -webkit-mask: radial-gradient(closest-side, transparent 45%, #000); mask: radial-gradient(closest-side, transparent 45%, #000); }
.rphone { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 12px; border-radius: 40px;
  background: linear-gradient(145deg, #2b3a2e 0%, #121a14 35%, #0b100c 65%, #1f2b22 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 6px #070a08, inset 0 2px 2px rgba(255, 255, 255, .12), 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 60px rgba(57, 147, 76, .18); }
.rtop { height: 34px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; }
.rspeaker { width: 54px; height: 5px; border-radius: 4px; background: #050806; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08); }
.rcam { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3d5a44, #050806 60%); box-shadow: 0 0 0 2px #0a0f0b; }
.rglass { position: relative; border-radius: 10px; overflow: hidden; background: #000; min-width: 250px; min-height: 480px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(255, 255, 255, .05); }
.rglass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .07) 0%, transparent 28%); }
.rglass canvas { display: block; max-height: calc(100vh - 290px); min-height: 0; max-width: 100%; border-radius: 0; }
.rglass .rmsg { z-index: 1; }
.rchin { height: 46px; display: flex; align-items: center; gap: 7px; color: rgba(209, 211, 212, .55); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.rchin .mark { width: 13px; height: 14px; color: rgba(209, 211, 212, .6); }
.rkey { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #0b100c, #33443a); }
.rkey.vol { left: -4px; top: 110px; height: 70px; border-radius: 2px 0 0 2px; }
.rkey.pwr { right: -4px; top: 120px; height: 46px; border-radius: 0 2px 2px 0; background: linear-gradient(270deg, #0b100c, #33443a); }
.rkey.scan { right: -4px; top: 190px; height: 64px; border-radius: 0 2px 2px 0; background: linear-gradient(270deg, #0f2414, #2f7a43); }  /* the C66 scan key */
@media (max-width: 560px) { .rphone { padding: 0 8px; border-radius: 30px; } .rglass { min-width: 200px; min-height: 380px; } .rscreen { padding: 18px 8px; } }
