/* Hominis promo kit: a faithful, scoped re-creation of the Hominis chrome.
   Values are the real tokens from hominis-tokens.css (glass skin default) and
   the widget geometry from components/custom/moz-hominis-*. Everything is
   scoped under .hx so a host page's own styles never collide. */

@font-face { font-family: "Nebula Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/nebula-sans-book.woff2") format("woff2"); }
@font-face { font-family: "Nebula Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/nebula-sans-medium.woff2") format("woff2"); }
@font-face { font-family: "Nebula Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/nebula-sans-semibold.woff2") format("woff2"); }
@font-face { font-family: "Nebula Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/nebula-sans-bold.woff2") format("woff2"); }

.hx {
  --hx-font: "Nebula Sans", system-ui, -apple-system, sans-serif;
  --hx-display-font: var(--hx-font);
  --hx-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hx-canvas: #e7e7ee;
  --hx-grid: rgba(27, 27, 33, 0.08);
  --hx-accent: #2b5fd9;
  --hx-accent-ink: #ffffff;
  --hx-fill-rgb: 252, 252, 255;
  --hx-pill-alpha: 0.62;
  --hx-pill: rgba(var(--hx-fill-rgb), var(--hx-pill-alpha));
  --hx-pill-hover: rgba(var(--hx-fill-rgb), 0.82);
  --hx-panel: rgba(var(--hx-fill-rgb), 0.72);
  --hx-card: rgba(var(--hx-fill-rgb), 0.94);
  --hx-menu: rgba(var(--hx-fill-rgb), 0.97);
  --hx-surface: #eceef2;
  --hx-raised: #ffffff;
  --hx-recessed: #e9eaf0;
  --hx-field: #f6f7fa;
  --hx-text: #1b1b21;
  --hx-text-2: #3c3c45;
  --hx-muted: #5d5d68;
  --hx-faint: #82828e;
  --hx-disabled: #a9a9b5;
  --hx-hairline: rgba(27, 27, 33, 0.08);
  --hx-line: rgba(27, 27, 33, 0.12);
  --hx-boundary: rgba(27, 27, 33, 0.2);
  --hx-scene-line: rgba(27, 27, 33, 0.16);
  --hx-ink-hover: rgba(27, 27, 33, 0.06);
  --hx-row-fill: rgba(27, 27, 33, 0.045);
  --hx-row-tool: rgba(27, 27, 33, 0.05);
  --hx-tint: color-mix(in srgb, var(--hx-accent) 16%, var(--hx-raised));
  --hx-ring-object: color-mix(in srgb, var(--hx-accent) 55%, var(--hx-muted));
  --hx-private: oklch(0.45 0.15 305);
  --hx-danger: #8f2d22;
  --hx-ring-skin: 0 0 transparent;
  --hx-shadow-chrome: 0 1px 4px rgba(15, 15, 20, 0.14), var(--hx-ring-skin);
  --hx-shadow-menu: 0 4px 12px rgba(15, 15, 20, 0.25), var(--hx-ring-skin);
  --hx-shadow-tile: 0 2px 6px rgba(15, 15, 20, 0.10), 0 10px 26px rgba(15, 15, 20, 0.12), var(--hx-ring-skin);
  --hx-shadow-tile-active: 0 3px 8px rgba(15, 15, 20, 0.12), 0 14px 34px rgba(15, 15, 20, 0.16), var(--hx-ring-skin);
  --hx-pill-r: 22px;
  --hx-tile-r: 12px;
  --hx-overlay-r: 12px;
  --hx-inner-r: 6px;
  --hx-tab-r: 8px;
  --hx-ease: cubic-bezier(0.2, 0, 0, 1);
  --hx-ease-emph: cubic-bezier(0.3, 0, 0, 1);
  --hx-ease-pop: cubic-bezier(0.2, 0.8, 0.3, 1);
  --hx-group: oklch(0.62 0.13 285);
  color-scheme: light;
  font-family: var(--hx-font);
  font-size: 13px;
  line-height: 1.3;
  color: var(--hx-text);
  -webkit-font-smoothing: antialiased;
}
.hx[data-theme="dark"] {
  --hx-canvas: #131317;
  --hx-grid: rgba(241, 241, 245, 0.10);
  --hx-accent: #85aaff;
  --hx-accent-ink: #1b1b21;
  --hx-fill-rgb: 38, 38, 44;
  --hx-surface: #131317;
  --hx-raised: #212127;
  --hx-recessed: #2b2b33;
  --hx-field: #26262d;
  --hx-text: #f1f1f5;
  --hx-text-2: #cbcbd5;
  --hx-muted: #9a9aa6;
  --hx-faint: #7b7b88;
  --hx-disabled: #5f5f6b;
  --hx-hairline: rgba(241, 241, 245, 0.07);
  --hx-line: rgba(241, 241, 245, 0.12);
  --hx-boundary: rgba(241, 241, 245, 0.2);
  --hx-scene-line: rgba(241, 241, 245, 0.14);
  --hx-ink-hover: rgba(241, 241, 245, 0.08);
  --hx-row-fill: rgba(241, 241, 245, 0.06);
  --hx-row-tool: rgba(241, 241, 245, 0.07);
  --hx-private: oklch(0.80 0.10 305);
  --hx-danger: #e8837a;
  --hx-shadow-chrome: 0 1px 4px rgba(15, 15, 20, 0.40), var(--hx-ring-skin);
  --hx-shadow-menu: 0 4px 12px rgba(0, 0, 0, 0.45), var(--hx-ring-skin);
  --hx-shadow-tile: 0 2px 6px rgba(15, 15, 20, 0.45), 0 10px 26px rgba(15, 15, 20, 0.40), var(--hx-ring-skin);
  --hx-shadow-tile-active: 0 3px 8px rgba(15, 15, 20, 0.5), 0 14px 34px rgba(15, 15, 20, 0.45), var(--hx-ring-skin);
  color-scheme: dark;
}
.hx[data-skin="precision"] { --hx-pill-r: 7px; --hx-tile-r: 6px; --hx-overlay-r: 8px; --hx-inner-r: 2px; --hx-tab-r: 7px; --hx-ring-skin: 0 0 0 1px var(--hx-scene-line); }
.hx[data-skin="humanist"] { --hx-pill-r: 22px; --hx-tile-r: 15px; --hx-overlay-r: 16px; --hx-inner-r: 10px; --hx-display-font: Georgia, "Times New Roman", serif; }
.hx[data-skin="humanist"]:not([data-theme="dark"]):not([data-private]) {
  --hx-canvas: oklch(0.915 0.020 85); --hx-grid: oklch(0.86 0.015 85);
  --hx-surface: #f4efe8; --hx-raised: #fffdf9; --hx-recessed: #ece5da; --hx-fill-rgb: 255, 252, 246;
  --hx-text: #28221b; --hx-text-2: #4a3f33; --hx-muted: #6f6355; --hx-faint: #8a7d6d; --hx-line: rgba(74, 52, 32, .13);
}
/* The private cast beats every skin and accent. */
.hx[data-private] {
  --hx-accent: oklch(0.64 0.17 305);
  --hx-canvas: oklch(0.155 0.028 310);
  --hx-surface: oklch(0.225 0.024 310);
  --hx-raised: oklch(0.225 0.024 310);
  --hx-recessed: oklch(0.27 0.03 310);
  --hx-fill-rgb: 44, 34, 54;
  --hx-text: oklch(0.93 0.008 310);
  --hx-muted: oklch(0.72 0.02 310);
  --hx-faint: oklch(0.6 0.02 310);
  --hx-grid: rgba(241, 230, 250, 0.09);
  --hx-private: oklch(0.80 0.10 305);
  --hx-ring-object: oklch(0.72 0.12 305);
  --hx-text-2: oklch(0.84 0.012 310);
  --hx-field: oklch(0.25 0.028 310);
  --hx-disabled: oklch(0.5 0.02 310);
  --hx-hairline: rgba(241, 230, 250, 0.07);
  --hx-line: rgba(241, 230, 250, 0.12);
  --hx-boundary: rgba(241, 230, 250, 0.2);
  --hx-scene-line: rgba(241, 230, 250, 0.14);
  --hx-ink-hover: rgba(241, 230, 250, 0.08);
  --hx-row-fill: rgba(241, 230, 250, 0.06);
  --hx-row-tool: rgba(241, 230, 250, 0.07);
  --hx-shadow-chrome: 0 1px 4px rgba(10, 5, 15, 0.45);
  --hx-shadow-menu: 0 4px 12px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx [hidden] { display: none !important; }
.hx svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx img.fav { width: 16px; height: 16px; border-radius: 4px; flex: none; display: block; }

/* The window: a fixed logical size scaled to fit its host on both axes. */
.hx-host { position: relative; width: 100%; overflow: hidden; }
.hx-host > .hx-window { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.hx-window {
  position: relative; overflow: hidden; border-radius: 14px; background: var(--hx-canvas);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 30px 80px -20px rgba(15, 15, 30, .35), 0 12px 30px -12px rgba(15, 15, 30, .25);
  user-select: none; -webkit-user-select: none;
}
.hx-window.no-frame { border-radius: 0; box-shadow: none; }

/* Canvas ground + world */
.hx-canvas { position: absolute; inset: 0; overflow: hidden; background: var(--hx-canvas); transition: background-color .4s var(--hx-ease); }
/* The grid follows the camera through three variables set by applyCamera
   (translation --gx/--gy, scale --gs); --gap is the spacing at scale 1. */
.hx-grid { position: absolute; inset: 0; pointer-events: none; --gap: 26px; --gx: 0px; --gy: 0px; --gs: 1;
  background-image: radial-gradient(circle, var(--hx-grid) calc(1px * var(--gs)), transparent calc(1.2px * var(--gs)));
  background-size: calc(var(--gap) * var(--gs)) calc(var(--gap) * var(--gs));
  background-position: calc(var(--gx) + var(--gap) * var(--gs) / 2) calc(var(--gy) + var(--gap) * var(--gs) / 2); }
.hx-canvas[data-pattern="lines"] .hx-grid { background-image: linear-gradient(0deg, color-mix(in srgb, var(--hx-grid) 55%, transparent) calc(1px * var(--gs)), transparent calc(1px * var(--gs))), linear-gradient(90deg, color-mix(in srgb, var(--hx-grid) 55%, transparent) calc(1px * var(--gs)), transparent calc(1px * var(--gs))); }
.hx-canvas[data-pattern="none"] .hx-grid { background: none; }
.hx-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.hx-world.is-moving { will-change: transform; }
.hx-threads { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.hx-threads line { stroke-width: 1.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Tile frame */
.hx-tile {
  position: absolute; border-radius: var(--hx-tile-r); background: var(--hx-raised); border: 1px solid transparent;
  box-shadow: var(--hx-shadow-tile); transform-origin: 0 0; display: flex; flex-direction: column;
}
.hx-tile.active { outline: 2px solid var(--hx-ring-object); outline-offset: 0; box-shadow: var(--hx-shadow-tile-active); }
.hx-tile.presented { border-radius: 0; box-shadow: none; outline: none; border-color: transparent; }
/* Through the tab-strip recording, engines that use the stand-in (WebKit,
   which paints the flying tiles at their laid-out size) give tiles one short
   shadow instead of two: the long one is their costliest part, and a few
   pixels across at the recording's scale. Not upstream. */
.hx-flight[data-standin] .hx-tile { box-shadow: 0 4px 12px rgba(15, 15, 20, 0.16), var(--hx-ring-skin); }
.hx-flight[data-standin][data-theme="dark"] .hx-tile { box-shadow: 0 4px 12px rgba(15, 15, 20, 0.55), var(--hx-ring-skin); }
/* While the stand-in (hx-kit.js) shows a camera move, the real groups and
   tiles are hidden: with nothing of its own left to paint, the world's layer
   costs nothing to make. The tiles it can't picture stay real, each on a
   layer. Not upstream. */
.hx-world[data-si] .hx-glayer, .hx-world[data-si] .hx-tile:not([data-si-real]) { visibility: hidden !important; }
.hx-world[data-si] .hx-tile[data-si-real], .hx[data-standin] .hx-tile[data-si-live] { will-change: transform; }
.hx-world[data-si] .hx-tile[data-si-real] { visibility: visible !important; }
/* The stand-in's pictures: plain images, each on a layer, which WebKit hands
   to the compositor without painting them. */
.hx-si { position: absolute; left: 0; top: 0; pointer-events: none; }
.hx-world:not([data-si]) .hx-si { display: none; }
.hx-si > img { position: absolute; display: block; max-width: none; will-change: transform; }
/* Page-colour bleed (hominis-tokens.css): the scene stamps data-page-bleed
   while focus presents. A light page keeps the chrome's edge with a ring; a
   dark page gives the pills the dark material so they never glow on it.
   Same specificity as upstream, so the humanist explicit light still wins. */
.hx[data-page-bleed="light"] { --hx-shadow-chrome: 0 1px 4px rgba(15, 15, 20, 0.14), 0 0 0 1px var(--hx-scene-line); }
.hx[data-page-bleed="dark"]:not([data-private]) {
  --hx-fill-rgb: 38, 38, 44; --hx-raised: #212127;
  --hx-text: #f1f1f5; --hx-text-2: #cbcbd5; --hx-muted: #9a9aa6; --hx-faint: #7b7b88; --hx-disabled: #5f5f6b;
  --hx-hairline: rgba(241, 241, 245, 0.07); --hx-line: rgba(241, 241, 245, 0.12); --hx-boundary: rgba(241, 241, 245, 0.2); --hx-scene-line: rgba(241, 241, 245, 0.14);
  --hx-row-fill: rgba(241, 241, 245, 0.06); --hx-row-tool: rgba(241, 241, 245, 0.07); --hx-ink-hover: rgba(241, 241, 245, 0.08);
  --hx-shadow-chrome: 0 1px 4px rgba(15, 15, 20, 0.4), var(--hx-ring-skin);
}
.hx-tile.presented .hx-th { display: none; }
.hx-tile.presented .hx-tb { margin: 0; }
.hx-tile.dimmed { opacity: .45; filter: saturate(.5); transition: opacity .2s var(--hx-ease), filter .2s var(--hx-ease); }
.hx-tile.lensed { outline: 2px solid var(--lens, var(--hx-accent)); outline-offset: 4px; }
.hx-th {
  height: 38px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 8px;
  border-bottom: 1px solid var(--hx-hairline); border-radius: calc(var(--hx-tile-r) - 1px) calc(var(--hx-tile-r) - 1px) 0 0; background: var(--hx-raised);
}
.hx-th .t { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--hx-text); }
.hx-th .favbtn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; flex: none; }
.hx-th .pbadge { font-size: 11px; border-radius: 4px; padding: 0 4px; color: var(--hx-private); background: color-mix(in srgb, var(--hx-private) 12%, transparent); border: 1px solid color-mix(in srgb, var(--hx-private) 40%, transparent); }
.hx-th .rib { opacity: 0; transition: opacity .15s var(--hx-ease); }
.hx-tile.active .hx-th .rib, .hx-tile:hover .hx-th .rib, .hx-th .rib.saved { opacity: 1; }
.hx-th .rib.saved { color: var(--hx-accent); }
.hx-tile.narrow .hx-th .nav-bf { display: none; }
.hx-tb { position: relative; flex: 1; margin: 0 4px 4px; background: var(--hx-raised); overflow: hidden; }
.hx-tb img.hx-thumb { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; background: #fff; }
.hx-tb iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.hx[data-theme="dark"] .hx-tb img.hx-thumb, .hx[data-theme="dark"] .hx-tb iframe { background: #16161a; }
.hx-tb.inert iframe, .hx-tb.inert .sk { pointer-events: none; }
.hx-tile .hx-tfav { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--hx-raised); opacity: 0; pointer-events: none; }
.hx-tile .hx-tfav img { width: 42%; height: auto; max-width: 180px; aspect-ratio: 1; border-radius: 18%; }

/* Quiet icon button (moz-button type=icon ghost size=small data-hx=quiet) */
.hx-ib { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: var(--hx-inner-r); color: var(--hx-text); flex: none; background: transparent; border: 0; padding: 0; font: inherit; }
.hx-ib:hover { background: var(--hx-ink-hover); }
.hx-ib.off { color: var(--hx-disabled); }
.hx-ib.pressed { background: var(--hx-tint); color: var(--hx-accent); box-shadow: inset 0 0 0 1px var(--hx-boundary); }

/* Window bar */
.hx-bar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 10px; z-index: 90; transition: opacity .15s var(--hx-ease); }
.hx-pillm { height: 40px; border-radius: var(--hx-pill-r); border: 1px solid transparent; background: var(--hx-pill); box-shadow: var(--hx-shadow-chrome); display: flex; align-items: center; }
.hx-lights { width: 76px; padding: 0 14px; gap: 8px; flex: none; }
.hx-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.hx-lights i:nth-child(2) { background: #febc2e; }
.hx-lights i:nth-child(3) { background: #28c840; }
.hx-ws { padding: 0 14px; gap: 8px; min-width: 56px; max-width: 280px; flex: none; font-family: var(--hx-display-font); font-size: 13px; white-space: nowrap; }
.hx-ws .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #7c7c87); flex: none; }
.hx-ws .chev { width: 12px; height: 12px; opacity: .75; }
.hx-ws .pvt { font-size: 12px; padding: 1px 8px; border-radius: 999px; color: var(--hx-private); border: 1px solid color-mix(in srgb, var(--hx-private) 40%, transparent); background: color-mix(in srgb, var(--hx-private) 12%, transparent); font-family: var(--hx-font); }
.hx-center { flex: 1 4 0%; display: flex; justify-content: center; align-items: center; min-width: 180px; gap: 6px; }
.hx-cmd { width: 520px; max-width: 100%; min-width: min(180px, 100%); flex: 0 1 auto; padding: 0 6px; gap: 4px; color: var(--hx-muted); }
.hx-cmd .favbtn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; flex: none; }
.hx-cmd .hint { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.hx-cmd .hint svg { width: 12px; height: 12px; }
.hx-cmd.focus { color: var(--hx-text); gap: 2px; padding: 0 6px 0 8px; }
.hx-cmd.focus .url { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; color: var(--hx-text); }
.hx-cmd.focus .url .host { color: var(--hx-text); }
.hx-cmd.focus .url .path { color: var(--hx-muted); }
.hx-cmd.focus .url .path:only-child { color: var(--hx-faint); }
.hx-cmd .typed { color: var(--hx-text); }
.hx-cmd .caret { display: inline-block; width: 1px; height: 15px; background: var(--hx-accent); vertical-align: -3px; animation: hx-blink 1s steps(1) infinite; }
@keyframes hx-blink { 50% { opacity: 0; } }
.hx-actions { padding: 0 6px; gap: 2px; flex: none; }

/* Focus tabs (moz-hominis-focus-tabs): fill / collapsed / scroll regimes */
.hx-flank { flex: 1 1 0%; min-width: 176px; display: flex; align-items: center; overflow: visible; }
.hx-flank.start { justify-content: flex-end; }
.hx-tabs { display: flex; align-items: center; gap: 0; width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 8px 8px 8px 0; margin: -8px -8px -8px 0; }
.hx-tabs::-webkit-scrollbar { display: none; }
.hx-flank.start .hx-tabs { justify-content: safe flex-end; }
.hx-slot { flex: 1 1 0; min-width: 0; padding-inline: 2px; display: flex; position: relative; }
.hx-tab { height: 28px; width: 100%; min-width: 56px; padding: 0 8px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: var(--hx-tab-r); background: var(--hx-pill); box-shadow: var(--hx-shadow-chrome); font-size: 13px; color: var(--hx-text); white-space: nowrap; overflow: hidden; }
.hx-tab .tt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hx-tab.sel { background: var(--hx-tint); }
.hx-tabs[data-regime="collapsed"] .hx-slot, .hx-tabs[data-regime="scroll"] .hx-slot { min-width: min-content; }
.hx-tabs[data-regime="scroll"] .hx-slot { flex: none; }
.hx-tabs[data-regime="collapsed"] .hx-slot.on, .hx-tabs[data-regime="scroll"] .hx-slot.on { flex: none; }
.hx-tabs[data-regime="collapsed"] .hx-tab, .hx-tabs[data-regime="scroll"] .hx-tab { min-width: 28px; padding: 0; border-radius: var(--hx-pill-r); }
.hx-tabs[data-regime="scroll"] .hx-tab { width: 28px; }
.hx-tabs[data-regime="collapsed"] .hx-tab .tt, .hx-tabs[data-regime="scroll"] .hx-tab .tt { display: none; }
.hx-tabs[data-regime="collapsed"] .hx-tab.sel, .hx-tabs[data-regime="scroll"] .hx-tab.sel { width: auto; min-width: 72px; max-width: 160px; padding: 0 8px; }
.hx-tabs[data-regime="collapsed"] .hx-tab.sel .tt, .hx-tabs[data-regime="scroll"] .hx-tab.sel .tt { display: block; }
.hx-tabs.hide-start { mask-image: linear-gradient(to right, transparent 0, #000 20px); }
.hx-tabs.hide-end { mask-image: linear-gradient(to left, transparent 8px, #000 28px); }
.hx-tabs.hide-start.hide-end { mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 28px), transparent calc(100% - 8px)); }
.hx .fw { position: relative; display: flex; flex: none; }
.hx .fw .mb { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--hx-accent); color: var(--hx-accent-ink); box-shadow: 0 0 0 1.5px var(--hx-raised); display: grid; place-items: center; }
.hx .fw .mb svg { width: 7px; height: 7px; }
.hx .fw .mb.muted { background: var(--hx-muted); }
.hx-strip { position: absolute; top: 56px; left: 0; right: 0; height: 40px; padding: 8px 12px 0; display: flex; z-index: 89; }
.hx-strip .hx-tabs { justify-content: safe center; }

/* Dock (moz-hominis-dock) */
.hx-dock { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; z-index: 100; padding: 8px; border-radius: var(--hx-pill-r); border: 1px solid transparent; background: var(--hx-pill); box-shadow: var(--hx-shadow-chrome); display: flex; gap: 4px; max-width: min(60%, calc(100% - 2 * (16px + 162px + 16px))); overflow: hidden; }
.hx-dock.hide-end { mask-image: linear-gradient(to left, transparent 0, #000 20px); }
.hx-chip { height: 28px; min-width: 28px; width: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; gap: 6px; position: relative; }
.hx-chip:hover { background: var(--hx-ink-hover); }
.hx-chip.on { width: auto; border-radius: var(--hx-pill-r); padding: 0 10px; background: var(--hx-tint); }
.hx-chip.on .tt { font-size: 12px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Minimap + zoom */
.hx-mini { position: absolute; right: 16px; bottom: 56px; width: 162px; height: 112px; border-radius: 12px; background: var(--hx-card); border: 1px solid var(--hx-scene-line); box-shadow: var(--hx-shadow-chrome); overflow: hidden; z-index: 100; }
.hx-mini i { position: absolute; border-radius: 1px; background: color-mix(in srgb, var(--hx-text) 12%, var(--hx-recessed)); }
.hx-mini i.on { background: var(--hx-accent); }
.hx-mini b { position: absolute; border: 2px solid var(--hx-ring-object); border-radius: 2px; background: color-mix(in srgb, var(--hx-ring-object) 10%, transparent); }
.hx-zoom { position: absolute; right: 16px; bottom: 16px; width: 162px; height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 2px; border-radius: 6px; background: var(--hx-card); border: 1px solid var(--hx-scene-line); box-shadow: var(--hx-shadow-chrome); z-index: 100; }
.hx-zoom span { font-size: 11.3px; font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: center; }

/* Groups */
.hx-group { position: absolute; pointer-events: none; }
.hx-group .gb { position: absolute; inset: 38px 0 0 0; border-radius: 0 0 12px 12px; background: color-mix(in oklab, var(--hx-group) 8%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--hx-group) 32%, transparent); }
.hx-group .gs { position: absolute; left: 0; right: 0; top: 0; height: 38px; border-radius: 12px 12px 0 0; background: color-mix(in oklab, var(--hx-group) 14%, var(--hx-raised)); box-shadow: inset 0 -1px 0 var(--hx-hairline), inset 0 0 0 1.5px color-mix(in oklab, var(--hx-group) 32%, transparent); display: flex; align-items: center; gap: 6px; padding: 0 4px 0 12px; }
.hx-group .gs .d { width: 8px; height: 8px; border-radius: 50%; background: var(--hx-group); flex: none; }
.hx-group .gs .n { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.hx-group .gs .c { font-family: var(--hx-mono); font-size: 11px; font-weight: 600; color: var(--hx-muted); background: var(--hx-line); border-radius: 22px; padding: 1px 6px; }
.hx-group .gs .tools { margin-left: auto; display: flex; gap: 0; color: var(--hx-muted); }
.hx-group .gs .sug { font-size: 11px; color: var(--hx-muted); display: inline-flex; align-items: center; gap: 4px; }

/* Tag chip */
.hx-tag { --h: 250; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; color: var(--hx-text); border: 1px solid oklch(.62 .12 var(--h) / .55); background: oklch(.62 .12 var(--h) / .14); white-space: nowrap; }
.hx-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: oklch(.62 .12 var(--h)); }
.hx-tag.suggested { border-style: dashed; background: transparent; }

/* Floating material (menus, cards, popovers) */
.hx-float { position: absolute; border-radius: var(--hx-overlay-r); background: var(--hx-menu); box-shadow: var(--hx-shadow-menu); z-index: 105; }
.hx-label { position: absolute; padding: 4px 10px; border-radius: 12px; border: 1px solid var(--hx-boundary); background: var(--hx-raised); box-shadow: var(--hx-shadow-chrome); font-size: 12px; white-space: nowrap; z-index: 106; }

/* Dial */
.hx-dial { position: absolute; z-index: 95; pointer-events: none; }
.hx-dial .bd { position: absolute; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--hx-surface) 80%, transparent) 0%, transparent 70%); }
.hx-dial .orb { position: absolute; border-radius: 50%; border: 1px dashed var(--hx-boundary); }
.hx-dial .orb.hot { border-color: var(--hx-accent); }
.hx-dial .ctr { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--hx-muted); }
.hx-dial .it { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1px solid var(--hx-scene-line); background: var(--hx-card); box-shadow: var(--hx-shadow-chrome); display: grid; place-items: center; transition: outline-color .12s; }
.hx-dial .it.cur { background: var(--hx-tint); border-color: transparent; }
.hx-dial .it.aim { border-color: var(--hx-accent); outline: 2px solid var(--hx-accent); outline-offset: 2px; }
.hx-dial .lb { position: absolute; max-width: 120px; font-size: 12px; padding: 1px 6px; border-radius: var(--hx-overlay-r); border: 1px solid var(--hx-scene-line); background: var(--hx-menu); box-shadow: var(--hx-shadow-menu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; translate: -50% 0; }
.hx-dial .hint { position: absolute; translate: -50% 0; padding: 2px 10px; border-radius: 999px; background: var(--hx-menu); box-shadow: var(--hx-shadow-menu); color: var(--hx-muted); font-size: 12px; white-space: nowrap; }

/* Zen cheatsheet */
.hx-zen { position: absolute; top: 18px; left: 50%; translate: -50% 0; z-index: 100; display: flex; gap: 14px; align-items: center; padding: 8px 16px; border-radius: var(--hx-overlay-r); border: 1px solid var(--hx-scene-line); background: var(--hx-menu); box-shadow: var(--hx-shadow-menu); font-size: 12px; color: var(--hx-muted); white-space: nowrap; animation: hx-zen-in .2s var(--hx-ease) both; }
.hx-zen b { color: var(--hx-text); font-weight: 600; }
.hx-zen kbd, .hx kbd { font-family: var(--hx-font); font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--hx-boundary); background: var(--hx-raised); color: var(--hx-text); margin-right: 4px; }
@keyframes hx-zen-in { from { opacity: 0; translate: -50% -6px; } }

/* Vertical column (moz-hominis-window-bar orientation=vertical + moz-hominis-nav-index) */
.hx-col { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 232px; border-radius: calc(var(--hx-tile-r) * .8); box-shadow: var(--hx-shadow-chrome); z-index: 90; display: flex; flex-direction: column; gap: 10px; padding: 10px; transition: width .2s var(--hx-ease); }
.hx[data-side="right"] .hx-col { left: auto; right: 8px; }
.hx-col::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--hx-panel); z-index: -1; }
.hx-col.rail { width: 56px; padding: 10px 8px; }
.hx-col .vlights { height: 18px; flex: none; display: flex; gap: 8px; align-items: center; padding-left: 6px; }
.hx-col .vlights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.hx-col .vlights i:nth-child(2) { background: #febc2e; }
.hx-col .vlights i:nth-child(3) { background: #28c840; }
.hx-col.rail .vlights { display: none; }
.hx-col .row-pill { height: 40px; flex: none; border-radius: var(--hx-pill-r); background: var(--hx-row-tool); box-shadow: inset 0 0 0 1px var(--hx-scene-line); display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.hx-col .row-pill.ws .name { font-family: var(--hx-display-font); overflow: hidden; text-overflow: ellipsis; }
.hx-col .row-pill.ws .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
.hx-col .row-pill.ws .chev { width: 12px; height: 12px; opacity: .75; }
.hx-col .row-pill .pvt { font-size: 12px; padding: 1px 8px; border-radius: 999px; color: var(--hx-private); border: 1px solid color-mix(in srgb, var(--hx-private) 40%, transparent); background: color-mix(in srgb, var(--hx-private) 12%, transparent); }
.hx-col .row-pill.cmdrow { background: rgba(var(--hx-fill-rgb), 0); background-color: color-mix(in srgb, var(--hx-text) 6%, transparent); padding: 0 6px 0 12px; color: var(--hx-muted); }
.hx-col .row-pill.cmdrow svg.i:first-child { width: 12px; height: 12px; }
.hx-col .row-pill .hint { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.hx-col.rail .row-pill { padding: 0; justify-content: center; }
.hx-col.rail .rail-ws { flex-direction: column; gap: 2px; height: auto; min-height: 40px; padding: 6px 2px; }
.hx-col.rail .rail-ws .pvt { padding: 1px 4px; font-size: 11px; }
.hx-col .wsg { width: 16px; height: 16px; }
.hx-col .rail-search { color: var(--hx-muted); }
.hx-col .rail-search svg { width: 14px; height: 14px; }
.hx-col .idx-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--hx-faint); padding: 6px 8px 0; margin-bottom: -6px; }
.hx-col .idx { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0%; min-height: 0; overflow: hidden; }
.hx-col .idx.flank-top { justify-content: flex-end; }
.hx-col .idx.flank-top.over { mask-image: linear-gradient(to bottom, transparent 0, #000 28px); }
.hx-col .idx.flank-bottom.over { mask-image: linear-gradient(to top, transparent 0, #000 28px); }
.hx-col .idx .r { flex: none; border-radius: 6px; background: var(--hx-row-fill); box-shadow: inset 0 0 0 1px var(--hx-scene-line); display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid transparent; font-size: 13px; white-space: nowrap; }
.hx-col .idx .r .tt { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.hx-col .idx .r.on { background: var(--hx-tint); box-shadow: none; }
.hx-col.rail .idx .r { justify-content: center; padding: 8px 0; }
.hx-col.rail .idx .r .tt, .hx-col.rail .idx-h { display: none; }
.hx-col.rail .idx .r img.fav { width: 20px; height: 20px; }
.hx-col .cmdcap { flex: none; border-radius: var(--hx-pill-r); background: color-mix(in srgb, var(--hx-text) 6%, transparent); box-shadow: inset 0 0 0 1px var(--hx-scene-line); min-height: 46px; padding: 4px 6px 4px 8px; display: flex; flex-direction: column; }
.hx-col[data-layout="flanking"] .cmdcap { margin-block: 8px; }
.hx-col .cmdcap .l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hx-col .cmdcap .favbtn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; flex: none; }
.hx-col .cmdcap .pg { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 2px 4px; }
.hx-col .cmdcap .pg b, .hx-col .cmdcap .pg small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-col .cmdcap .pg b { font-size: 12px; font-weight: 600; }
.hx-col .cmdcap .pg small { font-size: 11px; color: var(--hx-muted); }
.hx-col .cmdcap .l3 { display: flex; align-items: center; gap: 2px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--hx-hairline); }
.hx-col .foot { flex: none; margin-top: auto; display: flex; align-items: center; gap: 2px; min-height: 40px; border-radius: var(--hx-pill-r); background: var(--hx-row-tool); box-shadow: inset 0 0 0 1px var(--hx-scene-line); padding: 0 6px; }
.hx-col .foot .collapse { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--hx-inner-r); color: var(--hx-muted); margin-right: auto; }
.hx-col .foot .collapse svg { width: 12px; height: 12px; }
.hx[data-side="right"] .hx-col .foot .collapse { order: 9; margin-right: 0; margin-left: auto; transform: scaleX(-1); }
.hx-col.rail .foot { flex-direction: column; min-height: 0; padding: 6px 0; gap: 4px; background: transparent; box-shadow: none; border-radius: 0; }
.hx-col.rail .foot .collapse { margin: 0; transform: scaleX(-1); }
.hx-col.rail .foot .hx-ib { width: 40px; height: 40px; border-radius: 50%; }

/* Media card */
.hx-media { min-width: 188px; max-width: 280px; padding: 10px; display: grid; grid-template-columns: 44px 1fr; gap: 8px 10px; align-items: center; }
.hx-media .art { width: 44px; height: 44px; border-radius: 6px; background: linear-gradient(160deg, #0b2545, #34d399 70%, #020617); }
.hx-media .tt { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-media .st { font-size: 11px; color: var(--hx-muted); }
.hx-media .ctl { grid-column: 1 / -1; border-top: 1px solid var(--hx-hairline); padding-top: 8px; display: flex; align-items: center; gap: 2px; }
.hx-media .ctl .play { background: var(--hx-accent); color: var(--hx-accent-ink); border-radius: 50%; }
.hx-media .vol { width: 58px; height: 4px; border-radius: 2px; background: var(--hx-line); position: relative; margin-left: 4px; }
.hx-media .vol i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--hx-text); width: var(--v, 60%); }
.hx-media .vol i::after { content: ""; position: absolute; right: -5px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--hx-raised); box-shadow: 0 0 0 1px var(--hx-boundary); }

/* Workspace switcher */
.hx-sw { width: 560px; display: grid; grid-template-columns: 206px 1fr; grid-template-rows: 1fr auto; min-height: 296px; overflow: visible; animation: hx-pop .15s var(--hx-ease-pop) both; }
@keyframes hx-pop { from { opacity: 0; translate: 0 4px; } }
.hx-sw .caret { position: absolute; top: -5px; width: 10px; height: 10px; rotate: 45deg; background: var(--hx-menu); }
.hx-sw .list { padding: 8px; border-right: 1px solid var(--hx-line); display: flex; flex-direction: column; gap: 2px; }
.hx-sw .list h4 { margin: 0 0 4px; min-height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 13px; font-weight: 600; }
.hx-sw .list h4 small { font-family: var(--hx-mono); font-size: 11px; color: var(--hx-faint); font-weight: 400; }
.hx-sw .row { height: 32px; padding: 0 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; border-radius: 6px; font-family: var(--hx-display-font); white-space: nowrap; }
.hx-sw .row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #7c7c87); flex: none; }
.hx-sw .row.sel { background: var(--hx-tint); }
.hx-sw .badge { font-family: var(--hx-font); font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--hx-accent) 35%, transparent); background: var(--hx-raised); color: color-mix(in oklab, var(--hx-accent) 78%, black); margin-left: auto; }
.hx[data-theme="dark"] .hx-sw .badge { color: color-mix(in oklab, var(--hx-accent) 62%, white); }
.hx-sw .pane { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.hx-sw .pane .ttl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; font-family: var(--hx-display-font); }
.hx-sw .pane .meta { font-family: var(--hx-mono); font-size: 11px; color: var(--hx-muted); display: flex; justify-content: space-between; }
.hx-sw .prev { position: relative; height: 132px; border-radius: 6px; border: 1px solid var(--hx-boundary); background: var(--hx-recessed); overflow: hidden; }
.hx-sw .prev i { position: absolute; border-radius: 2px; background: color-mix(in srgb, var(--hx-text) 12%, var(--hx-recessed)); display: grid; place-items: center; }
.hx-sw .prev i.on { background: var(--hx-accent); }
.hx-sw .prev i img { width: 12px; height: 12px; border-radius: 3px; }
.hx-sw .ids { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hx-sw .ids .lab { font-size: 11px; font-weight: 600; color: var(--hx-muted); width: 100%; }
.hx-sw .ids .lab small { font-family: var(--hx-mono); font-weight: 400; color: var(--hx-faint); }
.hx-idc { height: 26px; padding: 0 10px; display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; border: 1px solid var(--hx-boundary); background: var(--hx-raised); font-size: 11px; font-weight: 500; color: var(--hx-text-2); }
.hx-idc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #7c7c87); }
.hx-idc.on { background: var(--hx-tint); border-color: transparent; }
.hx-sw .foot { grid-column: 1 / -1; border-top: 1px solid var(--hx-line); padding: 6px 8px; display: flex; gap: 4px; }
.hx-sw .foot span { height: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.hx-sw .foot .pv { margin-left: auto; color: var(--hx-private); }

/* Ctrl+Tab overview */
.hx-ov { width: min(85%, 980px); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 14px; align-items: center; border: 1px solid var(--hx-scene-line); outline: 2px solid var(--hx-accent); outline-offset: 2px; }
.hx-ov .grid { max-height: 60vh; overflow: hidden; }
.hx-ov .grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hx-ov .card { width: 118px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hx-ov .box { width: 108px; height: 108px; border-radius: 6px; border: 1px solid var(--hx-scene-line); background: var(--hx-field); overflow: hidden; display: grid; place-items: center; position: relative; }
.hx-ov .box img.big { width: 36px; height: 36px; border-radius: 8px; }
.hx-ov .card.hl .box { border-color: var(--hx-accent); outline: 2px solid var(--hx-accent); outline-offset: -2px; }
.hx-ov .card.cur .box { background: var(--hx-tint); }
.hx-ov .nm { font-size: 11px; max-width: 118px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-ov .hint { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--hx-faint); }

/* Split */
.hx-divider { position: absolute; width: 8px; z-index: 50; cursor: col-resize; }
.hx-divider::before { content: ""; position: absolute; left: 3.5px; top: 0; bottom: 0; width: 1px; background: var(--hx-scene-line); }
.hx-divider.hot { background: color-mix(in srgb, var(--hx-accent) 22%, transparent); }
.hx-tile.pane-active::after { content: ""; position: absolute; inset: 0; outline: 2px solid var(--hx-ring-object); outline-offset: -2px; pointer-events: none; z-index: 5; }

/* Page skeletons (stand-ins for extra tabs); the page follows the window's theme */
.sk { --sk-bg: #fff; --sk-ink: #1f2328; --sk-ink2: #5f6670; --sk-card: #fff; --sk-sunk: #f4f5f7; --sk-line: rgba(0,0,0,.08); --sk-faint: rgba(0,0,0,.04); --sk-fill: rgba(0,0,0,.09); --sk-land: #e8efe6; --sk-water: #b9d7ee;
  position: absolute; inset: 0; background: var(--sk-bg); color: var(--sk-ink); font: 12px/1.4 system-ui, -apple-system, sans-serif; overflow: hidden; }
.hx[data-theme="dark"] .sk, .sk.dark { --sk-bg: #16161a; --sk-ink: #e8e8ec; --sk-ink2: #a0a3ab; --sk-card: #222228; --sk-sunk: #1c1c21; --sk-line: rgba(255,255,255,.09); --sk-faint: rgba(255,255,255,.05); --sk-fill: rgba(255,255,255,.12); --sk-land: #1f2620; --sk-water: #1d3446; color-scheme: dark; }
.sk .top { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--sk-bg); border-bottom: 1px solid var(--sk-line); color: var(--sk-ink); font-weight: 700; font-size: 14px; }
.sk .top .lg { width: 22px; height: 22px; border-radius: 6px; background: var(--sk-brand); color: #fff; display: grid; place-items: center; font-size: 11px; }
.sk .top .srch { margin-left: auto; width: 34%; height: 24px; border-radius: 999px; background: var(--sk-faint); }
.sk .bd { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sk .skh { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 700; }
.sk .ln { height: 8px; border-radius: 4px; background: var(--sk-fill); }
.sk .img { border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--sk-brand) 55%, #fff), color-mix(in srgb, var(--sk-brand) 85%, #000)); }
.sk .cols { display: flex; gap: 10px; }
.sk .col { flex: 1; border-radius: 8px; background: var(--sk-faint); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.sk .card { border-radius: 6px; background: var(--sk-card); box-shadow: 0 1px 2px rgba(0,0,0,.12); padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.sk .pill { display: inline-block; height: 8px; width: 34px; border-radius: 4px; background: var(--sk-brand); opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
