/* ==================================================================
   Clurno — App design
   Same language as the website: black and white only, Poppins,
   medium-weight headlines, small mono labels, light-grey cards
   without borders, one black stage — the sidebar, inset and rounded.
   Motion: long, soft ease-out; nothing bounces, nothing blurs.
   Layout (grids, sizes, positions) lives in layout.css.
   ================================================================== */

/* ---------- Tokens ---------- */
@property --p { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --pv { syntax: "<number>"; inherits: true; initial-value: 50; }
:root {
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --surface-3: #e9e9e9;
  --side: #000000;
  --side-text: #ffffff;
  --side-dim: rgba(255, 255, 255, .55);
  --line: #e8e8e8;
  --line-strong: #cfcfcf;
  --text: #000000;
  --text-2: #5c5c5c;
  --text-3: #8f8f8f;
  --invert: #000000;
  --invert-text: #ffffff;
  --tint: rgba(0, 0, 0, .04);
  --glass: #ffffff;
  --shadow-pop: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 70px -20px rgba(0, 0, 0, .3);
  --yellow: #8f8f8f; --orange: #6b6b6b; --red: #000000; --blue: #000000; --green: #000000;
  --pos: #000000; --muted-dot: #cfcfcf;
  --grad: #000; --grad-v: #000;
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-lg: 14px; --r-xl: 20px; --pill: 999px;
  --inset: 8px;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.2, .7, 0, 1);
  --ctl-track: #e0e0e0; --ctl-track-hover: #d2d2d2;
  --ctl-on: #000; --ctl-knob: #fff; --ctl-knob-on: #fff;
  --ctl-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .16);
  --ctl-ring: 0 0 0 4px rgba(0, 0, 0, .1);
  --ctl-spring: var(--ease); --ctl-ease: var(--ease);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #000000; --surface-2: #131313; --surface-3: #1e1e1e;
  --side: #ffffff; --side-text: #000000; --side-dim: rgba(0, 0, 0, .55);
  --line: #1f1f1f; --line-strong: #3a3a3a;
  --text: #ffffff; --text-2: #a3a3a3; --text-3: #6e6e6e;
  --invert: #ffffff; --invert-text: #000000;
  --tint: rgba(255, 255, 255, .06); --glass: #000000;
  --shadow-pop: 0 0 0 1px #262626, 0 24px 70px -20px rgba(0, 0, 0, .9);
  --yellow: #a3a3a3; --orange: #a3a3a3; --red: #ffffff; --blue: #ffffff; --green: #ffffff; --pos: #ffffff;
  --muted-dot: #3d3d3d;
  --ctl-track: #2b2b2b; --ctl-track-hover: #363636;
  --ctl-on: #fff; --ctl-knob: #fff; --ctl-knob-on: #000;
  --ctl-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  --ctl-ring: 0 0 0 4px rgba(255, 255, 255, .14);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { min-height: 100vh; overflow-x: hidden; }
button, input, textarea, select, optgroup { font-family: var(--font); font-size: inherit; color: inherit; }
button { margin: 0; padding: 0; border: 0; background: transparent; font: inherit; text-align: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
hr { border: 0; height: 1px; background: var(--line); margin: 32px 0; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
code { padding: 2px 6px; border-radius: var(--r-xs); background: var(--surface-2); }
pre { padding: 18px; border-radius: var(--r); background: var(--surface-2); overflow: auto; }
ul, ol { padding-left: 20px; }
::selection { background: var(--invert); color: var(--invert-text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display { margin: 0; font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.045em; }
.h1 { margin: 0; font-weight: 500; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -0.04em; }
.h2 { margin: 0; font-weight: 500; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -0.025em; }
.h3 { margin: 0; font-weight: 500; font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; }
.h1 .faint, .h1 .muted, .display .faint, .display .muted { color: var(--text-3); }
.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: var(--text-2); }
.lead b, .lead strong { color: var(--text); font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 14.5px; }
.xs { font-size: 13.5px; }
.xxs { font-size: 12px; }
.num, .stat-value { font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.label { display: block; font-size: 13.5px; font-weight: 500; color: var(--text); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.redacted { background: var(--text); color: transparent; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text);
  font-weight: 500; font-size: 14.5px; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s, opacity .3s, transform .4s var(--ease);
}
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--invert); border-color: var(--invert); color: var(--invert-text); }
.btn-primary:hover { background: #2b2b2b; border-color: #2b2b2b; }
:root[data-theme="dark"] .btn-primary:hover { background: #dcdcdc; border-color: #dcdcdc; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { border-color: transparent; background: var(--surface-2); }
.btn-danger, .x-btn-del { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.btn-danger:hover, .x-btn-del:hover { border-color: var(--text); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn.chip { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-url { height: auto; min-height: 38px; padding: 8px 12px; white-space: normal; text-align: left; }
.btn .arr, .btn .arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arr, .btn:hover .arrow { transform: translateX(3px); }

.o3d-chip, .x-room-tool, .trace-btn, .dt-read, .att-dl, .ibx-add, .vx-hb-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s, transform .4s var(--ease);
}
.o3d-chip:hover, .x-room-tool:hover, .trace-btn:hover, .dt-read:hover, .att-dl:hover, .ibx-add:hover, .vx-hb-btn:hover { border-color: var(--text); }
.o3d-chip:active, .x-room-tool:active, .ibx-add:active { transform: scale(.96); }
.o3d-chip.on, .o3d-chip[aria-pressed="true"], .x-room-tool.on, .x-room-tool[aria-pressed="true"] { background: var(--invert); border-color: var(--invert); color: var(--invert-text); }
.trace-btn, .dt-read { height: 26px; padding: 0 9px; font-size: 12px; }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--r);
  background: var(--surface-2); color: var(--text); font-size: 15.5px;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-strong); }
.input:focus, .textarea:focus, .select:focus { outline: none; background: var(--bg); border-color: var(--text); box-shadow: 0 0 0 4px var(--tint); }
.select { padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 10px 7px; }
:root[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dropzone { padding: 32px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; color: var(--text-2); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.dropzone:hover, .dropzone.is-over { border-color: var(--text); background: var(--tint); }

.vw-select { position: relative; display: inline-block; }
.vw-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--r); background: var(--surface-2); color: var(--text); font-weight: 500; font-size: 15px; cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.vw-select-trigger:hover { border-color: var(--line-strong); }
.vw-select.is-open .vw-select-trigger { background: var(--bg); border-color: var(--text); }
.vw-select-caret { flex: 0 0 auto; width: 9px; height: 6px; background: var(--text); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .5s var(--ease); }
.vw-select.is-open .vw-select-caret { transform: rotate(180deg); }
.vw-select-menu { position: absolute; z-index: 50; min-width: 100%; max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(-6px); transform-origin: 50% 0; pointer-events: none; transition: opacity .25s var(--ease), transform .5s var(--ease); }
.vw-select.is-open .vw-select-menu, .vw-select-menu.is-floating.is-open { opacity: 1; transform: none; pointer-events: auto; }
.vw-select-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--text); cursor: pointer; white-space: nowrap; transition: background-color .2s; }
.vw-select-opt::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: transparent; }
.vw-select-opt.is-active { background: var(--surface-2); }
.vw-select-opt[aria-selected="true"] { font-weight: 500; }
.vw-select-opt[aria-selected="true"]::before { background: var(--text); }
.vw-select-opt small { margin-left: auto; padding-left: 14px; font-size: 12.5px; color: var(--text-3); }
.vw-select-group { padding: 12px 12px 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--bg); }
.vw-select-search { position: sticky; top: -6px; padding: 4px 4px 6px; background: var(--bg); }
.vw-select-search input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); outline: none; }
.vw-select-search input:focus { border-color: var(--text); }
.vw-num { display: inline-flex; align-items: center; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.vw-num .input { background: transparent; text-align: center; border: 0; box-shadow: none; }
.vw-num-btn { width: 42px; height: 46px; border: 0; background: transparent; cursor: pointer; font-size: 18px; transition: background-color .2s; }
.vw-num-btn:hover { background: var(--surface-3); }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Switch, check, slider, segmented ---------- */
.toggle, .vw-toggle { position: relative; flex: 0 0 auto; width: 46px; height: 26px; padding: 0; border: 0; border-radius: var(--pill); background: var(--ctl-track); cursor: pointer; isolation: isolate; transition: background-color .4s var(--ease); }
.toggle::after, .vw-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; z-index: 1; border-radius: 50%; background: var(--ctl-knob); box-shadow: var(--ctl-shadow); transition: transform .5s var(--ease), width .3s var(--ease), background-color .3s; }
.toggle:hover:not(:disabled):not([aria-checked="true"]) { background: var(--ctl-track-hover); }
.toggle:active:not(:disabled)::after { width: 26px; }
.toggle[aria-checked="true"], .vw-toggle[aria-checked="true"] { background: var(--ctl-on); }
.toggle[aria-checked="true"]::after, .vw-toggle[aria-checked="true"]::after { transform: translateX(20px); background: var(--ctl-knob-on); }
.toggle[aria-checked="true"]:active:not(:disabled)::after { transform: translateX(14px); }
:root[data-theme="dark"] .toggle[aria-checked="true"]::after { box-shadow: none; }
.toggle:disabled { opacity: .35; cursor: not-allowed; }
.toggle:focus-visible { outline: none; box-shadow: var(--ctl-ring); }
.ctl-pop { animation: ctl-squish .45s var(--ease); }
@keyframes ctl-squish { 35% { transform: scale(.94, .9); } }
.check { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: transparent; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s, transform .3s var(--ease); }
.check::after { content: ""; width: 11px; height: 11px; background: var(--ctl-knob-on); transform: scale(0); transition: transform .45s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.check:hover:not(:disabled) { border-color: var(--text); }
.check[aria-checked="true"] { background: var(--ctl-on); border-color: var(--ctl-on); }
.check[aria-checked="true"]::after { transform: scale(1); }
.check:active:not(:disabled) { transform: scale(.88); }
.check:disabled { opacity: .35; cursor: not-allowed; }
input[type="checkbox"]:not(.vw-native), input[type="radio"] { accent-color: var(--ctl-on); width: 17px; height: 17px; margin: 0; }
.range, .vw-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 4px 0; background: transparent; cursor: pointer; transition: --p .6s var(--ease); animation: ctl-fill 1.1s var(--ease) backwards; }
@keyframes ctl-fill { from { --p: 0%; } }
.range:focus, .vw-range:focus { outline: none; }
.range::-webkit-slider-runnable-track, .vw-range::-webkit-slider-runnable-track { height: 3px; border-radius: var(--pill); background: linear-gradient(var(--ctl-on), var(--ctl-on)) 0 0 / var(--p) 100% no-repeat, var(--ctl-track); transition: height .3s var(--ease); }
.range::-webkit-slider-thumb, .vw-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--ctl-shadow); transition: transform .3s var(--ease), margin .3s var(--ease); }
.range::-moz-range-track, .vw-range::-moz-range-track { height: 3px; border-radius: var(--pill); background: var(--ctl-track); }
.range::-moz-range-progress, .vw-range::-moz-range-progress { height: 3px; border-radius: var(--pill); background: var(--ctl-on); }
.range::-moz-range-thumb, .vw-range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--ctl-shadow); }
.ctl-range { position: relative; display: block; width: 100%; --pv: 50; transition: --pv .6s var(--ease); }
.ctl-range.is-drag, .ctl-range.is-drag .range { transition: none; }
.ctl-range:hover .range::-webkit-slider-runnable-track, .ctl-range.is-drag .range::-webkit-slider-runnable-track { height: 6px; }
.ctl-range:hover .range::-webkit-slider-thumb, .ctl-range.is-drag .range::-webkit-slider-thumb { margin-top: -7px; transform: scale(1.1); }
.range:active::-webkit-slider-thumb { box-shadow: var(--ctl-shadow), 0 0 0 8px var(--tint); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: var(--ctl-shadow), var(--ctl-ring); }
.ctl-bubble { position: absolute; bottom: calc(100% + 4px); z-index: 4; pointer-events: none; left: calc(10px + (100% - 20px) * var(--pv) / 100); min-width: 32px; padding: 4px 8px; border-radius: var(--r-xs); background: var(--invert); color: var(--invert-text); font-family: var(--mono); font-size: 11.5px; text-align: center; opacity: 0; transform: translate(-50%, 6px); transition: opacity .25s var(--ease), transform .45s var(--ease); }
.ctl-range:hover .ctl-bubble, .ctl-range.is-drag .ctl-bubble, .ctl-range:has(:focus-visible) .ctl-bubble { opacity: 1; transform: translate(-50%, 0); }
.ctl-bubble.ctl-tick { animation: ctl-tick .35s var(--ease); }
@keyframes ctl-tick { 40% { scale: 1.08; } }
.segmented, .vw-segmented { position: relative; display: inline-flex; gap: 0; max-width: 100%; padding: 3px; border-radius: var(--r); background: var(--surface-2); }
.ctl-seg-pill { position: absolute; top: 3px; bottom: 3px; left: 0; z-index: 0; pointer-events: none; border-radius: 7px; background: var(--ctl-on); transition: transform .55s var(--ease), width .45s var(--ease), opacity .2s; }
.segmented button, .vw-segmented button { position: relative; z-index: 1; height: 36px; padding: 0 15px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: color .3s var(--ease), transform .3s var(--ease); }
.segmented button:hover:not([aria-pressed="true"]) { color: var(--text); }
.segmented button:active { transform: scale(.96); }
.segmented button[aria-pressed="true"], .vw-segmented button[aria-pressed="true"] { color: var(--ctl-knob-on); }
.segmented:not(.ctl-seg) button[aria-pressed="true"], .vw-segmented:not(.ctl-seg) button[aria-pressed="true"] { background: var(--ctl-on); }
.field > .segmented, .field > .vw-segmented, .col > .segmented { align-self: flex-start; }

