/* VECTOR AI — private voice tutor modal. All selectors are vv-prefixed so the
   feature can be dropped into the existing site without changing course UI. */
body.vector-voice-open { overflow: hidden; }

.vv-layer[hidden],
.vv-layer [hidden] { display: none !important; }

.vv-layer {
  --vv-ease: cubic-bezier(.22, 1, .36, 1);
  --vv-danger: #ff5c5c;
  position: fixed;
  inset: 0;
  z-index: 10000;
  color: var(--text, #f4f4ef);
  font-family: var(--body, "Inter", sans-serif);
  opacity: 0;
  transition: opacity .22s ease;
  isolation: isolate;
}

.vv-layer.is-open { opacity: 1; }

.vv-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 48%, rgba(var(--acc-rgb, 200, 255, 0), .1), transparent 34%),
    rgba(2, 3, 2, .92);
  backdrop-filter: blur(24px) saturate(115%);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
}

.vv-shell {
  position: absolute;
  inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  outline: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 38%),
    rgba(7, 8, 7, .97);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  box-shadow: 0 30px 120px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.04);
  transform: translateY(10px) scale(.992);
  transition: transform .42s var(--vv-ease);
}

.vv-layer.is-open .vv-shell { transform: translateY(0) scale(1); }

.vv-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 28% 50%, #000, transparent 68%);
}

.vv-header {
  position: relative;
  z-index: 4;
  min-height: 72px;
  padding: 0 clamp(18px, 3vw, 42px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7,8,7,.72);
  backdrop-filter: blur(16px);
}

