/* ═══════════════════════════════════════════════════════════════════════════
   XIII · CAD HUB PRO — T5 Dual-Tone Pro (Carbon Studio × Cobalt × Copper)
   Obsidian 92% · Precision Cobalt 6% · Machined Copper 2% · AXON Electric Cyan
   Zero Yellow Chrome · Zero Purple · 100% Human Typography
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-ground: #07090E;
  --bg-surface: #0E121D;
  --bg-elevated: #141A27;
  --border-subtle: rgba(226, 232, 240, 0.10);
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --cad-cobalt: #3B6BFF;
  --cad-cobalt-hi: #60A5FA;
  --cad-cobalt-soft: rgba(59, 107, 255, 0.14);
  --cad-copper: #F07430;
  --cad-copper-deep: #E86F2C;
  --cad-copper-hi: #FF9D66;
  --cad-copper-soft: rgba(240, 116, 48, 0.15);
  --axon-cyan: #22D3EE;

  --bg: #0B0F17;
  --bg-elev: #0E121D;
  --surface: #111724;
  --surface-2: #171E2E;
  --surface-3: #1E273B;
  --hq-grey: #545454;
  --border: rgba(226, 232, 240, 0.10);
  --border-strong: rgba(226, 232, 240, 0.16);
  --rim-top: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --text: #F8FAFC;
  --silver: #E2E8F0;
  --muted: #94A3B8;
  --accent: #3B6BFF;
  --accent-hover: #60A5FA;
  --accent-bg: rgba(59, 107, 255, 0.14);
  --pack-accent: #60A5FA;
  --pack-rgb: 59, 107, 255;
  --navy: #1A2742;
  --navy-bright: #24365C;
  --ok: #10B981;
  --warn: #F07430;
  --err: #EF4444;
  --font-head: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.62);
  --shadow-card: 0 14px 32px rgba(0, 0, 0, 0.48);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background:
    radial-gradient(1200px 560px at 50% -10%, rgba(59, 107, 255, 0.14), transparent 72%),
    radial-gradient(760px 360px at 88% 12%, rgba(96, 165, 250, 0.06), transparent 68%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.tabnum {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Custom thin dark scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2A3447;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3B4963;
}

/* ── LOCK SCREEN ─────────────────────────────────────────────────────────── */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(820px 440px at 50% 18%, rgba(37, 53, 80, 0.34), transparent 70%),
    radial-gradient(640px 320px at 80% 80%, rgba(56, 189, 248, 0.08), transparent 70%),
    var(--bg);
}
.lock-screen.hidden {
  display: none;
}
.lock-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #151A25 0%, #10141D 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 34px 30px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.lock-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.lock-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.lock-subhead {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--silver);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.lock-card p {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.google-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #3B4A63;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.google-btn:hover {
  background: var(--navy-bright);
  border-color: var(--accent);
}
.g-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F8FAFC;
  color: #0B0D12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.lock-foot {
  margin-top: 16px;
  font-size: 11px;
  color: #7D8DA6;
}
.lock-err {
  margin-top: 12px;
  font-size: 12px;
  color: #FCA5A5;
  min-height: 16px;
}

/* ── BRAND CHIP & SHARED PILLS ───────────────────────────────────────────── */
.pro-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.38);
  background: rgba(226, 232, 240, 0.10);
  color: #E2E8F0;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.pro-chip[data-tier="founder"],
.pro-chip[data-tier="admin"] {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
}
.pro-chip[data-tier="free"] {
  border-color: rgba(226, 232, 240, 0.45);
  background: rgba(226, 232, 240, 0.10);
  color: #E2E8F0;
}
.pro-chip[data-tier="maker"] {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(34, 211, 238, 0.14);
  color: #22D3EE;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.22);
}
.pro-chip[data-tier="pro"] {
  border-color: rgba(59, 107, 255, 0.75);
  background: rgba(59, 107, 255, 0.18);
  color: #93C5FD;
  box-shadow: 0 0 10px rgba(59, 107, 255, 0.28);
}
.pro-chip[data-tier="trade"] {
  border-color: rgba(240, 116, 48, 0.75);
  background: rgba(240, 116, 48, 0.18);
  color: #FB923C;
  box-shadow: 0 0 10px rgba(240, 116, 48, 0.26);
}
.pro-chip[data-tier="edu"] {
  border-color: rgba(16, 185, 129, 0.70);
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.24);
}
.pro-chip[data-tier="family"] {
  border-color: rgba(168, 85, 247, 0.70);
  background: rgba(168, 85, 247, 0.16);
  color: #C084FC;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.24);
}
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.14);
  color: var(--silver);
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── TOP HEADER ──────────────────────────────────────────────────────────── */
.top-header {
  height: 60px;
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), var(--rim-top);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 120;
}

.header-left-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hub-rail-toggle {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.hub-rail-toggle:hover {
  border-color: var(--cad-cobalt-hi);
  color: #FFFFFF;
}
body[data-active-tab="studio"] .hub-rail-toggle,
body[data-active-tab="calculators"] .hub-rail-toggle,
body[data-active-tab="jobs"] .hub-rail-toggle,
body[data-active-tab="hardware"] .hub-rail-toggle,
body[data-active-tab="rules"] .hub-rail-toggle,
body[data-active-tab="devlog"] .hub-rail-toggle {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  border: none;
  padding: 4px 8px 4px 0;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 34px;
  width: 34px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.72));
}
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', var(--font-head), sans-serif;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-transform: none;
  white-space: nowrap;
}
.brand-wordmark .bw-cadzap {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  text-transform: none;
}
.brand-wordmark .bw-xiii {
  font-weight: 800;
  color: #FFFFFF;
}
.brand-wordmark .bw-dot {
  font-weight: 900;
  color: var(--cad-copper);
}
.brand-wordmark .bw-hub {
  font-weight: 700;
  color: #CBD5E1;
  letter-spacing: 0.06em;
}
.brand-div {
  width: 1px;
  height: 16px;
  background: rgba(226, 232, 240, 0.2);
}

.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(7, 9, 14, 0.72);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.tab-btn.active {
  background: rgba(59, 107, 255, 0.18);
  border-color: rgba(96, 165, 250, 0.48);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.tab-btn.active .count-pill {
  background: rgba(59, 107, 255, 0.26);
  border-color: rgba(96, 165, 250, 0.52);
  color: #E0EAFF;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--silver);
  white-space: nowrap;
}
.status-pill.ok {
  border-color: rgba(34, 197, 94, 0.35);
  color: #BBF7D0;
}
.status-pill.warn {
  border-color: rgba(240, 116, 48, 0.48);
  color: var(--cad-copper-hi);
}

/* Account Button + Drawer */
.account-wrap {
  position: relative;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.account-btn:hover {
  border-color: var(--accent);
  background: var(--surface-3);
}
.acct-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #E0F2FE;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
}
.acct-avatar.lg {
  width: 38px;
  height: 38px;
  font-size: 15px;
  flex-shrink: 0;
}
.acct-btn-text {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-caret {
  font-size: 10px;
  color: var(--muted);
}

.account-drawer {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 310px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  z-index: 300;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.account-drawer.open {
  display: flex;
}
.acct-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}
.acct-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acct-identity strong {
  font-family: var(--font-head);
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-identity small {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-bg);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #BAE6FD;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.acct-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acct-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.acct-select {
  width: 100%;
  font-size: 12px;
}
.acct-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.acct-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--silver);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.acct-details summary::after {
  content: '▾';
  font-size: 10px;
  color: var(--muted);
}
.acct-details[open] summary::after {
  content: '▴';
}
.acct-help-copy {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.acct-foot {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── BUTTONS & INPUTS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--silver);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.btn:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: #495975;
  color: var(--text);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.subtle {
  background: #141924;
  border-color: var(--border);
  color: var(--silver);
}
.btn.subtle:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.btn.primary {
  background: var(--navy);
  border-color: #3E5985;
  color: var(--text);
}
.btn.primary:hover:not(:disabled) {
  background: var(--navy-bright);
  border-color: var(--accent);
}
.btn.accent-cyan {
  background: linear-gradient(180deg, var(--cad-copper) 0%, var(--cad-copper-deep) 100%);
  border-color: var(--cad-copper-hi);
  color: #07090E;
  font-weight: 800;
  box-shadow: 0 3px 14px rgba(240, 116, 48, 0.34);
}
.btn.accent-cyan:hover:not(:disabled) {
  background: linear-gradient(180deg, #F68646 0%, var(--cad-copper) 100%);
  border-color: #FFB68C;
  color: #07090E;
  box-shadow: 0 4px 18px rgba(240, 116, 48, 0.48);
}
.btn.accent-subtle {
  background: var(--cad-cobalt-soft);
  border-color: rgba(59, 107, 255, 0.42);
  color: #DCE8FF;
}
.btn.accent-subtle:hover:not(:disabled) {
  background: rgba(59, 107, 255, 0.24);
  border-color: var(--cad-cobalt-hi);
}
.btn.danger-outline {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}
.btn.danger-outline:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--err);
}
.btn.danger-outline.confirm-armed {
  background: rgba(239, 68, 68, 0.24);
  border-color: var(--err);
  color: #FFFFFF;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--silver);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.mini-btn:hover {
  background: var(--surface-3);
  border-color: var(--accent);
  color: var(--text);
}
.mini-btn.active {
  background: var(--navy);
  border-color: var(--accent);
  color: #E0F2FE;
}

.select-box,
.search-input,
.text-input-box {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  padding: 6px 9px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.14s ease;
}
.select-box:focus,
.search-input:focus,
.text-input-box:focus {
  border-color: var(--accent);
}
.search-input {
  flex: 1;
  min-width: 180px;
}

/* ── VIEW PANES ──────────────────────────────────────────────────────────── */
.view-pane {
  display: none;
  height: calc(100vh - 56px);
  width: 100%;
  overflow: hidden;
}
.view-pane.active {
  display: block;
}

/* ── HUB / PACKS HOME (MULTI-LAYERED ARCHITECTURAL SHELL) ────────────────── */
.hub-scroll,
.lib-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 24px 56px;
}

.hub-deck-header {
  max-width: 1460px;
  margin: 0 auto 16px;
  padding: 16px 20px 14px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(640px 220px at 0% 0%, rgba(56, 189, 248, 0.13), transparent 72%),
    radial-gradient(520px 200px at 100% 0%, rgba(16, 185, 129, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(20, 26, 40, 0.94) 0%, rgba(13, 17, 27, 0.96) 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card), var(--rim-top);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.hub-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hub-summary-left {
  min-width: 0;
  flex: 1;
}
.hub-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.hub-summary-left h2 {
  margin: 0 0 3px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hub-summary-left p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.tier-status-card {
  background: rgba(7, 9, 14, 0.62);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 9px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tier-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tier-status-card strong {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.tier-count-summary {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--silver);
}
.tier-caps-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.tier-cap-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--silver);
  white-space: nowrap;
}

/* ── HUB COMMAND BAR (INTEGRATED INSIDE DECK HEADER) ────────────────────── */
.hub-command-bar {
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hub-cat-seg {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(7, 9, 14, 0.75);
  border: 1px solid var(--border);
}
.hub-seg-btn {
  padding: 5.5px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.hub-seg-btn:hover {
  color: var(--text);
}
.hub-seg-btn.active {
  background: linear-gradient(180deg, rgba(42, 64, 99, 0.95) 0%, rgba(25, 38, 60, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.45);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.hub-search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}
.hub-search-ico {
  position: absolute;
  left: 11px;
  color: var(--muted);
  pointer-events: none;
}
.hub-search-input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 9, 14, 0.78);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hub-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.hub-expand-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hub-fold-btn {
  padding: 6px 11px;
  font-family: var(--font-head);
  font-size: 11.5px;
  border-radius: 8px;
}

/* ── HORIZONTAL QUICK-JUMP COLOUR PILLS ──────────────────────────────────── */
.hub-quick-jump {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-top: 2px;
  scrollbar-width: none;
}
.hub-quick-jump::-webkit-scrollbar {
  display: none;
}
.pack-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5.5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(var(--pack-rgb), 0.34);
  background: linear-gradient(180deg, rgba(var(--pack-rgb), 0.14) 0%, rgba(15, 20, 31, 0.9) 100%);
  color: var(--silver);
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.pack-jump-pill:hover {
  transform: translateY(-1px);
  border-color: var(--pack-accent);
  color: #FFFFFF;
}
.pack-jump-pill.is-open {
  border-color: rgba(var(--pack-rgb), 0.68);
  box-shadow: 0 3px 12px rgba(var(--pack-rgb), 0.18);
  color: #FFFFFF;
}
.pjp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pack-accent);
  box-shadow: 0 0 8px var(--pack-accent);
  flex-shrink: 0;
}
.pjp-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(var(--pack-rgb), 0.24);
  color: var(--text);
}

/* ── COLLAPSIBLE MULTI-COLOUR PACK ACCORDIONS ────────────────────────────── */
.packs-stack {
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pack-card {
  position: relative;
  background:
    radial-gradient(580px 210px at 0% 0%, rgba(var(--pack-rgb), 0.14), transparent 72%),
    linear-gradient(180deg, rgba(20, 26, 39, 0.95) 0%, rgba(13, 17, 27, 0.97) 100%);
  border: 1px solid rgba(var(--pack-rgb), 0.3);
  border-left: 4px solid var(--pack-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--rim-top);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pack-card:hover {
  border-color: rgba(var(--pack-rgb), 0.52);
}
.pack-card:not([open]) {
  background:
    radial-gradient(460px 130px at 0% 50%, rgba(var(--pack-rgb), 0.14), transparent 75%),
    linear-gradient(180deg, rgba(18, 24, 36, 0.94) 0%, rgba(13, 17, 26, 0.96) 100%);
}
.pack-head {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pack-head::-webkit-details-marker {
  display: none;
}
.pack-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.pack-icon-pod {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(var(--pack-rgb), 0.24) 0%, rgba(var(--pack-rgb), 0.08) 100%);
  border: 1px solid rgba(var(--pack-rgb), 0.48);
  box-shadow: 0 4px 16px rgba(var(--pack-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--pack-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pack-icon-pod svg {
  width: 22px;
  height: 22px;
}
.pack-title-block {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pack-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 1px;
}
.pack-code-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1.5px 7px;
  border-radius: 5px;
  background: rgba(var(--pack-rgb), 0.18);
  border: 1px solid rgba(var(--pack-rgb), 0.44);
  color: var(--pack-accent);
}
.pack-count-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1.5px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--silver);
}
.pack-badge {
  padding: 1.5px 8px;
  border-radius: 99px;
  background: rgba(7, 9, 14, 0.55);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pack-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.pack-sub {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.38;
}
.pack-collapsed-preview {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.pack-card[open] .pack-collapsed-preview {
  display: none;
}
.pack-mini-preview-pill {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(var(--pack-rgb), 0.12);
  border: 1px solid rgba(var(--pack-rgb), 0.28);
  color: var(--silver);
}
.pack-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pack-fold-hint {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.pack-card[open] .pack-fold-hint::before {
  content: attr(data-open-txt);
}
.pack-card:not([open]) .pack-fold-hint::before {
  content: attr(data-closed-txt);
  color: var(--pack-accent);
}
.pack-chevron {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(var(--pack-rgb), 0.12);
  border: 1px solid rgba(var(--pack-rgb), 0.34);
  color: var(--pack-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.16s ease;
}
.pack-card[open] .pack-chevron {
  transform: rotate(180deg);
}
.pack-body {
  padding: 2px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── LAYERED 3-TIER STUDIO CARDS WITH CAD BLUEPRINT BANNERS ──────────────── */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 13px;
  padding-top: 14px;
}
.studio-card {
  position: relative;
  min-width: 0;
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(var(--pack-rgb), 0.11), transparent 72%),
    linear-gradient(180deg, rgba(24, 31, 46, 0.94) 0%, rgba(16, 21, 32, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), var(--rim-top);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.studio-card.is-flagship-v2 {
  border-color: rgba(var(--pack-rgb), 0.32);
}
.studio-card:hover {
  background:
    radial-gradient(320px 150px at 100% 0%, rgba(var(--pack-rgb), 0.22), transparent 75%),
    linear-gradient(180deg, rgba(30, 39, 58, 0.96) 0%, rgba(20, 26, 40, 0.99) 100%);
  border-color: var(--pack-accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(var(--pack-rgb), 0.28), var(--rim-top);
  transform: translateY(-2px);
}
.studio-card.lab-action-card {
  border-style: dashed;
  border-color: rgba(var(--pack-rgb), 0.48);
}
.studio-card.lab-action-card:hover {
  border-style: solid;
  border-color: var(--pack-accent);
}
.sc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* CAD Blueprint Drafting Stage Header on every Studio Card */
.sc-blueprint-banner {
  position: relative;
  height: 76px;
  border-radius: 10px;
  background-color: rgba(7, 10, 16, 0.85);
  background-image:
    linear-gradient(rgba(var(--pack-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--pack-rgb), 0.07) 1px, transparent 1px);
  background-size: 12px 12px;
  border: 1px solid rgba(var(--pack-rgb), 0.24);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.55);
  color: var(--pack-accent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 10px 4px;
  overflow: hidden;
}
.sc-bp-overlay-top {
  position: absolute;
  top: 6px;
  left: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
}
.sc-bp-svg {
  width: 100%;
  max-width: 235px;
  height: 52px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(var(--pack-rgb), 0.25));
  transition: transform 0.2s ease;
}
.studio-card:hover .sc-bp-svg {
  transform: scale(1.03);
}

.sc-badge {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(7, 10, 16, 0.82);
  border: 1px solid rgba(var(--pack-rgb), 0.36);
  color: var(--pack-accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-ver {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(7, 10, 16, 0.85);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.sc-ver.pro {
  background: rgba(var(--pack-rgb), 0.2);
  border-color: rgba(var(--pack-rgb), 0.5);
  color: #FFFFFF;
  font-weight: 700;
}
.sc-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
  min-width: 0;
}
.sc-archetype {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--pack-accent);
  opacity: 0.92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.sc-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.42;
  margin: 1px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 2px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.sc-outputs-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
.sc-out-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(7, 9, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--silver);
  white-space: nowrap;
}

/* Classic v1 Collapsible Sub-Drawer inside Pack 1 */
.classic-v1-drawer {
  margin-top: 12px;
  border-radius: 11px;
  background: rgba(7, 10, 16, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.classic-v1-sum {
  list-style: none;
  cursor: pointer;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
}
.classic-v1-sum::-webkit-details-marker {
  display: none;
}
.classic-v1-sum:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.classic-v1-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.classic-v1-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--silver);
}
.classic-v1-toggle {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--pack-accent);
  white-space: nowrap;
}
.classic-v1-drawer[open] .classic-v1-grid {
  padding: 4px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sc-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(var(--pack-rgb), 0.14);
  border: 1px solid rgba(var(--pack-rgb), 0.35);
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pack-accent);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.studio-card:hover .sc-cta {
  background: var(--pack-accent);
  border-color: var(--pack-accent);
  color: #07090E;
}
.sc-arrow {
  transition: transform 0.15s ease;
}
.studio-card:hover .sc-arrow {
  transform: translateX(2px);
}
.hub-empty-state {
  padding: 36px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
}
.hub-empty-state strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── STUDIO WORKSPACE SHELL ──────────────────────────────────────────────── */
.studio-outer {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.studio-topbar {
  min-height: 48px;
  background:
    radial-gradient(380px 90px at 0% 0%, rgba(var(--pack-rgb), 0.13), transparent 75%),
    rgba(16, 21, 32, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: var(--rim-top);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 60;
}
.studio-id-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.active-studio-pill {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 4px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}
.active-pack-pill {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--pack-accent);
  padding: 3.5px 9px;
  border-radius: 7px;
  background: rgba(var(--pack-rgb), 0.14);
  border: 1px solid rgba(var(--pack-rgb), 0.38);
  white-space: nowrap;
}

.studio-job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.job-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.job-ctx-btn {
  max-width: 240px;
  background: var(--bg-elev);
  border-color: var(--border-strong);
}
#jobContextLabel {
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.caret {
  font-size: 10px;
  opacity: 0.75;
}

.export-menu-wrap {
  position: relative;
}
.export-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 318px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 250;
  display: none;
  flex-direction: column;
  gap: 6px;
}
.export-dropdown.open {
  display: flex;
}
.export-drop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 6px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pack-review-flag {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(240, 116, 48, 0.16);
  border: 1px solid rgba(240, 116, 48, 0.48);
  color: var(--cad-copper-hi);
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.export-drop-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exp-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.exp-menu-item:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--accent);
}
.exp-menu-item.featured {
  border-color: rgba(56, 189, 248, 0.48);
  background: rgba(37, 53, 80, 0.45);
}
.exp-item-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.exp-item-main strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.exp-item-main small {
  font-size: 10.5px;
  color: var(--muted);
}
.exp-tier-tag {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--silver);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.export-drop-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

/* ── COMPACT CAD VIEWPORT BAR ────────────────────────────────────────────── */
.cad-tools-bar {
  min-height: 40px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cad-tools-left,
.cad-tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cam-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}
.btn.cam-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 6px;
}
.btn.cam-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn.cam-btn.active {
  background: rgba(59, 107, 255, 0.22);
  color: var(--cad-cobalt-hi);
}
.btn.tool-btn {
  padding: 4px 9px;
  font-size: 11.5px;
}
.btn.tool-btn.active {
  background: rgba(59, 107, 255, 0.20);
  border-color: var(--cad-cobalt-hi);
  color: #E0EAFF;
}
.btn.icon-toggle {
  padding: 4px 9px;
  font-size: 11.5px;
  background: var(--surface);
  border-color: var(--border);
}
.tool-inline-slider {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.tool-inline-slider input[type="range"] {
  width: 64px;
  accent-color: var(--accent);
  cursor: pointer;
}
.lighting-select {
  padding: 4px 8px;
  font-size: 11.5px;
}

/* ── AI CUSTOM PART BUILDER BAR (LABS ONLY) ──────────────────────────────── */
.ai-bar {
  display: none;
  background: #101622;
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  flex-direction: column;
  gap: 7px;
}
.ai-bar.open {
  display: flex;
}
.ai-bar-title {
  font-family: var(--font-head);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.ai-prompt-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ai-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}
.ai-input:focus {
  border-color: var(--accent);
}
.ai-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--silver);
  font-size: 11px;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ── 3-COLUMN COLLAPSIBLE STUDIO SHELL ───────────────────────────────────── */
.studio-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 310px;
  overflow: hidden;
  transition: grid-template-columns 0.18s ease;
}
.studio-body.left-collapsed {
  grid-template-columns: 0px minmax(0, 1fr) 310px;
}
.studio-body.right-collapsed {
  grid-template-columns: 340px minmax(0, 1fr) 0px;
}
.studio-body.both-collapsed {
  grid-template-columns: 0px minmax(0, 1fr) 0px;
}

.dock {
  background: var(--surface);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
.dock-left {
  border-right: 1px solid var(--border);
}
.dock-right {
  border-left: 1px solid var(--border);
}
.dock.collapsed {
  padding: 0;
  border: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.dock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.dock-title {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.dock-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

/* Reopen edge rails */
.dock-reopen {
  position: absolute;
  top: 12px;
  z-index: 30;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(18, 22, 31, 0.92);
  color: var(--silver);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.dock-reopen:hover {
  border-color: var(--accent);
  color: var(--text);
}
.dock-reopen.left {
  left: 12px;
}
.dock-reopen.right {
  right: 12px;
}

/* ── STEP ACCORDIONS (LEFT DOCK PARAMETERS) ──────────────────────────────── */
#builderControls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-acc {
  background: linear-gradient(180deg, rgba(23, 30, 45, 0.92) 0%, rgba(16, 21, 32, 0.96) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), var(--rim-top);
  overflow: hidden;
  transition: border-color 0.16s ease;
}
.step-acc[open] {
  border-color: rgba(var(--pack-rgb), 0.36);
}
.step-acc-sum {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
  background:
    radial-gradient(240px 80px at 0% 0%, rgba(var(--pack-rgb), 0.1), transparent 75%),
    rgba(12, 16, 24, 0.55);
}
.step-acc-sum::-webkit-details-marker {
  display: none;
}
.step-acc-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.step-acc-num {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(var(--pack-rgb), 0.16);
  border: 1px solid rgba(var(--pack-rgb), 0.42);
  color: var(--pack-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-acc-title {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.step-acc-count {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.step-acc-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-top: 1px solid var(--border);
}

.ctrl-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--silver);
}
.ctrl-row label {
  font-weight: 500;
  color: var(--silver);
}
.ctrl-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pack-accent);
  font-variant-numeric: tabular-nums;
}
.ctrl-box input[type="range"] {
  width: 100%;
  accent-color: var(--pack-accent);
  cursor: pointer;
}
.ctrl-num-input {
  width: 80px;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ctrl-hint {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.38;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.swatch-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--silver);
  font-size: 10.5px;
  cursor: pointer;
  overflow: hidden;
}
.swatch-chip:hover {
  border-color: var(--border-strong);
}
.swatch-chip.active {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.14);
  color: var(--text);
}
.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.swatch-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}
.switch-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── CENTER 3D VIEWPORT ──────────────────────────────────────────────────── */
.viewport-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #090C11;
}
.canvas-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#canvas-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#dim-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dim-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(11, 13, 18, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #E0F2FE;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dim-tag.measure {
  background: rgba(8, 13, 24, 0.94);
  border-color: rgba(34, 211, 238, 0.88);
  color: #F8FAFC;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.2);
}

/* Pinned Reference Card (Clean Slate & Cyan) */
.pinned-ref-card {
  position: absolute;
  bottom: 44px;
  left: 12px;
  width: 210px;
  background: rgba(18, 22, 31, 0.95);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 7px;
  z-index: 20;
  box-shadow: var(--shadow-lg);
}
.pinned-ref-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--silver);
  margin-bottom: 5px;
}
.pinned-ref-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pinned-ref-card img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
  display: block;
}