/* ---------- Chips, tags, dots ---------- */
.gv-chip, .hire-chip, .vw-chip, .mb-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text); font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s, transform .4s var(--ease);
}
.gv-chip:hover:not(:disabled), .hire-chip:hover, .vw-chip:hover, .mb-chip:hover { border-color: var(--text); }
.gv-chip:active:not(:disabled), .hire-chip:active, .mb-chip:active, .vw-chip:active { transform: scale(.95); }
.gv-chip.on, .hire-chip[aria-pressed="true"], .vw-chip[aria-pressed="true"], .mb-chip[aria-pressed="true"], .mb-chip.on { background: var(--invert); border-color: var(--invert); color: var(--invert-text); }
.vw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-dots { gap: 6px; }
.skill-dot { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: var(--ctl-track); cursor: pointer; transition: background-color .3s var(--ease), transform .4s var(--ease); }
.skill-dot:hover { transform: scale(1.2); }
.skill-dot.on { background: var(--ctl-on); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tag-solid { background: var(--invert); border-color: var(--invert); color: var(--invert-text); }
.dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-dot); vertical-align: middle; }
.dot-live, .dot.live, .live .dot { background: var(--text); animation: vx-live 2s ease-out infinite; }
@keyframes vx-live { 0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, .35); } 70%, 100% { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); } }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.alert { padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); color: var(--text); font-size: 14.5px; }
.alert.err, .alert-err, .mb-err { background: var(--invert); color: var(--invert-text); }
.alert.ok, .alert-ok { background: var(--surface-2); color: var(--text); }
.ok { color: var(--text); }
.avatar, .mono { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--invert); color: var(--invert-text); font-weight: 500; overflow: hidden; }
.avatar { width: 40px; height: 40px; font-size: 15px; }
.avatar svg { width: 52%; height: 52%; }
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .3; animation: vx-hop 1.1s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vx-hop { 0%, 60%, 100% { opacity: .3; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }

/* ---------- Sections and cards: grey fills, no borders ---------- */
.panel, .glass { border: 0; border-radius: 0; background: transparent; color: var(--text); }
.panel { border-top: 1px solid var(--line); padding: 32px 0 8px; }
.panel-head { align-items: flex-start; justify-content: space-between; padding: 0 0 20px; }
.panel-head .h2, .panel-head .h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.025em; }
.panel-body { padding: 0 0 20px; }
.panel-foot { padding: 16px 0; border-top: 1px solid var(--line); }
.glass:not(.panel):not(.modal) { padding: 0; }
:is(.panel, .glass, .hairline-grid, .table-wrap, .goal-bar) + :is(.panel, .glass, .goal-bar, .hairline-grid, .table-wrap, .grid-2, .grid-3, .grid-4) { margin-top: 36px; }
.card-link, .choice, .x-cu-card, .x-int-card, .vo-card, .role-card, .x-tile, .x-col, .perm-card, .call-card, .att-card, .fx-tile, .ibx-prov, .mb-chan, .mb-dotc, .hire-card, .stat {
  border: 0; border-radius: var(--r-lg); background: var(--surface-2); color: var(--text);
}
.card-link, .choice, .x-int-card, .fx-tile, .hire-card, .ibx-prov, .mb-chan { transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease); }
.card-link:hover, .choice:hover, .x-int-card:hover, .fx-tile:hover, .hire-card:hover, .ibx-prov:hover, .mb-chan:hover { background: var(--surface-3); }
.card-link:active, .choice:active, .x-int-card:active, .fx-tile:active { transform: scale(.985); }
.card-link, .choice { padding: 24px; cursor: pointer; }
.choice[aria-pressed="true"], .choice.on, .choice.sel { background: var(--invert); color: var(--invert-text); }
.choice[aria-pressed="true"] .muted, .choice.on .muted, .choice.sel .muted, .choice[aria-pressed="true"] .faint, .choice.sel .faint { color: inherit; opacity: .6; }
.hairline-grid { display: grid; gap: 8px !important; padding: 0; border: 0; border-radius: 0; background: transparent !important; }
.hairline-grid > * { border: 0 !important; border-radius: var(--r-lg) !important; background: var(--surface-2) !important; }
.grid-2, .grid-3, .grid-4 { gap: 8px; }
.stat { padding: 22px 24px; }
.stat .eyebrow, .stat .label { color: var(--text-3); }
.stat-value, .stat .num { font-size: clamp(32px, 3vw, 44px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.divider { background: var(--line); }
.list { display: flex; flex-direction: column; }
.list-row { align-items: center; justify-content: space-between; min-height: 64px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
a.list-row, button.list-row { transition: background-color .3s var(--ease), padding .5s var(--ease); }
a.list-row:hover, button.list-row:hover { background: var(--surface-2); padding-left: 12px; padding-right: 12px; border-radius: var(--r-sm); }
.panel ul:not([class]) { margin: 0; padding: 0; list-style: none; }
.panel ul:not([class]) > li { position: relative; padding-left: 18px; margin: 6px 0; }
.panel ul:not([class]) > li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--text); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.table { border-collapse: collapse; font-size: 14.5px; }
.table th { padding: 12px 14px 12px 0; text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background-color .25s; }
.table tbody tr:hover { background: var(--tint); }
.meter, .bar, .lv-bar { border-radius: var(--pill); background: var(--ctl-track); }
.meter > span, .bar > span, .lv-bar i { display: block; height: 100%; border-radius: var(--pill); background: var(--invert); transition: width 1s var(--ease); }
.lv-badge { align-items: center; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.empty { align-items: center; justify-content: center; padding: 56px 24px; text-align: center; color: var(--text-2); border-radius: var(--r-lg); background: var(--surface-2); }
.empty::before { content: ""; width: 9px !important; height: 9px !important; margin-bottom: 10px; border-radius: 50%; background: var(--text); }

/* ---------- Shell: black sidebar, inset and rounded ---------- */
.shell { background: var(--bg); grid-template-columns: 252px minmax(0, 1fr); }
html.side-min .shell { grid-template-columns: 92px minmax(0, 1fr); }
.shell-side { top: var(--inset); height: calc(100vh - var(--inset) * 2); margin: var(--inset) 0 var(--inset) var(--inset); padding: 22px 12px 14px; border-radius: var(--r-xl); background: var(--side); color: var(--side-text); }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 22px; }
.shell-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--side-text); font-weight: 600; font-size: 19px; letter-spacing: -0.045em; text-transform: lowercase; }
.logo-mark { width: 22px; height: 22px; flex: 0 0 auto; color: currentColor; }
.logo .logo-mark { color: var(--text); }
.shell-logo .logo-mark { color: var(--side-text); }
.side-toggle { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--side-dim); cursor: pointer; transition: background-color .25s, color .25s; }
.side-toggle:hover { background: rgba(255, 255, 255, .1); color: var(--side-text); }
:root[data-theme="dark"] .side-toggle:hover { background: rgba(0, 0, 0, .08); }
.side-toggle span { width: 7px; height: 7px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateX(2px) rotate(45deg); transition: transform .5s var(--ease); }
html.side-min .side-toggle span { transform: translateX(-2px) rotate(-135deg); }
.ws-switch { padding: 0 0 18px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .ws-switch { border-bottom-color: rgba(0, 0, 0, .12); }
.ws-switch .select, .ws-switch .vw-select-trigger { height: 40px; font-weight: 500; font-size: 14px; background-color: rgba(255, 255, 255, .1); color: var(--side-text); border-color: transparent; }
:root[data-theme="dark"] .ws-switch .select, :root[data-theme="dark"] .ws-switch .vw-select-trigger { background-color: rgba(0, 0, 0, .06); }
.ws-switch .vw-select-caret { background: var(--side-text); }
.shell-nav { position: relative; gap: 2px; }
.shell-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); color: var(--side-dim); font-size: 14.5px; font-weight: 500; transition: color .3s var(--ease), background-color .3s var(--ease); }
.shell-link:hover { color: var(--side-text); background: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .shell-link:hover { background: rgba(0, 0, 0, .06); }
.shell-link[aria-current="page"] { color: var(--side); background: transparent; }
.shell-link[aria-current="page"]:hover { color: var(--side); background: transparent; }
.shell-ico { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; transition: transform .4s var(--ease); }
.shell-ico svg { width: 18px; height: 18px; stroke-width: 1.7; }
/* the active page: a white block slides behind the link */
.nav-pill { position: absolute; left: 0; right: 0; top: 0; z-index: 0; width: auto; height: 42px; pointer-events: none; border-radius: var(--r-sm); background: var(--side-text); transition: transform .6s var(--ease), opacity .2s; }
.nav-pill::after { display: none; }
.shell-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.shell-settings { position: relative; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .shell-settings { border-bottom-color: rgba(0, 0, 0, .12); }
.shell-settings .shell-link[aria-current="page"], .shell-settings .shell-link[aria-current="page"]:hover { background: var(--side-text); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px; color: var(--side-text); }
.side-user .avatar { width: 32px; height: 32px; font-size: 13px; background: var(--side-text); color: var(--side); }
.side-user .faint, .side-user .muted, .shell-foot .faint, .shell-foot .muted, .shell-foot .xs { color: var(--side-dim); }
.side-logout { padding: 0; border: 0; background: none; color: var(--side-dim); font-size: 12.5px; cursor: pointer; text-align: left; transition: color .25s; }
.side-logout:hover { color: var(--side-text); }
.side-guest { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.side-guest .btn { height: 40px; background: var(--side-text); border-color: var(--side-text); color: var(--side); }
.shell-foot .dot { background: var(--side-text); }
html.side-min .shell-side { padding-left: 10px; padding-right: 10px; }
html.side-min .shell-link { justify-content: center; padding: 0; }
html.side-min .side-top { padding-left: 0; padding-right: 0; align-items: center; }
html.side-min .ws-switch { display: none; }
html.side-min .side-user { justify-content: center; }

/* ---------- Top bar ---------- */
.shell-top { height: 64px; padding: 0 40px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; }
:root[data-theme="dark"] .shell-top { background: rgba(0, 0, 0, .97); }
.shell-top .top-meta { align-self: stretch; display: flex; align-items: center; }
.subnav { display: inline-flex; align-self: center; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav-link { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-sm); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; transition: color .3s var(--ease), background-color .3s var(--ease); }
.subnav-link:hover { color: var(--text); background: var(--surface-2); }
.subnav-link[aria-current="page"] { color: var(--invert-text); background: var(--invert); }
#top-actions .tag { border: 0; background: transparent; color: var(--text-3); }
#top-actions .btn { height: 34px; padding: 0 12px; background: var(--invert); border-color: var(--invert); color: var(--invert-text); font-size: 13.5px; }
.shell-content { margin: 0 auto; padding: 56px 40px 112px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 44px; }
.page-head .eyebrow + .h1, .page-head .eyebrow + .display { margin-top: 14px; }
.page-head .lead { margin: 16px 0 0; max-width: 620px; }

/* Page change: the view slides up, children follow; headlines rise out of a mask */
#view > * { animation: vx-rise .8s var(--ease) both; }
#view > *:nth-child(2) { animation-delay: .05s; }
#view > *:nth-child(3) { animation-delay: .1s; }
#view > *:nth-child(4) { animation-delay: .15s; }
#view > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes vx-rise { from { opacity: 0; transform: translateY(18px); } }
.page-head .h1, .page-head .display { animation: vx-title 1s var(--ease) both; }
@keyframes vx-title { from { opacity: 0; transform: translateY(.4em); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20% 0); } }

/* ---------- Overlay, modal, toasts ---------- */
.overlay { place-items: center; padding: 24px; background: rgba(0, 0, 0, .5); animation: vx-fade .35s var(--ease); }
:root[data-theme="dark"] .overlay { background: rgba(0, 0, 0, .8); }
.modal { max-height: calc(100vh - 48px); overflow: auto; padding: 28px; border-radius: var(--r-xl); background: var(--bg); color: var(--text); box-shadow: var(--shadow-pop); animation: vx-pop .6s var(--ease); }
.modal :is(.input, .textarea, .select, .vw-select-trigger, .vw-num, .x-otp-box) { background-color: var(--surface-2); }
.modal :is(.input, .textarea):focus { background-color: var(--bg); }
@keyframes vx-fade { from { opacity: 0; } }
@keyframes vx-pop { from { opacity: 0; transform: translateY(28px); } }
.toast { padding: 13px 18px; border-radius: var(--r); background: var(--invert); color: var(--invert-text); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-pop); animation: vx-toast .6s var(--ease); }
@keyframes vx-toast { from { opacity: 0; transform: translateY(20px); } }

/* ---------- In-page tabs: mono pills ---------- */
.tabs { gap: 4px; padding: 0 0 14px; border-bottom: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.tab { position: relative; flex: 0 0 auto; height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: color .3s var(--ease), background-color .3s var(--ease); }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-pressed="true"], .tab[aria-selected="true"] { color: var(--invert-text); background: var(--invert); }
.steps { margin: 0; padding: 0; list-style: none; gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 12px 0; border-top: 2px solid transparent; margin-top: -1px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); transition: color .4s, border-color .4s; }
.steps li.on, .steps li[aria-current] { border-top-color: var(--text); color: var(--text); }