.vv-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.vv-brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #030400;
  background: var(--acc, #c8ff00);
  box-shadow: 0 0 26px rgba(var(--acc-rgb, 200,255,0), .22);
  font: 800 16px/1 var(--mono, monospace);
}
.vv-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  font: 600 15px/1 var(--display, sans-serif);
  letter-spacing: .28em;
  white-space: nowrap;
}
.vv-brand-name b { color: var(--acc, #c8ff00); font-weight: 600; }

.vv-header-state {
  min-width: 132px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: var(--dim, #8f8f88);
  font: 600 10px/1.2 var(--mono, monospace);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.vv-header-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc, #c8ff00);
  box-shadow: 0 0 12px var(--acc, #c8ff00);
}
.vv-layer[data-orb="error"] .vv-header-dot { background: var(--vv-danger); box-shadow: 0 0 12px var(--vv-danger); }

.vv-icon-btn {
  width: 40px;
  height: 40px;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--dim, #8f8f88);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.vv-icon-btn:hover { color: var(--text, #fff); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); transform: rotate(4deg); }
.vv-icon-btn:focus-visible { outline: 2px solid var(--acc, #c8ff00); outline-offset: 3px; }
.vv-icon-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.vv-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(430px, 1.08fr);
}

.vv-orb-column {
  position: relative;
  min-height: 0;
  padding: clamp(22px, 4vw, 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.07);
}

.vv-orb-column::before {
  content: "";
  position: absolute;
  width: min(58vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--acc-rgb, 200,255,0), .1), rgba(var(--acc-rgb, 200,255,0), .025) 37%, transparent 67%);
  filter: blur(4px);
  pointer-events: none;
}

.vv-orb-field {
  --vv-core-scale: 1;
  --vv-halo-scale: 1;
  --vv-reactive-opacity: .3;
  position: relative;
  width: min(39vw, 460px);
  min-width: 290px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.vv-orb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.vv-orb-halo {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: scale(var(--vv-halo-scale));
  opacity: var(--vv-reactive-opacity);
  background: rgba(var(--acc-rgb, 200,255,0), .09);
  box-shadow: 0 0 80px 18px rgba(var(--acc-rgb, 200,255,0), .14);
  filter: blur(10px);
  transition: transform .08s linear, opacity .1s linear;
}

.vv-orb-core {
  position: relative;
  z-index: 2;
  width: 32%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: scale(var(--vv-core-scale));
  background:
    radial-gradient(circle at 38% 30%, rgba(255,255,255,.72), transparent 9%),
    radial-gradient(circle at 42% 35%, var(--acc, #c8ff00), rgba(var(--acc-rgb,200,255,0),.82) 38%, rgba(var(--acc-rgb,200,255,0),.25) 72%, rgba(0,0,0,.8));
  border: 1px solid rgba(255,255,255,.44);
  box-shadow:
    0 0 0 1px rgba(var(--acc-rgb,200,255,0),.28),
    0 0 44px rgba(var(--acc-rgb,200,255,0),.38),
    0 0 110px rgba(var(--acc-rgb,200,255,0),.16),
    inset -16px -20px 36px rgba(0,0,0,.35);
  transition: transform .08s linear, filter .32s;
}
.vv-orb-core::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.24);
  opacity: .65;
}
.vv-orb-core span { color: #030400; font: 800 clamp(32px, 4vw, 56px)/1 var(--mono, monospace); text-shadow: 0 1px 0 rgba(255,255,255,.2); }

.vv-layer[data-orb="speaking"] .vv-orb-core { filter: saturate(1.18) brightness(1.08); }
.vv-layer[data-orb="muted"] .vv-orb-core { filter: grayscale(.75) brightness(.66); }
.vv-layer[data-orb="error"] .vv-orb-core { filter: grayscale(.9) brightness(.65); }

.vv-ripple {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(var(--acc-rgb,200,255,0),.58);
  opacity: 0;
  animation: vv-ripple 3s var(--vv-ease) infinite;
  box-shadow: inset 0 0 24px rgba(var(--acc-rgb,200,255,0),.04), 0 0 18px rgba(var(--acc-rgb,200,255,0),.04);
}
.vv-ripple-two { animation-delay: 1s; }
.vv-ripple-three { animation-delay: 2s; }
.vv-layer[data-orb="idle"] .vv-ripple { animation-duration: 4.8s; }
.vv-layer[data-orb="muted"] .vv-ripple,
.vv-layer[data-orb="error"] .vv-ripple,
.vv-layer[data-orb="done"] .vv-ripple { animation-play-state: paused; opacity: .08; }
@keyframes vv-ripple {
  0% { transform: scale(.72); opacity: 0; }
  15% { opacity: .44; }
  100% { transform: scale(2.8); opacity: 0; }
}

.vv-orb-readout {
  position: relative;
  z-index: 2;
  margin-top: -2%;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--dim, #8f8f88);
  font: 600 10px/1.2 var(--mono, monospace);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.vv-orb-readout b { color: var(--text, #fff); font-weight: 600; }
.vv-signal-bars { height: 15px; display: flex; align-items: center; gap: 2px; }
.vv-signal-bars i { width: 2px; height: 4px; background: var(--acc, #c8ff00); border-radius: 3px; animation: vv-bars .8s ease-in-out infinite alternate; }
.vv-signal-bars i:nth-child(2), .vv-signal-bars i:nth-child(4) { animation-delay: -.42s; }
.vv-signal-bars i:nth-child(3) { animation-delay: -.18s; }
.vv-layer[data-orb="idle"] .vv-signal-bars i,
.vv-layer[data-orb="muted"] .vv-signal-bars i,
.vv-layer[data-orb="done"] .vv-signal-bars i,
.vv-layer[data-orb="error"] .vv-signal-bars i { animation-play-state: paused; height: 3px; opacity: .42; }
@keyframes vv-bars { to { height: 14px; } }

.vv-content {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 76px);
  overflow: auto;
}
.vv-view { width: min(100%, 660px); animation: vv-view-in .42s var(--vv-ease) both; }
@keyframes vv-view-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.vv-eyebrow {
  margin: 0 0 16px;
  color: var(--acc, #c8ff00);
  font: 700 10px/1.3 var(--mono, monospace);
  letter-spacing: .21em;
  text-transform: uppercase;
}
.vv-view h1 {
  margin: 0;
  max-width: 720px;
  color: var(--text, #fff);
  font: 600 clamp(40px, 5.2vw, 74px)/.94 var(--display, sans-serif);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.vv-lede { max-width: 590px; margin: 24px 0 0; color: var(--dim, #999); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.62; }

.vv-ellipsis { display: inline-block; width: 0; overflow: visible; animation: vv-ellipsis 1.5s steps(4,end) infinite; }
@keyframes vv-ellipsis { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.vv-skeleton { display: grid; gap: 11px; margin-top: 42px; }
.vv-skeleton span { display: block; height: 12px; width: 100%; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(var(--acc-rgb,200,255,0),.12), rgba(255,255,255,.04)); background-size: 200% 100%; animation: vv-shimmer 1.5s linear infinite; }
.vv-skeleton span:nth-child(2) { width: 82%; }
.vv-skeleton span:nth-child(3) { width: 58%; }
@keyframes vv-shimmer { to { background-position: -200% 0; } }

.vv-context-card {
  position: relative;
  margin-top: 28px;
  padding: 18px 20px 18px 23px;
  overflow: hidden;
  border: 1px solid rgba(var(--acc-rgb,200,255,0),.2);
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(var(--acc-rgb,200,255,0),.085), rgba(255,255,255,.018));
}
.vv-context-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--acc, #c8ff00); box-shadow: 0 0 16px var(--acc, #c8ff00); }
.vv-context-label { display: block; margin-bottom: 4px; color: var(--dim, #999); font: 600 9px/1.2 var(--mono, monospace); letter-spacing: .17em; text-transform: uppercase; }
.vv-context-card strong { display: block; color: var(--text, #fff); font: 600 17px/1.3 var(--display, sans-serif); text-transform: uppercase; }
.vv-context-card p { margin: 6px 0 0; color: var(--dim, #999); font-size: 13px; line-height: 1.45; }

.vv-quota {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
}
.vv-quota > div { min-width: 0; padding: 15px 17px; border-right: 1px solid rgba(255,255,255,.08); }
.vv-quota > div:last-child { border-right: 0; }
.vv-quota span { display: block; overflow: hidden; color: var(--faint, #666); font: 600 8px/1.35 var(--mono, monospace); letter-spacing: .13em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.vv-quota strong { display: block; margin-top: 5px; overflow: hidden; color: var(--text, #fff); font: 600 15px/1.2 var(--display, sans-serif); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

.vv-start-note { margin: 17px 0 0; display: flex; align-items: flex-start; gap: 9px; color: var(--faint, #666); font-size: 11px; line-height: 1.5; }
.vv-start-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: var(--acc, #c8ff00); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vv-start-note.is-warning { color: #d6aa78; }
.vv-start-note.is-warning svg { stroke: #ffc24d; }

.vv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 27px; }
.vv-primary, .vv-secondary, .vv-danger {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 100px;
  padding: 13px 23px;
  font: 700 11px/1 var(--mono, monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, color .2s, background .2s, border-color .2s;
}
.vv-primary { color: #020300; border: 1px solid var(--acc, #c8ff00); background: var(--acc, #c8ff00); box-shadow: 0 10px 32px rgba(var(--acc-rgb,200,255,0),.14); }
.vv-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 15px 42px rgba(var(--acc-rgb,200,255,0),.24); }
.vv-primary:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.vv-secondary { color: var(--dim, #999); border: 1px solid rgba(255,255,255,.12); background: transparent; }
.vv-secondary:hover { color: var(--text, #fff); border-color: rgba(255,255,255,.32); }
.vv-danger { color: #fff; border: 1px solid rgba(255,92,92,.48); background: rgba(255,92,92,.12); }
.vv-danger:hover { border-color: var(--vv-danger); background: rgba(255,92,92,.2); }
.vv-primary:focus-visible, .vv-secondary:focus-visible, .vv-danger:focus-visible, .vv-control:focus-visible { outline: 2px solid var(--acc, #c8ff00); outline-offset: 3px; }
.vv-btn-icon, .vv-control-icon { display: grid; place-items: center; }
.vv-btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.vv-progress-track { height: 3px; margin-top: 42px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.07); }
.vv-progress-track span { display: block; width: 4%; height: 100%; border-radius: inherit; background: var(--acc, #c8ff00); box-shadow: 0 0 18px var(--acc, #c8ff00); transition: width .65s var(--vv-ease); }
.vv-progress-safe { margin: 15px 0 0; color: var(--faint, #666); font: 600 10px/1.5 var(--mono, monospace); letter-spacing: .05em; }
.vv-progress-safe span { color: var(--acc, #c8ff00); margin-right: 5px; }

.vv-call { align-self: stretch; height: min(100%, 690px); display: flex; flex-direction: column; }
.vv-call-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.vv-call .vv-eyebrow { margin-bottom: 10px; }
.vv-call h1 { font-size: clamp(32px, 3.8vw, 55px); }
.vv-timer {
  min-width: 88px;
  padding: 11px 14px;
  text-align: center;
  color: var(--acc, #c8ff00);
  border: 1px solid rgba(var(--acc-rgb,200,255,0),.22);
  border-radius: 100px;
  background: rgba(var(--acc-rgb,200,255,0),.06);
  font: 600 17px/1 var(--mono, monospace);
  font-variant-numeric: tabular-nums;
}
.vv-timer.is-low { color: #ff9e63; border-color: rgba(255,115,65,.4); background: rgba(255,115,65,.08); animation: vv-timer-pulse 1s ease-in-out infinite alternate; }
@keyframes vv-timer-pulse { to { box-shadow: 0 0 22px rgba(255,115,65,.16); } }

.vv-transcript {
  min-height: 180px;
  flex: 1 1 auto;
  margin-top: 24px;
  padding: 19px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 17px;
  background: rgba(255,255,255,.018);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--acc-rgb,200,255,0),.25) transparent;
  transition: opacity .2s, min-height .25s, flex-basis .25s;
}
.vv-transcript.is-hidden { min-height: 60px; flex: 0 0 60px; overflow: hidden; opacity: .22; }
.vv-transcript-empty { height: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--faint, #666); font-size: 13px; line-height: 1.55; }
.vv-live-dot { width: 6px; height: 6px; margin-right: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--acc, #c8ff00); box-shadow: 0 0 12px var(--acc, #c8ff00); animation: vv-live 1.5s ease-in-out infinite; }
@keyframes vv-live { 50% { opacity: .25; } }
.vv-caption { position: relative; padding: 0 0 18px 66px; }
.vv-caption:last-child { padding-bottom: 0; }
.vv-caption > span { position: absolute; left: 0; top: 3px; color: var(--faint, #666); font: 700 8px/1.3 var(--mono, monospace); letter-spacing: .14em; }
.vv-caption-agent > span { color: var(--acc, #c8ff00); }
.vv-caption p { margin: 0; color: var(--text, #fff); font-size: 15px; line-height: 1.52; }
.vv-caption-user p { color: #b6b6af; }
.vv-caption.is-interrupted p { opacity: .56; }
.vv-caption em { display: inline-block; margin-top: 4px; color: var(--faint, #666); font: 500 8px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; }

.vv-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 19px;
}
.vv-control {
  min-width: 94px;
  min-height: 56px;
  padding: 9px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--dim, #999);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
  font: 600 9px/1 var(--mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.vv-control:hover { color: var(--text, #fff); border-color: rgba(255,255,255,.26); transform: translateY(-1px); }
.vv-control[aria-pressed="true"]:not(.is-muted) { color: var(--acc, #c8ff00); border-color: rgba(var(--acc-rgb,200,255,0),.25); background: rgba(var(--acc-rgb,200,255,0),.05); }
.vv-control.is-muted, .vv-control.is-off { color: #d6aa78; }
.vv-control.vv-end { color: #ff9a9a; }
.vv-control-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vv-control-icon.vv-cc { width: 22px; height: 17px; border: 1px solid currentColor; border-radius: 4px; font: 800 8px/1 var(--mono, monospace); }
.vv-mic-off { display: none; }
.vv-control.is-muted .vv-mic-on { display: none; }
.vv-control.is-muted .vv-mic-off { display: block; }

.vv-result-stat { margin-top: 30px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.vv-result-stat span { color: var(--acc, #c8ff00); font: 700 9px/1 var(--mono, monospace); letter-spacing: .17em; }
.vv-result-stat strong { color: var(--text, #fff); font: 600 14px/1 var(--mono, monospace); }

.vv-confirm {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(13px);
  animation: vv-confirm-in .2s ease both;
}
@keyframes vv-confirm-in { from { opacity: 0; } }
.vv-confirm-card { width: min(100%, 510px); padding: clamp(25px, 4vw, 42px); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: #0d0e0c; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.vv-confirm-card h2 { margin: 0; color: var(--text, #fff); font: 600 clamp(27px, 4vw, 39px)/1.02 var(--display, sans-serif); letter-spacing: -.025em; text-transform: uppercase; }
.vv-confirm-card > p:not(.vv-eyebrow) { margin: 16px 0 0; color: var(--dim, #999); font-size: 14px; line-height: 1.55; }
.vv-announcer { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  .vv-shell { inset: 0; border: 0; border-radius: 0; }
  .vv-header { min-height: 64px; }
  .vv-main { grid-template-columns: 1fr; grid-template-rows: minmax(190px, 35vh) minmax(0, 1fr); }
  .vv-orb-column { padding: 10px 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .vv-orb-field { width: min(70vw, 310px); min-width: 210px; }
  .vv-orb-readout { margin-top: -6%; }
  .vv-content { align-items: flex-start; padding: 30px max(20px, env(safe-area-inset-left)) calc(30px + env(safe-area-inset-bottom)); }
  .vv-view { margin: auto 0; }
  .vv-view h1 { font-size: clamp(36px, 9.5vw, 58px); }
  .vv-call { height: auto; min-height: 100%; }
  .vv-transcript { min-height: 170px; max-height: 34vh; }
}

@media (max-width: 560px) {
  .vv-header { grid-template-columns: 1fr auto; padding: 0 16px; }
  .vv-header-state { display: none; }
  .vv-brand-name { font-size: 13px; }
  .vv-main { grid-template-rows: minmax(166px, 29vh) minmax(0, 1fr); }
  .vv-orb-field { width: min(64vw, 245px); min-width: 185px; }
  .vv-orb-readout { font-size: 8px; }
  .vv-content { padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
  .vv-lede { margin-top: 17px; font-size: 14px; }
  .vv-context-card { margin-top: 21px; }
  .vv-context-card p { max-height: 3em; overflow: hidden; }
  .vv-quota { grid-template-columns: 1fr 1fr; }
  .vv-quota > div { padding: 13px 14px; }
  .vv-quota > div:nth-child(2) { border-right: 0; }
  .vv-quota > div:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); }
  .vv-actions { align-items: stretch; flex-direction: column; }
  .vv-primary, .vv-secondary, .vv-danger { width: 100%; }
  .vv-start-note { font-size: 10px; }
  .vv-call-top { align-items: center; }
  .vv-call h1 { font-size: clamp(30px, 8.5vw, 42px); }
  .vv-timer { min-width: 74px; font-size: 15px; }
  .vv-transcript { margin-top: 18px; padding: 15px; }
  .vv-caption { padding-left: 54px; }
  .vv-caption p { font-size: 14px; }
  .vv-controls { gap: 7px; }
  .vv-control { min-width: 0; flex: 1 1 0; padding: 8px; flex-direction: column; gap: 5px; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .vv-header { min-height: 60px; }
  .vv-content { padding-top: 24px; padding-bottom: 24px; }
  .vv-orb-field { width: min(34vw, 370px); }
  .vv-lede { margin-top: 16px; }
  .vv-context-card { margin-top: 18px; }
  .vv-actions { margin-top: 19px; }
  .vv-transcript { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .vv-layer, .vv-shell, .vv-view, .vv-primary, .vv-secondary, .vv-danger, .vv-control, .vv-icon-btn { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .vv-ripple, .vv-signal-bars i, .vv-live-dot, .vv-timer.is-low { animation: none !important; }
  .vv-ripple-one { opacity: .14; transform: scale(1.7); }
  .vv-ripple-two { opacity: .08; transform: scale(2.2); }
  .vv-ripple-three { opacity: .04; transform: scale(2.7); }
}

@media (forced-colors: active) {
  .vv-shell, .vv-context-card, .vv-quota, .vv-transcript, .vv-control { border: 1px solid CanvasText; }
  .vv-orb-core { background: Highlight; color: HighlightText; }
}

/* Persistent course copilot. The dock is always present for an active course;
   the expanded surface stays compact so the question beneath it remains usable. */
body.vector-voice-open { overflow: auto; }

.vv-dock[hidden] { display: none !important; }
.vv-dock {
  position: fixed;
  z-index: 9999;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(296px, calc(100vw - 32px));
  color: var(--text, #f4f4ef);
  filter: drop-shadow(0 20px 42px rgba(0,0,0,.5));
}
/* Keep both persistent helpers reachable on question screens. */
body.has-calc-dock .vv-dock { bottom: max(82px, calc(72px + env(safe-area-inset-bottom))); }
.vv-dock-surface {
  width: 100%;
  min-height: 66px;
  padding: 9px 13px 9px 9px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  color: inherit;
  border: 1px solid rgba(var(--acc-rgb,200,255,0),.3);
  border-radius: 19px;
  background: linear-gradient(118deg, rgba(var(--acc-rgb,200,255,0),.095), rgba(12,13,11,.96) 45%), rgba(8,9,8,.97);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 0 0 1px rgba(0,0,0,.35);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  cursor: pointer;
  transition: transform .22s var(--vv-ease), border-color .22s, opacity .22s;
}
.vv-dock-surface:hover { transform: translateY(-2px); border-color: rgba(var(--acc-rgb,200,255,0),.58); }
.vv-dock-surface:focus-visible { outline: 2px solid var(--acc, #c8ff00); outline-offset: 4px; }
.vv-dock.is-panel-open .vv-dock-surface { border-color: rgba(var(--acc-rgb,200,255,0),.6); }
.vv-dock-orb { position: relative; width: 48px; aspect-ratio: 1; display: grid; place-items: center; }
.vv-dock-orb::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #efffb0 0, var(--acc,#c8ff00) 24%, #6f9100 62%, #0b0e00 100%);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 0 20px rgba(var(--acc-rgb,200,255,0),.42), inset -5px -7px 12px rgba(0,0,0,.38);
}
.vv-dock-orb b { position: relative; z-index: 2; color: #050700; font: 800 15px/1 var(--mono,monospace); }
.vv-dock-orb i { position: absolute; inset: 3px; border: 1px solid rgba(var(--acc-rgb,200,255,0),.34); border-radius: 50%; animation: vv-dock-pulse 3s ease-out infinite; }
.vv-dock-orb i:nth-child(2) { animation-delay: 1.5s; }
@keyframes vv-dock-pulse { 0% { transform: scale(.68); opacity: .65; } 80%,100% { transform: scale(1.12); opacity: 0; } }
.vv-dock-copy { min-width: 0; text-align: left; }
.vv-dock-copy strong { display: block; font: 650 12px/1.15 var(--display,sans-serif); letter-spacing: .17em; white-space: nowrap; }
.vv-dock-copy strong em { color: var(--acc,#c8ff00); font-style: normal; }
.vv-dock-copy small { display: block; margin-top: 5px; overflow: hidden; color: var(--dim,#999); font: 550 9px/1.2 var(--mono,monospace); letter-spacing: .035em; text-overflow: ellipsis; white-space: nowrap; }
.vv-dock-wave { height: 24px; display: flex; align-items: center; gap: 2px; }
.vv-dock-wave i { width: 2px; height: 5px; border-radius: 2px; background: var(--acc,#c8ff00); opacity: .62; animation: vv-dock-bars .8s ease-in-out infinite alternate; }
.vv-dock-wave i:nth-child(2) { animation-delay: -.42s; }.vv-dock-wave i:nth-child(3) { animation-delay: -.2s; }.vv-dock-wave i:nth-child(4) { animation-delay: -.58s; }
@keyframes vv-dock-bars { to { height: 18px; opacity: 1; } }

.vv-layer { pointer-events: none; }
.vv-backdrop { display: none; }
.vv-shell {
  pointer-events: auto;
  inset: auto max(16px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) auto;
  width: min(486px, calc(100vw - 32px));
  height: min(740px, calc(100dvh - 122px - env(safe-area-inset-bottom)));
  border-radius: 23px;
  box-shadow: 0 30px 100px rgba(0,0,0,.72), 0 0 0 1px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.045);
  transform: translateY(14px) scale(.98);
}
.vv-header { min-height: 60px; padding: 0 16px 0 18px; grid-template-columns: 1fr auto auto; gap: 10px; }
.vv-header-state { min-width: 0; font-size: 8px; letter-spacing: .1em; }
.vv-icon-btn { width: 34px; height: 34px; }
.vv-main { display: block; min-height: 0; }
.vv-orb-column { display: none; }
.vv-content { height: 100%; display: block; padding: 24px 22px 26px; overflow-y: auto; }
.vv-view { width: 100%; }
.vv-view h1 { font-size: clamp(29px, 5vw, 38px); line-height: .98; }
.vv-lede { margin-top: 14px; font-size: 13px; line-height: 1.52; }
.vv-eyebrow { margin-bottom: 10px; font-size: 8px; }
.vv-context-card { margin-top: 18px; padding: 14px 15px 14px 18px; }
.vv-context-card strong { font-size: 14px; }
.vv-context-card p { max-height: 3em; overflow: hidden; font-size: 11px; }
.vv-quota { margin-top: 11px; }
.vv-quota > div { padding: 11px 12px; }
.vv-quota span { font-size: 7px; }
.vv-quota strong { font-size: 12px; }
.vv-start-note { margin-top: 12px; font-size: 9px; }
.vv-actions { margin-top: 17px; }
.vv-primary, .vv-secondary, .vv-danger { min-height: 42px; padding: 10px 16px; font-size: 9px; }
.vv-preflight .vv-actions { justify-content: space-between; }
.vv-preflight .vv-secondary { min-width: 90px; }

.vv-copilot-tools { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 7px; margin-top: 12px; }
.vv-copilot-tools button {
  min-height: 48px;
  padding: 9px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text,#fff);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  font: 650 8px/1.25 var(--mono,monospace);
  letter-spacing: .035em;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.vv-copilot-tools button:first-child { color: var(--acc,#c8ff00); border-color: rgba(var(--acc-rgb,200,255,0),.24); background: rgba(var(--acc-rgb,200,255,0),.045); }
.vv-copilot-tools button:hover { border-color: rgba(var(--acc-rgb,200,255,0),.45); background: rgba(var(--acc-rgb,200,255,0),.07); }
.vv-copilot-tools button:focus-visible, .vv-question-choices button:focus-visible { outline: 2px solid var(--acc,#c8ff00); outline-offset: 2px; }
.vv-copilot-tools button span { color: var(--acc,#c8ff00); font-size: 13px; }

.vv-tool-output { margin-top: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(3,4,3,.58); }
.vv-tool-output.is-loading { border-color: rgba(var(--acc-rgb,200,255,0),.18); }
.vv-tool-output.is-loading::before { content:""; display:block; width:32%; height:2px; margin-bottom:10px; background:var(--acc,#c8ff00); animation:vv-tool-load 1.1s ease-in-out infinite alternate; }
@keyframes vv-tool-load { to { width: 82%; opacity:.35; } }
.vv-tool-message-title { display:block; color:var(--acc,#c8ff00); font:650 11px/1.25 var(--display,sans-serif); text-transform:uppercase; }
.vv-tool-message { margin:5px 0 0; color:var(--dim,#999); font-size:11px; line-height:1.45; }
.vv-tool-output.is-error .vv-tool-message-title { color:#ff8b8b; }
.vv-question-meta { display:flex; flex-wrap:wrap; gap:5px; }
.vv-question-meta span { padding:4px 6px; color:var(--acc,#c8ff00); border:1px solid rgba(var(--acc-rgb,200,255,0),.2); border-radius:99px; font:650 7px/1 var(--mono,monospace); letter-spacing:.08em; }
.vv-question-stem { margin:12px 0; color:var(--text,#fff); font:560 15px/1.42 var(--display,sans-serif); }
.vv-question-choices { display:grid; gap:6px; }
.vv-question-choices button { min-height:39px; padding:8px 10px; display:grid; grid-template-columns:25px 1fr; align-items:center; gap:8px; text-align:left; color:var(--text,#fff); border:1px solid rgba(255,255,255,.09); border-radius:10px; background:rgba(255,255,255,.018); cursor:pointer; }
.vv-question-choices button:hover:not(:disabled) { border-color:rgba(var(--acc-rgb,200,255,0),.38); }
.vv-question-choices button b { width:24px; height:24px; display:grid; place-items:center; color:var(--dim,#999); border:1px solid rgba(255,255,255,.12); border-radius:7px; font:650 9px/1 var(--mono,monospace); }
.vv-question-choices button span { font-size:11px; line-height:1.35; }
.vv-question-choices button.is-correct { border-color:rgba(var(--acc-rgb,200,255,0),.48); background:rgba(var(--acc-rgb,200,255,0),.075); }
.vv-question-choices button.is-correct b { color:#050700; border-color:var(--acc,#c8ff00); background:var(--acc,#c8ff00); }
.vv-question-choices button.is-wrong { border-color:rgba(255,92,92,.45); background:rgba(255,92,92,.06); }
.vv-question-explanation { margin-top:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,.08); }
.vv-question-explanation strong { color:var(--acc,#c8ff00); font:650 10px/1.25 var(--mono,monospace); text-transform:uppercase; }
.vv-question-explanation.is-wrong strong { color:#ff9999; }
.vv-question-explanation p { margin:5px 0 0; color:var(--dim,#aaa); font-size:11px; line-height:1.45; }

.vv-layer.has-tool-question .vv-preflight > h1 { font-size:24px; }
.vv-layer.has-tool-question .vv-preflight > .vv-lede,
.vv-layer.has-tool-question .vv-context-card,
.vv-layer.has-tool-question .vv-quota,
.vv-layer.has-tool-question .vv-start-note { display:none; }
.vv-layer.has-tool-question .vv-copilot-tools { margin-top:13px; }
.vv-layer.has-tool-question .vv-preflight .vv-actions { margin-top:10px; }
.vv-layer.has-tool-question .vv-preflight .vv-primary,
.vv-layer.has-tool-question .vv-preflight .vv-secondary { min-height:36px; padding-block:8px; }

.vv-call { height:100%; min-height:0; }
.vv-call h1 { font-size:30px; }
.vv-transcript { min-height:150px; margin-top:16px; padding:14px; }
.vv-controls { margin-top:13px; }
.vv-control { min-height:48px; }
.vv-confirm-card { width:calc(100% - 24px); padding:24px; }

@media (max-width: 560px) {
  .vv-dock { right:max(10px,env(safe-area-inset-right)); bottom:max(10px,env(safe-area-inset-bottom)); width:60px; }
  body.has-calc-dock .vv-dock { bottom:max(70px,calc(64px + env(safe-area-inset-bottom))); }
  .vv-dock-surface { min-height:60px; padding:6px; display:grid; grid-template-columns:48px; place-items:center; border-radius:18px; }
  .vv-dock-copy, .vv-dock-wave { display:none; }
  .vv-shell { inset:auto 8px calc(80px + env(safe-area-inset-bottom)) 8px; width:auto; height:min(700px,calc(100dvh - 96px - env(safe-area-inset-bottom))); border:1px solid rgba(255,255,255,.1); border-radius:22px; }
  .vv-main { display:block; }
  .vv-content { padding:20px 16px 22px; }
  .vv-view h1 { font-size:30px; }
  .vv-copilot-tools { grid-template-columns:1fr 1fr; }
  .vv-copilot-tools button:last-child { grid-column:1/-1; min-height:40px; }
  .vv-quota { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .vv-quota > div { padding:9px 7px; border-right:1px solid rgba(255,255,255,.08); border-top:0 !important; }
  .vv-quota > div:last-child { grid-column:auto; border-right:0; }
  .vv-preflight .vv-actions { flex-direction:row; }
  .vv-preflight .vv-primary, .vv-preflight .vv-secondary { width:auto; }
  .vv-start-note { display:none; }
  .vv-question-stem { font-size:14px; }
}

@media (prefers-reduced-motion: reduce) {
  .vv-dock-orb i, .vv-dock-wave i, .vv-tool-output.is-loading::before { animation:none !important; }
}

/* Ambient course assistant -------------------------------------------------
   This is intentionally a surface, not a launch button. Course state and the
   three useful actions stay visible; voice is the small optional mic affordance. */
.vv-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.vector-ai-present #app { padding-bottom: 190px; }

.vv-dock {
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(326px, calc(100vw - 28px));
  filter: drop-shadow(0 22px 54px rgba(0,0,0,.58));
  transition: opacity .2s ease, transform .3s var(--vv-ease);
}
body.has-calc-dock .vv-dock { bottom: max(78px, calc(70px + env(safe-area-inset-bottom))); }
.vv-dock.is-panel-open { opacity: 0; pointer-events: none; transform: translateY(10px) scale(.98); }

.vv-dock-surface {
  position: relative;
  min-height: 0;
  padding: 12px;
  display: block;
  overflow: hidden;
  cursor: default;
  border-color: rgba(var(--acc-rgb,200,255,0),.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 4% 0%, rgba(var(--acc-rgb,200,255,0),.12), transparent 38%),
    linear-gradient(145deg, rgba(16,18,14,.975), rgba(7,8,7,.985));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 0 0 1px rgba(0,0,0,.32),
    0 0 34px rgba(var(--acc-rgb,200,255,0),.04);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  transform: none;
}
.vv-dock-surface:hover { transform: none; border-color: rgba(var(--acc-rgb,200,255,0),.34); }
.vv-dock-surface::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  opacity: .7;
  background: linear-gradient(90deg, transparent, var(--acc,#c8ff00) 24%, rgba(var(--acc-rgb,200,255,0),.18) 66%, transparent);
}
.vv-dock-top {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
}
.vv-dock-orb { width: 38px; }
.vv-dock-orb::before { inset: 6px; box-shadow: 0 0 16px rgba(var(--acc-rgb,200,255,0),.32), inset -4px -5px 9px rgba(0,0,0,.4); }
.vv-dock-orb i { inset: 2px; opacity: .7; animation-duration: 3.8s; }
.vv-dock-orb b { font-size: 12px; }
.vv-dock-copy { text-align: left; }
.vv-dock-copy strong { display: flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: .15em; }
.vv-dock-copy strong > i {
  margin-left: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7b8271;
  font: 650 6px/1 var(--mono,monospace);
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vv-dock-copy strong > i span { width: 4px; height: 4px; border-radius: 50%; background: var(--acc,#c8ff00); box-shadow: 0 0 7px rgba(var(--acc-rgb,200,255,0),.72); }
.vv-dock-copy small { margin-top: 4px; color: #777c70; font-size: 8px; letter-spacing: .025em; }
.vv-dock-icons { display: flex; align-items: center; gap: 5px; }
.vv-dock-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #8e9487;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.vv-dock-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.vv-dock-icon:hover { color: var(--text,#fff); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.055); transform: translateY(-1px); }
.vv-dock-icon:focus-visible, .vv-dock-actions button:focus-visible { outline: 2px solid var(--acc,#c8ff00); outline-offset: 2px; }
.vv-dock-icon.vv-dock-mic { color: var(--acc,#c8ff00); border-color: rgba(var(--acc-rgb,200,255,0),.22); background: rgba(var(--acc-rgb,200,255,0),.045); }
.vv-dock-icon:disabled { color: #4c5048; border-color: rgba(255,255,255,.05); background: transparent; cursor: not-allowed; transform: none; }

.vv-dock-insight {
  min-height: 30px;
  margin: 10px 2px 9px;
  display: -webkit-box;
  overflow: hidden;
  color: #b5baae;
  font-size: 10.5px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.vv-dock-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.vv-dock-actions button {
  min-width: 0;
  min-height: 32px;
  padding: 6px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #a3a99b;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
  font: 650 7px/1 var(--mono,monospace);
  letter-spacing: .025em;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.vv-dock-actions button:first-child { color: var(--acc,#c8ff00); border-color: rgba(var(--acc-rgb,200,255,0),.18); }
.vv-dock-actions button span { color: var(--acc,#c8ff00); font-size: 10px; }
.vv-dock-actions button:hover { color: var(--text,#fff); border-color: rgba(var(--acc-rgb,200,255,0),.35); background: rgba(var(--acc-rgb,200,255,0),.045); }

.vv-shell {
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  height: min(730px, calc(100dvh - 28px - env(safe-area-inset-bottom)));
}
body.has-calc-dock .vv-shell { bottom: max(76px, calc(68px + env(safe-area-inset-bottom))); height: min(730px, calc(100dvh - 90px - env(safe-area-inset-bottom))); }
.vv-header { grid-template-columns: 1fr auto auto auto; }
.vv-header-mic { color: var(--acc,#c8ff00); border-color: rgba(var(--acc-rgb,200,255,0),.2); background: rgba(var(--acc-rgb,200,255,0),.045); }
.vv-header-mic:disabled { color: #555a51; border-color: rgba(255,255,255,.06); background: transparent; cursor: not-allowed; }
.vv-layer:not([data-phase="preflight"]) .vv-header-mic { display: none; }

.vv-voice-meta {
  margin-top: 14px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #777d70;
}
.vv-voice-meta-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; }
.vv-voice-meta-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vv-voice-meta-copy { min-width: 0; }
.vv-voice-meta-copy strong { display: block; color: #a9afa2; font: 650 8px/1.2 var(--mono,monospace); letter-spacing: .06em; text-transform: uppercase; }
.vv-voice-meta-copy small { display: block; margin-top: 3px; color: #686d63; font-size: 8px; line-height: 1.35; }
.vv-voice-meta-copy small.is-warning { color: #b28c61; }
.vv-voice-meta-count { text-align: right; }
.vv-voice-meta-count strong { display: block; color: var(--text,#fff); font: 650 10px/1 var(--mono,monospace); }
.vv-voice-meta-count small { display: block; margin-top: 3px; color: #686d63; font: 600 6px/1 var(--mono,monospace); letter-spacing: .05em; text-transform: uppercase; }
.vv-layer.has-tool-question .vv-voice-meta { display: none; }

/* Desmos owns the right edge while open. Keep the assistant usable without
   covering the graph; on narrow screens an active voice room remains visible. */
@supports selector(body:has(*)) {
  body:has(#calc-panel.open) .vv-dock { opacity: 0; pointer-events: none; transform: translateX(18px); }
  @media (min-width: 1000px) {
    body:has(#calc-panel.open) .vv-shell { right: 446px; }
  }
  @media (max-width: 999px) {
    body:has(#calc-panel.open) .vv-layer:not([data-phase="active"]):not([data-phase="connecting"]):not([data-phase="ending"]) { opacity: 0; pointer-events: none; }
  }
}

@media (max-width: 560px) {
  body.vector-ai-present #app { padding-bottom: 176px; }
  .vv-dock { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: auto; }
  body.has-calc-dock .vv-dock { bottom: max(68px, calc(62px + env(safe-area-inset-bottom))); }
  .vv-dock-surface { min-height: 0; padding: 10px; display: block; border-radius: 17px; }
  .vv-dock-top { grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; }
  .vv-dock-orb { width: 34px; }
  .vv-dock-copy { display: block; }
  .vv-dock-copy strong { font-size: 10px; }
  .vv-dock-copy strong > i { display: none; }
  .vv-dock-copy small { font-size: 7.5px; }
  .vv-dock-insight { min-height: 14px; margin: 7px 2px; font-size: 9px; line-height: 1.35; -webkit-line-clamp: 1; }
  .vv-dock-actions { gap: 5px; }
  .vv-dock-actions button { min-height: 29px; font-size: 6.5px; }
  .vv-shell { inset: auto 7px calc(76px + env(safe-area-inset-bottom)) 7px; width: auto; height: min(700px,calc(100dvh - 90px - env(safe-area-inset-bottom))); }
  body.has-calc-dock .vv-shell { bottom: calc(72px + env(safe-area-inset-bottom)); height: min(700px,calc(100dvh - 84px - env(safe-area-inset-bottom))); }
  .vv-header { grid-template-columns: 1fr auto auto; }
  .vv-header-state { display: none; }
  .vv-voice-meta { padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .vv-dock, .vv-dock-icon, .vv-dock-actions button { transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .vv-dock-surface, .vv-dock-icon, .vv-dock-actions button, .vv-voice-meta-icon { border: 1px solid CanvasText; }
}

/* Course-embedded mainframe ------------------------------------------------
   VECTOR AI belongs to the paid-course workspace. Its live course summary is
   mounted in document flow by course.js/app.js, never as a sitewide corner
   widget. Opening a tool uses the regular centered workspace. */
body.vector-ai-present #app { padding-bottom: 0; }

.vector-ai-course-slot {
  width: 100%;
  margin: 22px 0 24px;
}
.vector-ai-course-slot--drill { margin: 16px 0; }
.vector-ai-course-slot:empty { display: none; }

.vector-ai-course-slot .vv-dock {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  filter: none;
}
.vector-ai-course-slot .vv-dock-surface {
  width: 100%;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(230px, .9fr) minmax(240px, 1.35fr) minmax(250px, .9fr);
  align-items: center;
  gap: 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 2% 0%, rgba(var(--acc-rgb,200,255,0),.13), transparent 32%),
    linear-gradient(118deg, rgba(17,19,15,.985), rgba(7,8,7,.985));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), inset 0 0 0 1px rgba(0,0,0,.34);
}
.vector-ai-course-slot .vv-dock-top { min-width: 0; }
.vector-ai-course-slot .vv-dock-insight {
  min-height: 0;
  margin: 0;
  padding: 2px 18px;
  border-left: 1px solid rgba(255,255,255,.08);
  color: #c1c6ba;
  font-size: 11px;
  -webkit-line-clamp: 2;
}
.vector-ai-course-slot .vv-dock-actions { align-self: stretch; }
.vector-ai-course-slot .vv-dock-actions button { min-height: 38px; }

/* The detailed workspace is deliberately centered. The only persistent piece
   is the in-flow dashboard above; nothing remains pinned to the viewport. */
.vv-layer { pointer-events: auto; }
.vv-layer .vv-backdrop { display: block; }
.vv-layer .vv-shell,
body.has-calc-dock .vv-layer .vv-shell {
  inset: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  width: auto;
  height: auto;
}

@media (max-width: 900px) {
  .vector-ai-course-slot .vv-dock-surface {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
  }
  .vector-ai-course-slot .vv-dock-insight {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 10px 2px 0;
    border-top: 1px solid rgba(255,255,255,.07);
    border-left: 0;
  }
  .vector-ai-course-slot .vv-dock-actions {
    grid-column: 2;
    grid-row: 1;
    min-width: 248px;
  }
}

@media (max-width: 620px) {
  .vector-ai-course-slot { margin: 16px 0 18px; }
  .vector-ai-course-slot .vv-dock { inset: auto; width: 100%; }
  .vector-ai-course-slot .vv-dock-surface { padding: 12px; display: block; }
  .vector-ai-course-slot .vv-dock-insight {
    margin: 10px 0 9px;
    padding: 9px 2px 0;
    font-size: 10px;
    -webkit-line-clamp: 2;
  }
  .vector-ai-course-slot .vv-dock-copy strong { font-size: 11px; }
  .vector-ai-course-slot .vv-dock-copy small { font-size: 8px; }
  .vector-ai-course-slot .vv-dock-actions { min-width: 0; }
  .vector-ai-course-slot .vv-dock-actions button { min-height: 36px; font-size: 7.5px; }
  .vv-layer .vv-shell,
  body.has-calc-dock .vv-layer .vv-shell {
    inset: max(7px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
    width: auto;
    height: auto;
  }
}