/* Selected Part Floating Inspect Card */
.inspect-card {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 264px;
  background: rgba(18, 22, 31, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px;
  z-index: 25;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.inspect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}
.inspect-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.inspect-title strong {
  font-family: var(--font-head);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inspect-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.inspect-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.sel-banner {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(18, 22, 31, 0.88);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  z-index: 15;
  max-width: calc(100% - 24px);
}
.sel-banner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottom Model Summary Strip */
.hud-card {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 14px 10px;
}
.sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.ok {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #BBF7D0;
}
.badge.warn {
  background: rgba(240, 116, 48, 0.15);
  border: 1px solid rgba(240, 116, 48, 0.48);
  color: var(--cad-copper-hi);
}
.badge.fail,
.badge.err {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
}
#hudRows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 6px;
}
.hud-kv {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hud-kv span {
  font-size: 10px;
  color: var(--muted);
}
.hud-kv strong {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── RIGHT DOCK: INSPECTOR & GROUPED PARTS TREE ──────────────────────────── */
.inspector-acc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.inspector-acc-sum {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--silver);
  background: rgba(15, 19, 27, 0.45);
}
.inspector-acc-sum::-webkit-details-marker {
  display: none;
}
.inspector-acc-body {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--border);
}
.rules-check-list {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.rule-check-row {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rule-check-row.warn {
  border-color: rgba(240, 116, 48, 0.48);
}
.rule-check-row.fail {
  border-color: rgba(239, 68, 68, 0.5);
}
.rule-check-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 600;
}
.rule-check-msg {
  color: var(--muted);
  line-height: 1.35;
}

.report-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.report-kv {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.report-kv span {
  font-size: 10px;
  color: var(--muted);
}
.report-kv strong {
  font-family: var(--font-head);
  font-size: 11.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.report-leaves-wrap {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.report-leaf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 11px;
  color: var(--silver);
}

.parts-tree-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-height: 0;
}
.parts-filter-input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  padding: 6px 9px;
  font-size: 11.5px;
  outline: none;
}
.parts-filter-input:focus {
  border-color: var(--accent);
}
#partsList {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
}

.part-folder {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.part-folder-sum {
  list-style: none;
  cursor: pointer;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--silver);
}
.part-folder-sum::-webkit-details-marker {
  display: none;
}
.part-folder-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.part-folder-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.part-folder-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 7px 7px;
  border-top: 1px solid var(--border);
}

.part-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--surface);
  cursor: pointer;
}
.part-row:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.part-row.selected {
  background: rgba(37, 53, 80, 0.55);
  border-color: var(--accent);
}
.part-row.is-hidden {
  opacity: 0.45;
}
.part-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.part-row-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.part-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.part-info {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.part-eye {
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}
.part-eye:hover {
  border-color: var(--accent);
  color: var(--text);
}

.code-preview-pre {
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: #BAE6FD;
  font-size: 10.5px;
  overflow: auto;
  max-height: 180px;
}

/* ── SAVED JOBS & VAULTS ─────────────────────────────────────────────────── */
.vault-filter-bar {
  max-width: 1460px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.vault-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.vault-pills.compact {
  gap: 5px;
}
.vault-pill {
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--silver);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.vault-pill:hover {
  border-color: var(--accent);
}
.vault-pill.active {
  background: var(--navy);
  border-color: var(--accent);
  color: #E0F2FE;
}

.card-grid {
  max-width: 1460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}
.saved-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.saved-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.saved-card-head h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text);
}
.saved-vault-pill {
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.saved-meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.saved-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.copy-vault-select {
  padding: 4px 7px;
  font-size: 11px;
  max-width: 155px;
}

/* ── HARDWARE LIBRARY & RULES BOOK ───────────────────────────────────────── */
.finder-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
}
.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hw-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 14px;
}
.hw-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hw-item {
  width: 100%;
  text-align: left;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hw-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}
.hw-item.active {
  border-color: var(--accent);
  background: rgba(37, 53, 80, 0.55);
}
.hw-item strong {
  font-family: var(--font-head);
  font-size: 12.5px;
}
.hw-item span {
  font-size: 11px;
  color: var(--muted);
}
.hw-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#hw-canvas-host {
  flex: 1;
  min-height: 260px;
  position: relative;
  background: #090C11;
}
.hw-spec-bar {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--silver);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.results-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.rule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rule-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.rule-card h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 13.5px;
  color: var(--text);
}
.rule-card p {
  margin: 0;
  font-size: 12px;
  color: var(--silver);
  line-height: 1.45;
}
.rule-card small {
  font-size: 11px;
  color: var(--muted);
}
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.vs-table th,
.vs-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.vs-table th {
  background: var(--surface-2);
  font-family: var(--font-head);
  color: var(--silver);
}

/* ── MODALS & POPOVERS ───────────────────────────────────────────────────── */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(5, 7, 12, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-bg.open {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}
.modal-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 15px;
}
.modal-card input,
.modal-card textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
}
.pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.job-popover {
  position: fixed;
  top: 104px;
  right: 16px;
  width: min(440px, calc(100vw - 24px));
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px;
  z-index: 320;
  display: none;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-lg);
}
.job-popover.open {
  display: flex;
}
.job-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 13.5px;
}
.job-pop-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.job-id-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 7px;
}
.job-include-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.job-include-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
  cursor: pointer;
}
.job-include-opt input {
  accent-color: var(--accent);
}
.job-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Slim Edge Scroll Helper */
#xiiiPageJumper {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 210;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#xiiiPageJumper.hidden-jumper {
  display: none;
}
#xiiiPageJumper button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(18, 22, 31, 0.9);
  color: var(--silver);
  cursor: pointer;
  font-weight: 700;
}
#xiiiPageJumper button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--surface-3);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  z-index: 950;
  transition: opacity 0.16s ease, transform 0.16s ease;
  max-width: calc(100vw - 24px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── MOBILE STUDIO BOTTOM SEGMENTED NAV (HIDDEN ON DESKTOP) ─────────────── */
.mobile-studio-nav {
  display: none;
}

/* ── RESPONSIVE BREAKPOINTS & PHONE-NATIVE APP LAYOUT ────────────────────── */
@media (max-width: 1420px) {
  .cad-tools-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    padding: 4px 10px;
    scrollbar-width: none;
  }
  .cad-tools-bar::-webkit-scrollbar {
    display: none;
  }
  .cad-tools-left,
  .cad-tools-right {
    flex-wrap: nowrap;
    gap: 4px;
    flex-shrink: 0;
  }
  .btn.cam-btn {
    padding: 4px 6px;
    font-size: 10.5px;
  }
  .btn.tool-btn,
  .btn.icon-toggle {
    padding: 4px 7px;
    font-size: 11px;
  }
  .tool-inline-slider {
    padding: 2px 6px;
    font-size: 10.5px;
  }
  .tool-inline-slider input[type="range"] {
    width: 46px;
  }
  .lighting-select {
    padding: 3px 6px;
    font-size: 11px;
  }
}

@media (max-width: 1240px) {
  .studio-body {
    grid-template-columns: 300px minmax(0, 1fr) 275px;
  }
  .studio-body.left-collapsed {
    grid-template-columns: 0px minmax(0, 1fr) 275px;
  }
  .studio-body.right-collapsed {
    grid-template-columns: 300px minmax(0, 1fr) 0px;
  }
  .hw-split {
    grid-template-columns: 310px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
  }
  body {
    display: flex;
    flex-direction: column;
  }
  .top-header {
    height: auto;
    min-height: 46px;
    width: 100%;
    max-width: 100vw;
    padding: 6px 10px;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
    overflow: hidden;
  }
  .brand-sub,
  #cloudStatusPill {
    display: none;
  }
  #tierPreviewActiveBadge {
    padding: 3px 7px;
    font-size: 10px;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .acct-btn-text {
    max-width: 72px;
  }
  .nav-tabs {
    order: 3;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 3px;
    padding: 3px 22px 3px 3px;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
  }
  body[data-active-tab="studio"] .top-header .nav-tabs {
    display: none;
  }
  .tab-btn {
    flex: 1 0 auto;
    justify-content: center;
    padding: 5px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .tab-btn .count-pill {
    display: none;
  }

  .view-pane {
    width: 100%;
    max-width: 100vw;
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }
  body[data-active-tab="studio"] .view-pane#pane-studio {
    height: auto;
  }
  .hub-scroll,
  .lib-scroll {
    width: 100%;
    max-width: 100vw;
    padding: 10px 10px 44px;
    overflow-x: hidden;
  }
  .hub-deck-header {
    padding: 10px 11px 9px;
    gap: 8px;
    margin-bottom: 10px;
  }
  .hub-summary-bar {
    gap: 6px;
  }
  .hub-eyebrow {
    font-size: 9px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hub-summary-left h2 {
    font-size: 16.5px;
    margin: 0;
  }
  .hub-summary-left p,
  .tier-caps-row {
    display: none;
  }
  .tier-status-card {
    width: 100%;
    min-width: 0;
    padding: 5px 9px;
  }
  .hub-command-bar {
    padding-top: 7px;
    gap: 6px;
  }
  .hub-cat-seg {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hub-seg-btn {
    text-align: center;
    padding: 4.5px 4px;
    font-size: 11px;
  }
  .hub-search-wrap {
    flex: 1;
    min-width: 150px;
  }
  .hub-search-input {
    padding: 6px 8px 6px 28px;
    font-size: 11.5px;
  }
  .hub-expand-actions {
    display: inline-flex;
    gap: 4px;
    flex-shrink: 0;
  }
  .hub-fold-btn {
    padding: 6px 8px;
    font-size: 10.5px;
  }
  .hub-quick-jump {
    padding-right: 22px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
  }
  #xiiiPageJumper {
    display: none !important;
  }
  .packs-stack {
    gap: 9px;
  }
  .pack-head {
    padding: 8px 11px;
    gap: 9px;
  }
  .pack-eyebrow-row {
    flex-wrap: nowrap;
    gap: 5px;
  }
  .pack-code-chip,
  .pack-count-chip {
    font-size: 9.5px;
    padding: 1px 6px;
    white-space: nowrap;
  }
  .pack-icon-pod {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .pack-icon-pod svg {
    width: 17px;
    height: 17px;
  }
  .pack-title {
    font-size: 13.5px;
  }
  .pack-sub {
    display: none;
  }
  .pack-fold-hint,
  .pack-badge {
    display: none;
  }
  .pack-collapsed-preview {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    margin-top: 3px;
    scrollbar-width: none;
  }
  .pack-collapsed-preview::-webkit-scrollbar {
    display: none;
  }
  .pack-mini-preview-pill {
    font-size: 9.5px;
    padding: 1.5px 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .pack-chevron {
    width: 26px;
    height: 26px;
  }
  .pack-body {
    padding: 2px 10px 12px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-top: 10px;
  }

  /* Phone Native Split Layout for Studio Workspace (1-Row Header + Top 3D + Bottom Sheet) */
  .studio-outer {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    overflow: hidden;
  }
  .studio-topbar {
    min-height: 42px;
    padding: 4px 8px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .studio-id-wrap {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 5px;
  }
  .mob-hide-lbl {
    display: none;
  }
  #backToHubBtn {
    padding: 4px 8px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .active-studio-pill {
    font-size: 11.5px;
    padding: 3px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 96px;
    flex: 1;
  }
  .active-pack-pill,
  .chat-link-btn,
  .drive-link-btn {
    display: none !important;
  }
  #suggestStudioNoteBtn {
    padding: 4px 7px;
    font-size: 11px;
    flex-shrink: 0;
  }
  #suggestStudioNoteBtn .suggest-btn-label {
    display: none;
  }
  .studio-job-actions {
    flex-wrap: nowrap;
    gap: 4px;
    flex-shrink: 0;
  }
  .job-ctx-btn {
    padding: 4px 7px;
    font-size: 11px;
  }
  #jobContextLabel {
    max-width: 56px;
  }
  #savePresetBtn,
  #exportMenuBtn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .cad-tools-bar {
    min-height: 36px;
    padding: 3px 22px 3px 8px;
    gap: 5px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
  }
  .cad-tools-bar::-webkit-scrollbar {
    display: none;
  }
  .cad-tools-left,
  .cad-tools-right {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .studio-body,
  .studio-body.left-collapsed,
  .studio-body.right-collapsed,
  .studio-body.both-collapsed {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    padding-bottom: 50px;
  }

  .viewport-wrap {
    order: 1;
    width: 100%;
    height: 38dvh;
    min-height: 195px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-strong);
  }
  .studio-body[data-mob-pane="canvas"] .viewport-wrap {
    flex: 1;
    height: auto;
    border-bottom: none;
  }
  .canvas-stage {
    min-height: 0;
    flex: 1;
  }
  .sel-banner {
    font-size: 10px;
    padding: 3px 9px;
    bottom: 6px;
  }
  .hud-card {
    padding: 4px 8px 5px;
  }
  .hud-card .sec-title {
    margin-bottom: 3px;
    font-size: 10px;
  }
  #hudRows {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    scrollbar-width: none;
  }
  #hudRows::-webkit-scrollbar {
    display: none;
  }
  .hud-row,
  .hud-kv {
    min-width: 105px;
    padding: 3px 6px;
    flex-shrink: 0;
  }

  .dock,
  .dock.collapsed {
    order: 2;
    width: 100%;
    max-width: 100vw;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px 18px;
    border: none;
    opacity: 1;
    pointer-events: auto;
  }
  #dockLeft > .dock-head,
  #toggleLeftDockBtn,
  #toggleRightDockBtn,
  #collapseLeftInsideBtn,
  #collapseRightInsideBtn,
  .dock-reopen {
    display: none !important;
  }

  /* Toggle between Parameters, Specs & Parts, and Full 3D on mobile */
  .studio-body:not([data-mob-pane]) #dockRight,
  .studio-body[data-mob-pane="params"] #dockRight {
    display: none !important;
  }
  .studio-body[data-mob-pane="inspector"] #dockLeft {
    display: none !important;
  }
  .studio-body[data-mob-pane="canvas"] #dockLeft,
  .studio-body[data-mob-pane="canvas"] #dockRight {
    display: none !important;
  }

  .mobile-studio-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    padding: 5px 8px;
    background: rgba(10, 14, 22, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-strong);
    z-index: 85;
  }
  .mob-nav-btn {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }
  .mob-nav-btn.active {
    background: rgba(var(--pack-rgb), 0.16);
    border-color: rgba(var(--pack-rgb), 0.45);
    color: var(--pack-accent);
  }

  .finder-wrap {
    padding: 8px 10px;
    gap: 8px;
  }
  .search-row {
    gap: 6px;
  }
  .hw-split {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    gap: 8px;
  }
  .hw-detail {
    order: 1;
    height: 34dvh;
    min-height: 210px;
    flex-shrink: 0;
  }
  #hw-canvas-host {
    min-height: 145px;
  }
  .hw-spec-bar {
    padding: 6px 10px;
    font-size: 11px;
    gap: 6px;
  }
  .hw-list {
    order: 2;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .job-include-grid,
  .job-id-grid {
    grid-template-columns: 1fr;
  }
  .pinned-ref-card {
    width: 135px;
    bottom: 34px;
  }
  body[data-active-tab="studio"] .toast {
    bottom: 62px;
  }
}


/* ── DYNAMIC STUDIO CONTROLS & ACCENTS (REFINED TACTILE ARCHITECTURE) ───── */
details.inspector-acc {
  display: block;
}

.dim-control,
.toggle-control,
.search-select,
.list-control {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(7, 10, 16, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.dim-top,
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dim-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--silver);
  line-height: 1.32;
}

.dim-num-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(5, 7, 12, 0.85);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.step-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}
.step-btn:hover {
  background: rgba(var(--pack-rgb), 0.22);
  border-color: var(--pack-accent);
  color: #FFFFFF;
}