/* ---------- Chat ---------- */
.phone { border: 0; border-radius: var(--r-xl); background: var(--surface-2); overflow: hidden; }
.phone-head { align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.phone-body { padding: 18px; overflow-y: auto; }
.bubble { padding: 10px 14px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; align-self: flex-start; box-shadow: 0 0 0 1px var(--line); animation: vx-bubble .5s var(--ease) both; }
.bubble.me, .bubble.out, .bubble-me { align-self: flex-end; border-radius: 18px; border-bottom-right-radius: 6px; background: var(--invert); color: var(--invert-text); box-shadow: none; }
.bubble.system, .bubble.sys { align-self: center; background: transparent; color: var(--text-3); font-size: 12.5px; box-shadow: none; }
.bubble .speaker { margin-bottom: 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.bubble .time { font-size: 10.5px; opacity: .5; }
@keyframes vx-bubble { from { opacity: 0; transform: translateY(10px); } }
.bubble-actions { display: flex; gap: 6px; margin-top: 8px; }
.thought { padding: 10px 14px; border-left: 2px solid var(--text); color: var(--text-2); font-size: 13.5px; }
.phone-form { align-items: center; gap: 6px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.phone-form .input { height: 44px; min-width: 0; border-radius: var(--r); padding: 0 14px; }
.phone-form > .btn, .phone-form > label.btn { flex: 0 0 auto; width: 40px !important; height: 40px; padding: 0 !important; display: grid; place-items: center; font-size: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); }
.phone-form > .btn:hover, .phone-form > label.btn:hover { background: var(--surface-2); color: var(--text); }
.phone-form > .btn::before, .phone-form > label.btn::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.phone-form > label.btn { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.5l-8.5 8.5a5.5 5.5 0 0 1-7.8-7.8l9-9a3.7 3.7 0 0 1 5.2 5.2l-9 9a1.8 1.8 0 0 1-2.6-2.6l8.3-8.3'/%3E%3C/svg%3E"); }
.phone-form > .btn[data-act="chatVoice"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='12' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E"); }
.phone-form > .btn[data-act="chatVoice"][aria-pressed="true"] { background: var(--invert); color: var(--invert-text); animation: vx-rec 1.2s ease-in-out infinite; }
@keyframes vx-rec { 50% { box-shadow: 0 0 0 6px rgba(0, 0, 0, .12); } }
.phone-form > .btn-primary[type="submit"] { width: 44px !important; height: 44px; border-radius: var(--r); background: var(--invert); color: var(--invert-text); --ico: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E"); }
.phone-form > .btn-primary[type="submit"]:hover { background: var(--invert); color: var(--invert-text); opacity: .85; }
.act-ms { align-self: center; padding: 5px 10px; border-radius: var(--r-xs); background: var(--bg); color: var(--text-2); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; box-shadow: 0 0 0 1px var(--line); animation: vx-bubble .5s var(--ease); }
.act-ms-i { display: inline-grid; place-items: center; border-radius: 50%; background: var(--invert); color: var(--invert-text); font-size: 9px; }
.act-run { padding: 12px 14px; border-radius: var(--r); background: var(--bg); font-size: 13.5px; box-shadow: 0 0 0 1px var(--line); }
.act-run > summary { cursor: pointer; list-style: none; }
.act-dot { border-radius: 50%; background: var(--text-3); }
.act-pulse { position: relative; border-radius: 50%; background: var(--text); }
.act-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--text); animation: vx-ping 1.4s ease-out infinite; }
@keyframes vx-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.call-card { padding: 16px; }
.call-card-ico { display: inline-grid; place-items: center; border-radius: 50%; background: var(--invert); color: var(--invert-text); }

/* ---------- Home: the goal field is a black stage ---------- */
.goal-bar { padding: 0; border: 0; background: transparent; }
.goal-form { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: var(--r-xl); background: var(--invert); }
.goal-form .input { height: 52px; font-size: 16px; padding: 0 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .1); color: var(--invert-text); }
.goal-form .input::placeholder { color: rgba(255, 255, 255, .45); }
.goal-form .input:hover { border-color: transparent; }
.goal-form .input:focus { background: rgba(255, 255, 255, .16); border-color: transparent; box-shadow: none; }
:root[data-theme="dark"] .goal-form .input { background: rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .goal-form .input::placeholder { color: rgba(0, 0, 0, .45); }
.goal-form select, .goal-form .vw-select-trigger { height: 52px; border-radius: var(--r-lg); background-color: rgba(255, 255, 255, .1); color: var(--invert-text); border-color: transparent; }
.goal-form .vw-select-caret { background: var(--invert-text); }
.goal-form .btn { height: 52px; padding: 0 22px; border-radius: var(--r-lg); background: var(--invert-text); border-color: var(--invert-text); color: var(--invert); }
.goal-form .btn:hover { opacity: .88; background: var(--invert-text); }
.feed { border: 0; border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.feed-item { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; animation: vx-bubble .5s var(--ease) both; }
.feed-item:last-child { border-bottom: 0; }
.floor { gap: 10px; }
.room-head { align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 500; }
.room-head .btn, .room-head button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r-sm); display: inline-grid; place-items: center; }
.room-head button:hover { background: var(--surface-3); }
.desks { gap: 6px; padding: 0 8px 8px; }
.desk { place-items: center; padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--bg); transition: border-color .3s var(--ease), transform .5s var(--ease); }
.desk:hover { border-color: var(--text); }
.desk .faint { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; }
.pixel-desk { display: none; }

/* ---------- Your Office (3D) ---------- */
body.route-space .shell-content, body.route-full .shell-content { padding: 0; max-width: none; }
html.route-space, body.route-space, body.route-space .shell-main { overflow: hidden; }
.space-stage { background: #dedede; }
:root[data-theme="dark"] .space-stage { background: #060606; }
.space-hud .btn { height: 34px; padding: 0 12px; border-color: transparent; background: var(--bg); font-size: 13px; border-radius: var(--r-sm); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.space-hud .btn:hover { border-color: var(--text); }
.space-hud .btn-primary, .space-hud .btn[aria-pressed="true"] { background: var(--invert); color: var(--invert-text); }
.space-hud .segmented { background: var(--bg); }
.space-hint { padding: 5px 10px; border-radius: var(--r-xs); background: rgba(255, 255, 255, .85); color: var(--text-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; }
:root[data-theme="dark"] .space-hint { background: rgba(0, 0, 0, .7); }
.space-floor { padding: 150px 24px 24px; align-content: start; }
.space-floor > .glass { overflow: visible; border: 0; border-radius: var(--r-lg); background: var(--bg); }
.space-side2 { background: var(--bg); border-left: 1px solid var(--line); overflow: hidden; }
.space-tabs { display: flex; gap: 4px; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.space-tab { position: relative; flex: 0 0 auto; height: 32px; padding: 0 11px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: color .3s var(--ease), background-color .3s var(--ease); }
.space-tab:hover { color: var(--text); background: var(--surface-2); }
.space-tab[aria-selected="true"] { color: var(--invert-text); background: var(--invert); }
.space-team { gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.space-team::-webkit-scrollbar { display: none; }
.space-dot { align-items: center; min-width: 58px; padding: 8px 6px; border: 0; border-radius: var(--r); background: transparent; cursor: pointer; transition: background-color .3s var(--ease), transform .4s var(--ease); }
.space-dot:hover { background: var(--surface-2); }
.space-dot:active { transform: scale(.95); }
.space-dot[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--text); }
.space-dot[aria-selected="true"] .xs { font-weight: 500; }
.space-unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--invert); color: var(--invert-text); font: 600 10px/18px var(--font); text-align: center; }
.space-body .phone, .space-chat .phone { border: 0; border-radius: 0; background: transparent; }
.space-body > [data-live="spaceHead"] { overflow-y: auto; border-bottom: 1px solid var(--line); }
@media (min-width: 1001px) {
  .space-full { height: calc(100vh - 64px); height: calc(100dvh - 64px); grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 440px); }
  .space-side2 .space-chat .phone { height: auto; min-height: 0; }
}
.space-max { height: 100vh; height: 100dvh; }
.o3d-name { padding: 3px 8px; border-radius: var(--r-xs); background: var(--invert); color: var(--invert-text); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; transform: translate(-50%, 0); }
.o3d-bubble { padding: 8px 11px; border-radius: var(--r); background: var(--bg); color: var(--text); font-size: 12.5px; line-height: 1.4; box-shadow: var(--shadow-pop); transform: translateX(-50%); -webkit-line-clamp: 3; }
.o3d-tag::before { content: ""; border-radius: 2px; background: var(--bg); }
.o3d-tag.says .o3d-bubble { background: var(--invert); color: var(--invert-text); }
.o3d-tag.says::before { background: var(--invert); }
.o3d-act { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: var(--r-xs); background: var(--bg); color: var(--text); font-size: 11px; font-weight: 500; box-shadow: 0 0 0 1px var(--line); transform: translateX(-50%); white-space: nowrap; }
.o3d-act-bar { background: var(--text); opacity: .7; }
.o3d-pop { padding: 10px 14px; border-radius: var(--r); background: var(--bg); box-shadow: var(--shadow-pop); font-size: 13.5px; transform: translateX(-50%); }
.meeting-stage { gap: 16px; }
.seat { align-items: center; padding: 10px 12px; border: 0; border-radius: var(--r); background: var(--surface-2); transition: background-color .4s var(--ease), color .4s; }
.seat.speaking { background: var(--invert); color: var(--invert-text); }
.turn { padding: 14px 0; border-bottom: 1px solid var(--line); animation: vx-bubble .5s var(--ease) both; }
.meetbar { align-items: center; padding: 10px 14px; border-radius: var(--r); background: var(--invert); color: var(--invert-text); }
.meetbar .btn { background: transparent; border-color: rgba(255, 255, 255, .3); color: inherit; }
.minutes { padding: 18px 0; border-top: 1px solid var(--line); }

/* ---------- Hire ---------- */
.hire-bar { padding: 14px 0; background: var(--bg); }
.hire-bar .input { height: 54px; border-radius: var(--r-lg); padding: 0 18px; font-size: 16px; }
.hire-depts { flex-wrap: wrap; }
.hire-grid { gap: 8px; }
.hire-card { padding: 20px; }
.hire-title { font-weight: 500; font-size: 16px; letter-spacing: -0.02em; }
.hire-dept { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.hire-card .btn { background: var(--invert); border-color: var(--invert); color: var(--invert-text); }
.hire-custom { padding: 26px; border-radius: var(--r-xl); background: var(--invert); color: var(--invert-text); }

/* ---------- Governance, mobile bridge ---------- */
.gv-row, .mb-row, .mb-row2 { padding: 18px 0; border-bottom: 1px solid var(--line); }
.gv-row:last-child, .mb-row:last-child { border-bottom: 0; }
.gv-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.mb-how { gap: 8px; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.mb-how > div { padding: 22px; border-radius: var(--r-lg); background: var(--surface-2); }
.mb-n { display: inline-grid; place-items: center; border-radius: 50%; background: var(--invert); color: var(--invert-text); font-family: var(--mono); font-size: 11px; }
.mb-chip-i { display: inline-grid; place-items: center; border-radius: 50%; }
.qr { display: grid; place-items: center; padding: 12px; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Files ---------- */
.fx-bar { align-items: center; }
.fx-crumbs { align-items: center; font-weight: 500; }
.fx-crumb { color: var(--text-3); }
.fx-crumb:last-child { color: var(--text); }
.fx-table { border-top: 1px solid var(--line); }
.fx-row { align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.fx-row:hover { background: var(--tint); }
.fx-headrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.fx-headrow:hover { background: transparent; }
.fx-ico { display: inline-grid; place-items: center; border: 0; border-radius: var(--r-sm); background: var(--surface-2); font-family: var(--mono); font-size: 9.5px; }
.fx-ico-folder { position: relative; border: 0; border-radius: 3px 6px 6px 6px; background: var(--invert); }
.fx-ico-folder::before { content: ""; position: absolute; border-radius: 3px 3px 0 0; background: var(--invert); }
.fx-tile { padding: 18px; cursor: pointer; }

/* ---------- Inbox ---------- */
.ibx-top { align-items: center; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.ibx-list { border-right: 1px solid var(--line); overflow-y: auto; }
.ibx-row { padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .25s; }
.ibx-row:hover { background: var(--tint); }
.x-mail.sel, .ibx-row.sel { background: var(--surface-2); }
.ibx-av { display: inline-grid; place-items: center; border-radius: 50%; background: var(--invert); color: var(--invert-text); font-weight: 500; }
.ibx-detail { overflow-y: auto; padding: 32px 40px; }
.ibx-chip, .ibx-st, .x-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: var(--r-xs); font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.ibx-filter { gap: 4px; }
.ibx-tab { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: color .3s, background-color .3s; }
.ibx-tab[aria-pressed="true"], .ibx-tab.on { color: var(--invert-text); background: var(--invert); }
.ibx-dot { border-radius: 50%; }
.ibx-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding-left: 10px; }
.ibx-box-main { padding-right: 6px; font-size: 13px; font-weight: 500; }
.ibx-box-x { height: 100%; color: var(--text-2); }
.ibx-box-x:hover { color: var(--text); }
.ibx-big { display: flex; justify-content: center; border-radius: var(--r-lg); background: var(--invert); color: var(--invert-text); font-weight: 500; }
.ibx-reply { padding: 20px; border: 0; border-radius: var(--r-lg); background: var(--surface-2); }

/* ---------- Archive, desktop, attachments, markdown ---------- */
.arc-row { align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .25s, padding .5s var(--ease); }
.arc-row:hover { background: var(--tint); padding-left: 12px; }
.arc-ico, .arc-you { display: inline-grid; place-items: center; border-radius: 50%; background: var(--invert); color: var(--invert-text); }
.arc-detail { padding: 26px; border: 0; border-radius: var(--r-xl); background: var(--surface-2); }
.dt-item { align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dt-live i { border-radius: 50%; background: var(--text); }
.att-card { align-items: center; padding: 12px; }
.att-name { text-align: left; }
.att-ext { display: inline-grid; place-items: center; border-radius: var(--r-sm); background: var(--invert); color: var(--invert-text); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; }
.md { line-height: 1.65; }
.md-h { font-weight: 500; letter-spacing: -0.02em; }
.md-q { padding-left: 14px; border-left: 2px solid var(--text); color: var(--text-2); }
.md-ul > li::before { content: ""; border-radius: 50%; background: currentColor; }
.md-table { border-collapse: collapse; font-size: 14px; }
.md-table th, .md-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.md-table th { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }

/* ---------- War room, replays, pipeline ---------- */
.x-war-hud { padding: 26px; border-radius: var(--r-xl); background: var(--invert); color: var(--invert-text); }
.x-war-kpis { gap: 1px; background: rgba(255, 255, 255, .15); border-radius: var(--r); overflow: hidden; }
:root[data-theme="dark"] .x-war-kpis { background: rgba(0, 0, 0, .15); }
.x-war-kpis > div { padding: 16px; background: var(--invert); }
.x-replay { border: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.x-scr-bar { align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
.x-scr-dots i { border-radius: 50%; background: var(--line-strong); }
.x-scr-url { display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-xs); background: var(--bg); font-family: var(--mono); font-size: 10.5px; }
.x-scr-lines i { border-radius: var(--pill); background: var(--surface-3); }
.x-board { gap: 8px; }
.x-col { padding: 14px; }
.x-deal { padding: 14px; border: 0; border-radius: var(--r); background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); transition: box-shadow .3s var(--ease), transform .5s var(--ease); }
.x-deal:hover { box-shadow: 0 0 0 1px var(--text); }
.x-score, .x-sev { display: inline-grid; place-items: center; padding: 0 8px; border-radius: var(--r-xs); background: var(--invert); color: var(--invert-text); font-family: var(--mono); font-size: 10.5px; }
.x-tile { padding: 18px; transition: background-color .4s var(--ease), color .4s; }
.x-tile.speaking { background: var(--invert); color: var(--invert-text); }

/* ---------- Sign in ---------- */
.x-otp-box { border: 1px solid transparent; border-radius: var(--r); background: var(--surface-2); text-align: center; font-size: 22px; font-weight: 500; transition: border-color .25s, background-color .25s; }
.x-otp-box:focus { outline: none; border-color: var(--text); background: var(--bg); }
.x-gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); font-weight: 500; cursor: pointer; transition: border-color .25s; }
.x-gbtn:hover { border-color: var(--text); }

/* ---------- Small shapes, integrations, pickers ---------- */
.x-ico { display: inline-block; border-radius: 50%; background: currentColor; }
.x-ico-dia { border-radius: 1px; transform: rotate(45deg) scale(.85); }
.x-ico-tri { border-radius: 0; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.x-int-grid { gap: 8px; }
.x-int-card { align-items: flex-start; padding: 18px; text-align: left; }
.x-int-card .mono { border-radius: var(--r-sm); font-size: 11px; }
.x-cu-cmd, .x-mp-item, .sel-row, .custom { width: 100%; padding: 12px 14px; border-radius: var(--r); text-align: left; transition: background-color .25s; }
.x-cu-cmd:hover, .x-mp-item:hover, .sel-row:hover { background: var(--surface-2); }
.x-mp-item.cur, .x-mp-item[aria-selected="true"], .sel-row.cur { background: var(--invert); color: var(--invert-text); }

/* ---------- Whiteboard ---------- */
.wb { background: var(--bg); }
.wb-bar { align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.wb-viewport { background-color: var(--surface-2); background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 22px 22px; }
.wb-item { padding: 12px; border: 0; border-radius: var(--r); background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.wb-note { background: #ebebeb; color: #000; }
.wb-text, .wb-cap { border: 0; background: transparent; resize: none; font: inherit; color: inherit; }
.wb-text:focus, .wb-cap:focus { outline: none; }
.wb-del { border: 0; border-radius: 50%; background: var(--surface-2); }
.wb-item:hover .wb-del, .wb-item:hover .wb-colors { opacity: 1; }
.wb-colors button { border: 0; border-radius: 50%; cursor: pointer; filter: grayscale(1); }
.wb-empty { font-size: 28px; line-height: 1.35; color: var(--text-2); text-align: center; align-items: center; }
.wb-empty > :first-child { font-size: 68px; font-weight: 500; letter-spacing: -0.05em; color: var(--text); }

/* ---------- Incoming call, heartbeat ---------- */
.vx-ring, .vx-hb { padding: 16px; border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--shadow-pop); animation: vx-pop .6s var(--ease); }
.vx-hb { align-items: center; padding: 10px 14px; border-radius: var(--r); }
.vx-hb-dot { border-radius: 50%; background: var(--text); }
.vx-ring-av i { border-radius: 50%; border: 2px solid var(--text); border-right-color: transparent; animation: vx-spin 1.2s linear infinite; }
@keyframes vx-spin { to { rotate: 360deg; } }
.vx-ring-btns button { border-radius: var(--r); font-weight: 500; cursor: pointer; }
.vx-ring-yes { background: var(--invert); color: var(--invert-text); }
.vx-ring-no { border: 1px solid var(--line-strong) !important; color: var(--text); }

/* ---------- Misc ---------- */
.perm-card { padding: 16px; }
.plan-list { margin: 0; padding: 0; list-style: none; }
.plan-list li { align-items: flex-start; }
.plan-list li::before { content: ""; flex: 0 0 auto; margin-top: .6em; border-radius: 50%; background: var(--text); }
.plan-current { background: var(--invert) !important; color: var(--invert-text) !important; }
.avatar-pick { border: 0; border-radius: 50%; cursor: pointer; transition: transform .4s var(--ease), box-shadow .3s; }
.avatar-pick:hover { transform: scale(1.06); }
.avatar-pick[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--text); }
.x-room-tpls { gap: 8px; }
.x-room-sw { border-radius: 50%; filter: grayscale(1); }
.trace li, .worklog li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.task { align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task-box { border-radius: 5px; border: 1.5px solid var(--line-strong); transition: background-color .3s, border-color .3s; }
.task.done .task-box { background: var(--invert); border-color: var(--invert); }
.rate-btn { border: 0; border-radius: var(--r-xs); background: transparent; cursor: pointer; }
.rate-btn:hover, .rate-btn.on { background: var(--surface-2); }
/* colour is not part of the language — anything the views colour inline turns grey */
.shell-content [style*="background:#"], .shell-content [style*="background: #"], .shell-content [style*="color:#"], .shell-content [style*="color: #"] { filter: grayscale(1); }

/* ---------- Phones: black tab bar at the bottom, sheets instead of dialogs ---------- */
@media (max-width: 900px) {
  .shell { display: block; }
  .shell-side {
    position: fixed; left: var(--inset); right: var(--inset); bottom: calc(var(--inset) + env(safe-area-inset-bottom)); top: auto; z-index: 60; height: auto; margin: 0;
    display: flex; flex-direction: row; align-items: stretch; gap: 0;
    padding: 4px; border-radius: var(--r-xl); background: var(--side);
  }
  .side-top, .ws-switch, .side-user, .nav-pill, .side-guest { display: none !important; }
  .shell-nav, .shell-foot, .shell-settings { display: contents; }
  .shell-settings .shell-link::before { display: none; }
  .shell-link { flex: 1 1 0; min-width: 0; height: 54px; padding: 0; flex-direction: column; justify-content: center; gap: 3px; font-size: 10px; font-weight: 500; color: var(--side-dim); background: transparent !important; border-radius: var(--r-lg); }
  .shell-link .shell-label { display: block !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .shell-ico svg { width: 21px; height: 21px; }
  .shell-link[aria-current="page"] { color: var(--side) !important; background: var(--side-text) !important; }
  .shell-link:active .shell-ico { transform: scale(.88); }
  .shell-top { position: sticky; top: 0; height: auto; min-height: 56px; padding: 0 16px; gap: 10px; }
  .shell-top .top-meta { display: flex !important; min-width: 0; flex: 1 1 auto; }
  #top-actions { display: flex; margin-left: auto; }
  #top-actions .tag { display: none; }
  .shell-top:has(#top-meta:empty) { justify-content: flex-end; }
  .shell-content { padding: 32px 16px calc(112px + env(safe-area-inset-bottom)); }
  .h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .toasts { left: 12px; right: 12px; top: 64px; bottom: auto; }
  html.route-space, body.route-space, body.route-space .shell-main { overflow: auto; }
  .space-full { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .overlay { place-items: end stretch; padding: 0; }
  .modal { max-width: none !important; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); animation: vx-sheet .6s var(--ease); }
  @keyframes vx-sheet { from { transform: translateY(100%); } }
  .goal-form { flex-wrap: wrap; row-gap: 8px !important; }
  .goal-form .input { flex: 1 1 100%; order: -1; }
  .goal-form > :not(.input) { flex: 1 1 140px; min-width: 0; }
  .ibx-detail { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* the 3D scene (and its name tags) stays below the controls */
.o3d { z-index: 1; }
.space-hud { z-index: 6; }

/* ---------- Your office: the side panel slides in only when a Dot or its desk is clicked ---------- */
.space-full { grid-template-columns: minmax(0, 1fr) !important; position: relative; }
.space-side2 {
  position: absolute; top: 12px; right: 12px; bottom: 12px; z-index: 8;
  width: min(980px, 64vw); border: 0; border-radius: var(--r-xl); background: var(--bg); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 100px -30px rgba(0, 0, 0, .45);
}
.space-side2.anim { animation: space-in .7s var(--ease) both; }
@keyframes space-in { from { opacity: 0; transform: translateX(48px); } }
.space-tabs { align-items: center; }
.space-close { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); font-size: 22px; line-height: 1; color: var(--text-2); transition: background-color .25s, color .25s; }
.space-close:hover { background: var(--surface-2); color: var(--text); }
.space-side2 .bubble { font-size: 15.5px; max-width: 78%; }
.space-side2 .phone-form .input { height: 50px; font-size: 16px; }
@media (max-width: 1000px) {
  .space-side2 { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 84vh; height: 84dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; z-index: 70; }
  .space-side2.anim { animation: space-up .6s var(--ease) both; }
  @keyframes space-up { from { transform: translateY(100%); } }
  .space-stage { height: calc(100vh - 140px) !important; height: calc(100dvh - 140px) !important; }
}
/* Dot avatars: the fluffy creature itself, no circle around it */
.avatar.avatar-dot { background: transparent; border-radius: 0; overflow: visible; }
.avatar.avatar-dot img { width: 118%; height: 118%; max-width: none; object-fit: contain; pointer-events: none; }
.space-dot .avatar-dot img { transition: transform .5s var(--ease); }
.space-dot:hover .avatar-dot img { transform: scale(1.08) rotate(-4deg); }

/* ---------- Your office: one compact dock at the bottom ---------- */
.space-dock {
  position: absolute; left: 50%; bottom: 20px; z-index: 7; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 14px;
  background: var(--bg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 14px 40px -12px rgba(0, 0, 0, .3);
  transition: left .6s var(--ease);
}
.space-full.panel-open .space-dock { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }
.space-dock { transition: opacity .4s var(--ease), transform .5s var(--ease); }
.dock-group { display: flex; align-items: center; gap: 2px; }
.dock-group + .dock-group { padding-left: 4px; margin-left: 2px; border-left: 1px solid var(--line); }
.dock-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--text); transition: background-color .2s, transform .3s var(--ease); }
.dock-btn:hover { background: var(--surface-2); }
.dock-btn:active { transform: scale(.92); }
.dock-btn::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 8px; border-radius: 6px; background: var(--invert); color: var(--invert-text);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease);
}
.dock-btn:hover::after, .dock-btn:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.dock-seg { padding: 2px; border-radius: 10px; background: var(--surface-2); gap: 0; }
.dock-seg-btn { height: 34px; padding: 0 12px; border-radius: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: var(--text-2); transition: background-color .3s var(--ease), color .3s; }
.dock-seg-btn[aria-pressed="true"] { background: var(--invert); color: var(--invert-text); }
.space-hint { display: none; }

/* ---------- Panel head: two slim lines, the chat gets the room ---------- */
.space-side2 .space-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.space-head { gap: 10px !important; padding: 16px 22px !important; border-bottom: 1px solid var(--line); }
.space-name { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.space-meta { gap: 6px 12px; align-items: center; margin-top: 4px; }
.space-meta .lv-badge { display: inline-flex; gap: 8px; padding: 0; border: 0; }
.space-meta .lv-bar { width: 80px; height: 3px; }
.space-meta .vw-select-trigger, .space-meta select { height: 30px; font-size: 13px; }
.space-body > [data-live="spaceHead"] { flex: 0 0 auto; max-height: 38%; }
.space-side2 .space-chat { flex: 1 1 auto; min-height: 0; }
.space-side2 .phone-body { padding: 24px 28px; gap: 12px; }
.space-side2 .phone-form { padding: 14px 18px; }
@media (max-width: 1000px) { .space-dock { bottom: calc(86px + env(safe-area-inset-bottom)); } .space-full.panel-open .space-dock { left: 50%; } }

/* ---------- Icons ---------- */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 1.1em; height: 1.1em; vertical-align: -0.18em; line-height: 0; }
.ico .ico-svg { width: 100%; height: 100%; }
.ico-dot { width: .7em; height: .7em; vertical-align: 0; }
.btn .ico, .tab .ico, .space-tab .ico { width: 16px; height: 16px; }
.rate-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; color: var(--text-3); transition: color .2s, background-color .2s; }
.rate-btn:hover, .rate-btn.on { color: var(--text); }
.rate-btn .ico { width: 16px; height: 16px; }

/* ---------- Notification bell ---------- */
.bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--text); transition: background-color .2s; }
.bell:hover, .bell[aria-expanded="true"] { background: var(--surface-2); }
.bell-n { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--invert); color: var(--invert-text); font: 600 10px/17px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.bell-n[hidden] { display: none; }
.bell-pop {
  position: fixed; z-index: 200; width: min(420px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 90px)); overflow-y: auto;
  padding: 8px; border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--shadow-pop); animation: vx-pop .45s var(--ease);
}
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; }
.bell-all { font-size: 12.5px; color: var(--text-2); }
.bell-all:hover { color: var(--text); }
.bell-sec { padding: 12px 12px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.bell-item { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r); text-align: left; transition: background-color .2s; }
button.bell-item:hover { background: var(--surface-2); }
.bell-item.new::after { content: ""; position: absolute; right: 12px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.bell-q { background: var(--surface-2); margin-bottom: 4px; }
.bell-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.bell-open { text-align: left; font-size: 14px; }
.bell-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-right: 14px; font-size: 14px; }
.bell-time { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.bell-text { display: block; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.bell-btns { display: flex; gap: 6px; margin-top: 6px; }
.bell-empty { margin: 0; padding: 18px 12px 22px; font-size: 14px; color: var(--text-2); }
/* the composer buttons draw their own icon; hide the text glyph (now an icon too) */
.phone-form > .btn .ico, .phone-form > label.btn .ico { display: none; }
/* time sits under the text, never on top of it */
.bubble { padding-bottom: 20px; }
.bubble .time { right: 12px; bottom: 5px; }
.bubble.system, .bubble.sys { padding-bottom: 10px; }
.mood-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--surface-2); font-size: 12px; color: var(--text-2); }
.mood-tag::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--text-3); }
.mood-happy::before { background: #2bb35f; } .mood-focused::before { background: #2e8bf0; } .mood-curious::before { background: #f6c21c; } .mood-bored::before, .mood-tired::before { background: #ef4438; }
.bell-reply { margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--text); }

/* ---------- Settings → Skills ---------- */
.sk-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 24px; cursor: pointer; }
.sk-drop-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); color: var(--text); }
.sk-paste summary { cursor: pointer; color: var(--text-2); }
.sk-starters { gap: 8px; }
.sk-starter { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; }
.sk-starter .btn { margin-top: auto; }
.sk-list { padding: 0 28px 20px; gap: 0; }
.sk-row { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sk-row:last-child { border-bottom: 0; }
.sk-name { font-size: 16px; font-weight: 500; }
.sk-view summary { cursor: pointer; color: var(--text-2); }
.sk-pre { max-height: 260px; margin: 10px 0 0; white-space: pre-wrap; font-size: 12.5px; }
.sk-dev-head { padding: 4px 0 10px; }
.sk-dev-head .btn .ico-svg { margin-right: 2px; }
/* live Dot talk: a small card bottom right, never over the sidebar or the top bar */
.vx-hb { top: 76px !important; left: auto !important; right: 20px; bottom: auto; width: 340px; }
@media (max-width: 900px) { .vx-hb { right: 12px; left: 12px !important; width: auto; } }
/* workspace switcher: stays dark and readable while its menu is open */
.ws-switch .vw-select.is-open .vw-select-trigger, .ws-switch .vw-select-trigger:hover { background-color: rgba(255, 255, 255, .16) !important; border-color: transparent !important; color: var(--side-text) !important; }
:root[data-theme="dark"] .ws-switch .vw-select.is-open .vw-select-trigger { background-color: rgba(0, 0, 0, .08) !important; }
.ai-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--tint); }

