/* Gard Decoder console: a small desktop in MobilityGuard's portal colours */
:root {
  --desk: #0b1322;
  --win: #131c2e;
  --win-2: #172238;
  --win-3: #1e2b45;
  --input: #0f1828;
  --line: rgba(148, 163, 184, .16);
  --line-2: rgba(148, 163, 184, .30);
  --fg: #e6edf5;
  --mut: #94a3b8;
  --dim: #64748b;
  --acc: #2dd4bf;
  --acc-ink: #032622;
  --acc-soft: rgba(45, 212, 191, .14);
  --sel: rgba(45, 212, 191, .18);
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #60a5fa;
  --new: #a78bfa;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", ui-monospace, Menlo, monospace;
  --r: 8px;
  --task-h: 48px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--desk);
  color: var(--fg);
  font: 13px/1.45 var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
input, textarea, select, button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
a { color: var(--acc); }
code, .mono { font-family: var(--mono); font-size: 12px; }
.selectable, input, textarea, .sel-text { user-select: text; }

/* ---------------------------------------------------------------- wallpaper */
#wallpaper {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 700px at 78% 18%, rgba(45, 212, 191, .10), transparent 60%),
    radial-gradient(900px 600px at 10% 100%, rgba(96, 165, 250, .08), transparent 60%),
    var(--desk);
}
#wallpaper::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 85%);
}
#wallpaper::after {
  content: "Gard Decoder"; position: absolute; right: 28px; bottom: calc(var(--task-h) + 18px);
  font-size: 13px; letter-spacing: .02em; color: rgba(148, 163, 184, .35);
}
/* the MobilityGuard picture, shown whole above the taskbar, edges filled with its own navy */
#wallpaper.pic { background: #06111d; }
#wallpaper.pic::before {
  inset: 0 0 var(--task-h) 0; mask-image: none;
  background: linear-gradient(rgba(6, 12, 22, .18), rgba(6, 12, 22, .18)), url("/static/wallpaper.jpg") center / contain no-repeat;
}
#wallpaper.pic::after { content: none; }