.num-input {
  width: 64px;
  padding: 2px 5px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.num-input:focus {
  outline: none;
  color: var(--pack-accent);
}

.dim-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  padding-right: 5px;
}

/* Custom Machined Range Sliders (Zero Browser-Default White Bar) */
.dim-control input[type="range"],
.ctrl-box input[type="range"],
.tool-inline-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
  margin: 3px 0 1px;
}
.dim-control input[type="range"]::-webkit-slider-thumb,
.ctrl-box input[type="range"]::-webkit-slider-thumb,
.tool-inline-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cad-cobalt);
  border: 2.5px solid #07090E;
  box-shadow: 0 0 10px rgba(59, 107, 255, 0.65), 0 1px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.dim-control input[type="range"]::-webkit-slider-thumb:hover,
.ctrl-box input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 0 14px rgba(59, 107, 255, 0.88);
}
.dim-control input[type="range"]::-moz-range-thumb,
.ctrl-box input[type="range"]::-moz-range-thumb,
.tool-inline-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cad-cobalt);
  border: 2.5px solid #07090E;
  box-shadow: 0 0 10px rgba(59, 107, 255, 0.65);
  cursor: pointer;
}
#in-section::-webkit-slider-thumb {
  background: var(--cad-copper) !important;
  box-shadow: 0 0 10px rgba(240, 116, 48, 0.78), 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}
#in-section::-moz-range-thumb {
  background: var(--cad-copper) !important;
  box-shadow: 0 0 10px rgba(240, 116, 48, 0.78) !important;
}

.ctrl-help {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.38;
}

.ctrl-error {
  font-size: 10.5px;
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  padding: 4px 7px;
}

.pill-grid.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.pill-grid.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pill-btn {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 9, 14, 0.65);
  color: var(--silver);
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: all 0.14s ease;
}
.pill-btn:hover {
  border-color: rgba(var(--pack-rgb), 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.pill-btn.active {
  background: linear-gradient(180deg, rgba(var(--pack-rgb), 0.24) 0%, rgba(var(--pack-rgb), 0.12) 100%);
  border-color: var(--pack-accent);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.toggle-switch {
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 9, 14, 0.75);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  min-width: 50px;
  transition: all 0.14s ease;
}
.toggle-switch.on {
  background: rgba(var(--pack-rgb), 0.22);
  border-color: var(--pack-accent);
  color: #FFFFFF;
}

.point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.point-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}
.point-cell span {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.point-cell input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 11.5px;
  text-align: right;
  outline: none;
}

/* Searchable Select Dropdown */
.search-select {
  position: relative;
}
.search-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 11.5px;
  cursor: pointer;
  text-align: left;
}
.search-select-btn:hover,
.search-select.open .search-select-btn {
  border-color: var(--accent);
}
.search-select-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 220;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  box-shadow: var(--shadow-lg);
  padding: 7px;
  gap: 6px;
}
.search-select.open .search-select-panel {
  display: flex;
  flex-direction: column;
}
.search-select-filter {
  width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 11.5px;
  outline: none;
}
.search-select-filter:focus {
  border-color: var(--accent);
}
.search-select-list {
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.search-select-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--silver);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.search-select-opt:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  color: var(--text);
}
.search-select-opt.active {
  background: var(--navy);
  border-color: var(--accent);
  color: #E0F2FE;
}
.search-select-opt small {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Dulux Swatches */
.dulux-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 2px;
}
.dulux-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--silver);
  font-size: 10.5px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}
.dulux-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}
.dulux-btn.active {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.14);
  color: var(--text);
}
.dulux-chip {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* List Controls */
.list-rows-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.list-row-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.list-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--silver);
}
.list-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.list-sub-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.list-sub-field label {
  font-size: 10px;
  color: var(--muted);
}

/* HUD, Report, Checks & Saved Vault Cards */
.hud-row {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hud-row span {
  font-size: 10px;
  color: var(--muted);
}
.hud-row strong {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.report-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.report-row span {
  font-size: 10px;
  color: var(--muted);
}
.report-row strong {
  font-family: var(--font-head);
  font-size: 11.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.report-leaf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.report-leaf-table th,
.report-leaf-table td {
  padding: 4px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.report-leaf-table th {
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 10px;
}

.rule-chk-item {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rule-chk-item.warn {
  border-color: rgba(240, 116, 48, 0.48);
}
.rule-chk-item.fail {
  border-color: rgba(239, 68, 68, 0.5);
}
.rule-chk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.rule-id {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--navy);
  border: 1px solid #3B547D;
  color: #BAE6FD;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
}

.badge.info {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #BAE6FD;
}

.inc-chk-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--silver);
  cursor: pointer;
}
.inc-chk-item.checked {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(37, 53, 80, 0.35);
  color: var(--text);
}
.inc-chk-item input {
  accent-color: var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--silver);
  font-size: 10px;
  font-weight: 600;
}
.scope-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--silver);
  font-size: 10px;
  font-weight: 600;
}

.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
}
.proj-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.proj-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text);
}
.proj-card p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.proj-scope-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.proj-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.vault-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(37, 53, 80, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #BAE6FD;
  font-size: 10px;
  font-weight: 700;
}

.rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.rule-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.job-ctx-btn.assigned {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(37, 53, 80, 0.45);
  color: #E0F2FE;
}

/* ── STAGE 4: AI COPILOT, SKETCH TBC BANNER & PLAIN-ENGLISH RULE CHECKER ── */
.ai-bar-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ai-photo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e0f2fe;
}
.ai-tbc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}
.ai-rule-actions-row {
  padding: 6px 8px 2px;
}
.ai-explain-btn {
  width: 100%;
  justify-content: center;
  font-size: 11px;
  padding: 5px 8px;
  border-color: rgba(56, 189, 248, 0.38);
  color: #bae6fd;
}
.ai-explain-card {
  margin: 6px 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0f1520;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 11.5px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ai-fix-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ai-fix-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  cursor: pointer;
  font-size: 11px;
}
.ai-fix-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}
.ai-notes-box {
  padding-top: 5px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: #cbd5e1;
}