/* ---------- Notices: top right, a light card that slides in from the right ---------- */
.toasts { top: 76px; bottom: auto; right: 20px; width: 340px; max-width: calc(100vw - 24px); align-items: stretch; }
.toast {
  position: relative; min-width: 0; padding: 13px 16px 13px 44px; border-radius: 14px;
  background: var(--bg); color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.4;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 18px 50px -16px rgba(0, 0, 0, .3);
  animation: vx-toast-in .55s var(--ease) both;
}
.toast::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--invert);
  -webkit-mask: none;
}
.toast::after {
  content: ""; position: absolute; left: 20px; top: 50%; width: 8px; height: 4px; margin-top: -3px; border-left: 1.8px solid var(--invert-text); border-bottom: 1.8px solid var(--invert-text); transform: rotate(-45deg);
}
@keyframes vx-toast-in { from { opacity: 0; transform: translateX(24px); } }

/* ---------- Look picker ---------- */
.lk { display: flex; flex-direction: column; gap: 10px; }
.lk-stage { position: relative; height: 190px; display: grid; place-items: center; margin: -8px 0 4px; border-radius: var(--r-xl); background: var(--surface-2); overflow: hidden; }
.lk-dot { position: relative; z-index: 1; width: 170px; height: 170px; animation: lk-idle 2.6s ease-in-out infinite; }
.lk-shadow { position: absolute; bottom: 26px; left: 50%; width: 90px; height: 14px; margin-left: -45px; border-radius: 50%; background: rgba(0, 0, 0, .14); filter: blur(4px); animation: lk-shadow 2.6s ease-in-out infinite; }
@keyframes lk-idle { 50% { transform: translateY(-8px) scale(1.02, .98); } }
@keyframes lk-shadow { 50% { transform: scale(.85); opacity: .7; } }
.lk-dot.pop { animation: lk-pop .5s var(--ease); }
@keyframes lk-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } }
.lk-dot.party { animation: lk-party 1.2s var(--ease) both; }
@keyframes lk-party { 0% { transform: translateY(0) rotate(0) scale(1); } 30% { transform: translateY(-48px) rotate(360deg) scale(1.05, .95); } 55% { transform: translateY(0) rotate(540deg) scale(1.12, .86); } 75% { transform: translateY(-22px) rotate(720deg) scale(.96, 1.06); } 100% { transform: translateY(0) rotate(720deg) scale(1); } }
.lk-title { text-align: center; }
.lk-sub { margin: -4px 0 8px; text-align: center; }
.lk .eyebrow { margin-top: 8px; }
.lk-shapes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.lk-shape { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); transition: background-color .25s, box-shadow .25s, transform .3s var(--ease); }
.lk-shape img { width: 82%; height: 82%; }
.lk-shape:hover { transform: translateY(-2px); }
.lk-shape[aria-pressed="true"] { background: var(--bg); box-shadow: inset 0 0 0 2px var(--text); }
.lk-colors { display: flex; gap: 10px; }
.lk-color { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px transparent; transition: box-shadow .25s, transform .3s var(--ease); }
.lk-color:hover { transform: scale(1.08); }
.lk-color[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }

/* ---------- The Dot flies up and perches on its chat panel ---------- */
.space-side2 { overflow: visible !important; }
.space-side2 > .space-tabs { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.space-side2 > .space-body { border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
.space-perch { position: absolute; top: -30px; left: 26px; z-index: 3; width: 78px; height: 78px; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18)); animation: perch-idle 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.space-perch-name { position: absolute; top: 22px; left: 120px; z-index: 3; padding: 2px 8px; border-radius: 6px; background: var(--invert); color: var(--invert-text); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; opacity: 0; animation: perch-tag .4s var(--ease) 1s forwards; }
.space-tabs { padding-left: 112px !important; }
@keyframes perch-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes perch-tag { to { opacity: 1; } }
.space-side2.anim .space-perch { animation: perch-fly 1.15s cubic-bezier(.2, .9, .25, 1.25) both, perch-idle 3.2s ease-in-out 1.15s infinite; }
@keyframes perch-fly {
  0% { opacity: 0; transform: translate(-460px, 360px) scale(.25) rotate(-40deg); }
  45% { opacity: 1; transform: translate(-150px, -90px) scale(.8) rotate(20deg); }
  75% { transform: translate(0, 6px) scale(1.12, .86) rotate(0); }
  100% { transform: translate(0, 0) scale(1) rotate(0); }
}

/* ---------- Preview pane on the right of the chat ---------- */
.space-side2.with-preview { width: min(1560px, calc(100% - 24px)); }
.space-side2.with-preview > .space-tabs, .space-side2.with-preview > .space-body { margin-right: 54%; border-right: 1px solid var(--line); }
.space-side2.with-preview > .space-tabs { border-radius: var(--r-xl) 0 0 0; }
.space-side2.with-preview > .space-body { border-radius: 0 0 0 var(--r-xl); }
.space-preview { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; display: flex; flex-direction: column; border-radius: 0 var(--r-xl) var(--r-xl) 0; background: var(--surface-2); overflow: hidden; animation: pv-in .55s var(--ease) both; }
@keyframes pv-in { from { opacity: 0; transform: translateX(28px); } }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pv-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; }
.pv-doc { max-width: 760px; margin: 22px auto; padding: 34px 40px; border-radius: 14px; background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); font-size: 15px; line-height: 1.65; }
.pv-doc pre { white-space: pre-wrap; background: transparent; padding: 0; }
.pv-frame { width: 100%; height: calc(100% - 30px); border: 0; background: #fff; }
.pv-note { margin: 0; padding: 6px 14px; }
.pv-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 260px; padding: 24px; text-align: center; color: var(--text-2); }
.pv-modal { max-height: 70vh; overflow: auto; }
@media (max-width: 1000px) {
  .space-side2.with-preview > .space-tabs, .space-side2.with-preview > .space-body { margin-right: 0; }
  .space-preview { width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; z-index: 5; }
  .space-perch { top: -48px; width: 70px; height: 70px; }
}