/* ---------------------------------------------------------------- lock screen */
.lock { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; }
.lock-clock { position: absolute; left: 48px; bottom: 48px; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
#lock-time { font-size: 84px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
#lock-date { font-size: 20px; color: var(--mut); margin-top: 6px; }
.login {
  width: min(340px, 100%); padding: 28px 28px 24px; border-radius: 12px;
  background: rgba(19, 28, 46, .86); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); text-align: center;
}
.login h1 { font-size: 20px; font-weight: 600; margin: 12px 0 2px; }
.login-sub { color: var(--mut); margin: 0 0 18px; }
.login-mark, .start, .mark {
  background: no-repeat center / 60% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l7.5 3v6c0 4.6-3.2 8.4-7.5 10-4.3-1.6-7.5-5.4-7.5-10v-6z'/%3E%3Cpath d='M8 12.5h2.2l1.2-3 2 6 1.3-3H16' stroke-linecap='round'/%3E%3C/svg%3E");
}
.login-mark { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background-color: var(--acc-soft); border: 1px solid rgba(45, 212, 191, .35); }
.login .field { text-align: left; }
.login-err { min-height: 18px; color: #fca5a5; margin: 6px 0 10px; font-size: 12px; }
.lock[data-busy] .btn { opacity: .6; pointer-events: none; }

/* ---------------------------------------------------------------- form bits */
.field { display: block; margin: 0 0 10px; }
.field > span { display: block; font-size: 12px; color: var(--mut); margin-bottom: 4px; }
.inp, .field input, .field select, .field textarea, input.inp, select.inp, textarea.inp {
  width: 100%; height: 32px; padding: 0 10px; border-radius: 6px;
  background: var(--input); border: 1px solid var(--line-2); border-bottom-color: rgba(148, 163, 184, .5);
  outline: none;
}
.field textarea, textarea.inp { height: auto; min-height: 90px; padding: 8px 10px; resize: vertical; font-family: var(--mono); font-size: 12px; }
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc); border-bottom-width: 2px; }
select.inp, .field select { padding-right: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--acc); margin: 0; }
.radio-row { display: flex; flex-direction: column; gap: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  background: var(--win-3); border: 1px solid var(--line-2); color: var(--fg);
}
.btn:hover { background: #24334f; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { background: var(--acc); color: var(--acc-ink); border-color: transparent; font-weight: 600; }
.btn.primary:hover { background: #5eead4; }
.btn.danger { color: #fecaca; border-color: rgba(239, 68, 68, .45); }
.btn.danger:hover { background: rgba(239, 68, 68, .16); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(148, 163, 184, .10); }
.btn.wide { width: 100%; height: 36px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- desktop */
.desktop { position: fixed; inset: 0; z-index: 2; }
.windows { position: absolute; inset: 0 0 var(--task-h) 0; }
.icons {
  position: absolute; inset: 0 0 var(--task-h) 0; z-index: 1; pointer-events: none;
}
.icons > * { position: absolute; pointer-events: auto; }
.dicon.dragging, .gadget.dragging { opacity: .85; z-index: 3; cursor: grabbing; }
.dicon {
  width: 86px; padding: 8px 4px 6px; border-radius: 6px; border: 1px solid transparent;
  background: none; color: var(--fg); cursor: default; text-align: center; font-size: 12px; line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.dicon .gl { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 10px; }
.dicon .gl svg { width: 26px; height: 26px; }
.dicon:hover { background: rgba(148, 163, 184, .10); }
.dicon.sel, .dicon:focus-visible { background: rgba(45, 212, 191, .16); border-color: rgba(45, 212, 191, .4); outline: none; }

/* app glyph colours */
.g-trackers { background: rgba(45, 212, 191, .16); color: #5eead4; }
.g-log { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.g-commands { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.g-inspector { background: rgba(244, 114, 182, .16); color: #f9a8d4; }
.g-tb { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
.g-settings { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
.g-system { background: rgba(34, 197, 94, .16); color: #86efac; }
.g-help { background: rgba(56, 189, 248, .16); color: #7dd3fc; }
.g-tracker { background: rgba(45, 212, 191, .16); color: #5eead4; }

/* ---------------------------------------------------------------- windows */
.win {
  position: absolute; display: flex; flex-direction: column; min-width: 320px; min-height: 180px;
  background: var(--win); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.win.active { border-color: rgba(45, 212, 191, .45); box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(45, 212, 191, .12); }
.win.max { border-radius: 0; border-width: 0; }
.win.opening { animation: winIn .14s ease-out; }
@keyframes winIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .win.opening { animation: none; } }
.titlebar {
  display: flex; align-items: center; height: 34px; flex: none; padding-left: 10px;
  background: var(--win-2); border-bottom: 1px solid var(--line); cursor: default; touch-action: none;
}
.win:not(.active) .titlebar { color: var(--mut); }
.titlebar .ticon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; margin-right: 8px; flex: none; }
.titlebar .ticon svg { width: 14px; height: 14px; }
.titlebar .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.caps { display: flex; height: 100%; }
.cap { width: 46px; height: 100%; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--mut); }
.cap:hover { background: rgba(148, 163, 184, .14); color: var(--fg); }
.cap.close:hover { background: #c42b1c; color: #fff; }
.cap svg { width: 10px; height: 10px; }
.wbody { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; user-select: none; }
.rz { position: absolute; z-index: 3; }
.rz.n { top: -3px; left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.rz.s { bottom: -3px; left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.rz.e { right: -3px; top: 8px; bottom: 8px; width: 6px; cursor: ew-resize; }
.rz.w { left: -3px; top: 8px; bottom: 8px; width: 6px; cursor: ew-resize; }
.rz.ne { right: -3px; top: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.rz.nw { left: -3px; top: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.rz.se { right: -3px; bottom: -3px; width: 14px; height: 14px; cursor: nwse-resize; }
.rz.sw { left: -3px; bottom: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.win.max .rz { display: none; }
.snap-ghost { position: absolute; inset: 6px 6px calc(var(--task-h) + 6px) 6px; border-radius: 10px; background: rgba(45, 212, 191, .10); border: 1px solid rgba(45, 212, 191, .45); z-index: 9998; pointer-events: none; }

/* command bar, status bar */
.cmdbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--win); flex: none; }
.cmdbar .grow { flex: 1; }
.cmdbar .sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.cmdbar .search { width: 200px; height: 30px; }
.statusbar { display: flex; gap: 16px; align-items: center; height: 26px; padding: 0 10px; font-size: 12px; color: var(--mut); border-top: 1px solid var(--line); background: var(--win-2); flex: none; overflow: hidden; white-space: nowrap; }
.statusbar .right { margin-left: auto; }
.pane { flex: 1; min-height: 0; overflow: auto; }
.pad { padding: 14px 16px; }
.split { flex: 1; min-height: 0; display: flex; }
.split > .left { flex: 1; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.split > .right { width: 360px; max-width: 50%; min-width: 240px; display: flex; flex-direction: column; background: var(--win-2); }

/* tabs */
.tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); background: var(--win-2); flex: none; overflow-x: auto; }
.tab { position: relative; height: 36px; padding: 0 12px; background: none; border: 0; color: var(--mut); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab.on { color: var(--fg); }
.tab.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--acc); }
.tab .n { margin-left: 6px; font-size: 11px; color: var(--mut); background: rgba(148, 163, 184, .14); border-radius: 8px; padding: 0 6px; }
.tabpage { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- tables */
.tbl { flex: 1; min-height: 0; overflow: auto; background: var(--win); }
.tbl table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.tbl th {
  position: sticky; top: 0; z-index: 1; height: 30px; padding: 0 10px; text-align: left; font-weight: 500; color: var(--mut);
  background: var(--win-2); border-bottom: 1px solid var(--line); white-space: nowrap; cursor: default;
}
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--fg); }
.tbl th .arr { opacity: .7; margin-left: 4px; }
.tbl td { height: 30px; padding: 0 10px; border-bottom: 1px solid rgba(148, 163, 184, .07); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.tbl td.wrap { white-space: normal; max-width: none; }
.tbl tr.row:hover td { background: rgba(148, 163, 184, .06); }
.tbl tr.row.sel td { background: var(--sel); }
.tbl tr.row.flash td { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: rgba(45, 212, 191, .28); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .tbl tr.row.flash td { animation: none; } }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .empty td { height: 90px; text-align: center; color: var(--mut); white-space: normal; }
.tbl .more td { text-align: center; }

/* status bits */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dim); vertical-align: middle; flex: none; }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; background: rgba(148, 163, 184, .14); color: var(--fg); white-space: nowrap; }
.pill.good { background: rgba(34, 197, 94, .16); color: #86efac; }
.pill.warn { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.pill.bad { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.pill.info { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.pill.acc { background: var(--acc-soft); color: #5eead4; }
.pill.new { background: rgba(167, 139, 250, .18); color: #c4b5fd; }
.muted { color: var(--mut); }
.dim { color: var(--dim); }
.good-t { color: #86efac; } .warn-t { color: #fcd34d; } .bad-t { color: #fca5a5; } .acc-t { color: #5eead4; }
.dir { font-family: var(--mono); font-weight: 700; }
.dir.in { color: #93c5fd; } .dir.out { color: #fcd34d; }

/* ---------------------------------------------------------------- property sheet */
.props { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 14px; }
.group { background: var(--win-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 8px; }
.group h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--mut); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.kv dt { color: var(--mut); padding: 3px 0; }
.kv dd { margin: 0; padding: 3px 0; text-align: right; font-variant-numeric: tabular-nums; user-select: text; overflow-wrap: anywhere; }
.big { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.head-strip { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.head-strip .who { min-width: 0; }
.head-strip .who b { font-size: 16px; font-weight: 600; display: block; }
.head-strip .grow { flex: 1; }

/* output switch panel */
.outbox { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lamp { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: var(--input); font-weight: 700; font-size: 11px; color: var(--mut); flex: none; }
.lamp.on { border-color: var(--good); color: #052e16; background: var(--good); box-shadow: 0 0 18px rgba(34, 197, 94, .45); }
.lamp.off { border-color: var(--line-2); }
.lamp.pending { border-color: var(--warn); border-style: dashed; color: #fcd34d; }

/* chips row of quick commands */
.qgroups { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.qrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qrow > .lbl { width: 92px; color: var(--mut); font-size: 12px; }
.cmdline { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cmdline input { flex: 1; font-family: var(--mono); }

/* ---------------------------------------------------------------- menus */
.menu {
  position: fixed; z-index: 10000; min-width: 210px; padding: 4px; border-radius: 8px;
  background: rgba(30, 42, 66, .97); border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 30px; padding: 0 10px; border: 0; border-radius: 5px; background: none; text-align: left; cursor: pointer; }
.menu button:hover:not(:disabled), .menu button:focus-visible { background: rgba(45, 212, 191, .16); outline: none; }
.menu button:disabled { opacity: .4; cursor: default; }
.menu button.danger { color: #fca5a5; }
.menu button svg { width: 16px; height: 16px; color: var(--mut); }
.menu .msep { height: 1px; margin: 4px 6px; background: var(--line-2); }
.menu .kbd { margin-left: auto; color: var(--dim); font-size: 11px; }

/* ---------------------------------------------------------------- taskbar */
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--task-h); z-index: 9000;
  display: flex; align-items: center; gap: 4px; padding: 0 6px;
  background: rgba(15, 23, 39, .9); border-top: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
.start { width: 42px; height: 40px; border: 0; border-radius: 6px; background-color: transparent; background-size: 26px; cursor: pointer; flex: none; }
.start:hover, .start.on { background-color: rgba(148, 163, 184, .14); }
.tasks { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.task {
  position: relative; display: flex; align-items: center; gap: 8px; height: 40px; max-width: 190px; padding: 0 10px; flex: none;
  border: 0; border-radius: 6px; background: none; cursor: pointer; color: var(--fg);
}
.task:hover { background: rgba(148, 163, 184, .12); }
.task.on { background: rgba(148, 163, 184, .16); }
.task::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 3px; margin-left: -3px; border-radius: 2px; background: var(--mut); }
.task.on::after { width: 16px; margin-left: -8px; background: var(--acc); }
.task .ticon { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; flex: none; }
.task .ticon svg { width: 14px; height: 14px; }
.task .tl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.tray { display: flex; align-items: center; gap: 2px; flex: none; }
.tray-item { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--fg); cursor: pointer; font-size: 12px; }
.tray-item:hover { background: rgba(148, 163, 184, .12); }
.tray-item .dot.on { box-shadow: none; }
.tray-clock { text-align: right; padding: 0 10px; font-size: 12px; line-height: 1.25; font-variant-numeric: tabular-nums; }
#clock-d { color: var(--mut); }

.startmenu {
  position: absolute; left: 8px; bottom: calc(var(--task-h) + 8px); z-index: 9500; width: 340px; max-width: calc(100vw - 16px);
  border-radius: 10px; background: rgba(24, 34, 54, .97); border: 1px solid var(--line-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; overflow: hidden;
}
.sm-head { padding: 16px 18px 6px; font-weight: 600; }
.sm-apps { padding: 6px 10px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sm-app { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left; }
.sm-app:hover, .sm-app:focus-visible { background: rgba(148, 163, 184, .12); outline: none; }
.sm-app .gl { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.sm-app .gl svg { width: 18px; height: 18px; }
.sm-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(15, 23, 39, .6); }
.sm-foot .who { flex: 1; color: var(--mut); font-size: 12px; }

/* ---------------------------------------------------------------- toasts */
.toasts { position: absolute; right: 12px; bottom: calc(var(--task-h) + 12px); z-index: 9600; display: flex; flex-direction: column; gap: 8px; width: 340px; max-width: calc(100vw - 24px); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(30, 42, 66, .97); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  animation: tin .18s ease-out;
}
@keyframes tin { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.toast .bar { width: 3px; border-radius: 2px; background: var(--acc); flex: none; }
.toast.warn .bar { background: var(--warn); } .toast.error .bar { background: var(--bad); } .toast.new .bar { background: var(--new); } .toast.good .bar { background: var(--good); }
.toast b { display: block; margin-bottom: 2px; }
.toast p { margin: 0; color: var(--mut); font-size: 12px; }

/* ---------------------------------------------------------------- dialogs */
.modal { position: absolute; inset: 0 0 var(--task-h) 0; z-index: 9700; display: grid; place-items: center; background: rgba(5, 10, 20, .45); padding: 16px; }
.dialog { width: min(440px, 100%); border-radius: 10px; background: var(--win); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; }
.dialog .dh { display: flex; align-items: center; height: 34px; padding: 0 0 0 14px; background: var(--win-2); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.dialog .dh span { flex: 1; }
.dialog .db { padding: 18px 18px 8px; user-select: text; }
.dialog .db p { margin: 0 0 12px; }
.dialog .df { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; }
.dialog .warnbox { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(245, 158, 11, .10); border: 1px solid rgba(245, 158, 11, .35); color: #fde68a; margin-bottom: 12px; }

/* ---------------------------------------------------------------- inspector */
.insp { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.insp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.insp-meta .k { color: var(--mut); margin-right: 4px; }
.insp-main { flex: 1; min-height: 0; display: flex; }
.hexwrap { flex: 1.15; min-width: 0; overflow: auto; padding: 10px 0 10px 12px; background: #0e1626; border-right: 1px solid var(--line); }
.hex { font: 12.5px/1.75 var(--mono); white-space: pre; user-select: text; }
.hex .row { display: flex; }
.hex .off { width: 46px; color: var(--dim); flex: none; }
.hex .bytes { display: flex; flex-wrap: nowrap; }
.hex .b { width: 2.6ch; text-align: center; border-radius: 3px; cursor: pointer; }
.hex .b:nth-child(8) { margin-right: 1ch; }
.hex .asc { margin-left: 14px; color: var(--dim); }
.hex .asc span.hl { color: var(--fg); background: rgba(45, 212, 191, .25); }
.hex .b.hl { background: rgba(255, 255, 255, .16); outline: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.c-hdr { color: #64748b; } .c-len { color: #94a3b8; } .c-codec { color: #f472b6; } .c-cnt { color: #a78bfa; }
.c-time { color: #60a5fa; } .c-prio { color: #38bdf8; } .c-gps { color: #34d399; } .c-ioev { color: #fbbf24; }
.c-ioid { color: #fb923c; } .c-ioval { color: #fde68a; } .c-crc { color: #f87171; } .c-text { color: #5eead4; }
.c-cmdtype { color: #c084fc; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--mut); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: currentColor; vertical-align: 1px; }
.treewrap { flex: 1; min-width: 280px; overflow: auto; padding: 6px 4px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 16px; }
.tree .node { display: flex; align-items: baseline; gap: 6px; padding: 2px 6px; border-radius: 4px; cursor: pointer; min-height: 22px; }
.tree .node:hover, .tree .node.hl { background: rgba(148, 163, 184, .10); }
.tree .node.sel { background: var(--sel); }
.tree .tw { width: 12px; flex: none; color: var(--mut); font-size: 10px; text-align: center; }
.tree .lab { white-space: nowrap; }
.tree .val { color: var(--mut); font-family: var(--mono); font-size: 11.5px; white-space: normal; overflow-wrap: anywhere; user-select: text; }
.tree .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; align-self: center; background: currentColor; }
.tree li.closed > ul { display: none; }
.tbjson { margin: 0; padding: 10px 14px; font: 12px/1.6 var(--mono); color: #cbd5e1; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.sectionhead { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 12px; color: var(--mut); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--win-2); }

/* ---------------------------------------------------------------- log */
.log { flex: 1; min-height: 0; overflow: auto; font-size: 12.5px; background: var(--win); }
.logrow { display: grid; grid-template-columns: 74px 22px 150px 1fr; gap: 8px; align-items: start; padding: 4px 12px; border-bottom: 1px solid rgba(148, 163, 184, .06); user-select: text; }
.logrow:hover { background: rgba(148, 163, 184, .05); }
.logrow .t { color: var(--dim); font-variant-numeric: tabular-nums; }
.logrow .who { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.logrow .who:hover { color: var(--acc); text-decoration: underline; }
.logrow .m { overflow-wrap: anywhere; }
.lv { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.lv-info { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.lv-good { background: rgba(34, 197, 94, .16); color: #86efac; }
.lv-warn { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.lv-error { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.lv-new { background: rgba(167, 139, 250, .2); color: #c4b5fd; }

/* ---------------------------------------------------------------- link diagram, charts */
.flow { display: flex; align-items: center; gap: 0; padding: 18px 16px 8px; flex-wrap: wrap; }
.flow .node2 { min-width: 140px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--win-2); }
.flow .node2 b { display: block; }
.flow .node2 small { color: var(--mut); }
.flow .wire { flex: 1; min-width: 40px; height: 2px; background: var(--line-2); position: relative; }
.flow .wire.live { background: linear-gradient(90deg, rgba(45, 212, 191, .2), var(--acc), rgba(45, 212, 191, .2)); }
.flow .wire.down { background: repeating-linear-gradient(90deg, var(--bad) 0 6px, transparent 6px 12px); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; padding: 0 14px; }
.bars i { flex: 1; min-width: 2px; background: rgba(45, 212, 191, .55); border-radius: 2px 2px 0 0; }
.bars i:hover { background: var(--acc); }
.axis { display: flex; justify-content: space-between; padding: 4px 14px 0; color: var(--dim); font-size: 11px; }

.fieldlist { flex: 1; min-height: 0; overflow: auto; }
.frow { display: grid; grid-template-columns: 26px minmax(160px, 1.2fr) minmax(150px, 1fr) minmax(120px, 1.2fr); gap: 8px; align-items: center; padding: 5px 14px; border-bottom: 1px solid rgba(148, 163, 184, .06); }
.frow:hover { background: rgba(148, 163, 184, .05); }
.frow .n { font-family: var(--mono); font-size: 12px; }
.frow .k { font-family: var(--mono); font-size: 12px; color: #c4b5fd; }
.frow .t { color: var(--mut); }
.frow.head { position: sticky; top: 0; background: var(--win-2); color: var(--mut); font-size: 12px; z-index: 1; }

.form { padding: 16px; max-width: 760px; }
.form section { margin-bottom: 22px; }
.form h2 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.form .hint { color: var(--mut); margin: 0 0 10px; font-size: 12.5px; max-width: 64ch; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.copyline { display: flex; gap: 6px; align-items: center; margin: 6px 0 12px; }
.copyline code { flex: 1; padding: 8px 10px; border-radius: 6px; background: var(--input); border: 1px solid var(--line-2); user-select: all; overflow-wrap: anywhere; }
.help { padding: 18px 20px; max-width: 72ch; user-select: text; }
.help h2 { font-size: 15px; margin: 18px 0 6px; }
.help h2:first-child { margin-top: 0; }
.help p, .help li { color: #cbd5e1; }
.help ol, .help ul { padding-left: 20px; }

.empty-state { padding: 40px 20px; text-align: center; color: var(--mut); }
.empty-state b { display: block; color: var(--fg); font-size: 14px; margin-bottom: 6px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 760px) {
  .win { border-radius: 0; border-width: 0; }
  .rz { display: none; }
  .icons { flex-direction: row; flex-wrap: wrap; right: 8px; bottom: auto; }
  .task .tl { display: none; }
  .tray-item span, #tray-online { display: none; }
  #tray-trk::before { content: attr(data-n); }
  .split { flex-direction: column; }
  .split > .left { border-right: 0; border-bottom: 1px solid var(--line); }
  .split > .right { width: auto; max-width: none; min-width: 0; max-height: 45%; }
  .insp-main { flex-direction: column; }
  .hexwrap { border-right: 0; border-bottom: 1px solid var(--line); max-height: 45%; }
  .lock-clock { left: 20px; bottom: 20px; }
  #lock-time { font-size: 56px; }
  .logrow { grid-template-columns: 60px 20px 1fr; }
  .logrow .who { display: none; }
  .form .row2 { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 26px 1fr 1fr; }
  .frow .t { display: none; }
}

/* ------------------------------------------------------------------ 1.1: telemetry, charts, maps, monitor */
.small { font-size: 12px; }
.g-map { background: rgba(251, 146, 60, .16); color: #fdba74; }
.seg { display: inline-flex; gap: 0; }
.seg .btn { border-radius: 0; margin-left: -1px; }
.seg .btn:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.seg .btn:last-child { border-radius: 0 6px 6px 0; }
.seg .btn.on { background: var(--acc-soft); border-color: rgba(45, 212, 191, .55); color: #99f6e4; }
.card { background: var(--win-2); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.card h3 { margin: 0; padding: 10px 12px 0; font-size: 12px; font-weight: 600; color: var(--mut); }

.head-strip .small { line-height: 1.35; }
.hstats { display: flex; gap: 18px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; line-height: 1.2; }
.hstat b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hstat span { font-size: 11px; color: var(--mut); }

.tele { overflow: hidden; }
.tele-scroll { flex: 1; min-height: 0; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tele-top { display: grid; grid-template-columns: 220px minmax(0, 1fr) 270px; gap: 10px; height: 250px; flex: none; }
.tele.narrow .tele-top { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 240px; height: auto; }
.tele.narrow .tele-map { grid-column: 1 / -1; grid-row: 1; }
.tele-gauge { display: grid; place-items: center; padding: 6px; }
.gauge { width: 100%; max-width: 200px; height: auto; }
.tele-map { position: relative; overflow: hidden; padding: 0; }
.map { width: 100%; height: 100%; background: #0d1626; }
.map-note { position: absolute; left: 10px; bottom: 8px; z-index: 500; font-size: 11px; color: var(--fg); background: rgba(11, 19, 34, .82); border-radius: 5px; padding: 2px 8px; pointer-events: none; }
.map-note:empty { display: none; }
.tele-side { padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.side-out { display: flex; gap: 12px; align-items: center; }
.side-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tele-side .kv { margin-top: 2px; }
.tele-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 9px 12px; background: var(--win-2); border: 1px solid var(--line); border-radius: var(--r); flex: none; }
.si { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.si i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.si.on i { background: var(--good); }
.si.warn i { background: var(--warn); }
.si.plain i { display: none; }
.si b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tele-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex: none; }
.tele-bar .search { width: 280px; height: 30px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 6px; }
.tile { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 8px; text-align: left; padding: 8px 10px 9px; background: var(--win-3); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; color: var(--fg); min-height: 62px; }
.tile:hover { border-color: rgba(45, 212, 191, .6); }
.tile:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.tile .tn { font-size: 12px; color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .tt { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.tile .tv { grid-column: 1 / -1; text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; }
.tile .tv small { font-size: 11px; font-weight: 400; color: var(--mut); }
.tile .tk { position: absolute; left: 10px; bottom: 9px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: #c4b5fd; background: rgba(167, 139, 250, .14); border-radius: 3px; padding: 0 4px; }
.tile.fwd { border-color: rgba(167, 139, 250, .38); }
.tile.b-on { background: rgba(34, 197, 94, .10); }
.tile.b-off { background: rgba(239, 68, 68, .09); }
.tile.stale { opacity: .55; background-image: repeating-linear-gradient(135deg, rgba(148, 163, 184, .06) 0 8px, transparent 8px 16px); }

.chart-host { position: relative; flex: 1; min-height: 180px; display: flex; }
.chart { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 6px 8px 4px; }
.chart canvas { flex: 1; width: 100%; min-height: 150px; display: block; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--mut); min-height: 4px; padding: 0 0 4px 44px; }
.chart-legend i, .chart-tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: rgba(11, 19, 34, .95); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 9px; font-size: 12px; white-space: nowrap; }
.wbody > .chart-host { padding: 6px 4px; }

.mon { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.mon .props { padding: 0; }
.mon .sectionhead { margin: 4px -12px 0; }
.mon-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mtile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--win-2); border: 1px solid var(--line); border-radius: var(--r); }
.mtile b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { height: 4px; border-radius: 2px; background: rgba(148, 163, 184, .16); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--acc); }
.mtile.warn .meter i { background: var(--warn); }
.mtile.bad .meter i { background: var(--bad); }
.mon-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 10px; }
.mon-charts .card { display: flex; flex-direction: column; height: 250px; }

.logpart { display: flex; flex-direction: column; height: 34%; min-height: 150px; flex: none; }
.msgpart, .msgbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.logpart > .sectionhead { border-top: 0; }
.sectionhead .grow { flex: 1; }
.sectionhead .btn { height: 26px; }
.colpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; max-height: 50vh; overflow: auto; padding: 4px 2px; }
.colpick .mono { font-size: 12px; }

.map.fleet { flex: 1; height: auto; min-height: 0; }
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #64748b; margin-right: 6px; vertical-align: -1px; }
.lg.on { background: var(--good); }
.lg.held { background: var(--warn); }

/* Leaflet in the console's colours: dark tiles, dark popups */
.leaflet-container { background: #0d1626; font: 12px/1.4 var(--font); }
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.6); }
.leaflet-control-zoom a, .leaflet-bar a { background: var(--win-2); color: var(--fg); border-color: var(--line); }
.leaflet-control-zoom a:hover { background: var(--win-3); }
.leaflet-control-attribution { background: rgba(11, 19, 34, .7) !important; color: var(--mut); }
.leaflet-control-attribution a { color: var(--mut); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--win-2); color: var(--fg); border: 1px solid var(--line-2); }
.leaflet-popup-content { margin: 10px 12px; }
.leaflet-popup-content .btn { margin-top: 8px; }
.leaflet-tooltip { background: var(--win-2); color: var(--fg); border: 1px solid var(--line-2); box-shadow: none; }
.leaflet-tooltip-top::before { border-top-color: var(--line-2); }
.pop { line-height: 1.5; }

/* ------------------------------------------------------------------ 1.2: alert dispatcher */
.g-dispatch { background: rgba(244, 63, 94, .16); color: #fda4af; }
.dialog .db p { white-space: pre-line; }
.split > .right.wide { width: 440px; }
.dbanner { padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--win-2); }
.dbanner b { font-size: 15px; font-weight: 600; }
.dbanner ul { margin: 6px 0 0; padding-left: 18px; color: var(--fg); }
.dbanner.ok { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
.dbanner.ok b { color: #86efac; }
.dbanner.warn { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .08); }
.dbanner.warn b { color: #fcd34d; }
.dbanner.bad { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .08); }
.dbanner.bad b { color: #fca5a5; }
.mtile.bad { border-color: rgba(239, 68, 68, .5); }
.mtile.warn { border-color: rgba(245, 158, 11, .45); }
.mtile b { overflow-wrap: anywhere; }
.pane.pad h4 { margin: 16px 0 6px; font-size: 12px; color: var(--mut); font-weight: 600; }
.pane.pad blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line-2); background: var(--win); border-radius: 0; }
.li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid rgba(148, 163, 184, .07); }
.li > span:first-child { color: var(--mut); font-variant-numeric: tabular-nums; flex: none; }
.dsc { display: flex; flex-direction: column; min-height: 0; }
.split > .right .dsc, .split > .right.dsc { flex: 1; }
.dsc-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--win-2); }
.dsc-people { display: flex; flex-direction: column; gap: 2px; font-size: 12px; text-align: right; }
.dsc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dsc-feed { flex: 1; min-height: 120px; overflow: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.fi { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--win-2); max-width: 92%; }
.fi.out { align-self: flex-end; }
.fi.in { align-self: flex-start; background: var(--win-3); }
.fi.in.new { border-color: rgba(167, 139, 250, .55); }
.fh { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.fh .grow { flex: 1; }
.ft { white-space: pre-wrap; margin-bottom: 4px; }
.dsc-send { border-top: 1px solid var(--line); padding: 10px 14px; background: var(--win-2); display: flex; flex-direction: column; gap: 8px; flex: none; }
.dsc-send textarea { min-height: 64px; resize: vertical; font-family: var(--font); }
.dsc-send p { margin: 0; }
.dsc-to { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.dsc-row { display: flex; gap: 8px; align-items: center; }
.dsc-row .grow { flex: 1; }
.row-btns { display: flex; gap: 8px; }
.wbody > .pane > .dsc, .tabpage > .pane > .dsc { height: 100%; }
.dsc-head .grow { flex: 1; }

/* ------------------------------------------------------------------ 1.2: status gadget */
.gadget { width: 220px; padding: 10px 12px; border-radius: 10px; background: rgba(19, 28, 46, .88); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px); cursor: pointer; touch-action: none; user-select: none; }
.gadget:empty { display: none; }
.gadget .gw { display: flex; align-items: center; gap: 9px; }
.gadget .gw i { width: 12px; height: 12px; border-radius: 50%; background: var(--dim); flex: none; }
.gadget .gw b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.gadget .gy { margin-top: 3px; font-size: 12px; color: var(--mut); }
.gadget .gs { display: flex; gap: 10px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.gadget.ok { border-color: rgba(34, 197, 94, .45); }
.gadget.ok .gw i { background: var(--good); box-shadow: 0 0 10px rgba(34, 197, 94, .7); }
.gadget.busy { border-color: rgba(245, 158, 11, .5); }
.gadget.busy .gw i { background: var(--warn); }
.gadget.busy .gw b { color: #fcd34d; }
.gadget.heavy, .gadget.bad { border-color: rgba(239, 68, 68, .6); }
.gadget.heavy .gw i, .gadget.bad .gw i { background: var(--bad); box-shadow: 0 0 10px rgba(239, 68, 68, .7); }
.gadget.heavy .gw b, .gadget.bad .gw b { color: #fca5a5; }
.dicon { touch-action: none; }
.act-bars { height: 300px; display: flex; flex-direction: column; }
.heat { padding: 10px 12px 12px; overflow-x: auto; }
.hrow { display: grid; grid-template-columns: 40px repeat(24, minmax(14px, 1fr)); gap: 3px; margin-bottom: 3px; min-width: 520px; }
.hrow span { font-size: 11px; color: var(--mut); }
.hhead span { text-align: left; }
.hd { align-self: center; }
.hc { height: 22px; border-radius: 3px; background: rgba(148, 163, 184, .07); position: relative; }
.hc::after, .hkey i { content: ""; position: absolute; inset: 0; border-radius: 3px; background: #2dd4bf; opacity: var(--a); }
.hkey { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.hkey i { position: relative; display: inline-block; width: 18px; height: 12px; background: none; }
.hkey i::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: #2dd4bf; opacity: var(--a); }