/* ===== KYLE STUDIO BUILDER / DEV LOG / SUGGEST (Nov 2026) ===== */
.busy-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}
.busy-modal-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #151e30 0%, #0d1320 100%);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.72), 0 0 24px rgba(56, 189, 248, 0.18);
  max-width: min(440px, calc(100vw - 32px));
}
.busy-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.22);
  border-top-color: #38bdf8;
  animation: xiiiSpin 0.78s linear infinite;
  flex-shrink: 0;
}
@keyframes xiiiSpin {
  to { transform: rotate(360deg); }
}
.busy-modal-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.busy-modal-text strong {
  font-family: var(--font-head);
  font-size: 13.5px;
  color: #f8fafc;
}
.busy-modal-text span {
  font-size: 11.5px;
  color: #94a3b8;
}
.autosave-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.kyle-rule-compare-box {
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.36);
  font-size: 11.5px;
  color: #cbd5e1;
}
.suggest-note-btn { border-color: rgba(226, 232, 240, 0.24); color: #E2E8F0; }
.custom-studio-workbench-card { background:#0b1322; border:1px solid rgba(var(--pack-rgb,56,189,248),.35); border-radius:12px; padding:10px 12px; margin-bottom:10px; display:flex; flex-direction:column; gap:8px; }
.custom-studio-workbench-card .cs-row { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.custom-studio-workbench-card input[type=text] { width:100%; }
.clone-calvin-btn { background:linear-gradient(135deg,#84cc16,#22c55e); color:#0b1322; font-weight:700; border:0; }
.from-kyle-badge { background:rgba(132,204,22,.18); color:#bef264; border:1px solid rgba(132,204,22,.4); border-radius:999px; font-size:10px; padding:2px 8px; }
.cs-step-editor { border:1px dashed #2b3a52; border-radius:10px; padding:8px; display:flex; flex-direction:column; gap:6px; }
.cs-param-edit-row { display:grid; grid-template-columns: 1.4fr 1fr .7fr .7fr .6fr .5fr; gap:4px; align-items:center; font-size:11px; }
.cs-param-edit-row input, .cs-param-edit-row select { width:100%; min-width:0; padding:3px 5px; font-size:11px; background:#090e1a; color:#e2e8f0; border:1px solid #1f2b3e; border-radius:5px; }
#suggestDiffPreview { display:flex; flex-wrap:wrap; gap:5px; margin:4px 0 8px; }
.diff-chip { background:#101a2e; border:1px solid #2b3a52; border-radius:6px; font-size:11px; padding:2px 7px; color:#cbd5e1; }
.devlog-card { background:#0b1322; border:1px solid #1f2b3e; border-radius:12px; padding:12px; display:flex; flex-direction:column; gap:8px; }
.devlog-head { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; font-size:12px; color:#94a3b8; }
.devlog-diff-grid { display:flex; flex-wrap:wrap; gap:5px; }
.devlog-actions { display:flex; gap:6px; flex-wrap:wrap; }
.devlog-status { border-radius:999px; font-size:10px; padding:2px 8px; text-transform:uppercase; letter-spacing:.04em; }
.devlog-status.new { background: rgba(59, 107, 255, 0.18); color: #93C5FD; }
.devlog-status.reviewed { background:rgba(56,189,248,.18); color:#7dd3fc; }
.devlog-status.done { background:rgba(34,197,94,.18); color:#86efac; }
@media (max-width: 1420px) {
  .tool-inline-slider input[type="range"] { width: 52px; }
}
@media (max-width:768px){
  .cs-param-edit-row { grid-template-columns: 1fr 1fr; }
  .recipe-grid { grid-template-columns: 1fr; }
  .step-btn { width: 32px; height: 32px; font-size: 15px; }
  .dim-control input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; }
  .dim-control input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; }
}

/* ===== RICH STUDIO BUILDER + GUIDED RECIPE (ALL LABS) ===== */
.cs-param-edit-card { background:#080d18; border:1px solid #1e293b; border-radius:8px; padding:7px 8px; display:flex; flex-direction:column; gap:5px; }
.cs-param-edit-head { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
.cs-type-badge { font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:2px 6px; border-radius:999px; background:rgba(56,189,248,.14); color:#7dd3fc; border:1px solid rgba(56,189,248,.32); }
.cs-param-edit-head input, .cs-param-edit-head select, .cs-opts-input { width:100%; min-width:0; padding:3px 6px; font-size:11px; background:#090e1a; color:#e2e8f0; border:1px solid #1f2b3e; border-radius:5px; }
.cs-opts-row { display:flex; flex-direction:column; gap:3px; font-size:10.5px; color:#94a3b8; }
.studio-recipe-drawer { margin-top:6px; padding:10px 12px; border-radius:10px; background:linear-gradient(180deg,rgba(15,23,42,.96) 0%,rgba(9,14,26,.98) 100%); border:1px solid rgba(var(--pack-rgb,56,189,248),.42); display:flex; flex-direction:column; gap:8px; }
.recipe-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.recipe-head strong { display:block; font-size:12.5px; color:#f8fafc; }
.recipe-head span { font-size:11px; color:#94a3b8; }
.recipe-templates-row { display:flex; flex-wrap:wrap; gap:5px; align-items:center; }
.recipe-tpl-chip { font-size:11px; padding:3px 9px; border-radius:999px; background:rgba(var(--pack-rgb,56,189,248),.12); border:1px solid rgba(var(--pack-rgb,56,189,248),.36); color:#e2e8f0; cursor:pointer; }
.recipe-tpl-chip:hover { background:rgba(var(--pack-rgb,56,189,248),.24); }
.recipe-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 10px; }
.recipe-field { display:flex; flex-direction:column; gap:3px; }
.recipe-field label { font-size:11px; font-weight:600; color:#cbd5e1; }
.recipe-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
#toggleRecipeBtn.active { background:rgba(var(--pack-rgb,56,189,248),.22); border-color:rgba(var(--pack-rgb,56,189,248),.65); color:#f8fafc; }
@media (max-width:768px){
  .recipe-grid { grid-template-columns: 1fr; }
}

/* ===== BAMBU LAB X1C SLICER PRESET CARDS ===== */
.slicer-preset-card { background:#0b1322; border:1px solid rgba(56,189,248,.32); border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.slicer-spec-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(175px, 1fr)); gap:6px; }
.slicer-spec-cell { background:#080d18; border:1px solid #1e293b; border-radius:8px; padding:6px 9px; font-size:11.5px; color:#cbd5e1; display:flex; flex-direction:column; gap:2px; }
.slicer-spec-cell small { font-size:10px; text-transform:uppercase; letter-spacing:.04em; color:#64748b; font-weight:700; }
.cs-slicer-box { background:#080d18; border:1px solid rgba(56,189,248,.28); border-radius:8px; padding:8px 9px; font-size:11px; color:#cbd5e1; display:flex; flex-direction:column; gap:5px; margin-top:4px; }
.cs-slicer-box .cs-slicer-kv { display:grid; grid-template-columns:1fr 1fr; gap:4px 8px; font-size:10.5px; }
.cs-slicer-box .cs-slicer-kv span { color:#94a3b8; }
.cs-slicer-box .cs-slicer-kv strong { color:#e2e8f0; }

/* ===== 5-FEATURE BOOST: REMIX, STOCK TAGS, PINNED SKETCH & PRESET CHIPS ===== */
.remix-studio-btn { background: #0B1322; border-color: rgba(34, 211, 238, 0.55); color: #22D3EE; font-weight: 700; }
.remix-studio-btn:hover { background: #13223A; border-color: #22D3EE; box-shadow: 0 0 14px rgba(34, 211, 238, 0.24); }
.recipe-stock-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.stock-tag-btn { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.36); color: #a7f3d0; cursor: pointer; }
.stock-tag-btn:hover { background: rgba(16, 185, 129, 0.24); }
.cs-presets-wrap { display: flex; flex-direction: column; gap: 5px; padding-top: 4px; border-top: 1px solid rgba(148, 163, 184, 0.14); }
.cs-presets-bar { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.cs-preset-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.36); color: #e0f2fe; cursor: pointer; }
.cs-preset-pill:hover { background: rgba(56, 189, 248, 0.24); }
.cs-preset-del { font-size: 10px; color: #94a3b8; background: transparent; border: 0; padding: 0 2px; cursor: pointer; }
.cs-preset-del:hover { color: #fca5a5; }
.cs-preset-add-row { display: flex; gap: 5px; align-items: center; }
#recipeVoiceBtn.recording, #micBtn.recording { background: rgba(244, 63, 94, 0.24); border-color: rgba(244, 63, 94, 0.78); color: #fecdd3; box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.22); }

/* ===== KYLE UX REPORT UPGRADES: 3-AXIS CUT, UNDO REVISIONS, MULTI-SKETCH, HUB MENU & CODE TAB ===== */
#builderControls { padding-bottom: 68px !important; }
.cut-axis-pills { display: inline-flex; gap: 2px; align-items: center; background: #080d18; padding: 2px; border-radius: 6px; border: 1px solid #1e293b; }
.cut-ax-btn { background: transparent; border: 0; color: #94a3b8; font-size: 10.5px; font-weight: 700; padding: 2px 5px; border-radius: 4px; cursor: pointer; line-height: 1.2; }
.cut-ax-btn:hover { color: #f8fafc; background: rgba(148, 163, 184, 0.14); }
.cut-ax-btn.active { background: rgba(240, 116, 48, 0.22); border: 1px solid rgba(240, 116, 48, 0.55); color: #FF9D66; }

.cs-undo-cluster { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cs-rev-pills { display: inline-flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.cs-rev-pill { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #0b1322; border: 1px solid #1e293b; color: #94a3b8; cursor: pointer; }
.cs-rev-pill:hover { border-color: #38bdf8; color: #e2e8f0; }
.cs-rev-pill.active { background: rgba(56, 189, 248, 0.2); border-color: #38bdf8; color: #7dd3fc; font-weight: 700; }

.ai-prompt-left-tools { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.ai-textarea { min-height: 44px; max-height: 130px; resize: vertical; line-height: 1.38; padding: 7px 10px; font-family: inherit; }
.ai-build-cta { min-height: 42px; padding: 0 16px; font-weight: 700; white-space: nowrap; }

.ai-multi-sketch-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; padding: 4px 0 2px; }
.sketch-thumb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px 3px 4px; border-radius: 8px; background: #090f1d; border: 1px solid rgba(56, 189, 248, 0.34); font-size: 11px; color: #cbd5e1; }
.sketch-thumb-chip img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; cursor: zoom-in; border: 1px solid #1e293b; }
.sketch-thumb-chip.pinned { border-color: #2dd4bf; background: rgba(45, 212, 191, 0.1); }

.code-editor-ta { width: 100%; min-height: 210px; resize: vertical; background: #070b14; color: #e2e8f0; border: 1px solid #1e293b; border-radius: 7px; padding: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.42; }

.studio-card { position: relative; }
.sc-card-menu-wrap { position: absolute; top: 8px; right: 8px; z-index: 6; }
.sc-card-menu-btn { width: 26px; height: 24px; border-radius: 6px; border: 1px solid rgba(148, 163, 184, 0.32); background: rgba(9, 14, 26, 0.88); color: #e2e8f0; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sc-card-menu-btn:hover { border-color: #38bdf8; color: #38bdf8; }
.sc-card-pop { position: absolute; top: 28px; right: 0; min-width: 168px; background: #0b1220; border: 1px solid rgba(56, 189, 248, 0.42); border-radius: 9px; box-shadow: 0 12px 28px rgba(0,0,0,0.55); padding: 4px; display: none; flex-direction: column; gap: 2px; z-index: 20; }
.sc-card-pop.open { display: flex; }
.sc-pop-item { background: transparent; border: 0; color: #e2e8f0; text-align: left; padding: 6px 9px; border-radius: 6px; font-size: 11.5px; cursor: pointer; display: flex; align-items: center; gap: 6px; width: 100%; }
.sc-pop-item:hover { background: rgba(56, 189, 248, 0.15); color: #fff; }
.sc-pop-item.danger { color: #fca5a5; }
.sc-pop-item.danger:hover { background: rgba(244, 63, 94, 0.18); color: #fecdd3; }


/* === ELEMENT XIII LIVE VERSION PILL, ACCOUNT LINKS & WHAT'S NEW MODAL === */
.version-pill {
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(14, 165, 233, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.version-pill:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.75);
}
.acct-ver-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.acct-ver-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7dd3fc;
  font-weight: 600;
}
.acct-team-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.acct-hub-link {
  width: 100%;
  justify-content: flex-start;
  text-decoration: none;
  font-size: 11.5px;
}
.version-modal-card {
  max-width: 600px;
  width: 94vw;
  max-height: 86vh;
  gap: 10px;
}
.ver-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ver-modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ver-hero-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
}
.ver-modal-meta {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.ver-scheme-note {
  font-size: 11.5px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
}
.ver-scheme-note code {
  font-family: var(--font-mono);
  color: #7dd3fc;
}
.ver-section-lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
}
.ver-team-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ver-team-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ver-team-link:hover {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(30, 41, 59, 0.95);
}
.ver-team-ico {
  font-size: 16px;
}
.ver-team-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ver-team-copy strong {
  font-size: 12.5px;
  color: #f8fafc;
}
.ver-team-copy small {
  font-size: 11px;
  color: var(--muted);
}
.ver-team-ext {
  color: #7dd3fc;
  font-weight: 700;
}
.ver-releases-scroll {
  overflow-y: auto;
  max-height: 44vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.ver-release-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.55);
}
.ver-release-item.latest {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.08);
}
.ver-rel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ver-rel-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  color: #f8fafc;
}
.ver-live-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.45);
}
.ver-rel-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.ver-rel-sum {
  margin: 4px 0 6px;
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.45;
}
.ver-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}
.ver-bug-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.ver-rel-list {
  margin: 0;
  padding-left: 16px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.45;
}
.ver-rel-list li {
  margin-bottom: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AXON v3.1.2 BRANDING (STRICT ZERO YELLOW: OBSIDIAN + TITANIUM + CYAN)
   & STUDIO BUILDER UX UPGRADES
   ═══════════════════════════════════════════════════════════════════════════ */
.axon-ico-16 { width: 16px; height: 16px; display: inline-block; flex-shrink: 0; object-fit: contain; }
.axon-ico-18 { width: 18px; height: 18px; display: inline-block; flex-shrink: 0; object-fit: contain; }
.axon-ico-20 { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; object-fit: contain; }
.axon-hero-sm { width: 28px; height: 28px; display: inline-block; flex-shrink: 0; object-fit: contain; }

.axon-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #F8FAFC;
  font-family: var(--font-head);
}
.axon-trigger-btn {
  background: linear-gradient(180deg, #0F172A 0%, #0B1322 100%);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #F8FAFC;
  gap: 6px;
}
.axon-trigger-btn:hover,
.axon-trigger-btn.active {
  background: linear-gradient(180deg, #162238 0%, #0F172A 100%);
  border-color: #22D3EE;
  color: #22D3EE;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.22);
}
.axon-sub-btn {
  background: #0B1322;
  border: 1px solid rgba(203, 213, 225, 0.24);
  color: #CBD5E1;
  gap: 6px;
}
.axon-sub-btn:hover {
  background: #0F172A;
  border-color: #38BDF8;
  color: #F8FAFC;
}
.axon-cta-btn {
  background: linear-gradient(135deg, #0F172A 0%, #0B1322 100%);
  border: 1.5px solid #22D3EE;
  color: #F8FAFC;
  font-weight: 700;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.2), inset 0 1px 0 rgba(248, 250, 252, 0.14);
}
.axon-cta-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #16243D 0%, #0F172A 100%);
  border-color: #38BDF8;
  color: #22D3EE;
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.34);
}
.axon-cta-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.axon-tier-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 3px;
  border-radius: 999px;
  background: #0B1322;
  border: 1px solid rgba(203, 213, 225, 0.22);
}
.axon-tier-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #CBD5E1;
  padding: 0 6px 0 7px;
  letter-spacing: 0.02em;
}
.axon-tier-btn {
  border: 0;
  background: transparent;
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.axon-tier-btn:hover {
  color: #F8FAFC;
  background: rgba(56, 189, 248, 0.12);
}
.axon-tier-btn.active {
  background: rgba(34, 211, 238, 0.2);
  color: #22D3EE;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.55);
}

.axon-output-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: #0B1322;
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #CBD5E1;
}
.axon-output-badge.deep {
  background: #0F172A;
  border-color: #22D3EE;
  color: #F8FAFC;
}
.axon-output-badge.rescued {
  background: #0B1322;
  border-color: #38BDF8;
  color: #22D3EE;
}
.axon-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.axon-modal-brand h3 {
  margin: 0;
}

/* Centred AXON Prompt Layout (UX-20 / UX-26) */
.ai-prompt-centred {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
}
.ai-textarea-centred {
  width: 100%;
  max-width: 960px;
  min-height: 54px;
  max-height: 150px;
  margin: 0 auto;
}
.ai-prompt-actions-row {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.ai-prompt-actions-row .ai-prompt-left-tools {
  justify-content: center;
}
.ai-prompt-actions-row .ai-build-cta {
  min-height: 36px;
  padding: 0 22px;
}

/* AXON Processing HUD with pulsing A6 icon + live stage bar (UX-11) */
.axon-hud-card {
  background: linear-gradient(180deg, #0F172A 0%, #0B1322 100%);
  border: 1px solid rgba(34, 211, 238, 0.55);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.78), 0 0 32px rgba(34, 211, 238, 0.18);
  max-width: min(500px, calc(100vw - 28px));
}
.axon-pulse-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0B1322;
  border: 1px solid rgba(34, 211, 238, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: axonPulseGlow 1.6s ease-in-out infinite;
}
.axon-hud-pulse-ico {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
@keyframes axonPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.35); transform: scale(1); }
  50% { box-shadow: 0 0 18px 4px rgba(34, 211, 238, 0.45); transform: scale(1.06); }
}
.axon-hud-timer {
  font-size: 12px;
  color: #22D3EE;
  font-weight: 700;
}
.busy-stages-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.busy-stage-step {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.18);
  color: #94A3B8;
}
.busy-stage-step.done {
  border-color: rgba(34, 211, 238, 0.38);
  color: #CBD5E1;
}
.busy-stage-step.active {
  background: rgba(34, 211, 238, 0.18);
  border-color: #22D3EE;
  color: #F8FAFC;
  font-weight: 700;
}
.busy-stage-sep {
  font-size: 10px;
  color: #64748B;
}

/* Red Toast & Viewport Error Banner (UX-40) */
.toast.error {
  background: linear-gradient(180deg, #7F1D1D 0%, #450A0A 100%);
  border: 1px solid #EF4444;
  color: #FEE2E2;
}
.viewport-error-banner {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  max-width: min(620px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.94);
  border: 1px solid #F87171;
  color: #FEF2F2;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

/* Direct Inspector Tabs & Measured B-Rep Box (UX-23 / UX-52 / UX-43) */
.inspector-tabs-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: #080D18;
  border: 1px solid var(--border);
}
.inspector-tab-btn {
  border: 0;
  background: transparent;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
}
.inspector-tab-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: #F8FAFC;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}
.inspector-tab-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.inspector-tab-pane.active {
  display: flex;
}
.measured-brep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.brep-cell {
  background: #080D18;
  border: 1px solid #1E293B;
  border-radius: 7px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brep-cell small {
  font-size: 10px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brep-cell strong {
  font-size: 12px;
  color: #F8FAFC;
}
.inspector-code-pane {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.code-toolbar-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.code-syntax-status {
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.4);
  border: 1px solid #EF4444;
  color: #FECACA;
}

/* Unclipped + Add Control Modal (UX-22 / UX-55) */
.add-control-modal-card {
  max-width: 520px;
  width: 94vw;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.add-control-scroll-body {
  overflow-y: auto;
  max-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-right: 4px;
}
.ac-lbl {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 3px;
}
.ac-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ac-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

/* Reorderable Step & Control Editor, Presets & Inline Renames (UX-32 / UX-53 / UX-54 / UX-55) */
.cs-drag-handle {
  cursor: grab;
  color: #64748B;
  font-size: 12px;
  user-select: none;
  padding: 0 2px;
}
.cs-reorder-row.dragging,
.cs-param-edit-card.dragging {
  opacity: 0.45;
  border-color: #38BDF8;
}
.cs-preset-pill.active {
  background: rgba(34, 211, 238, 0.24);
  border-color: #22D3EE;
  color: #F8FAFC;
  font-weight: 700;
}
.cs-preset-update-btn {
  border-color: rgba(34, 211, 238, 0.65);
  color: #22D3EE;
}
.studio-header-rename-inp {
  width: 220px;
  max-width: 42vw;
  padding: 3px 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.proj-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.proj-title-edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Smart B-Rep Measure Floating HUD Card (UX-39 / UX-31) */
.measure-hud-card {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 282px;
  max-width: calc(100% - 24px);
  background: rgba(11, 16, 27, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.52);
  border-radius: 10px;
  padding: 10px 11px;
  z-index: 26;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.55);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.measure-hud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.measure-hud-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #F8FAFC;
}
.measure-cyan-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22D3EE;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.85);
}
.measure-src-pill {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #CBD5E1;
}
.measure-src-pill.brep {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.55);
  color: #22D3EE;
}
.measure-hud-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.measure-hover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}
.measure-hover-lbl {
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.measure-hover-pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: #CBD5E1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.measure-hover-pill.snapped {
  border-color: rgba(34, 211, 238, 0.65);
  color: #22D3EE;
}
.measure-mode-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.measure-mode-pill {
  appearance: none;
  border: 1px solid rgba(51, 65, 85, 0.85);
  background: rgba(15, 23, 42, 0.85);
  color: #94A3B8;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: center;
}
.measure-mode-pill:hover {
  color: #E2E8F0;
  border-color: rgba(96, 165, 250, 0.55);
}
.measure-mode-pill.active {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.65);
  color: #22D3EE;
}
.measure-readout-box {
  background: rgba(8, 13, 24, 0.9);
  border: 1px solid rgba(30, 41, 59, 0.95);
  border-radius: 8px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.measure-primary-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #22D3EE;
}
.measure-primary-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.25;
}
.measure-sub-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid rgba(30, 41, 59, 0.85);
}
.measure-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}
.measure-sub-row span {
  color: #94A3B8;
}
.measure-sub-row strong {
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
}

/* Picture picker (door 006): a select with a picture for each choice, grouped by family */
.pic-picker .pic-current {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 9, 14, 0.65);
  color: var(--silver);
  cursor: pointer;
  text-align: left;
}
.pic-picker .pic-current:hover,
.pic-picker .pic-current[aria-expanded="true"] {
  border-color: rgba(var(--pack-rgb), 0.45);
}
.pic-picker .pic-current img {
  flex: none;
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.pic-current-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pic-current-text strong {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #FFFFFF;
}
.pic-current-text small {
  font-size: 10.5px;
  color: var(--muted);
}
.pic-panel[hidden] {
  display: none;
}
.pic-group-title {
  margin: 8px 0 5px;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.pic-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 9, 14, 0.65);
  color: var(--silver);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
}
.pic-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
}
.pic-btn:hover {
  border-color: rgba(var(--pack-rgb), 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.pic-btn.active {
  border-color: var(--pack-accent);
  background: linear-gradient(180deg, rgba(var(--pack-rgb), 0.24) 0%, rgba(var(--pack-rgb), 0.12) 100%);
  color: #FFFFFF;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ROUND 4 LOCK-IN — SPLIT SIGN-IN, CARBON STUDIO, PIXEL-ALIGNED SIDEBAR & DAYLIGHT
   ═══════════════════════════════════════════════════════════════════════════ */

#aiCodeInput {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace !important;
}

/* ── FLAGSHIP 2-COLUMN SIGN-IN GATE ──────────────────────────────────────── */
.lock-split-card {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #151C2B 0%, #0E131F 100%);
  border: 1px solid rgba(226, 232, 240, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 28px 70px rgba(0, 0, 0, 0.72);
}
.lock-showcase {
  padding: 28px 28px 24px;
  background:
    radial-gradient(480px 260px at 30% 10%, rgba(59, 107, 255, 0.16), transparent 72%),
    radial-gradient(320px 200px at 85% 90%, rgba(240, 116, 48, 0.10), transparent 72%),
    #0A0E17;
  border-right: 1px solid rgba(226, 232, 240, 0.10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.lock-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.lock-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.75));
}
.lock-stage-preview {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 23, 36, 0.92) 0%, rgba(9, 13, 22, 0.98) 100%);
  border: 1px solid rgba(226, 232, 240, 0.10);
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.65);
  padding: 10px;
}
.lock-stage-svg {
  width: 100%;
  height: 185px;
  display: block;
}
.lock-cap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.lock-cap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.12);
  font-size: 11px;
  font-weight: 600;
  color: #CBD5E1;
}
.lock-cap-pill.axon {
  background: rgba(34, 211, 238, 0.10);
  border-color: rgba(34, 211, 238, 0.35);
  color: #67E8F9;
}
.lock-cap-pill.axon img {
  width: 14px;
  height: 14px;
}
.lock-form-pane {
  padding: 38px 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.lock-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cad-cobalt-hi);
  margin-bottom: 10px;
}
.lock-title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #FFFFFF;
}
.lock-copy {
  margin: 0 0 24px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #94A3B8 !important;
}
.google-real-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  color: #1F1F1F;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.google-real-btn:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.36);
}
.google-real-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.lock-local-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(59, 107, 255, 0.10);
  color: var(--cad-cobalt-hi);
  font-size: 12px;
  font-weight: 600;
}
.lock-local-link:hover {
  background: rgba(59, 107, 255, 0.20);
}

/* ── ACCOUNT DRAWER THEME SEGMENT ────────────────────────────────────────── */
.theme-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: #080B12;
  border: 1px solid var(--border);
}
.theme-seg-btn {
  padding: 6px 8px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-seg-btn.active {
  background: var(--cad-cobalt);
  color: #FFFFFF;
}

/* ── CARBON STUDIO 2-COLUMN HUB SHELL ────────────────────────────────────── */
.hub-shell {
  height: 100%;
  display: flex;
  min-height: 0;
  overflow: hidden;
}
.hub-left-rail {
  width: 282px;
  flex-shrink: 0;
  background: rgba(11, 15, 24, 0.94);
  border-right: 1px solid rgba(226, 232, 240, 0.10);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
}
.hub-left-rail.collapsed {
  display: none;
}
.hub-rail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 2px;
}
.hub-axon-rail-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: radial-gradient(220px 100px at 0% 50%, rgba(34, 211, 238, 0.18), transparent 72%), #0B121F;
  border: 1px solid rgba(34, 211, 238, 0.46);
  box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.22), 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.hub-axon-rail-card:hover {
  border-color: var(--axon-cyan);
  box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.35), 0 10px 24px rgba(0, 0, 0, 0.55);
}
.hub-axon-rail-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.38));
}
.hub-axon-rail-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hub-axon-rail-txt strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #F8FAFC;
}
.hub-axon-rail-txt small {
  font-size: 11px;
  font-weight: 600;
  color: var(--axon-cyan);
}

/* ── PIXEL-ALIGNED LAYERED SIDEBAR ───────────────────────────────────────── */
.sb-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sb-section + .sb-section {
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.08);
}
.sb-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 4px;
}
.sb-sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  color: #64748B;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}
.sb-sec-btn:hover {
  color: #CBD5E1;
}
.sb-sec-all {
  background: transparent;
  border: 0;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--cad-cobalt-hi);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.sb-sec-all:hover {
  background: rgba(59, 107, 255, 0.14);
}
.sb-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sb-item-wrap {
  position: relative;
}
.sb-row {
  width: 100%;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #CBD5E1;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.sb-row:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}
.sb-row.active {
  background: rgba(59, 107, 255, 0.16);
  border-color: rgba(96, 165, 250, 0.45);
  color: #FFFFFF;
}
.sb-icon-pod {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--pack-rgb, 96, 165, 250), 0.16);
  border: 1px solid rgba(var(--pack-rgb, 96, 165, 250), 0.42);
  color: var(--pack-accent, #60A5FA);
}
.sb-icon-pod svg {
  width: 14px;
  height: 14px;
}
.sb-title {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.sb-count {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #64748B;
  min-width: 16px;
  text-align: right;
}
.sb-row.active .sb-count {
  color: var(--cad-cobalt-hi);
}
.sb-expand-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.sb-expand-btn:hover {
  border-color: var(--cad-cobalt-hi);
  color: #FFFFFF;
}
.sb-expand-btn.is-open {
  background: rgba(59, 107, 255, 0.22);
  border-color: rgba(96, 165, 250, 0.52);
  color: #93C5FD;
}
.sb-children {
  margin: 3px 0 6px 13px;
  padding-left: 12px;
  border-left: 1.5px solid rgba(var(--pack-rgb, 96, 165, 250), 0.34);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-child-row {
  width: 100%;
  text-align: left;
  padding: 5px 8px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.sb-child-row:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}
.sb-color-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sb-color-btn:hover {
  border-color: #FFFFFF;
}
.sb-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pack-accent);
  box-shadow: 0 0 8px rgba(var(--pack-rgb), 0.75);
}
.sb-color-pop {
  position: absolute;
  right: 6px;
  top: 38px;
  z-index: 40;
  padding: 6px;
  border-radius: 10px;
  background: #141A27;
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.sb-color-swatch:hover {
  transform: scale(1.16);
  border-color: #FFFFFF;
}

/* ── MAIN HUB CANVAS & RECENT JOBS ───────────────────────────────────────── */
.hub-shell .hub-scroll {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 24px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hub-main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hub-head-right {
  width: 310px;
  max-width: 100%;
}
.hub-eyebrow {
  color: var(--cad-cobalt-hi);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.hub-summary-left h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 2px 0 4px;
}
.hub-recent-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hub-recent-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
}
.hub-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.hub-recent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #171E2E 0%, #111724 100%);
  border: 1px solid rgba(226, 232, 240, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 20px rgba(0, 0, 0, 0.35);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hub-recent-card:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.5);
}
.hub-recent-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hub-recent-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-recent-meta small {
  font-size: 11.5px;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-recent-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--cad-cobalt-hi);
  flex-shrink: 0;
}

/* ── SCULPTED CARBON STUDIO CARDS ────────────────────────────────────────── */
.hub-shell .packs-stack {
  max-width: none;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hub-shell .studio-grid {
  padding-top: 0;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.hub-shell .studio-card {
  border-radius: 16px;
  background: linear-gradient(180deg, #171E2E 0%, #111724 100%);
  border: 1px solid rgba(226, 232, 240, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 32px rgba(0, 0, 0, 0.48);
  padding: 10px 10px 14px;
  gap: 12px;
}
.hub-shell .studio-card:hover {
  background: linear-gradient(180deg, #1C2538 0%, #131A29 100%);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 44px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(59, 107, 255, 0.26);
}
.hub-shell .sc-blueprint-banner {
  height: 128px;
  border-radius: 12px;
  background: #090D16;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.65);
  color: #CBD5E1;
  align-items: center;
  padding: 26px 12px 10px;
}
.hub-shell .sc-bp-svg {
  height: 76px;
  max-width: 240px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
.hub-shell .sc-badge {
  background: transparent;
  border: 0;
  padding: 0;
  color: #94A3B8;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
}
.hub-shell .sc-ver {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.36);
  color: var(--cad-cobalt-hi);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.sc-pin-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}
.sc-pin-btn.pinned {
  border-color: rgba(240, 116, 48, 0.55);
  color: var(--cad-copper);
}
.hub-shell .sc-text-wrap {
  padding: 0 4px;
  gap: 4px;
}
.hub-shell .sc-archetype {
  color: var(--pack-accent, #60A5FA);
  font-size: 11px;
  font-weight: 600;
}
.hub-shell .sc-title {
  font-size: 15.5px;
  font-weight: 700;
}
.hub-shell .sc-foot {
  padding: 8px 10px;
  border-radius: 10px;
  background: #0D121D;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hub-shell .sc-out-pill {
  background: transparent;
  border: 0;
  padding: 0;
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
}
.hub-shell .sc-out-pill + .sc-out-pill::before {
  content: '·';
  margin-right: 4px;
  color: #64748B;
}
.hub-shell .sc-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--cad-cobalt-hi);
}

/* AXON Custom 3D Card inside Hub */
.hub-shell .studio-card.axon-hero-card {
  background:
    radial-gradient(360px 180px at 85% 15%, rgba(34, 211, 238, 0.16), transparent 72%),
    linear-gradient(180deg, #101A2B 0%, #0B121F 100%);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.28), 0 16px 38px rgba(0, 0, 0, 0.56);
}
.hub-shell .studio-card.axon-hero-card:hover {
  border-color: var(--axon-cyan);
  box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.45), 0 20px 46px rgba(0, 0, 0, 0.68), 0 0 24px rgba(34, 211, 238, 0.18);
}
.sc-axon-stage {
  height: 128px;
  border-radius: 12px;
  padding: 10px 12px;
  background: radial-gradient(220px 120px at 22% 45%, rgba(34, 211, 238, 0.22), transparent 72%), #070C16;
  border: 1px solid rgba(34, 211, 238, 0.30);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sc-axon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--axon-cyan);
}
.sc-axon-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sc-axon-hero-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.45));
}
.sc-axon-teaser {
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.25);
  font-size: 10.5px;
  color: #A5F3FC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Add-On Suite Upsell Card */
.hub-shell .studio-card.addon-upsell-card .sc-blueprint-banner {
  border-color: rgba(240, 116, 48, 0.32);
}
.hub-shell .studio-card.addon-upsell-card .sc-ver {
  background: rgba(240, 116, 48, 0.16);
  border-color: rgba(240, 116, 48, 0.52);
  color: var(--cad-copper-hi);
}
.hub-shell .studio-card.addon-upsell-card .sc-foot {
  background: rgba(240, 116, 48, 0.12);
  border-color: rgba(240, 116, 48, 0.45);
}
.hub-shell .studio-card.addon-upsell-card .sc-cta {
  color: var(--cad-copper-hi);
}

/* ── HIGH-CONTRAST DAYLIGHT MODE (HUB & SIDEBAR) ─────────────────────────── */
html[data-theme="light"] #pane-hub {
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(37, 84, 235, 0.06), transparent 70%),
    #E4EAF2;
  color: #0F172A;
}
html[data-theme="light"] .hub-left-rail {
  background: #F8FAFC;
  border-right-color: #CBD5E1;
}
html[data-theme="light"] .sb-section + .sb-section {
  border-top-color: #CBD5E1;
}
html[data-theme="light"] .sb-sec-btn {
  color: #475569;
}
html[data-theme="light"] .sb-sec-all {
  color: #1D4ED8;
}
html[data-theme="light"] .sb-row {
  color: #1E293B;
}
html[data-theme="light"] .sb-row:hover {
  background: #E2E8F0;
  color: #0F172A;
}
html[data-theme="light"] .sb-row.active {
  background: #DBEAFE;
  border-color: #93C5FD;
  color: #1D4ED8;
}
html[data-theme="light"] .sb-expand-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}
html[data-theme="light"] .sb-child-row {
  color: #475569;
}
html[data-theme="light"] .sb-child-row:hover {
  background: #E2E8F0;
  color: #0F172A;
}
html[data-theme="light"] .hub-eyebrow {
  color: #1D4ED8;
}
html[data-theme="light"] .hub-summary-left h2 {
  color: #0F172A;
}
html[data-theme="light"] .hub-summary-left p,
html[data-theme="light"] .hub-recent-lbl {
  color: #334155;
}
html[data-theme="light"] .hub-search-input {
  background: #FFFFFF;
  border-color: #94A3B8;
  color: #0F172A;
}
html[data-theme="light"] .hub-recent-card,
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card) {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06), 0 14px 32px rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card):hover {
  border-color: #2554EB;
}
html[data-theme="light"] .hub-recent-meta strong,
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card) .sc-title {
  color: #0F172A;
}
html[data-theme="light"] .hub-recent-meta small,
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card) .sc-desc {
  color: #334155;
}
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card) .sc-blueprint-banner {
  background: #EDF2F8;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  border-color: #CBD5E1;
  box-shadow: none;
  color: #1E293B;
}
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card) .sc-badge {
  color: #334155;
}
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card) .sc-ver {
  background: #FFFFFF;
  border-color: #93C5FD;
  color: #1D4ED8;
}
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card) .sc-foot {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card) .sc-out-pill {
  color: #1E293B;
}
html[data-theme="light"] .hub-shell .studio-card:not(.axon-hero-card) .sc-cta,
html[data-theme="light"] .hub-recent-cta {
  color: #1D4ED8;
}

@media (max-width: 960px) {
  .lock-split-card {
    grid-template-columns: 1fr;
  }
  .lock-showcase {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.10);
  }
  .hub-shell {
    flex-direction: column;
    overflow-y: auto;
  }
  .hub-left-rail {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.10);
  }
  .hub-shell .hub-scroll {
    height: auto;
    overflow: visible;
    padding: 18px 16px 32px;
  }
}