/* ---------- Simple settings: budget, permissions, roles, messenger ---------- */
.money-in { position: relative; display: flex; align-items: center; }
.money-in .input { padding-right: 104px; }
.money-in span { position: absolute; right: 14px; font-size: 13px; color: var(--text-3); pointer-events: none; }

.gv-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto !important; align-items: center; gap: 16px !important; padding: 14px 28px !important; }
.gv-who { align-self: center !important; }
.gv-toggle { font-size: 13px; color: var(--text-2); padding: 6px 10px; border-radius: var(--r-sm); text-decoration: underline; text-underline-offset: 3px; }
.gv-toggle:hover { color: var(--text); }
.gv-more { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; padding: 6px 0 4px 48px; animation: gv-in .3s var(--ease); }
@keyframes gv-in { from { opacity: 0; transform: translateY(-4px); } }
.gv-set { display: flex !important; flex-direction: column; gap: 8px !important; }
.gv-k { font-family: inherit !important; font-size: 12px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--text-3); }
.gv-chip { font-family: inherit !important; font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important; height: 32px; padding: 0 14px; border-radius: 999px !important; background: var(--bg); border: 1px solid var(--line) !important; color: var(--text-2); }
.gv-chip.on { background: var(--text) !important; border-color: var(--text) !important; color: var(--bg) !important; }
.gv-chips { gap: 6px !important; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg button { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); transition: background-color .2s, color .2s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 500; }
.seg button:disabled { cursor: default; }
@media (max-width: 700px) {
  .gv-row { grid-template-columns: 1fr auto !important; padding: 14px 16px !important; }
  .gv-row .seg { grid-column: 1 / -1; order: 3; justify-self: start; }
  .gv-more { padding-left: 0; }
}

.role-list { display: flex; flex-direction: column; padding: 4px 28px 16px; }
.role-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.role-row:last-child { border-bottom: 0; }
@media (max-width: 600px) { .role-list { padding: 4px 16px 12px; } .role-row { grid-template-columns: 1fr; gap: 2px; } }

.mb-signin { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--r-lg); background: var(--surface-2); font-size: 14px; }
.mb-pick2 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
.mb-chan { padding: 14px 16px !important; border-radius: var(--r-lg) !important; }
.mb-chan .faint.xs { display: none; }
.mb-chan .mb-chip-i { background: var(--bg); width: 34px !important; height: 34px !important; font-size: 15px; }
.mb-dots { display: flex; align-items: center; gap: 14px; padding: 4px 28px 24px; flex-wrap: wrap; }
.mb-dotstack { display: flex; }
.mb-dotx { margin-left: -8px; border-radius: 50%; background: var(--bg); padding: 2px; opacity: .55; transition: opacity .3s; }
.mb-dotx:first-child { margin-left: 0; }
.mb-dotx.ok { opacity: 1; }
.mb-adv { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 18px; }
.mb-adv > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mb-adv > summary::-webkit-details-marker { display: none; }
.mb-adv > summary b::after { content: " ›"; display: inline-block; transition: transform .2s; color: var(--text-3); }
.mb-adv[open] > summary b::after { transform: rotate(90deg); }
.mb-adv-body { padding: 18px 0 8px; }
@media (max-width: 960px) { .mb-dots { padding-left: 16px; padding-right: 16px; } }