/* =================================================================
   ROUND 5: ACCORDION CHEVRONS, ONSHAPE FLOATING VIEWPORT HUD & MODALS
   ================================================================= */

/* Explicit Up/Down Chevron Indicators on ALL Collapsible Left & Right Headers */
.step-acc-sum {
  justify-content: flex-start;
}
.step-acc-left {
  flex: 1;
  min-width: 0;
}
.inspector-acc-sum > span:first-child,
.part-folder-left {
  flex: 1;
  min-width: 0;
}
.step-acc-sum::after,
.inspector-acc-sum::after,
.part-folder-sum::after {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: 6px;
  opacity: 0.72;
  background-color: currentColor;
  -webkit-mask: 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%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 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.18s ease, opacity 0.16s ease;
}
details[open] > .step-acc-sum::after,
details[open] > .inspector-acc-sum::after,
details[open] > .part-folder-sum::after {
  transform: rotate(180deg);
  opacity: 1;
}
.step-acc-sum:hover::after,
.inspector-acc-sum:hover::after,
.part-folder-sum:hover::after {
  opacity: 1;
}
.parts-tree-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Slim Top Header & Quiet Suite Breadcrumb + Glowing AXON Remix CTA */
header.top-header {
  height: 48px;
  min-height: 48px;
}
.top-util-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.top-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.top-icon-btn.active {
  border-color: var(--cobalt-hi);
  color: #FFFFFF;
  background: rgba(59, 107, 255, 0.20);
}
.studio-topbar {
  height: 44px;
  min-height: 44px;
  padding: 4px 12px;
}
.active-pack-pill {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  padding: 3px 9px;
}
.remix-studio-btn {
  border-color: rgba(34, 211, 238, 0.55) !important;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.16), rgba(8, 145, 178, 0.10)) !important;
  color: #ECFEFF !important;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.16);
}
.remix-studio-btn:hover {
  border-color: #22D3EE !important;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.30);
}

/* Onshape-Style Floating Viewport HUD Clusters (Replaces Full-Width Row 3) */
.vp-hud-cluster {
  position: absolute;
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.vp-hud-cluster > * {
  pointer-events: auto;
}
.vp-top-left {
  top: 12px;
  left: 12px;
}
.vp-top-right {
  top: 12px;
  right: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 170px);
}
.vp-top-left .dock-reopen,
.vp-top-right .dock-reopen {
  position: static;
  top: auto;
  left: auto;
  right: auto;
}
.vp-cam-pill,
.vp-display-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(11, 15, 23, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}
.vp-display-pill .lighting-select {
  height: 26px;
  font-size: 11.5px;
  border-radius: 7px;
  padding: 0 8px;
}

.vp-bottom-dock {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px;
  border-radius: 13px;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  gap: 6px;
  max-width: calc(100% - 24px);
}
.vp-dock-open-pill {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(59, 107, 255, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.34);
}
.vp-dock-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.vp-pill-combo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.vp-dock-btn.active-copper {
  background: rgba(240, 116, 48, 0.18);
  border-color: var(--copper);
  color: #FFEDD5;
  box-shadow: 0 0 0 1px rgba(240, 116, 48, 0.32);
}
.vp-quick-off-btn {
  width: 24px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(240, 116, 48, 0.55);
  background: rgba(240, 116, 48, 0.18);
  color: #FFEDD5;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vp-quick-off-btn:hover {
  background: rgba(240, 116, 48, 0.35);
}
.vp-pop-wrap {
  position: relative;
}
.vp-tool-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 295px;
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(15, 20, 32, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
  z-index: 40;
  flex-direction: column;
  gap: 10px;
}
.vp-tool-popover.open {
  display: flex;
}
.vp-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vp-pop-head strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.vp-pop-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vp-pop-row input[type="range"] {
  flex: 1;
  min-width: 110px;
}
.vp-pop-pct {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--silver);
  min-width: 34px;
  text-align: right;
}
.copper-exit-btn {
  border-color: rgba(240, 116, 48, 0.55) !important;
  background: rgba(240, 116, 48, 0.16) !important;
  color: #FFEDD5 !important;
}
.copper-exit-btn:hover {
  background: rgba(240, 116, 48, 0.32) !important;
}

/* Clear Space Between Floating HUDs & Inspect/Hint Banners */
.inspect-card {
  top: 62px;
}
.sel-banner {
  bottom: 64px;
  font-size: 10.5px;
  padding: 4px 11px;
  opacity: 0.78;
}

/* Standard Studio Busy HUD uses S1 Cobalt Styling */
.busy-modal-card.studio-busy-mode {
  border-color: rgba(59, 107, 255, 0.45);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58), 0 0 32px rgba(59, 107, 255, 0.14);
}
.busy-modal-card.studio-busy-mode .busy-stage-step.active {
  border-color: #60A5FA;
  color: #EFF6FF;
  background: rgba(59, 107, 255, 0.22);
}

/* Account Avatar Image & Preferences / Quick Guide Modals */
.acct-avatar.has-img {
  padding: 0;
  overflow: hidden;
  background: #0F172A;
}
.acct-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prefs-modal-card {
  max-width: 520px;
  width: min(520px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prefs-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 21, 34, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.prefs-avatar-preview {
  width: 54px;
  height: 54px;
  font-size: 18px;
  flex-shrink: 0;
}
.prefs-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prefs-avatar-actions strong {
  font-size: 13px;
}
.prefs-avatar-actions small {
  font-size: 11.5px;
  color: var(--muted);
}
.prefs-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.prefs-span-2 {
  grid-column: span 2;
}
.prefs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prefs-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.prefs-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--silver);
  cursor: pointer;
}
.prefs-modal-foot,
.guide-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.guide-modal-card {
  max-width: 640px;
  width: min(640px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.guide-step-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 21, 34, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.guide-num {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: rgba(59, 107, 255, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #93C5FD;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.guide-step-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* Daylight Overrides for New Floating HUD & Modals */
html[data-theme="light"] .vp-cam-pill,
html[data-theme="light"] .vp-display-pill,
html[data-theme="light"] .vp-bottom-dock,
html[data-theme="light"] .vp-tool-popover {
  background: rgba(255, 255, 255, 0.94);
  border-color: #CBD5E1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .vp-pop-head strong,
html[data-theme="light"] .vp-pop-pct {
  color: #0F172A;
}
html[data-theme="light"] .prefs-avatar-row,
html[data-theme="light"] .guide-step-card {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
html[data-theme="light"] .prefs-check-row {
  color: #1E293B;
}
html[data-theme="light"] .remix-studio-btn {
  background: rgba(14, 116, 144, 0.10) !important;
  border-color: #0891B2 !important;
  color: #0E7490 !important;
}

@media (max-width: 960px) {
  .top-util-lbl {
    display: none;
  }
  .vp-top-right {
    max-width: calc(100% - 24px);
  }
  .guide-grid,
  .prefs-form-grid {
    grid-template-columns: 1fr;
  }
  .prefs-span-2 {
    grid-column: span 1;
  }
}

/* Round 6: Sign-up button below Google Sign-In + subtle Sandbox preview link */
.lock-signup-btn {
  width: 100%;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(23, 31, 48, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.22);
  color: #F1F5F9;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lock-signup-btn:hover {
  background: rgba(30, 41, 64, 0.98);
  border-color: rgba(96, 165, 250, 0.5);
}
.lock-local-link {
  margin-top: 14px;
  background: transparent;
  border-color: rgba(148, 163, 184, 0.18);
  font-size: 11.5px;
  color: #94A3B8;
}
.lock-local-link:hover {
  background: rgba(59, 107, 255, 0.12);
  color: var(--cad-cobalt-hi);
}


/* =================================================================
   ROUND 7: CALM HOME OVERVIEW, 3D CARD PREVIEWS, TOP CAD TOOLBAR,
   3D VIEWCUBE & STEP LUMINANCE PROGRESSION
   ================================================================= */

/* Fix Recent Jobs Card Width on Ultrawide Screens */
.hub-recent-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(290px, 390px)) !important;
  gap: 10px !important;
}

/* Calm Home Overview & Suite / Lab Folder Cards */
.hub-home-sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.hub-home-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hub-home-sec-head h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}
.hub-view-all-btn,
.hub-back-home-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}
.hub-crumb-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.hub-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 14px;
}
.hub-folder-card {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 31, 47, 0.94) 0%, rgba(16, 22, 34, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-top: 2px solid var(--pack-accent, #3B6BFF);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  color: var(--text);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.hub-folder-card:hover {
  transform: translateY(-2px);
  border-color: var(--pack-accent, #3B6BFF);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}
.hub-folder-card.locked {
  opacity: 0.88;
}
.hfc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hfc-icon-pod {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(var(--pack-rgb, 59, 107, 255), 0.16);
  border: 1px solid rgba(var(--pack-rgb, 59, 107, 255), 0.36);
  color: var(--pack-accent, #60A5FA);
}
.hfc-count {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--silver);
}
.hfc-body h4 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
}
.hfc-body p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hfc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hfc-tags span {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #CBD5E1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hfc-foot {
  font-size: 12px;
  font-weight: 700;
  color: var(--pack-accent, #60A5FA);
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* Shaded 3D Isometric Card Banner + Real WebGL Thumbnails */
.hub-shell .sc-blueprint-banner {
  height: 118px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-shell .sc-bp-svg {
  width: 100%;
  height: 112px;
  max-height: 112px;
}
.sc-real-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-blueprint-banner.has-real-thumb .sc-bp-overlay-top {
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.78) 0%, transparent 100%);
  padding-bottom: 10px;
}
.sb-sec-all.active {
  background: rgba(59, 107, 255, 0.20);
  border-color: var(--cad-cobalt-hi);
  color: #FFFFFF;
}

/* Studio Mode Header Context Capsule + Clean Top Navigation */
body[data-active-tab="studio"] #navTabs,
body[data-active-tab="studio"] #hubRailToggleBtn {
  display: none !important;
}
.header-studio-context {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body[data-active-tab="studio"] .header-studio-context {
  display: inline-flex;
}
.header-ctx-sep {
  color: rgba(148, 163, 184, 0.35);
  font-size: 16px;
  font-weight: 300;
}
.header-hub-back {
  height: 28px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 7px;
}
.header-studio-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 9px;
  background: rgba(23, 30, 46, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* Account Drawer Team Shortcuts */
.acct-shortcut-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.acct-shortcut-btn {
  height: 30px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  justify-content: center;
}

/* True Top CAD Studio Toolbar (Row 2) + Downward Popovers */
.studio-topbar {
  height: 46px;
  min-height: 46px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cad-toolbar-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}
.toolbar-sep {
  width: 1px;
  height: 20px;
  background: rgba(148, 163, 184, 0.20);
  margin: 0 2px;
  flex-shrink: 0;
}
.studio-topbar .vp-tool-popover {
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  transform: none;
}
.studio-topbar .lighting-select {
  height: 30px;
  font-size: 12px;
  border-radius: 9px;
  padding: 0 9px;
}

/* Consolidated AXON Dropdown Menu */
.axon-menu-wrap {
  position: relative;
  display: inline-flex;
}
.axon-menu-trigger {
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  font-weight: 700;
  gap: 6px;
}
.axon-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  padding: 6px;
  border-radius: 13px;
  background: rgba(14, 19, 30, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 211, 238, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.56);
  z-index: 60;
  flex-direction: column;
  gap: 4px;
}
.axon-menu-dropdown.open {
  display: flex;
}
.axon-menu-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.axon-menu-item:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.32);
}
.axon-mi-emo {
  width: 18px;
  text-align: center;
  font-size: 15px;
  line-height: 1.2;
}
.axon-mi-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.axon-mi-txt strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #F8FAFC;
}
.axon-mi-txt small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

/* Interactive Top-Right 3D ViewCube (Onshape-Style) */
.vp-viewcube-wrap {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 28;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.vp-viewcube-wrap > * {
  pointer-events: auto;
}
.vp-vc-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vp-vc-top-row .dock-reopen.right {
  position: static;
}
.vp-vc-iso-btn {
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 21, 34, 0.86);
  color: #E2E8F0;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.vp-vc-iso-btn.active,
.vp-vc-iso-btn:hover {
  background: rgba(59, 107, 255, 0.88);
  border-color: #93C5FD;
  color: #FFFFFF;
}
.vp-cube-scene {
  width: 66px;
  height: 66px;
  perspective: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}
.vp-cube-3d {
  width: 58px;
  height: 58px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(-34deg);
}
.vp-cube-face {
  position: absolute;
  inset: 0;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(15, 23, 42, 0.72);
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.92), rgba(203, 213, 225, 0.86));
  color: #0F172A;
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  transition: background 0.12s ease, color 0.12s ease;
}
.vp-cube-face:hover,
.vp-cube-face.active {
  background: linear-gradient(145deg, #60A5FA, #3B6BFF);
  color: #FFFFFF;
}
.vp-cube-face.face-front  { transform: rotateY(0deg)   translateZ(29px); }
.vp-cube-face.face-back   { transform: rotateY(180deg) translateZ(29px); }
.vp-cube-face.face-right  { transform: rotateY(90deg)  translateZ(29px); }
.vp-cube-face.face-left   { transform: rotateY(-90deg) translateZ(29px); }
.vp-cube-face.face-top    { transform: rotateX(90deg)  translateZ(29px); }
.vp-cube-face.face-bottom { transform: rotateX(-90deg) translateZ(29px); }

.inspect-card {
  top: 126px;
}
.sel-banner {
  bottom: 12px;
}
.viewport-error-banner {
  top: 14px;
}

/* High-Contrast Step Numbers & Light-to-Dark Top-to-Bottom Setup Step Progression */
.step-acc {
  background: linear-gradient(
    180deg,
    hsl(220, 34%, calc(21% - var(--step-t, 0) * 8.5%)) 0%,
    hsl(222, 36%, calc(17% - var(--step-t, 0) * 7.2%)) 100%
  ) !important;
  border-color: rgba(148, 163, 184, calc(0.24 - var(--step-t, 0) * 0.10)) !important;
  border-left: 3px solid rgba(96, 165, 250, calc(0.88 - var(--step-t, 0) * 0.62)) !important;
}
.step-acc-sum {
  background: rgba(12, 16, 26, calc(0.22 + var(--step-t, 0) * 0.36)) !important;
}
.step-acc-num {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  color: #FFFFFF !important;
  background: linear-gradient(
    180deg,
    rgba(59, 107, 255, calc(0.95 - var(--step-t, 0) * 0.45)),
    rgba(29, 78, 216, calc(0.88 - var(--step-t, 0) * 0.42))
  ) !important;
  border: 1px solid rgba(191, 219, 254, calc(0.68 - var(--step-t, 0) * 0.36)) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Daylight Overrides for Round 7 */
html[data-theme="light"] .hub-folder-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .hfc-body h4,
html[data-theme="light"] .hub-home-sec-head h3 {
  color: #0F172A;
}
html[data-theme="light"] .hfc-count,
html[data-theme="light"] .hfc-tags span {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #1E293B;
}
html[data-theme="light"] .header-studio-meta {
  background: #F1F5F9;
  border-color: #CBD5E1;
}
html[data-theme="light"] .axon-menu-dropdown {
  background: #FFFFFF;
  border-color: #0891B2;
}
html[data-theme="light"] .axon-mi-txt strong {
  color: #0F172A;
}
html[data-theme="light"] .step-acc {
  background: linear-gradient(
    180deg,
    hsl(214, 38%, calc(99% - var(--step-t, 0) * 6%)) 0%,
    hsl(214, 34%, calc(96% - var(--step-t, 0) * 6%)) 100%
  ) !important;
  border-left: 3px solid rgba(37, 84, 235, calc(0.90 - var(--step-t, 0) * 0.55)) !important;
}


/* =================================================================
   ROUND 8: BALANCED 3-ZONE STUDIO HEADER, CENTERED CAD TOOLBAR &
   26-ZONE CHAMFERED 3D VIEWCUBE + ORBIT CONTROLLER
   ================================================================= */

/* Balanced Non-Overlapping Row 1 Header in Studio Mode */
body[data-active-tab="studio"] header.top-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
body[data-active-tab="studio"] .header-left-group {
  justify-self: start;
}
body[data-active-tab="studio"] .header-studio-context {
  display: inline-flex;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
body[data-active-tab="studio"] .header-studio-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
body[data-active-tab="studio"] .active-studio-pill {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(320px, 28vw);
}
body[data-active-tab="studio"] .active-pack-pill {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(210px, 18vw);
}
body[data-active-tab="studio"] .user-bar {
  justify-self: end;
}
.header-meta-dot {
  color: rgba(148, 163, 184, 0.55);
  font-weight: 700;
}

/* Non-Overlapping Flex Row 2 Top CAD Toolbar */
.studio-topbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: auto;
  min-height: 46px;
  padding: 5px 12px;
  flex-wrap: wrap;
}
.studio-bar-left {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.studio-back-hub-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}
.studio-topbar .cad-toolbar-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 11px;
  background: rgba(11, 15, 24, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  min-width: 0;
}
.studio-topbar .studio-job-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: nowrap;
  margin-left: auto;
}

/* 26-Zone Chamfered 3D ViewCube + Orbit Controller */
.vp-viewcube-wrap {
  top: 12px;
  right: 14px;
  gap: 4px;
  align-items: center;
}
.vp-vc-top-row {
  width: 100%;
  justify-content: flex-end;
  gap: 6px;
}
.vp-vc-roll-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.vp-vc-mini-btn {
  width: 24px;
  height: 22px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 21, 34, 0.84);
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.vp-vc-mini-btn:hover {
  background: rgba(59, 107, 255, 0.85);
  border-color: #93C5FD;
  color: #FFFFFF;
}
.vp-vc-compass {
  display: grid;
  grid-template-columns: 18px 104px 18px;
  grid-template-rows: 18px 104px 18px;
  align-items: center;
  justify-items: center;
  gap: 2px;
}
.vp-vc-arrow {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 5px;
  background: rgba(15, 21, 34, 0.78);
  color: #CBD5E1;
  font-size: 8.5px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.vp-vc-arrow:hover {
  background: rgba(59, 107, 255, 0.88);
  border-color: #93C5FD;
  color: #FFFFFF;
}
.vp-vc-arrow.up    { grid-column: 2; grid-row: 1; }
.vp-vc-arrow.left  { grid-column: 1; grid-row: 2; }
.vp-vc-arrow.right { grid-column: 3; grid-row: 2; }
.vp-vc-arrow.down  { grid-column: 2; grid-row: 3; }
.vp-cube-canvas {
  grid-column: 2;
  grid-row: 2;
  width: 104px;
  height: 104px;
  display: block;
  touch-action: none;
  cursor: grab;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.26));
}
.vp-cube-canvas:active {
  cursor: grabbing;
}
.vp-vc-zone-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #E2E8F0;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(15, 21, 34, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.20);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.inspect-card {
  top: 196px;
  right: 14px;
  left: auto;
}

/* =================================================================
   ROUND 9: COLOURED CAD TOOL MICRO-ICONS, DISCOVERABLE BACKDROP PICKER,
   TOP-LEFT DRAGGABLE MEASURE HUD & THUMBNAIL BADGE CONTRAST FIX
   ================================================================= */