/* live hint + bell "happening now" */
.vx-hb { animation: hb-in .45s var(--ease), hb-out .4s var(--ease) 5.6s forwards; }
@keyframes hb-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes hb-out { to { opacity: 0; transform: translateX(24px); } }
.bell-pulse { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #2bb35f; vertical-align: middle; animation: bell-pl 1.4s ease-in-out infinite; }
@keyframes bell-pl { 50% { opacity: .3; } }
.bell.is-live::before { content: ""; position: absolute; left: 7px; bottom: 7px; width: 7px; height: 7px; border-radius: 50%; background: #2bb35f; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Calmer chat panel ---------- */
.space-tab { font-family: inherit !important; font-size: 13.5px !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 500; height: 34px; padding: 0 14px; border-radius: 999px; }
.space-tab .ico { display: none; }
.space-tab[aria-selected="true"] { background: var(--surface-2) !important; color: var(--text) !important; }
.tab-live { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #2bb35f; vertical-align: middle; }
.space-head { padding: 18px 24px 14px !important; }
.space-name { font-size: 20px !important; font-weight: 600 !important; letter-spacing: -.01em; }
.space-sub { font-size: 13px; color: var(--text-3); }
.sh-dot { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--text-3); vertical-align: middle; }
.sh-dot.st-working, .sh-dot.st-thinking { background: #2e8bf0; }
.sh-dot.st-idle { background: #2bb35f; }
.sh-dot.st-break { background: #f6c21c; }
.sh-dot.st-meeting { background: #ef4438; }
button.space-perch { padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto !important; }
button.space-perch img { width: 100%; height: 100%; display: block; transition: transform .35s var(--ease); }
button.space-perch:hover img { transform: scale(1.08) rotate(-4deg); }

/* ---------- Name tags in the office: just the name, small and clean ---------- */
.o3d-name { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px !important; border-radius: 999px !important; background: rgba(255, 255, 255, .96) !important; color: #111 !important; font-family: inherit !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 12px -4px rgba(0, 0, 0, .25); }
.o3d-name i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.o3d-tag.sel .o3d-name { background: #111 !important; color: #fff !important; }
.o3d-tag.dim .o3d-name { opacity: .7; }
.o3d-bubble { font-size: 12px !important; border-radius: 12px !important; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 10px 24px -10px rgba(0, 0, 0, .3) !important; }
.o3d-act { border-radius: 999px !important; font-size: 11.5px !important; }

/* ---------- Notices: a small card with mark, title and a timer line ---------- */
.toast { display: flex !important; align-items: flex-start; gap: 12px; padding: 14px 16px 16px !important; overflow: hidden; border-radius: 16px !important; }
.toast::before, .toast::after { display: none !important; }
.toast-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#f6c21c 0 25%, #2e8bf0 0 50%, #ef4438 0 75%, #2bb35f 0); position: relative; animation: toast-spin .9s cubic-bezier(.2, .9, .3, 1.3); }
.toast-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.toast-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 3px; font-size: 13.5px; font-weight: 400; line-height: 1.45; color: var(--text-2); }
.toast-txt b { font-weight: 600; color: var(--text); }
.toast-txt span:only-child { color: var(--text); font-weight: 500; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--text); opacity: .12; transform-origin: left; animation: toast-bar 4.2s linear forwards; }
.toast.out { animation: toast-out .38s var(--ease) forwards !important; }
@keyframes toast-bar { to { transform: scaleX(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes toast-spin { from { transform: rotate(-180deg) scale(.4); opacity: 0; } }

/* ---------- Clurno app card (Settings → Phone) ---------- */
.ap-card { display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: center; padding: 28px; margin-bottom: 28px; border-radius: 24px; background: var(--surface-2); }
.ap-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ap-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.ap-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ap-step { display: flex; gap: 14px; align-items: flex-start; }
.ap-step .btn { align-self: flex-start; }
.ap-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 12.5px; font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.ap-step.done .ap-n { background: #2bb35f; box-shadow: none; position: relative; }
.ap-step.done .ap-n::after { content: ""; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.ap-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ap-phone { width: 170px; height: 300px; padding: 8px; border-radius: 30px; background: #000; box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); transform: rotate(4deg); }
.ap-screen { height: 100%; border-radius: 23px; background: #fff; padding: 34px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.ap-row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid #f1f1f1; font-size: 12px; color: #111; }
@media (max-width: 760px) { .ap-card { grid-template-columns: 1fr; padding: 22px; } .ap-side { display: none; } }

/* save state: one quiet dot next to the bell (hidden when working only on this device) */
.sync-dot { position: relative; width: 22px; height: 22px; display: inline-grid; place-items: center; cursor: default; }
.sync-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); opacity: .5; transition: background-color .3s, opacity .3s; }
.sync-dot.is-synced::before { background: #2bb35f; opacity: .9; }
.sync-dot.is-syncing::before, .sync-dot.is-connecting::before { background: var(--text-3); animation: sync-pl 1s ease-in-out infinite; }
.sync-dot.is-offline::before { background: #f6c21c; opacity: 1; }
.sync-dot.flash::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #2bb35f; animation: sync-ring .9s var(--ease) forwards; }
@keyframes sync-pl { 50% { opacity: .2; } }
@keyframes sync-ring { to { transform: scale(3.2); opacity: 0; } }

/* official Clurno wordmark */
.logo-word { height: 20px; width: auto; display: block; }
.shell-logo .logo-word { height: 19px; }
.logo .logo-word { filter: none; }
:root[data-theme="dark"] .logo:not(.shell-logo) .logo-word { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo:not(.shell-logo) .logo-word { filter: invert(1); } }
.shell-logo .logo-only { display: none; width: 24px; height: auto; }
html.side-min .shell-logo .logo-word { display: none; }
html.side-min .shell-logo .logo-only { display: block; }
@media (max-width: 900px) { .shell-side .shell-logo .logo-word { display: none; } .shell-side .shell-logo .logo-only { display: block; } }
/* dark theme has a white sidebar: the white logo turns black */
:root[data-theme="dark"] .shell-logo img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shell-logo img { filter: invert(1); } }
.shell-logo .logo-word { height: 32px !important; margin-left: -4px; }
.logo .logo-word { height: 30px; }