/* Subtle Coloured Vector Micro-Icons inside CAD Toolbar */
.cad-toolbar-tools .vp-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cad-tool-ico {
  flex-shrink: 0;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.ico-cobalt { color: #60A5FA; }
.ico-copper { color: #F07430; }
.ico-copper-hi { color: #FF9452; }
.ico-cyan { color: #22D3EE; }
.vp-dock-btn:hover .cad-tool-ico {
  transform: scale(1.06);
  filter: brightness(1.12);
}

/* Discoverable 3D Scene Backdrop & Lighting Selector */
.scene-light-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 9px;
}
.scene-ico-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scene-light-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}
.scene-btn-txt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
}
.scene-btn-kicker {
  color: #94A3B8;
  font-weight: 500;
}
.scene-btn-txt strong {
  font-weight: 700;
  color: #F1F5F9;
}
.scene-light-btn .caret {
  font-size: 10px;
  opacity: 0.72;
  margin-left: 1px;
}
.studio-topbar .scene-light-popover {
  left: auto;
  right: 0;
  width: 288px;
}
.scene-opt-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}
.scene-opt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 21, 34, 0.58);
  color: #E2E8F0;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.scene-opt-row:hover {
  border-color: rgba(96, 165, 250, 0.52);
  background: rgba(59, 107, 255, 0.12);
}
.scene-opt-row.active {
  border-color: #3B6BFF;
  background: rgba(59, 107, 255, 0.20);
}
.scene-opt-preview {
  position: relative;
  width: 44px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  overflow: hidden;
  flex-shrink: 0;
}
.scene-opt-preview .sop-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 107, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 107, 255, 0.25) 1px, transparent 1px);
  background-size: 9px 9px;
}
.preview-daylight { background: linear-gradient(180deg, #F8FAFC 0%, #EAF0F6 100%); }
.preview-golden   { background: linear-gradient(180deg, #8A8F99 0%, #636770 100%); }
.preview-dark     { background: linear-gradient(180deg, #161D2C 0%, #0B0F17 100%); }
.scene-opt-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.scene-opt-meta strong {
  font-size: 12px;
  font-weight: 700;
  color: #F8FAFC;
}
.scene-opt-meta small {
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.25;
}

/* Top-Left Smart Measure HUD + Draggable Handles */
.measure-hud-card {
  top: 14px;
  left: 14px;
  right: auto;
  transition: top 0.15s ease;
}
.measure-hud-card.shift-below-reopen {
  top: 50px;
}
.measure-hud-card.has-custom-pos,
.inspect-card.has-custom-pos {
  transition: none;
  right: auto;
  bottom: auto;
}
.measure-hud-head,
.inspect-head {
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.is-dragging .measure-hud-head,
.is-dragging .inspect-head {
  cursor: grabbing;
}
.measure-hud-card.is-dragging,
.inspect-card.is-dragging {
  border-color: #60A5FA;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.68);
}
.hud-drag-grip {
  color: #94A3B8;
  opacity: 0.62;
  flex-shrink: 0;
}
.measure-hud-head:hover .hud-drag-grip,
.inspect-head:hover .hud-drag-grip {
  opacity: 1;
  color: #E2E8F0;
}

/* Studio Card Real 3D Thumbnail Badge Readability Across Daylight / Warm Evening / Dark */
.hub-shell .sc-blueprint-banner.has-real-thumb .sc-badge {
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.hub-shell .sc-blueprint-banner.has-real-thumb.thumb-is-light .sc-bp-overlay-top {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
}
.hub-shell .studio-card:not(.axon-hero-card) .sc-blueprint-banner.has-real-thumb.thumb-is-light .sc-badge {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.22);
  color: #0F172A;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}
.hub-shell .studio-card:not(.axon-hero-card) .sc-blueprint-banner.has-real-thumb.thumb-is-light .sc-ver {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 84, 235, 0.38);
  color: #1D4ED8;
}
.hub-shell .studio-card:not(.axon-hero-card) .sc-blueprint-banner.has-real-thumb.thumb-is-light .sc-pin-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.20);
  color: #334155;
}
.hub-shell .studio-card:not(.axon-hero-card) .sc-blueprint-banner.has-real-thumb.thumb-is-light .sc-pin-btn.pinned {
  color: #EA580C;
  border-color: rgba(234, 88, 12, 0.55);
}

.hub-shell .sc-blueprint-banner.has-real-thumb.thumb-is-mid .sc-bp-overlay-top {
  background: linear-gradient(180deg, rgba(11, 15, 23, 0.52) 0%, transparent 100%);
}
.hub-shell .studio-card:not(.axon-hero-card) .sc-blueprint-banner.has-real-thumb.thumb-is-mid .sc-badge {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.hub-shell .sc-blueprint-banner.has-real-thumb.thumb-is-dark .sc-bp-overlay-top {
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.62) 0%, transparent 100%);
}
.hub-shell .studio-card:not(.axon-hero-card) .sc-blueprint-banner.has-real-thumb.thumb-is-dark .sc-badge {
  background: rgba(11, 15, 23, 0.84);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #F8FAFC;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

/* 3-Way Gate Card Backdrop Comparison Strip on Workspace Home */
.hub-compare-sub {
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 12px;
}
.hub-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
}
@media (max-width: 980px) {
  .hub-compare-grid {
    grid-template-columns: 1fr;
  }
}
.studio-card.is-compare-active {
  border-color: #3B6BFF !important;
  box-shadow: 0 0 0 1px rgba(59, 107, 255, 0.55), 0 12px 28px rgba(15, 23, 42, 0.36);
}
.compare-choice-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--cad-cobalt-hi);
  margin-bottom: 3px;
}
.studio-card.is-compare-active .compare-choice-tag {
  color: #60A5FA;
}

/* Daylight Theme Overrides for Round 9 */
html[data-theme="light"] .scene-btn-kicker {
  color: #475569;
}
html[data-theme="light"] .scene-btn-txt strong {
  color: #0F172A;
}
html[data-theme="light"] .scene-opt-row {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}
html[data-theme="light"] .scene-opt-row.active {
  background: rgba(37, 84, 235, 0.10);
  border-color: #2554EB;
}
html[data-theme="light"] .scene-opt-meta strong {
  color: #0F172A;
}
html[data-theme="light"] .scene-opt-meta small {
  color: #475569;
}

/* Daylight Overrides for Round 8 */
html[data-theme="light"] .studio-topbar .cad-toolbar-tools {
  background: #F1F5F9;
  border-color: #CBD5E1;
  box-shadow: none;
}
html[data-theme="light"] .vp-vc-mini-btn,
html[data-theme="light"] .vp-vc-arrow,
html[data-theme="light"] .vp-vc-zone-lbl {
  background: rgba(255, 255, 255, 0.90);
  border-color: #CBD5E1;
  color: #1E293B;
}

@media (max-width: 1320px) {
  .studio-topbar {
    grid-template-columns: auto 1fr auto;
    height: auto;
    padding: 6px 10px;
  }
  .studio-topbar .cad-toolbar-tools {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =================================================================
   ROUND 11: PROPOSAL C — HYBRID COMPACT BENTO STUDIO CARDS
   ================================================================= */
.hub-shell .studio-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.hub-shell .studio-card.is-compact-bento {
  border-radius: 15px;
  background: linear-gradient(180deg, #171E2E 0%, #101623 100%);
  border: 1px solid rgba(226, 232, 240, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 12px 28px rgba(0, 0, 0, 0.42);
  padding: 10px 11px 10px;
  gap: 9px;
}
.hub-shell .studio-card.is-compact-bento:hover {
  background: linear-gradient(180deg, #1C2538 0%, #131A29 100%);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 38px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(59, 107, 255, 0.24);
  transform: translateY(-2px);
}
.hub-shell .studio-card.is-compact-bento.is-flagship-v2 {
  border-color: rgba(var(--pack-rgb, 96, 165, 250), 0.24);
}
.hub-shell .studio-card.is-compact-bento.is-flagship-v2:hover {
  border-color: rgba(96, 165, 250, 0.62);
}

.sc-c-split {
  display: flex;
  align-items: stretch;
  gap: 11px;
  min-width: 0;
}
.sc-c-thumb-bay {
  position: relative;
  width: 106px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(ellipse 92% 92% at 50% 44%, #283548 0%, #1E293B 85%);
  border: 1px solid rgba(var(--pack-rgb, 96, 165, 250), 0.30);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-c-thumb-bay.mode-svg {
  background:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    #080C15;
  background-size: 11px 11px;
  padding: 4px;
}
.sc-c-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}
.sc-c-thumb-bay .sc-bp-svg {
  width: 96px;
  height: 66px;
  max-width: none;
  transition: transform 0.22s ease;
}
.studio-card.is-compact-bento:hover .sc-c-thumb-img,
.studio-card.is-compact-bento:hover .sc-c-thumb-bay .sc-bp-svg,
.studio-card.is-compact-bento:hover .sc-axon-bay-img {
  transform: scale(1.06);
}
.sc-c-corner-dot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pack-accent, #60A5FA);
  box-shadow: 0 0 6px var(--pack-accent, #60A5FA);
  z-index: 2;
  pointer-events: none;
}

.sc-c-meta-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
}
.sc-c-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.sc-c-suite-txt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pack-accent, var(--cad-cobalt-hi));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sc-c-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.hub-shell .studio-card.is-compact-bento .sc-ver {
  font-size: 10px;
  padding: 2px 6.5px;
  border-radius: 6px;
}
.hub-shell .studio-card.is-compact-bento .sc-ver.v1 {
  border-color: rgba(148, 163, 184, 0.28);
  color: #CBD5E1;
}
.hub-shell .studio-card.is-compact-bento .sc-pin-btn {
  width: 22px;
  height: 22px;
  font-size: 11px;
}
.sc-card-menu-wrap.sc-c-inline-menu {
  position: relative;
  top: auto;
  right: auto;
}
.sc-card-menu-wrap.sc-c-inline-menu .sc-card-menu-btn {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.hub-shell .studio-card.is-compact-bento .sc-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-c-callout {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-shell .studio-card.is-compact-bento .sc-desc {
  font-size: 11.8px;
  line-height: 1.4;
  margin: 0;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-shell .studio-card.is-compact-bento .sc-foot {
  padding: 7px 10px;
  border-radius: 9px;
  background: #0D121D;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.hub-shell .studio-card.is-compact-bento .sc-out-pill {
  font-size: 10px;
  letter-spacing: 0.01em;
}
.hub-shell .studio-card.is-compact-bento .sc-cta {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cad-cobalt-hi);
}
.hub-shell .studio-card.is-compact-bento:hover .sc-cta {
  background: transparent;
  color: #93C5FD;
}

/* AXON Compact Hero Bay */
.sc-c-thumb-bay.sc-axon-bay {
  background:
    radial-gradient(ellipse 85% 85% at 50% 50%, rgba(34, 211, 238, 0.24) 0%, #070C16 74%),
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    #070C16;
  background-size: auto, 12px 12px, 12px 12px, auto;
  border-color: rgba(34, 211, 238, 0.36);
}
.sc-axon-bay-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.45));
  transition: transform 0.22s ease;
}

/* Add-On Upsell Compact Card */
.hub-shell .studio-card.is-compact-bento.addon-upsell-card .sc-c-thumb-bay {
  border-color: rgba(240, 116, 48, 0.38);
}

/* High-Contrast Daylight Light Mode for Proposal C Compact Cards */
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card):hover {
  border-color: #2554EB;
  box-shadow: 0 12px 28px rgba(37, 84, 235, 0.14), 0 0 0 1px rgba(37, 84, 235, 0.18);
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card) .sc-c-thumb-bay.mode-svg {
  background:
    linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    #EEF3F9;
  background-size: 11px 11px;
  border-color: #CBD5E1;
  box-shadow: none;
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card) .sc-c-suite-txt {
  color: color-mix(in srgb, var(--pack-accent, #2554EB) 70%, #0F172A);
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card) .sc-c-callout {
  color: #475569;
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card) .sc-ver.v1 {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card) .sc-pin-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #64748B;
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card) .sc-pin-btn.pinned {
  color: #EA580C;
  border-color: rgba(234, 88, 12, 0.5);
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card) .sc-card-menu-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card) .sc-foot {
  background: #F1F5F9;
  border-color: #E2E8F0;
}
html[data-theme="light"] .hub-shell .studio-card.is-compact-bento:not(.axon-hero-card):hover .sc-cta {
  color: #1E40AF;
}

@media (max-width: 680px) {
  .hub-shell {
    overflow-x: hidden;
  }
  .hub-shell .hub-scroll {
    padding: 16px 14px 28px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .hub-main-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hub-summary-left,
  .hub-head-right,
  .hub-search-wrap,
  .hub-search-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hub-shell .studio-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    max-width: 100%;
  }
  .hub-shell .studio-card.is-compact-bento {
    max-width: 100%;
    min-width: 0;
  }
  .sc-c-thumb-bay {
    width: 90px;
    height: 68px;
  }
  .sc-c-thumb-bay .sc-bp-svg {
    width: 80px;
    height: 56px;
  }
}

/* UX-62: Cancel button inside Processing HUD */
.busy-cancel-btn {
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.42);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.busy-cancel-btn:hover {
  background: rgba(240, 116, 48, 0.22);
  border-color: var(--copper, #F07430);
  color: #FFF7ED;
}

/* UX-70: Full-height Code & Schema editor + Inline Find/Replace */
#inspectorPaneCode.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.inspector-code-pane {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px;
}
.code-find-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.code-find-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.code-find-input {
  flex: 1;
  min-width: 90px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 11.5px;
}
.code-find-input:focus {
  outline: none;
  border-color: var(--cobalt, #3B6BFF);
}
.code-find-count {
  font-size: 10.5px;
  color: var(--muted);
  min-width: 34px;
  text-align: center;
}
#cqCodePreview.code-editor-ta {
  min-height: 420px;
  height: calc(100vh - 290px);
  max-height: none;
  resize: vertical;
  width: 100%;
  line-height: 1.45;
  font-size: 11.5px;
  tab-size: 4;
}

/* UX-71: Camera Fill Light switch inside Backdrop popover */
.scene-fill-toggle-row {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.scene-fill-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 6px;
  border-radius: 8px;
  cursor: pointer;
}
.scene-fill-label:hover {
  background: rgba(59, 107, 255, 0.10);
}
.scene-fill-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.scene-fill-meta strong {
  font-size: 12px;
  color: var(--text);
}
.scene-fill-meta small {
  font-size: 10.5px;
  color: var(--muted);
}
.scene-fill-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3B6BFF;
  cursor: pointer;
  flex-shrink: 0;
}


/* =================================================================
   ROUND 12: COMPREHENSIVE PHONE & COMPACT TABLET RESPONSIVE OVERHAUL
   (Wins specificity over all Round 4–11 desktop grids, sidebars & HUDs)
   ================================================================= */

.hub-rail-scrim {
  display: none;
}

#hw-canvas-host {
  overflow: hidden;
  min-height: 0;
}

/* Fix Daylight contrast on Studio header capsule & Open slider pill (Desktop + Mobile) */
html[data-theme="light"] .header-studio-meta .active-studio-pill {
  color: #0F172A !important;
  background: transparent !important;
  border-color: transparent !important;
}
html[data-theme="light"] .header-studio-meta .active-pack-pill {
  color: #334155 !important;
  border-color: #94A3B8 !important;
}
html[data-theme="light"] .studio-topbar .cad-toolbar-tools .vp-dock-open-pill {
  color: #0F172A;
  background: rgba(37, 84, 235, 0.10);
  border-color: rgba(37, 84, 235, 0.36);
}

@media (max-width: 900px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }
  body {
    display: flex;
    flex-direction: column;
  }

  /* 1. LOCK SCREEN — Unclipped top brand row + scrollable safe-area stage */
  .lock-screen {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    justify-content: center;
    padding: max(14px, env(safe-area-inset-top, 14px)) 12px max(24px, env(safe-area-inset-bottom, 24px));
  }
  .lock-split-card {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: auto 0;
    border-radius: 16px;
  }
  .lock-showcase {
    padding: 15px 16px 13px;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.10);
  }
  .lock-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .lock-stage-preview {
    padding: 6px;
  }
  .lock-stage-svg {
    height: 112px;
  }
  .lock-cap-pills {
    gap: 5px;
  }
  .lock-cap-pill {
    padding: 3px 8px;
    font-size: 10px;
  }
  .lock-form-pane {
    padding: 16px 16px 18px;
  }
  .lock-eyebrow {
    margin-bottom: 6px;
    font-size: 9.5px;
  }
  .lock-title {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .lock-copy {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin: 0 0 14px !important;
  }
  .google-real-btn,
  .lock-signup-btn {
    padding: 10px 14px;
    font-size: 13.5px;
  }

  /* 2. GLOBAL TOP HEADER & NAVIGATION TABS (Zero clipping, zero overlap) */
  header.top-header,
  body[data-active-tab="studio"] header.top-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: auto !important;
    min-height: 46px !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: max(6px, env(safe-area-inset-top, 6px)) 10px 6px !important;
    gap: 6px 8px !important;
    overflow: visible !important;
    flex-shrink: 0;
  }
  .header-left-group {
    gap: 7px;
    min-width: 0;
    flex-shrink: 0;
  }
  .hub-rail-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .brand {
    gap: 7px;
    padding: 2px 2px 2px 0;
    min-width: 0;
  }
  .brand-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .brand-wordmark {
    font-size: 13.5px;
    gap: 4px;
  }
  .brand-div {
    height: 13px;
  }
  #headerProChip {
    padding: 1px 6px;
    font-size: 9.5px;
  }
  #fullscreenToggleBtn,
  #cloudStatusPill {
    display: none !important;
  }
  .user-bar {
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }
  #topQuickGuideBtn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  #appVersionPill {
    padding: 3px 7px;
    font-size: 10px;
  }
  #tierPreviewActiveBadge {
    padding: 3px 6px;
    font-size: 9.5px;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account-btn {
    padding: 3px 7px 3px 4px;
    gap: 5px;
  }
  .acct-btn-text {
    display: none;
  }
  .account-drawer {
    position: fixed !important;
    top: 52px !important;
    right: 10px !important;
    left: auto !important;
    width: min(312px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 66px) !important;
    overflow-y: auto !important;
    z-index: 520 !important;
  }

  /* Row 2 Primary Section Tabs on Hub / Jobs / Hardware / Rules / DevLog */
  header.top-header .nav-tabs {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding: 3px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
  }
  header.top-header .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  header.top-header .tab-btn {
    flex: 1 0 auto;
    justify-content: center;
    padding: 5px 9px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  header.top-header .tab-btn .count-pill {
    font-size: 9.5px;
    padding: 0 5px;
    min-width: 16px;
  }

  /* Studio Mode Row 1: Compact Brand + Clean Truncated Studio Title + Account */
  body[data-active-tab="studio"] header.top-header {
    flex-wrap: nowrap !important;
  }
  body[data-active-tab="studio"] header.top-header .nav-tabs,
  body[data-active-tab="studio"] header.top-header #hubRailToggleBtn,
  body[data-active-tab="studio"] .brand-wordmark .bw-dot,
  body[data-active-tab="studio"] .brand-wordmark .bw-hub,
  body[data-active-tab="studio"] .brand-div,
  body[data-active-tab="studio"] #headerProChip,
  body[data-active-tab="studio"] #topQuickGuideBtn,
  body[data-active-tab="studio"] #appVersionPill,
  body[data-active-tab="studio"] .header-meta-dot,
  body[data-active-tab="studio"] #activePackBadge {
    display: none !important;
  }
  body[data-active-tab="studio"] .header-studio-context {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
  }
  body[data-active-tab="studio"] .header-studio-meta {
    max-width: 100%;
    min-width: 0;
    padding: 3px 9px;
    gap: 5px;
    overflow: hidden;
  }
  body[data-active-tab="studio"] .active-studio-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body[data-active-tab="studio"] .user-bar {
    margin-left: 0;
  }

  /* 3. VIEW PANES & HUB OFF-CANVAS LEFT RAIL DRAWER */
  .view-pane {
    width: 100%;
    max-width: 100vw;
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    overflow: hidden;
  }
  .hub-shell {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    overflow: hidden !important;
  }
  .hub-shell .hub-left-rail,
  .hub-shell .hub-left-rail.collapsed {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(296px, 84vw) !important;
    max-width: 84vw !important;
    z-index: 95 !important;
    display: flex !important;
    background: #0B0F18 !important;
    border-right: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-bottom: 0 !important;
    box-shadow: 18px 0 44px rgba(0, 0, 0, 0.68) !important;
    padding: 12px 11px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-105%) !important;
    pointer-events: none !important;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  .hub-shell.mob-rail-open .hub-left-rail,
  .hub-shell.mob-rail-open .hub-left-rail.collapsed {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }
  .hub-rail-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 90;
    background: rgba(4, 7, 13, 0.58);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .hub-shell.mob-rail-open .hub-rail-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .hub-shell .hub-scroll,
  .lib-scroll {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 12px calc(32px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 14px !important;
  }
  .hub-main-head {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .hub-summary-left h2 {
    font-size: 20px;
    margin: 1px 0 2px;
  }
  .hub-summary-left p {
    display: block;
    font-size: 12px;
    line-height: 1.38;
  }
  .hub-head-right,
  .hub-search-wrap,
  .hub-search-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hub-home-sec {
    margin-bottom: 16px;
    gap: 10px;
  }
  .hub-home-sec-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hub-recent-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }

  /* 4. STUDIO TOPBAR — Clean 2-Row Bar (Actions Row + Touch-Scrollable CAD Tools Strip) */
  .studio-outer {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .studio-topbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 8px !important;
    gap: 5px 6px !important;
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    flex-shrink: 0;
    z-index: 75;
  }
  .studio-topbar .studio-bar-left {
    order: 1;
    flex: 0 0 auto;
  }
  .studio-back-hub-btn,
  #backToHubBtn {
    height: 28px;
    padding: 0 7px;
    font-size: 10.5px;
    border-radius: 8px;
  }
  .studio-topbar .studio-job-actions {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .axon-menu-trigger {
    height: 28px;
    padding: 0 7px;
    font-size: 10.5px;
    gap: 3px;
  }
  .axon-menu-trigger .axon-ico-18 {
    width: 14px;
    height: 14px;
  }
  .job-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  .job-ctx-btn {
    height: 28px;
    padding: 0 6px;
    font-size: 10.5px;
    gap: 3px;
    min-width: 0;
  }
  #jobContextLabel {
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
  #savePresetBtn {
    height: 28px;
    padding: 0 7px;
    font-size: 11px;
  }
  .mob-hide-lbl {
    display: none !important;
  }
  #exportMenuBtn {
    height: 28px;
    padding: 0 8px;
    font-size: 10.5px;
    gap: 3px;
  }

  /* Sub-Row B: Single-line touch-scrollable CAD tools strip */
  .studio-topbar .cad-toolbar-tools {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 5px !important;
    padding: 3px 5px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
  }
  .studio-topbar .cad-toolbar-tools::-webkit-scrollbar {
    display: none;
  }
  .cad-toolbar-tools .vp-dock-btn,
  .cad-toolbar-tools .vp-dock-open-pill {
    height: 27px;
    padding: 0 8px;
    font-size: 11px;
    gap: 4px;
    flex-shrink: 0;
  }
  .cad-toolbar-tools .vp-dock-open-pill input[type="range"] {
    width: 52px;
  }
  .scene-btn-kicker {
    display: none;
  }

  /* Unclipped Fixed Popovers & Dropdowns on Phone */
  .studio-topbar .vp-tool-popover,
  .studio-topbar .scene-light-popover,
  .axon-menu-dropdown,
  .export-dropdown,
  .job-popover {
    position: fixed !important;
    top: 118px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 136px) !important;
    overflow-y: auto !important;
    transform: none !important;
    z-index: 480 !important;
  }

  /* Compact Collapsible AXON Bar when opened on Phone */
  .ai-bar#aiDesignerBar {
    max-height: 36dvh;
    overflow-y: auto;
    padding: 8px 10px;
    gap: 6px;
    flex-shrink: 0;
  }
  .ai-bar-title {
    font-size: 12px;
  }
  .ai-prompt-actions-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .ai-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .ai-chips::-webkit-scrollbar {
    display: none;
  }
  .ai-chips .chip {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* 5. PHONE STUDIO SPLIT WORKSPACE (Top 3D Stage + Bottom Sheet + Safe-Area Nav) */
  .studio-body,
  .studio-body.left-collapsed,
  .studio-body.right-collapsed,
  .studio-body.both-collapsed {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .viewport-wrap {
    order: 1;
    width: 100%;
    height: 36dvh;
    min-height: 186px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-strong);
  }
  .studio-body[data-mob-pane="canvas"] .viewport-wrap {
    flex: 1 1 auto;
    height: auto;
    border-bottom: none;
  }
  .canvas-stage {
    min-height: 0;
    flex: 1 1 auto;
  }

  /* Compact Top-Right 26-Zone ViewCube on Phone */
  .vp-viewcube-wrap {
    top: 6px !important;
    right: 6px !important;
    gap: 2px !important;
    transform: scale(0.62);
    transform-origin: top right;
  }
  .vp-vc-zone-lbl {
    display: none !important;
  }
  .viewport-error-banner {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    transform: none !important;
    max-width: calc(100% - 106px) !important;
    padding: 5px 8px;
    font-size: 11px;
  }
  .measure-hud-card,
  .inspect-card {
    top: auto !important;
    bottom: 8px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100% - 16px) !important;
  }
  .sel-banner {
    bottom: 6px;
    font-size: 9.5px;
    padding: 2px 8px;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .studio-body:not([data-mob-pane="canvas"]) .sel-banner {
    display: none;
  }
  .hud-card {
    padding: 4px 8px 5px;
  }
  .hud-card .sec-title {
    margin-bottom: 3px;
    font-size: 9.5px;
  }
  #hudRows {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    scrollbar-width: none;
  }
  #hudRows::-webkit-scrollbar {
    display: none;
  }

  .dock,
  .dock.collapsed {
    order: 2;
    width: 100% !important;
    max-width: 100vw !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px 10px 18px !important;
    border: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  #dockLeft > .dock-head,
  #toggleLeftDockBtn,
  #toggleRightDockBtn,
  #collapseLeftInsideBtn,
  #collapseRightInsideBtn,
  .dock-reopen {
    display: none !important;
  }
  .studio-body:not([data-mob-pane]) #dockRight,
  .studio-body[data-mob-pane="params"] #dockRight {
    display: none !important;
  }
  .studio-body[data-mob-pane="inspector"] #dockLeft {
    display: none !important;
  }
  .studio-body[data-mob-pane="canvas"] #dockLeft,
  .studio-body[data-mob-pane="canvas"] #dockRight {
    display: none !important;
  }
  #cqCodePreview.code-editor-ta {
    min-height: 220px;
    height: 36dvh;
  }

  .mobile-studio-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(50px + env(safe-area-inset-bottom, 0px));
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 22, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-strong);
    z-index: 85;
  }
  .mob-nav-btn {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }
  .mob-nav-btn.active {
    background: rgba(var(--pack-rgb), 0.16);
    border-color: rgba(var(--pack-rgb), 0.45);
    color: var(--pack-accent);
  }

  /* 6. HARDWARE LIBRARY, SAVED JOBS & RULES BOOK ON PHONE */
  .finder-wrap {
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .search-row {
    gap: 6px;
  }
  .search-row .search-input {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  .search-row .select-box {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .hw-split {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    gap: 8px;
  }
  .hw-detail {
    order: 1;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    overflow: hidden;
  }
  #hw-canvas-host {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    flex: 0 0 170px !important;
    overflow: hidden !important;
  }
  .hw-spec-bar {
    position: relative;
    z-index: 2;
    padding: 8px 10px;
    gap: 6px;
    font-size: 11.5px;
  }
  .hw-list {
    order: 2;
    flex: 1 1 auto;
    min-height: 0;
  }

  /* 7. MODALS & PROCESSING HUD ON PHONE */
  .modal-bg {
    padding: 10px;
  }
  .modal-card,
  .modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 28px) !important;
    overflow-y: auto !important;
    padding: 14px !important;
  }
  .ac-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .ac-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .job-id-grid,
  .job-include-grid {
    grid-template-columns: 1fr;
  }
  .busy-modal-card {
    width: calc(100vw - 24px) !important;
    max-width: 420px !important;
    padding: 12px 14px !important;
  }

  /* 8. DAYLIGHT THEME MOBILE OVERRIDES */
  html[data-theme="light"] .hub-shell .hub-left-rail,
  html[data-theme="light"] .hub-shell .hub-left-rail.collapsed {
    background: #F8FAFC !important;
    border-right-color: #CBD5E1 !important;
    box-shadow: 16px 0 38px rgba(15, 23, 42, 0.18) !important;
  }
  html[data-theme="light"] .mobile-studio-nav {
    background: rgba(248, 250, 252, 0.96);
    border-top-color: #CBD5E1;
  }
  html[data-theme="light"] .mob-nav-btn {
    color: #475569;
  }
  html[data-theme="light"] .mob-nav-btn.active {
    background: rgba(37, 84, 235, 0.12);
    border-color: rgba(37, 84, 235, 0.42);
    color: #1D4ED8;
  }
}

@media (max-width: 480px) {
  #topQuickGuideBtn {
    display: none !important;
  }
  .hub-recent-grid,
  .hub-folder-grid,
  .hub-shell .studio-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  #jobContextLabel {
    max-width: 42px;
  }
}

/* === v3.1.10: Smart 3D Rebuild Control Bar & 1-Click Save Feedback === */
.rebuild-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.22);
}
.rebuild-seg {
  display: inline-flex;
  align-items: center;
  background: rgba(7, 10, 18, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.rebuild-seg-btn {
  border: 0;
  background: transparent;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rebuild-seg-btn.active {
  background: rgba(59, 107, 255, 0.24);
  color: #E2E8F0;
}
.rebuild-apply-btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.7);
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.rebuild-apply-btn.dirty {
  background: linear-gradient(135deg, #F07430 0%, #D95B16 100%);
  border-color: rgba(251, 146, 60, 0.7);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(240, 116, 48, 0.35);
}
.btn.saved-flash {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
}
html[data-theme="light"] .rebuild-mode-bar {
  background: #F1F5F9;
  border-color: #CBD5E1;
}
html[data-theme="light"] .rebuild-seg {
  background: #E2E8F0;
  border-color: #CBD5E1;
}
html[data-theme="light"] .rebuild-seg-btn {
  color: #475569;
}
html[data-theme="light"] .rebuild-seg-btn.active {
  background: #FFFFFF;
  color: #1D4ED8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .rebuild-apply-btn:not(.dirty) {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

/* ── XIII ENGINEERING CALCULATORS WORKSPACE & STUDIO COMPANION DRAWER ───── */
.tab-calc-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  vertical-align: -2px;
  margin-right: 4px;
}
#pane-calculators.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 54px);
  height: calc(100dvh - 54px);
}
.calc-hub-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #0E0E11;
}
.calc-hub-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #F3F3F6;
}
.calc-popout-pill {
  position: absolute;
  right: 14px;
  top: 10px;
  z-index: 25;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(11, 15, 23, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.18);
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}
.calc-popout-pill:hover {
  background: rgba(59, 107, 255, 0.28);
  border-color: rgba(96, 165, 250, 0.55);
  color: #FFFFFF;
}
.calc-studio-dropdown {
  min-width: 310px;
  max-width: min(370px, 92vw);
}
.calc-studio-drop-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 0;
}
.calc-drop-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.calc-drop-item:hover {
  background: var(--cad-cobalt-soft);
  border-color: rgba(96, 165, 250, 0.28);
}
.calc-drop-item strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.calc-drop-item small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.studio-calc-drawer {
  position: fixed;
  top: 54px;
  right: 0;
  bottom: 0;
  width: min(560px, 96vw);
  z-index: 420;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-strong);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.58);
  transform: translateX(104%);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.2s ease;
  pointer-events: none;
}
.studio-calc-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}
.studio-calc-drawer.wide {
  width: min(980px, 96vw);
}
.studio-calc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.studio-calc-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
}
.studio-calc-drawer-title-wrap strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-calc-drawer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.studio-calc-drawer-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #F3F3F6;
}
#calcSaveJobModal {
  z-index: 950;
}
.tag.calc-job-tag {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.48);
  color: #DDD6FE;
}
html[data-theme="light"] .tag.calc-job-tag {
  background: #F5F3FF;
  border-color: #7C3AED;
  color: #5B21B6;
}

/* ── WAVE 1: ELECTRIC PURPLE CALCULATORS BRAND, SAVE/EXPORT MENUS & DOWNLOAD BANNER ── */
.tab-calc-ico {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}
.tab-btn-calcs:hover {
  border-color: rgba(139, 92, 246, 0.45);
}
.tab-btn-calcs.active {
  background: rgba(139, 92, 246, 0.18) !important;
  border-color: #8B5CF6 !important;
  color: #F5F3FF !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.32), 0 4px 14px rgba(139, 92, 246, 0.22);
}
.tab-btn-calcs:focus-visible {
  outline: 2px solid #8B5CF6;
  outline-offset: 2px;
}
.tab-btn-calcs .calc-count-pill {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(244, 203, 39, 0.45);
  color: #F4CB27;
}
html[data-theme="light"] .tab-btn-calcs.active {
  background: rgba(124, 58, 237, 0.12) !important;
  border-color: #7C3AED !important;
  color: #4C1D95 !important;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.24);
}
html[data-theme="light"] .tab-btn-calcs .calc-count-pill {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.35);
  color: #5B21B6;
}

.calc-hub-launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.42);
  background: linear-gradient(135deg, rgba(15, 19, 32, 0.96) 0%, rgba(36, 22, 68, 0.52) 100%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(167, 139, 250, 0.18);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.calc-hub-launch-card:hover {
  transform: translateY(-1px);
  border-color: #8B5CF6;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.24);
}
.calc-hub-launch-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.calc-hub-launch-ico {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(139, 92, 246, 0.45);
}
.calc-hub-launch-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.calc-hub-launch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #C4B5FD;
}
.calc-hub-launch-kicker em {
  font-style: normal;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(244, 203, 39, 0.16);
  border: 1px solid rgba(244, 203, 39, 0.42);
  color: #F4CB27;
}
.calc-hub-launch-copy strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
}
.calc-hub-launch-copy small {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.35;
}
.calc-hub-launch-cta {
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 9px;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(139, 92, 246, 0.55);
  color: #EDE9FE;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
html[data-theme="light"] .calc-hub-launch-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F3FF 100%);
  border-color: rgba(124, 58, 237, 0.38);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .calc-hub-launch-kicker { color: #6D28D9; }
html[data-theme="light"] .calc-hub-launch-kicker em { background: #FEF9C3; border-color: #EAB308; color: #854D0E; }
html[data-theme="light"] .calc-hub-launch-copy strong { color: #0F172A; }
html[data-theme="light"] .calc-hub-launch-copy small { color: #475569; }
html[data-theme="light"] .calc-hub-launch-cta { background: #7C3AED; border-color: #6D28D9; color: #FFFFFF; }
@media (max-width: 680px) {
  .calc-hub-launch-card { flex-direction: column; align-items: stretch; padding: 12px 14px; }
  .calc-hub-launch-cta { text-align: center; }
}

.save-menu-wrap {
  position: relative;
  display: inline-flex;
}
.save-dropdown {
  right: 0;
  min-width: 315px;
}
.save-ver-chip {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7DD3FC;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}
.export-bed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.24);
}
.export-bed-bar label {
  font-size: 11px;
  font-weight: 700;
  color: var(--silver);
  white-space: nowrap;
}
.export-bed-select {
  flex: 1;
  height: 28px;
  font-size: 11.5px;
  padding: 2px 8px;
}

.download-saved-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 980;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100vw - 28px));
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(11, 18, 30, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.52);
  color: #F8FAFC;
  backdrop-filter: blur(12px);
}
.dsb-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34D399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.dsb-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dsb-body strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #A7F3D0;
}
.dsb-body code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #F8FAFC;
  word-break: break-all;
}
html[data-theme="light"] .download-saved-banner {
  background: #FFFFFF;
  border-color: #10B981;
  color: #0F172A;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}
html[data-theme="light"] .dsb-body strong { color: #047857; }
html[data-theme="light"] .dsb-body code { color: #0F172A; }

/* ═══════════════════════════════════════════════════════════════════════════
 * WAVE 2 (v3.2.0) — ABOUT BAR, LAB MONOGRAMS, CANVA PICKER, REORDER & TESTERS
 * ═══════════════════════════════════════════════════════════════════════════ */
.studio-about-bar {
  margin-top: 4px;
}
.studio-about-bar > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.2px;
  font-weight: 600;
  color: var(--cad-cobalt-hi, #60A5FA);
  padding: 2px 0;
  user-select: none;
}
.studio-about-bar > summary::-webkit-details-marker { display: none; }
.studio-about-bar[open] .about-caret { transform: rotate(180deg); display: inline-block; }
.studio-about-body {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 11.6px;
  line-height: 1.48;
  color: #CBD5E1;
}
.studio-about-meta {
  margin-top: 5px;
  font-size: 10.6px;
  color: var(--muted);
}
html[data-theme="light"] .studio-about-body {
  background: #F1F5F9;
  color: #334155;
  border-color: rgba(15, 23, 42, 0.12);
}

/* Personal Lab Monogram Badges */
.lab-monogram-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 7px;
  font-family: var(--font-head, 'Plus Jakarta Sans', sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(var(--pack-rgb, 96, 165, 250), 0.22);
  border: 1.5px solid var(--pack-accent, #60A5FA);
  color: var(--pack-accent, #60A5FA);
  flex-shrink: 0;
  line-height: 1;
}
.lab-monogram-badge.md {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 12.5px;
}
.lab-monogram-badge.lg {
  min-width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 14px;
}

/* Canva-style 2D Colour Picker Modal */
.customise-lab-modal-card {
  max-width: 540px;
}
.canva-picker-wrap {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.canva-picker-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.canva-sv-stage {
  position: relative;
  width: 248px;
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.22);
  cursor: crosshair;
  flex-shrink: 0;
  touch-action: none;
}
.canva-sv-stage canvas {
  display: block;
  width: 248px;
  height: 148px;
}
.canva-sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1.5px #0F172A, 0 2px 6px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
  left: 75%;
  top: 25%;
}
.canva-picker-controls {
  flex: 1;
  min-width: 185px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.canva-hue-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.canva-hue-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  outline: none;
  cursor: pointer;
}
.canva-hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #0F172A;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.canva-hex-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.canva-swatch-live {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}
.canva-hex-input {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.canva-wcag-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #6EE7B7;
}
.canva-wcag-badge.warn {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.16);
  color: #FCD34D;
}
.canva-quick-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.canva-quick-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.canva-quick-swatch:hover { transform: scale(1.14); border-color: #FFFFFF; }

.lab-layout-prefs {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.lab-first-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
  flex: 1;
  min-width: 210px;
}
.lab-first-toggle-row input { margin-top: 3px; accent-color: var(--cad-cobalt, #3B6BFF); }
.lab-first-toggle-row strong { display: block; color: var(--text); font-size: 12.2px; }
.lab-first-toggle-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }

/* Suite Drag-Reorder & Mobile Up/Down Arrows */
.sb-item-wrap.is-draggable { cursor: grab; }
.sb-item-wrap.is-dragging { opacity: 0.45; }
.sb-item-wrap.drag-over-top { box-shadow: inset 0 2px 0 var(--pack-accent, #60A5FA); }
.sb-item-wrap.drag-over-bot { box-shadow: inset 0 -2px 0 var(--pack-accent, #60A5FA); }
.sb-reorder-arrows {
  display: inline-flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.sb-row:hover .sb-reorder-arrows,
.sb-row:focus-within .sb-reorder-arrows { opacity: 1; }
@media (hover: none), (max-width: 900px) {
  .sb-reorder-arrows { opacity: 0.85; }
}
.sb-move-btn {
  width: 17px;
  height: 17px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.6);
  color: #CBD5E1;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sb-move-btn:hover { color: #FFFFFF; border-color: var(--pack-accent, #60A5FA); }
.hub-folder-card.drag-over-card {
  outline: 2px dashed var(--pack-accent, #60A5FA);
  outline-offset: 2px;
}
.hfc-reorder-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Admin Testers (N) Sidebar Tree & View As Tester Banner */
.sb-testers-controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 2px 6px;
}
.sb-testers-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.sb-testers-seg button {
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.sb-testers-seg button.active {
  background: rgba(59, 107, 255, 0.22);
  border-color: #60A5FA;
  color: #FFFFFF;
}
.sb-testers-search {
  width: 100%;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text);
  font-size: 11px;
}
.sb-tester-group-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
  padding: 5px 6px 2px;
}
.tester-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(59, 107, 255, 0.14) 100%);
  border: 1px solid rgba(245, 158, 11, 0.48);
}
.tpb-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tpb-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #F59E0B;
  color: #0F172A;
}
.tpb-info small { color: var(--muted); font-size: 11.5px; }

/* ── MY MACHINES & PREFERENCES + EXPORT COMPATIBILITY GUARDS ─────────────── */
.machines-modal-card {
  max-width: 680px;
  width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
}
.mp-section-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
html[data-theme="light"] .mp-section-box {
  background: #F1F5F9;
  border-color: #CBD5E1;
}
.mp-sec-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #38BDF8;
  margin-bottom: 10px;
}
html[data-theme="light"] .mp-sec-title {
  color: #0369A1;
}
.export-machine-bar {
  flex-direction: column;
  align-items: stretch !important;
  gap: 6px !important;
  padding: 8px 10px !important;
}
.emb-top-row,
.emb-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.emb-top-row .export-bed-select {
  flex: 1;
  min-width: 0;
}
.export-sub-select {
  flex: 1;
  min-width: 0;
  height: 27px;
  font-size: 11px;
  padding: 2px 6px;
}
.export-guards-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.export-guard-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.35;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FDE68A;
}
.export-guard-banner.info {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.38);
  color: #BAE6FD;
}
html[data-theme="light"] .export-guard-banner {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #78350F;
}
html[data-theme="light"] .export-guard-banner.info {
  background: #E0F2FE;
  border-color: #38BDF8;
  color: #0C4A6E;
}
.export-guard-fix-btn {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
}


/* =================================================================
   SUITE 04 GLOBAL LASER & PLATE FAB — REGION SELECTOR & 2D FLAT BLANK
   ================================================================= */
.top-region-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.unit-sys-toggle {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 2px;
  border-radius: 8px;
  background-color: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.unit-sys-btn {
  height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.unit-sys-btn.active {
  background: rgba(56, 189, 248, 0.22);
  color: #F8FAFC;
}
html[data-theme="light"] .unit-sys-toggle {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
}
html[data-theme="light"] .unit-sys-btn {
  color: #475569;
}
html[data-theme="light"] .unit-sys-btn.active {
  background: #0EA5E9;
  color: #FFFFFF;
}
.top-region-select {
  height: 30px;
  padding: 0 26px 0 9px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  max-width: 215px;
  background-color: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #E2E8F0;
}
html[data-theme="light"] .top-region-select {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}
@media (max-width: 920px) {
  .top-region-select {
    max-width: 132px;
    font-size: 11px;
  }
}
@media (max-width: 640px) {
  .top-region-wrap {
    gap: 3px;
  }
  .top-region-select {
    max-width: 62px;
    padding: 0 18px 0 6px;
    font-size: 10.5px;
    height: 26px;
  }
  .unit-sys-toggle {
    height: 26px;
    padding: 1px;
  }
  .unit-sys-btn {
    height: 22px;
    padding: 0 5px;
    font-size: 10px;
  }
  .top-country-setup-btn {
    display: none !important;
  }
  body[data-active-tab="studio"] .top-region-select {
    display: none !important;
  }
}

.dim-imperial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: #93C5FD;
}
html[data-theme="light"] .dim-imperial-row {
  color: #1D4ED8;
}
.dim-imp-input {
  width: 78px;
  height: 22px;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 5px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  background: rgba(15, 23, 42, 0.65);
  color: #E2E8F0;
  text-align: right;
}
html[data-theme="light"] .dim-imp-input {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #93C5FD;
}

.vp-mode-seg {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(240, 116, 48, 0.45);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}
html[data-theme="light"] .vp-mode-seg {
  background: #FFF7ED;
  border-color: rgba(240, 116, 48, 0.55);
}
.vp-mode-seg-btn {
  border: 0;
  background: transparent;
  color: #CBD5E1;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}
html[data-theme="light"] .vp-mode-seg-btn {
  color: #475569;
}
.vp-mode-seg-btn.active {
  background: linear-gradient(135deg, #F07430, #EA580C);
  color: #FFFFFF;
  box-shadow: 0 1px 6px rgba(240, 116, 48, 0.35);
}

.flat-blank-overlay {
  position: absolute;
  inset: 0;
  z-index: 26;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 45%, #111827 0%, #090D16 100%);
  color: #E2E8F0;
  user-select: none;
}
.fb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(11, 15, 25, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.fb-part-tabs, .fb-layer-toggles, .fb-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.fb-part-tab {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(30, 41, 59, 0.65);
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}
.fb-part-tab.active {
  border-color: #F07430;
  background: rgba(240, 116, 48, 0.2);
  color: #FFFFFF;
}
.fb-layer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.8);
  color: #94A3B8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}
.fb-layer-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lyr-col, #F8FAFC);
  opacity: 0.35;
}
.fb-layer-pill.active {
  color: #F8FAFC;
  border-color: var(--lyr-col, #F8FAFC);
}
.fb-layer-pill.active::before {
  opacity: 1;
}
.fb-dxf-btn {
  border-color: rgba(240, 116, 48, 0.6) !important;
  color: #FDBA74 !important;
}
.fb-svg-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-svg-stage:active {
  cursor: grabbing;
}
.fb-svg-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}
.fb-hud-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(11, 15, 25, 0.94);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 11.5px;
  color: #CBD5E1;
}
.fb-hud-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fb-hud-metrics strong {
  color: #F8FAFC;
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   SUITE 02 INTERNATIONAL WORKBENCH: FILTER PILLS & COUNTRY CODE BAR
   ===================================================================== */
.top-region-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.top-country-setup-btn {
  height: 30px;
  padding: 0 8px;
  font-size: 11.5px;
  white-space: nowrap;
}
.suite02-intl-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(15, 23, 42, 0.72));
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.suite02-intl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.suite02-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.suite02-code-pill:hover {
  border-color: #38BDF8;
  background: rgba(30, 41, 59, 0.95);
}
.suite02-code-pill em {
  font-style: normal;
  color: #38BDF8;
  font-weight: 700;
  margin-left: 2px;
}
.suite02-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.suite02-cat-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.suite02-cat-btn:hover {
  color: var(--text);
  border-color: rgba(16, 185, 129, 0.5);
}
.suite02-cat-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10B981;
  color: #ECFDF5;
}


/* =================================================================
   PACK 3A + 3B: CAD FEEL, QUICK SEARCH, GRAPHICS SPEED & 2D VIEW EXPORT
   ================================================================= */
.top-search-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  font-size: 12px;
  border-radius: 8px;
}
.qs-kbd, .qs-row-kbd, .qs-esc-kbd, .qs-foot kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #CBD5E1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}
html[data-theme="light"] .qs-kbd,
html[data-theme="light"] .qs-row-kbd,
html[data-theme="light"] .qs-esc-kbd,
html[data-theme="light"] .qs-foot kbd {
  background: #E2E8F0;
  color: #1E293B;
  border-color: #CBD5E1;
}

.param-undo-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.param-undo-cluster .btn {
  min-width: 28px;
  padding: 0 7px;
  font-size: 13px;
}
.param-undo-cluster .btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.scene-gfx-speed-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scene-gfx-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 6px;
}
.scene-gfx-head strong { font-size: 12px; color: var(--text); }
.scene-gfx-head small { font-size: 10.5px; color: var(--muted); }
.gfx-speed-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 0 6px 2px;
}
.gfx-speed-btn.active {
  background: rgba(59, 107, 255, 0.24);
  border-color: #3B6BFF;
  color: #EFF6FF;
}
html[data-theme="light"] .gfx-speed-btn.active {
  background: #2563EB;
  border-color: #1D4ED8;
  color: #FFFFFF;
}

.exp-view2d-box {
  margin: 6px 8px 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(59, 107, 255, 0.30);
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
html[data-theme="light"] .exp-view2d-box {
  background: #F1F5F9;
  border-color: #CBD5E1;
}
.exp-view2d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.exp-view2d-head strong { font-size: 11.5px; color: var(--text); }
.exp-view2d-hidden-lbl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.exp-view2d-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

@keyframes ctrlJumpPulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 116, 48, 0.85); border-color: #F07430; background: rgba(240, 116, 48, 0.16); }
  55% { box-shadow: 0 0 0 6px rgba(59, 107, 255, 0.25); border-color: #3B6BFF; background: rgba(59, 107, 255, 0.12); }
  100% { box-shadow: 0 0 0 0 rgba(59, 107, 255, 0); }
}
.ctrl-jump-flash {
  border-radius: 8px;
  animation: ctrlJumpPulse 1.8s ease-out;
}

/* 4A Ctrl+K Spotlight Modal */
.qs-modal {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 24px;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(8px);
}
.qs-modal.open { display: flex; }
.qs-dialog {
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0F172A;
  color: #F8FAFC;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
html[data-theme="light"] .qs-dialog {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
}
.qs-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.qs-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
}
.qs-results {
  max-height: min(56vh, 420px);
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.qs-row {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.qs-row:hover, .qs-row.active {
  background: rgba(59, 107, 255, 0.16);
  border-color: rgba(59, 107, 255, 0.42);
}
.qs-cat-badge {
  flex-shrink: 0;
  min-width: 66px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #93C5FD;
}
html[data-theme="light"] .qs-cat-badge {
  background: #EFF6FF;
  color: #1D4ED8;
}
.qs-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.qs-row-main strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-row-main small { font-size: 11px; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 12.5px;
  color: #94A3B8;
}
.qs-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 11px;
  color: #94A3B8;
}

/* =================================================================
   CADZAP v3.2.9 POLISH: LIGHT MODE WORDMARK, HEADER COMPACTION & AXON LAUNCH STRIP
   ================================================================= */
html[data-theme="light"] .brand-wordmark .bw-cadzap {
  color: #0B0D12;
}
html[data-theme="light"] .pro-chip[data-tier="founder"],
html[data-theme="light"] .pro-chip[data-tier="admin"] {
  border-color: rgba(15, 23, 42, 0.45);
  background: rgba(15, 23, 42, 0.08);
  color: #0F172A;
  box-shadow: none;
}
html[data-theme="light"] .pro-chip[data-tier="free"] {
  border-color: rgba(71, 85, 105, 0.4);
  background: rgba(148, 163, 184, 0.16);
  color: #334155;
}

/* AXON Top Nav Pill */
.tab-btn.tab-btn-axon {
  color: #67E8F9;
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
}
.tab-btn.tab-btn-axon:hover {
  color: #ECFEFF;
  border-color: rgba(34, 211, 238, 0.60);
  background: rgba(34, 211, 238, 0.16);
}
html[data-theme="light"] .tab-btn.tab-btn-axon {
  color: #0E7490;
  border-color: rgba(14, 116, 144, 0.35);
  background: rgba(6, 182, 212, 0.10);
}

/* Workspace Home 2-Card Hero Strip (AXON AI + Calculator Lab) */
.hub-hero-launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (min-width: 1080px) {
  .hub-hero-launch-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hub-hero-launch-grid .calc-hub-launch-card {
  margin-bottom: 0;
  height: 100%;
}
.calc-hub-launch-ico.calc-svg-ico {
  padding: 6px;
  background: rgba(59, 107, 255, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.32);
}
.axon-hub-launch-card {
  border-color: rgba(34, 211, 238, 0.46) !important;
  background: linear-gradient(135deg, rgba(9, 18, 31, 0.97) 0%, rgba(12, 52, 71, 0.50) 100%) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(103, 232, 249, 0.20) !important;
}
.axon-hub-launch-card:hover {
  border-color: #22D3EE !important;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.24), inset 0 1px 0 rgba(165, 243, 252, 0.32) !important;
}
html[data-theme="light"] .axon-hub-launch-card {
  background: linear-gradient(135deg, #F0FDFA 0%, #ECFEFF 100%) !important;
  border-color: rgba(8, 145, 178, 0.40) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}
.calc-hub-launch-kicker.axon-kicker {
  color: #67E8F9 !important;
}
html[data-theme="light"] .calc-hub-launch-kicker.axon-kicker {
  color: #0E7490 !important;
}
.calc-hub-launch-kicker.axon-kicker em {
  background: rgba(34, 211, 238, 0.18) !important;
  border-color: rgba(34, 211, 238, 0.45) !important;
  color: #A5F3FC !important;
}
html[data-theme="light"] .calc-hub-launch-kicker.axon-kicker em {
  background: rgba(6, 182, 212, 0.14) !important;
  border-color: rgba(14, 116, 144, 0.35) !important;
  color: #0E7490 !important;
}
.calc-hub-launch-cta.axon-cta {
  color: #22D3EE !important;
  border-color: rgba(34, 211, 238, 0.42) !important;
  background: rgba(34, 211, 238, 0.12) !important;
}
html[data-theme="light"] .calc-hub-launch-cta.axon-cta {
  color: #0E7490 !important;
  border-color: rgba(14, 116, 144, 0.38) !important;
  background: rgba(6, 182, 212, 0.12) !important;
}

/* Header & Studio Toolbar Responsive Compaction (Zero Tab Cutoff, Zero Overlap) */
header.top-header .nav-tabs {
  flex: 0 1 auto;
  min-width: 0;
}
header.top-header .tab-btn {
  padding: 5px 10px;
  font-size: 12px;
  gap: 5px;
}
@media (max-width: 1700px) {
  .wide-only-lbl,
  .tab-long-sfx,
  .top-search-pill-btn .qs-kbd {
    display: none;
  }
  .top-search-pill-btn {
    padding: 0 8px;
    min-width: 32px;
    justify-content: center;
  }
  header.top-header {
    padding: 0 12px;
    gap: 8px;
  }
  header.top-header .tab-btn {
    padding: 4px 8px;
    font-size: 11.5px;
    gap: 4px;
  }
  header.top-header .user-bar {
    gap: 5px;
  }
  .top-region-select {
    max-width: 98px;
  }
  .studio-topbar .scene-btn-kicker {
    display: none;
  }
  .studio-topbar #in-open {
    width: 56px;
  }
  .studio-topbar #jobContextLabel {
    max-width: 108px;
  }
  .studio-topbar .vp-dock-btn,
  .studio-topbar .studio-job-actions > .btn,
  .studio-topbar .studio-job-actions .axon-menu-trigger,
  .studio-topbar .studio-job-actions .calc-studio-trigger,
  .studio-topbar .studio-job-actions #saveMenuBtn,
  .studio-topbar .studio-job-actions #exportMenuBtn {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 11.5px;
  }
}
@media (max-width: 1520px) {
  #fullscreenToggleBtn,
  .studio-topbar #studioCalcMenuBtn .mob-hide-lbl {
    display: none;
  }
  body[data-active-tab="studio"] .active-pack-pill,
  body[data-active-tab="studio"] .header-meta-dot {
    display: none;
  }
}
@media (max-width: 768px) {
  .calc-popout-pill {
    top: auto;
    bottom: 14px;
    right: 12px;
  }
  .studio-topbar #jobContextBtn,
  .studio-topbar #quickPublishPortalBtn {
    display: none !important;
  }
  .studio-topbar .param-undo-cluster .btn {
    min-width: 25px;
    padding: 0 5px;
    font-size: 12px;
  }
  .studio-topbar #exportMenuBtn {
    padding: 0 8px;
    font-size: 11px;
  }
  .studio-topbar #exportMenuBtnLabel {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* ==========================================================================
   CADZAP PUBLIC SAAS LANDING, SUITES, PLANS & LEGAL FOOTER (T5 DUAL-TONE PRO)
   ========================================================================== */

.lock-screen:not(.w3-gate-root) {
  display: block;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(1100px 560px at 50% 6%, rgba(59, 107, 255, 0.17), transparent 70%),
    radial-gradient(680px 380px at 85% 24%, rgba(34, 211, 238, 0.06), transparent 70%),
    #07090E;
}

.lock-screen.hidden {
  display: none !important;
}

.cz-landing-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.10);
}

.cz-lt-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cz-lt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.cz-lt-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

.cz-lt-beta-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 107, 255, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.42);
  color: #93C5FD;
  font-family: 'JetBrains Mono', var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cz-lt-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cz-lt-link {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.cz-lt-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.cz-lt-signin-btn {
  margin-left: 4px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(59, 107, 255, 0.22);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cz-lt-signin-btn:hover {
  background: var(--cad-cobalt);
  border-color: #93C5FD;
}

.cz-landing-hero {
  max-width: 1160px;
  margin: 0 auto;
  min-height: min(calc(100vh - 58px), 840px);
  padding: 34px 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.lock-consent-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #64748B;
}

.lock-consent-note a {
  color: #93C5FD;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lock-consent-note a:hover {
  color: #FFFFFF;
}

.cz-proof-strip {
  width: 100%;
  max-width: 920px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(15, 21, 34, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 10px;
}

.cz-proof-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.cz-proof-item strong {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.cz-proof-item span {
  font-size: 11.5px;
  color: #94A3B8;
}

.cz-proof-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.cz-explore-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(59, 107, 255, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #93C5FD;
  font-size: 11.5px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.cz-explore-pill:hover {
  background: rgba(59, 107, 255, 0.28);
  color: #FFFFFF;
}

/* Below-the-fold Showcase Sections */
.cz-landing-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 22px 68px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.cz-land-sec {
  scroll-margin-top: 76px;
}

.cz-sec-head {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.cz-sec-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cad-cobalt-hi);
  margin-bottom: 8px;
}

.cz-sec-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.cz-sec-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #94A3B8;
}

.cz-suite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cz-suite-card {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #131A29 0%, #0D121D 100%);
  border: 1px solid rgba(226, 232, 240, 0.11);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.cz-suite-tag {
  font-family: 'JetBrains Mono', var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #60A5FA;
}

.cz-suite-card[data-accent="cyan"] .cz-suite-tag { color: #22D3EE; }
.cz-suite-card[data-accent="copper"] .cz-suite-tag { color: #FB923C; }
.cz-suite-card[data-accent="amber"] .cz-suite-tag { color: #E0A458; }
.cz-suite-card[data-accent="sky"] .cz-suite-tag { color: #38BDF8; }
.cz-suite-card[data-accent="emerald"] .cz-suite-tag { color: #34D399; }

.cz-suite-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.cz-suite-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #94A3B8;
  flex: 1;
}

.cz-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.cz-chip-row span {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.11);
  font-family: 'JetBrains Mono', var(--font-head);
  font-size: 10px;
  font-weight: 600;
  color: #CBD5E1;
}

.cz-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cz-pillar-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(16, 22, 35, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.10);
}

.cz-pillar-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 7px;
}

.cz-pillar-card p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.55;
  color: #94A3B8;
}

.cz-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.cz-tier-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #131A29 0%, #0C111B 100%);
  border: 1px solid rgba(226, 232, 240, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.cz-tier-card.featured {
  border-color: rgba(59, 107, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(59, 107, 255, 0.25), 0 18px 42px rgba(0, 0, 0, 0.52);
}

.cz-tier-top strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.cz-tier-price {
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: #E2E8F0;
}

.cz-tier-price small {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
}

.cz-tier-card ul {
  margin: 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #CBD5E1;
  flex: 1;
}

.cz-tier-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid rgba(226, 232, 240, 0.20);
  background: rgba(255, 255, 255, 0.05);
  color: #F8FAFC;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cz-tier-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(96, 165, 250, 0.5);
}

.cz-tier-btn.primary {
  background: var(--cad-cobalt);
  border-color: rgba(147, 197, 253, 0.45);
  color: #FFFFFF;
}

.cz-tier-btn.primary:hover {
  background: #2563EB;
}

/* Public Landing Footer */
.cz-landing-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.10);
  background: #05070B;
  padding: 40px 22px 34px;
}

.cz-lf-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.cz-lf-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.09);
}

.cz-lf-brand p {
  margin: 10px 0 0;
  max-width: 340px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #94A3B8;
}

.cz-lf-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cz-lf-col h4 {
  margin: 0 0 5px;
  font-family: 'JetBrains Mono', var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.cz-lf-col a {
  font-size: 12.5px;
  color: #94A3B8;
  transition: color 0.15s ease;
}

.cz-lf-col a:hover {
  color: #FFFFFF;
}

.cz-lf-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 11.5px;
  color: #64748B;
}

.cz-lf-bottom strong {
  color: #94A3B8;
}

.cz-lf-bottom a {
  color: #93C5FD;
  text-decoration: underline;
}

/* Signed-in Workspace Legal & Account Links */
.acct-legal-links {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  font-size: 11.5px;
}

.acct-legal-links a {
  color: var(--cad-cobalt-hi);
  font-weight: 600;
}

.acct-legal-links a:hover {
  text-decoration: underline;
}

.hub-legal-bar {
  margin-top: 28px;
  padding: 16px 4px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 11.5px;
  color: var(--muted);
}

.hub-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.hub-legal-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.hub-legal-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 1040px) {
  .cz-suite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cz-pillar-grid,
  .cz-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cz-lf-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .cz-lt-inner {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
  }
  .cz-lt-hide-sm,
  .cz-proof-dot {
    display: none;
  }
  .cz-lt-links {
    gap: 2px;
  }
  .cz-lt-link {
    padding: 5px 7px;
    font-size: 11.5px;
  }
  .cz-landing-hero {
    min-height: auto;
    padding: 18px 14px 24px;
  }
  .cz-landing-hero .lock-split-card {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }
  .cz-landing-hero .lock-showcase,
  .cz-landing-hero .lock-form-pane {
    min-width: 0;
  }
  .cz-landing-body {
    padding: 10px 14px 44px;
    gap: 44px;
  }
  .cz-suite-grid,
  .cz-pillar-grid,
  .cz-tier-grid,
  .cz-lf-grid {
    grid-template-columns: 1fr;
  }
}
