@font-face {
  font-family: "Alpha Manrope";
  src: url("vendor/manrope/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

body.spatial-ui-v2 {
  --v2-forest: #082f27;
  --v2-forest-2: #104a3d;
  --v2-paper: #f7f7f2;
  --v2-panel: #fdfdfb;
  --v2-ink: #0c2922;
  --v2-muted: #68756f;
  --v2-line: rgba(26, 56, 47, .12);
  --v2-lime: rgba(216, 255, 83, .84);
  --v2-violet: #6245f5;
  --v2-violet-soft: rgba(238, 235, 255, .78);
  --v2-glass: rgba(255, 255, 255, .68);
  --v2-glass-strong: rgba(255, 255, 255, .84);
  --v2-shadow: 0 9px 24px rgba(20, 46, 38, .10), 0 2px 6px rgba(20, 46, 38, .07);
  --v2-shadow-hover: 0 14px 30px rgba(20, 46, 38, .13), 0 3px 8px rgba(20, 46, 38, .08);
  --sans: "Alpha Manrope", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  background: var(--v2-paper);
  color: var(--v2-ink);
  font-family: var(--sans);
}

body.spatial-ui-v2 button,
body.spatial-ui-v2 .glass-control,
body.spatial-ui-v2 .glass-input {
  border: 1px solid rgba(39, 66, 58, .16);
  background: var(--v2-glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(18, 46, 37, .07),
    0 5px 15px rgba(20, 46, 38, .08),
    0 1px 2px rgba(20, 46, 38, .07);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease,
    background-color .16s ease, opacity .16s ease;
}

body.spatial-ui-v2 button:hover,
body.spatial-ui-v2 .glass-control:hover {
  border-color: rgba(39, 66, 58, .25);
  background: rgba(255, 255, 255, .80);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(18, 46, 37, .08),
    var(--v2-shadow-hover);
  transform: translateY(-1px);
}

body.spatial-ui-v2 button:active,
body.spatial-ui-v2 .glass-control:active {
  transform: translateY(1px) scale(.99);
  box-shadow:
    inset 0 2px 4px rgba(18, 46, 37, .12),
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 1px 3px rgba(20, 46, 38, .08);
}

body.spatial-ui-v2 button:disabled {
  opacity: .42;
  cursor: not-allowed;
  filter: saturate(.55);
  transform: none;
}

body.spatial-ui-v2 button:focus-visible,
body.spatial-ui-v2 a:focus-visible,
body.spatial-ui-v2 input:focus-visible,
body.spatial-ui-v2 select:focus-visible {
  outline: 3px solid rgba(98, 69, 245, .42);
  outline-offset: 3px;
}

body.spatial-ui-v2 .glass-primary,
body.spatial-ui-v2 button.glass-primary,
body.spatial-ui-v2 #board-next,
body.spatial-ui-v2 .v2-new-session {
  border-color: rgba(142, 183, 29, .50);
  background: var(--v2-lime);
  color: #09271f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -2px 0 rgba(94, 129, 7, .16),
    0 0 0 1px rgba(217, 255, 86, .24),
    0 8px 20px rgba(157, 205, 33, .20),
    0 2px 5px rgba(20, 46, 38, .09);
}

body.spatial-ui-v2 .glass-primary:hover,
body.spatial-ui-v2 button.glass-primary:hover,
body.spatial-ui-v2 #board-next:hover,
body.spatial-ui-v2 .v2-new-session:hover {
  border-color: rgba(123, 164, 19, .64);
  background: rgba(224, 255, 102, .92);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(94, 129, 7, .18),
    0 0 0 1px rgba(217, 255, 86, .34),
    0 12px 24px rgba(157, 205, 33, .26),
    0 3px 7px rgba(20, 46, 38, .10);
}

body.spatial-ui-v2 .v2-icon,
body.spatial-ui-v2 .v2-nav-icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body.spatial-ui-v2 .v2-caret {
  width: 15px;
  height: 15px;
  margin-left: 5px;
}

/* Application frame */
body.spatial-ui-v2 #main {
  grid-template-columns: 106px minmax(0, 1fr);
  height: 100dvh;
  min-height: 650px;
  background: var(--v2-paper);
}

body.spatial-ui-v2 #main > header {
  width: auto;
  padding: 20px 10px 16px;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, .10);
  background: var(--v2-forest);
}

body.spatial-ui-v2 .brand {
  align-items: center;
  width: 100%;
  margin: 0 0 16px;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -.025em;
}

body.spatial-ui-v2 .brand img {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
}

body.spatial-ui-v2 .brand .slogan {
  display: none;
}

body.spatial-ui-v2 nav.top {
  gap: 11px;
}

body.spatial-ui-v2 nav.top a {
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 7px 5px;
  border: 1px solid transparent;
  border-radius: 17px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 590;
  text-align: center;
}

body.spatial-ui-v2 nav.top a[hidden] {
  display: none !important;
}

body.spatial-ui-v2 nav.top .v2-nav-icon {
  width: 27px;
  height: 27px;
  filter: brightness(0) invert(1);
  opacity: .94;
}

body.spatial-ui-v2 nav.top a:hover {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .09);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 7px 16px rgba(0, 0, 0, .10);
  transform: translateY(-1px);
}

body.spatial-ui-v2 nav.top a.on {
  border-color: rgba(226, 255, 135, .82);
  background: rgba(216, 255, 83, .91);
  color: #09271f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -2px 0 rgba(94, 129, 7, .18),
    0 0 0 1px rgba(216, 255, 83, .18),
    0 10px 22px rgba(164, 210, 35, .19);
}

body.spatial-ui-v2 nav.top a.on .v2-nav-icon {
  filter: none;
}

body.spatial-ui-v2 #main > header .spacer,
body.spatial-ui-v2 #main > header > .lang-btn,
body.spatial-ui-v2 #main > header > .flame-chip,
body.spatial-ui-v2 #main > header > .child-chip,
body.spatial-ui-v2 #main > header > .tutor-btn {
  display: none;
}

/* Session header */
body.spatial-ui-v2 .workspace {
  grid-template-columns: minmax(300px, 332px) minmax(0, 1fr);
  grid-template-rows: 68px minmax(0, 1fr);
  grid-template-areas:
    "session session"
    "conversation canvas";
  background: var(--v2-paper);
}

body.spatial-ui-v2.text-tutor-active .workspace,
body.spatial-ui-v2.voice-tutor-active .workspace {
  grid-template-columns: minmax(300px, 332px) minmax(0, 1fr);
}

body.spatial-ui-v2 .v2-session-bar {
  grid-area: session;
  position: relative;
  z-index: 31;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 28px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(253, 253, 251, .88);
  box-shadow: 0 2px 12px rgba(20, 46, 38, .045);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
}

body.spatial-ui-v2 .v2-session-summary,
body.spatial-ui-v2 .v2-session-actions,
body.spatial-ui-v2 .v2-session-mode,
body.spatial-ui-v2 .v2-profile-trigger {
  display: flex;
  align-items: center;
}

body.spatial-ui-v2 .v2-session-summary {
  min-width: 0;
  gap: 16px;
}

body.spatial-ui-v2 .v2-session-title {
  max-width: min(48vw, 620px);
  overflow: hidden;
  color: #09251f;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spatial-ui-v2 .v2-session-mode {
  gap: 8px;
  color: var(--v2-muted);
  font-size: 12.5px;
  font-weight: 570;
  white-space: nowrap;
}

body.spatial-ui-v2 .v2-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #70807a;
  box-shadow: 0 0 0 3px rgba(112, 128, 122, .12);
}

body.spatial-ui-v2.voice-tutor-active .v2-status-dot {
  background: #38bd78;
  box-shadow: 0 0 0 3px rgba(56, 189, 120, .14), 0 0 12px rgba(56, 189, 120, .30);
}

body.spatial-ui-v2 .v2-session-actions {
  gap: 14px;
}

body.spatial-ui-v2 .v2-new-session {
  min-height: 46px;
  padding: 0 18px;
  gap: 9px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 760;
}

body.spatial-ui-v2 .v2-profile {
  position: relative;
}

body.spatial-ui-v2 .v2-profile-trigger {
  min-width: 68px;
  min-height: 46px;
  justify-content: center;
  gap: 7px;
  padding: 3px 9px 3px 5px;
  border-radius: 999px;
}

body.spatial-ui-v2 .v2-avatar-initials {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(28, 56, 47, .09);
  border-radius: 50%;
  background: rgba(225, 228, 221, .88);
  color: #172f28;
  font-size: 12px;
  font-weight: 780;
}

/* Shared popovers */
body.spatial-ui-v2 .v2-popover {
  position: absolute;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(30, 59, 50, .14);
  border-radius: 18px;
  background: rgba(255, 255, 253, .91);
  box-shadow: 0 22px 52px rgba(12, 40, 32, .17), inset 0 1px 0 rgba(255, 255, 255, .96);
  backdrop-filter: blur(24px) saturate(1.10);
  -webkit-backdrop-filter: blur(24px) saturate(1.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(.985);
  transform-origin: top right;
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}

body.spatial-ui-v2 .v2-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.spatial-ui-v2 .v2-profile-menu {
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, 86vw);
}

body.spatial-ui-v2 .v2-profile-block {
  padding: 8px 8px 10px;
  border-bottom: 1px solid var(--v2-line);
}

body.spatial-ui-v2 .v2-menu-caption {
  display: block;
  margin-bottom: 7px;
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.spatial-ui-v2 .v2-profile-menu .child-chip {
  display: flex;
  width: 100%;
  padding: 4px;
  border-color: var(--v2-line);
  background: rgba(247, 248, 244, .82);
}

body.spatial-ui-v2 .v2-profile-menu .child-chip select {
  min-width: 0;
  flex: 1;
  color: var(--v2-ink);
  background: transparent;
}

body.spatial-ui-v2 .v2-profile-action,
body.spatial-ui-v2 .v2-profile-menu .lang-btn,
body.spatial-ui-v2 .v2-profile-menu .flame-chip,
body.spatial-ui-v2 .v2-menu-action {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--v2-ink);
  font-size: 13px;
  text-align: left;
}

body.spatial-ui-v2 .v2-profile-action:hover,
body.spatial-ui-v2 .v2-profile-menu .lang-btn:hover,
body.spatial-ui-v2 .v2-profile-menu .flame-chip:hover,
body.spatial-ui-v2 .v2-menu-action:hover {
  border-color: transparent;
  background: rgba(238, 241, 235, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .90);
  transform: none;
}

body.spatial-ui-v2 .v2-profile-menu .lang-btn {
  margin: 0;
}

body.spatial-ui-v2 .v2-profile-menu .lang-btn .lang-knob {
  display: none;
}

body.spatial-ui-v2 .v2-profile-menu .flame-chip {
  position: static;
  margin: 0;
  text-decoration: none;
}

/* Mia conversation */
body.spatial-ui-v2 .chat {
  grid-area: conversation;
  border-right: 1px solid var(--v2-line);
  background: #fbfbf7;
}

body.spatial-ui-v2 .chat-panel {
  position: relative;
  background: #fbfbf7;
}

body.spatial-ui-v2 .v2-tutor-header {
  position: relative;
  z-index: 24;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  min-height: 78px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(253, 253, 250, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.spatial-ui-v2 .v2-resume-tutor {
  display: none;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 11.5px;
  font-weight: 760;
  white-space: nowrap;
}

body.spatial-ui-v2.tutor-paused .v2-resume-tutor {
  display: inline-flex;
  align-items: center;
}

body.spatial-ui-v2 .v2-tutor-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.spatial-ui-v2 .v2-tutor-identity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

body.spatial-ui-v2 .v2-tutor-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
body.spatial-ui-v2 .v2-tutor-header .v2-tutor-identity { grid-column: 1; grid-row: 1; }
body.spatial-ui-v2 .v2-tutor-header .v2-chat-menu-trigger { grid-column: 2; grid-row: 1; }
body.spatial-ui-v2 .v2-tutor-header .v2-mode-switch,
body.spatial-ui-v2 .v2-tutor-header .v2-resume-tutor { grid-column: 1 / -1; grid-row: 2; }
body.spatial-ui-v2 .v2-tutor-header .v2-mode-switch button { flex: 1; }

body.spatial-ui-v2 .v2-tutor-mini-avatar {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(39, 66, 58, .16);
  border-radius: 15px;
  background: #e5eee4;
}

body.spatial-ui-v2 .v2-tutor-avatar-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

body.spatial-ui-v2 .v2-tutor-mini-avatar:has(.mia-live-avatar.is-ready) .v2-tutor-avatar-fallback {
  opacity: 0;
}

body.spatial-ui-v2 .v2-tutor-mini-avatar .mia-live-avatar {
  inset: 0;
  width: 100%;
  height: 100%;
}

body.spatial-ui-v2 .v2-tutor-identity strong {
  color: #09251f;
  font-size: 22px;
  font-weight: 790;
  letter-spacing: -.035em;
}

body.spatial-ui-v2 .v2-tutor-identity span {
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spatial-ui-v2 .v2-mode-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(39, 66, 58, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  box-shadow: inset 0 1px 2px rgba(20, 46, 38, .08), 0 4px 12px rgba(20, 46, 38, .05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

body.spatial-ui-v2.tutor-paused .v2-mode-switch {
  display: none;
}

body.spatial-ui-v2 .v2-mode-switch button {
  min-width: 66px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #32463f;
  font-size: 11.5px;
  font-weight: 690;
}

body.spatial-ui-v2 .v2-mode-switch button.is-active,
body.spatial-ui-v2 .v2-mode-switch #btn-voice.is-active {
  border-color: rgba(191, 229, 216, .32);
  background: rgba(8, 47, 39, .94);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -2px 0 rgba(0, 0, 0, .18),
    0 5px 13px rgba(8, 47, 39, .20);
}

body.spatial-ui-v2 .v2-mode-switch #btn-voice .ti {
  display: none;
}

body.spatial-ui-v2 .v2-mode-switch #btn-voice .tl {
  font: inherit;
}

body.spatial-ui-v2 .v2-icon-button {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  place-items: center;
  border-radius: 14px;
}

body.spatial-ui-v2 .v2-chat-menu {
  top: 64px;
  right: 14px;
}

body.spatial-ui-v2 .v2-voice-settings {
  display: none;
  padding: 8px 15px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(240, 247, 243, .88);
}

body.spatial-ui-v2.voice-tutor-active .v2-voice-settings {
  display: block;
}

body.spatial-ui-v2 .v2-voice-settings .vspeed {
  justify-content: center;
  margin: 0;
}

body.spatial-ui-v2 .chat-panel > .panel-title {
  display: none !important;
}

body.spatial-ui-v2.text-tutor-active .mia-presence {
  display: none;
}

html[data-tutor="leo"] body.spatial-ui-v2.text-tutor-active .mia-presence {
  display: block;
  flex: 0 0 166px;
  height: 166px;
}

html[data-tutor="leo"] body.spatial-ui-v2.text-tutor-active .mia-live-avatar {
  opacity: 0;
}

html[data-tutor="leo"] body.spatial-ui-v2.text-tutor-active .mia-presence-fallback {
  opacity: 1 !important;
}

html[data-tutor="leo"] body.spatial-ui-v2.text-tutor-active .mia-listening {
  display: none;
}

html[data-tutor="leo"] body.spatial-ui-v2.text-tutor-active .mia-presence-copy,
html[data-tutor="leo"] body.spatial-ui-v2.text-tutor-active .mia-presence::after {
  display: none;
}

body.spatial-ui-v2.voice-tutor-active .mia-presence {
  display: block;
  flex: 0 0 min(35vh, 300px);
}

body.spatial-ui-v2.voice-tutor-active:not(.voice-transcript-open) .mia-presence {
  flex: 1 1 auto;
}

body.spatial-ui-v2 .mia-live-avatar {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease;
}

body.spatial-ui-v2 .mia-live-avatar.is-ready {
  opacity: 1;
}

body.spatial-ui-v2 .mia-live-avatar-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  filter: saturate(.96) contrast(1.01);
}

body.spatial-ui-v2 .mia-presence-fallback {
  transition: opacity .34s ease;
}

body.spatial-ui-v2 .mia-presence:has(.mia-live-avatar.is-ready) .mia-presence-fallback {
  opacity: 0;
}

body.spatial-ui-v2 .mia-live-avatar[data-voice-state="thinking"]::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .84);
  box-shadow: 14px 0 0 rgba(255, 255, 255, .58), 28px 0 0 rgba(255, 255, 255, .34);
  animation: mia-thinking-dots 1.05s ease-in-out infinite alternate;
}

body.spatial-ui-v2 .mia-live-avatar.is-loading::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-right-color: rgba(216, 255, 83, .92);
  border-radius: 50%;
  animation: mia-avatar-loading .9s linear infinite;
}

body.spatial-ui-v2 .mia-live-avatar.is-loading {
  opacity: .82;
}

@keyframes mia-avatar-loading {
  to { transform: rotate(1turn); }
}

body.spatial-ui-v2 .mia-voice-feedback {
  position: absolute;
  z-index: 6;
  right: 15px;
  bottom: 58px;
  left: 15px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 10px 13px;
  border-color: rgba(255, 255, 255, .48);
  border-radius: 17px;
  background: rgba(250, 253, 248, .76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(8, 47, 39, .08),
    0 16px 34px rgba(8, 35, 28, .20),
    0 3px 8px rgba(8, 35, 28, .10);
  color: var(--v2-forest);
  pointer-events: none;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

body.spatial-ui-v2 .mia-voice-feedback[hidden] { display: none !important; }
body.spatial-ui-v2 .mia-voice-feedback.is-visible { opacity: 1; transform: translateY(0); }

body.spatial-ui-v2 .mvf-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(8, 47, 39, .08);
  border-radius: 13px;
  background: rgba(220, 255, 111, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

body.spatial-ui-v2 .mvf-icon svg { width: 32px; height: 32px; }

body.spatial-ui-v2 .mvf-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

body.spatial-ui-v2 .mvf-copy small {
  color: rgba(37, 71, 61, .68);
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.spatial-ui-v2 .mvf-line {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spatial-ui-v2 .mvf-pulse {
  position: absolute;
  top: 11px;
  right: 13px;
  display: flex;
  gap: 3px;
}

body.spatial-ui-v2 .mvf-pulse i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(8, 47, 39, .58);
  animation: mia-feedback-pulse 1.45s ease-in-out infinite;
}

body.spatial-ui-v2 .mvf-pulse i:nth-child(2) { animation-delay: .16s; }
body.spatial-ui-v2 .mvf-pulse i:nth-child(3) { animation-delay: .32s; }

@keyframes mia-feedback-pulse {
  0%, 100% { opacity: .24; transform: translateY(0); }
  50% { opacity: .9; transform: translateY(-2px); }
}

body.spatial-ui-v2 .mia-voice-feedback[data-kind="error"] {
  border-color: rgba(174, 72, 54, .22);
  background: rgba(255, 246, 241, .86);
  color: #6f2e23;
}

@keyframes mia-thinking-dots {
  to { transform: translateY(-4px); opacity: .58; }
}

@media (prefers-reduced-motion: reduce) {
  body.spatial-ui-v2 .mia-live-avatar,
  body.spatial-ui-v2 .mia-presence-fallback,
  body.spatial-ui-v2 .mia-live-avatar[data-voice-state="thinking"]::after {
    transition: none;
    animation: none;
  }
  body.spatial-ui-v2 .mia-voice-feedback,
  body.spatial-ui-v2 .v2-status-toast { transition: none; }
  body.spatial-ui-v2 .mvf-pulse i,
  body.spatial-ui-v2 .mia-live-avatar.is-loading::before { animation: none; }
}

body.spatial-ui-v2 .v2-transcript-toggle {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 62px;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, .46);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(8, 47, 39, .08),
    0 10px 24px rgba(8, 35, 28, .18),
    0 2px 5px rgba(8, 35, 28, .10);
  color: var(--v2-forest);
  font-size: 11.5px;
  font-weight: 740;
}

body.spatial-ui-v2 .v2-transcript-toggle .v2-icon {
  width: 18px;
  height: 18px;
}

body.spatial-ui-v2.voice-transcript-open .v2-transcript-toggle {
  right: 14px;
  bottom: 14px;
  min-height: 38px;
}

body.spatial-ui-v2.voice-tutor-active:not(.voice-transcript-open) .v2-tutor-header {
  border-bottom-color: rgba(255, 255, 255, .10);
}

body.spatial-ui-v2 #messages {
  padding: 20px 18px;
  gap: 14px;
  background: #fbfbf7;
}

body.spatial-ui-v2 .msg {
  max-width: 88%;
  padding: 12px 14px;
  border: 1px solid rgba(39, 66, 58, .07);
  border-radius: 15px;
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: 0 3px 9px rgba(20, 46, 38, .04);
}

body.spatial-ui-v2 .msg.bot {
  border: 0;
  border-radius: 4px 15px 15px 15px;
  background: #eef1eb;
}
body.spatial-ui-v2 .msg.bot .tutor-replay {
  display: block;
  margin-top: 8px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #47675e;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
body.spatial-ui-v2 .msg.bot .tutor-replay:disabled { opacity: .55; cursor: wait; }

body.spatial-ui-v2 .msg.user {
  border-color: rgba(98, 69, 245, .15);
  border-radius: 15px 4px 15px 15px;
  background: rgba(238, 235, 255, .92);
  color: #251568;
}

body.spatial-ui-v2 .msg.sys,
body.spatial-ui-v2 .msg.thinking {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--v2-muted);
  font-size: 11.5px;
}

body.spatial-ui-v2 .msg.sys.howto-hint {
  width: auto;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

body.spatial-ui-v2 .msg.sys.howto-hint b {
  color: var(--v2-violet);
}

body.spatial-ui-v2 .chat-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 15px 16px;
  border-top: 1px solid var(--v2-line);
  background: rgba(253, 253, 251, .90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.spatial-ui-v2 .v2-latest-reply {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  padding: 11px 13px 12px 16px;
  border: 1px solid rgba(39, 66, 58, .09);
  border-left: 3px solid rgba(116, 159, 22, .72);
  border-radius: 15px;
  background: rgba(239, 245, 231, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74), 0 7px 20px rgba(20, 46, 38, .055);
}

body.spatial-ui-v2 .v2-latest-reply[hidden],
body.spatial-ui-v2.voice-tutor-active .v2-latest-reply {
  display: none !important;
}

body.spatial-ui-v2 .v2-latest-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

body.spatial-ui-v2 .v2-latest-reply-head strong {
  color: var(--v2-forest);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.spatial-ui-v2 .v2-reply-expand {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #4d663f;
  font-size: 10px;
  font-weight: 680;
}

body.spatial-ui-v2 .v2-latest-reply p {
  display: -webkit-box;
  overflow: auto;
  max-height: 44px;
  margin: 0;
  color: #193c31;
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.spatial-ui-v2 .v2-latest-reply.is-expanded p {
  display: block;
  max-height: 28vh;
  -webkit-line-clamp: initial;
}

body.spatial-ui-v2 .v2-status-source { display: none !important; }

body.spatial-ui-v2 .v2-status-toast {
  position: absolute;
  z-index: 42;
  top: 82px;
  left: calc(332px + 22px);
  display: flex;
  max-width: min(460px, calc(100% - 390px));
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 9px 11px 9px 14px;
  border-color: rgba(39, 66, 58, .12);
  border-radius: 14px;
  background: rgba(253, 253, 250, .84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 12px 30px rgba(20, 46, 38, .12);
  color: var(--v2-forest);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .18s ease, transform .18s ease;
}

body.spatial-ui-v2 .v2-status-toast[hidden] { display: none !important; }
body.spatial-ui-v2 .v2-status-toast.is-visible { opacity: 1; transform: translateY(0); }

body.spatial-ui-v2 .v2-status-toast-copy {
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spatial-ui-v2 .v2-status-toast-close {
  display: grid;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(8, 47, 39, .06);
  box-shadow: none;
  color: var(--v2-forest);
  font-size: 16px;
}

body.spatial-ui-v2 .v2-composer {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 4px;
  border-radius: 17px;
}

body.spatial-ui-v2 #chat-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--v2-ink);
  font-size: 13px;
}

body.spatial-ui-v2 #chat-input:focus-visible {
  outline: 0;
}

body.spatial-ui-v2 #btn-mic.v2-composer-mic,
body.spatial-ui-v2 #btn-send.v2-composer-send {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 13px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  color: transparent;
  font-size: 0;
}

body.spatial-ui-v2 #btn-mic.v2-composer-mic {
  border-color: transparent;
  background-color: transparent;
  background-image: url("vendor/phosphor/regular/microphone.svg");
  box-shadow: none;
}

body.spatial-ui-v2 #btn-send.v2-composer-send {
  border-color: rgba(184, 231, 35, .72);
  background-color: rgba(216, 255, 83, .88);
  background-image: url("vendor/phosphor/regular/paper-plane-tilt.svg");
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), inset 0 -1px 0 rgba(52, 88, 7, .12), 0 7px 16px rgba(95, 124, 18, .14);
}

body.spatial-ui-v2 #btn-mic.v2-composer-mic.rec,
body.spatial-ui-v2 #btn-mic.v2-composer-mic:disabled,
body.spatial-ui-v2 #btn-mic.v2-composer-mic.is-processing {
  width: auto;
  max-width: 190px;
  padding: 0 12px 0 36px;
  background-position: 11px center;
  color: #5a3ed0;
  font-size: 10.5px;
}

body.spatial-ui-v2 #btn-mic.v2-composer-mic[data-dictation-state="recording"] {
  border-color: rgba(115, 82, 231, .18);
  background-color: rgba(239, 235, 255, .90);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 7px 18px rgba(83, 58, 181, .10);
}

body.spatial-ui-v2 .v2-problem-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.spatial-ui-v2 .v2-add-wrap {
  position: relative;
}

body.spatial-ui-v2 .v2-add-trigger,
body.spatial-ui-v2 .v2-show-work {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

body.spatial-ui-v2 .v2-add-menu {
  left: 0;
  bottom: calc(100% + 9px);
  transform-origin: bottom left;
}

body.spatial-ui-v2 .v2-solved {
  display: none;
}

body.spatial-ui-v2 .v2-message-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--v2-ink);
  font-weight: 680;
}

body.spatial-ui-v2 .v2-message-control .v2-icon {
  width: 17px;
  height: 17px;
}

body.spatial-ui-v2 .media-bar {
  display: none;
}

body.spatial-ui-v2 #bean-badge {
  display: none !important;
}

/* Solution Canvas */
body.spatial-ui-v2 .media {
  grid-area: canvas;
  padding: 18px;
  background: var(--v2-paper);
}

body.spatial-ui-v2 #stage {
  flex-basis: 84px;
  height: 84px;
  min-height: 84px;
  margin-bottom: 12px;
  border-color: rgba(39, 66, 58, .16);
  border-radius: 17px;
  background: rgba(236, 238, 232, .76);
}

body.spatial-ui-v2.board-live:not(.camera-active) #stage {
  display: none;
}

body.spatial-ui-v2.v2-board-preview #stage {
  display: none;
}

body.spatial-ui-v2.camera-active #stage {
  display: flex;
  height: min(23vh, 220px);
  min-height: 150px;
}

body.spatial-ui-v2 #board-panel {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  border: 1px solid rgba(39, 66, 58, .14);
  border-radius: 20px;
  background: rgba(255, 255, 253, .96);
  box-shadow: 0 12px 32px rgba(20, 46, 38, .055), inset 0 1px 0 #fff;
  overflow: auto;
}

body.spatial-ui-v2 .board-head {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(255, 255, 253, .91);
  backdrop-filter: blur(20px) saturate(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.05);
}

body.spatial-ui-v2 #btn-layout.v2-layout-control {
  min-height: 42px;
}

body.spatial-ui-v2 #btn-layout.v2-layout-control .v2-icon {
  width: 17px;
  height: 17px;
}

body.spatial-ui-v2 .board-title {
  color: #08251e;
  font-size: 22px;
  font-weight: 790;
  letter-spacing: -.04em;
}

body.spatial-ui-v2 #board-state {
  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.spatial-ui-v2 .v2-board-progress {
  color: #32453f;
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

body.spatial-ui-v2 .v2-board-menu {
  top: 60px;
  right: 17px;
}

body.spatial-ui-v2 #board-problem,
body.spatial-ui-v2 #board-practice {
  margin: 20px 28px 4px;
  border: 1px solid rgba(98, 69, 245, .14);
  border-radius: 15px;
  background: rgba(246, 247, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

body.spatial-ui-v2 #jxgbox {
  flex: 1 1 260px;
  min-height: 260px;
  background: transparent;
}

body.spatial-ui-v2 .board-step-workspace {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

/* The BoardPresenter keeps ownership of both panes: its step navigation
   updates the diagram and the ledger together. */
body.spatial-ui-v2 #board-panel.has-ledger .board-step-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .84fr);
  gap: 0;
  min-height: 300px;
}

body.spatial-ui-v2 #board-panel.has-ledger .board-step-workspace > #jxgbox {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-right: 1px solid var(--v2-line);
}

body.spatial-ui-v2 #board-panel.has-ledger .board-step-workspace > #board-notes {
  min-width: 0;
  min-height: 300px;
  border-top: 0;
  overflow-y: auto;
}

body.spatial-ui-v2 #board-panel.has-ledger #jxgbox {
  flex-basis: min(42vh, 390px);
  height: auto;
  min-height: 230px;
}

body.spatial-ui-v2 #board-panel.has-ledger .board-step-workspace > #jxgbox {
  flex-basis: auto;
  height: 100%;
  min-height: 300px;
}

@media (max-width: 1200px) {
  body.spatial-ui-v2 #board-panel.has-ledger .board-step-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(230px, 42vh) minmax(180px, 1fr);
  }

  body.spatial-ui-v2 #board-panel.has-ledger .board-step-workspace > #jxgbox {
    height: 100%;
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--v2-line);
  }

  body.spatial-ui-v2 #board-panel.has-ledger .board-step-workspace > #board-notes {
    min-height: 180px;
  }
}

body.spatial-ui-v2 #board-notes {
  padding: 24px 54px 32px;
}

body.spatial-ui-v2 .note-line {
  padding: 8px 0 8px 18px;
  border-left: 3px solid rgba(98, 69, 245, .34);
  color: #18352d;
  font-size: 16px;
  line-height: 1.65;
}

body.spatial-ui-v2 .bl-step.now .bl-badge {
  border-color: rgba(226, 217, 255, .72);
  background: var(--v2-violet);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .44),
    inset 0 -2px 0 rgba(31, 13, 123, .24),
    0 0 0 5px rgba(98, 69, 245, .10),
    0 6px 14px rgba(98, 69, 245, .22);
}

body.spatial-ui-v2 .board-fact {
  border: 1px solid rgba(98, 69, 245, .18);
  border-left: 4px solid var(--v2-violet);
  border-radius: 15px;
  background: rgba(250, 249, 255, .92);
  box-shadow: inset 0 1px 0 #fff, 0 9px 26px rgba(64, 42, 163, .055);
}

body.spatial-ui-v2 .v2-board-footer {
  position: sticky;
  z-index: 20;
  bottom: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 12px 22px;
  border-top: 1px solid var(--v2-line);
  background: rgba(255, 255, 253, .90);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
}

body.spatial-ui-v2 .v2-board-footer:not(.has-steps) {
  visibility: hidden;
}

body.spatial-ui-v2 .v2-board-prev {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  place-items: center;
  border-radius: 15px;
}

body.spatial-ui-v2 .v2-board-next {
  min-width: 126px;
  min-height: 50px;
  padding: 0 45px 0 20px;
  border-radius: 16px;
  background-image: url("vendor/phosphor/regular/arrow-right.svg");
  background-position: calc(100% - 17px) center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  color: #09271f;
  font-size: 13px;
  font-weight: 780;
}

body.spatial-ui-v2 .v2-step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

body.spatial-ui-v2 .v2-step-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dde0db;
  box-shadow: inset 0 1px 2px rgba(20, 46, 38, .08);
}

body.spatial-ui-v2 .v2-step-dots i.is-active {
  background: var(--v2-violet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .46), 0 0 0 4px rgba(98, 69, 245, .09), 0 3px 8px rgba(98, 69, 245, .22);
}

/* Compact desktop */
@media (max-width: 1180px) {
  body.spatial-ui-v2 #main {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  body.spatial-ui-v2 .brand {
    font-size: 11px;
  }

  body.spatial-ui-v2 .brand img {
    width: 48px;
    height: 48px;
  }

  body.spatial-ui-v2 nav.top a {
    min-height: 67px;
    font-size: 10.5px;
  }

  body.spatial-ui-v2 .workspace,
  body.spatial-ui-v2.text-tutor-active .workspace,
  body.spatial-ui-v2.voice-tutor-active .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  body.spatial-ui-v2 .v2-session-bar {
    padding-inline: 19px;
  }

  body.spatial-ui-v2 .v2-tutor-header {
    grid-template-columns: minmax(54px, 1fr) auto;
  }

  body.spatial-ui-v2 .v2-tutor-identity span {
    display: none;
  }

  body.spatial-ui-v2 .v2-chat-menu-trigger {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 10px;
  }

  body.spatial-ui-v2 .v2-chat-menu-trigger .v2-icon {
    width: 16px;
    height: 16px;
  }

  body.spatial-ui-v2 #board-notes {
    padding-inline: 34px;
  }

  body.spatial-ui-v2 .v2-status-toast {
    left: 322px;
    max-width: calc(100% - 342px);
  }
}

@media (max-width: 920px) {
  body.spatial-ui-v2 #main {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    height: 100dvh;
    overflow: hidden;
  }

  body.spatial-ui-v2 #main > header {
    position: static;
    display: flex;
    width: auto;
    padding: 13px 8px;
  }

  body.spatial-ui-v2 .brand span:not(.slogan),
  body.spatial-ui-v2 nav.top a {
    font-size: 0;
  }

  body.spatial-ui-v2 nav.top a {
    min-height: 58px;
  }

  body.spatial-ui-v2 .workspace,
  body.spatial-ui-v2.text-tutor-active .workspace,
  body.spatial-ui-v2.voice-tutor-active .workspace {
    display: grid;
    grid-template-columns: 278px minmax(0, 1fr);
    grid-template-rows: 62px minmax(0, 1fr);
    grid-template-areas:
      "session session"
      "conversation canvas";
    min-height: 0;
    overflow: hidden;
  }

  body.spatial-ui-v2 .v2-session-title {
    max-width: 38vw;
    font-size: 17px;
  }

  body.spatial-ui-v2 .v2-session-mode {
    display: none;
  }

  body.spatial-ui-v2 .v2-new-session .v2-label {
    display: none;
  }

  body.spatial-ui-v2 .v2-new-session {
    width: 46px;
    min-width: 46px;
    padding: 0;
  }

  body.spatial-ui-v2 .media {
    min-height: 0;
    padding: 12px;
  }

  body.spatial-ui-v2 #board-notes {
    padding-inline: 26px;
  }

  body.spatial-ui-v2 .v2-status-toast {
    left: 298px;
    max-width: calc(100% - 316px);
  }
}

@media (max-width: 720px) {
  body.spatial-ui-v2 {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  body.spatial-ui-v2 #main {
    display: flex;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body.spatial-ui-v2 #main > header {
    position: fixed;
    z-index: 90;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 70px;
    padding: 7px 10px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    border-right: 0;
  }

  body.spatial-ui-v2 .brand {
    display: none;
  }

  body.spatial-ui-v2 nav.top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  body.spatial-ui-v2 nav.top a {
    min-height: 55px;
    border-radius: 14px;
  }

  body.spatial-ui-v2 nav.top .v2-nav-icon {
    width: 23px;
    height: 23px;
  }

  body.spatial-ui-v2 .workspace,
  body.spatial-ui-v2.text-tutor-active .workspace,
  body.spatial-ui-v2.voice-tutor-active .workspace {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 70px);
    padding-bottom: 70px;
    overflow: visible;
  }

  body.spatial-ui-v2 .v2-session-bar {
    position: sticky;
    top: 0;
    min-height: 60px;
    padding: 0 12px;
  }

  body.spatial-ui-v2 .v2-session-title {
    max-width: 47vw;
    font-size: 16px;
  }

  body.spatial-ui-v2 .chat {
    order: 2;
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid var(--v2-line);
  }

  body.spatial-ui-v2 .media {
    order: 3;
    min-height: 680px;
  }

  body.spatial-ui-v2 .v2-tutor-header {
    min-height: 68px;
  }

  body.spatial-ui-v2 .v2-status-toast {
    position: fixed;
    top: 70px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  body.spatial-ui-v2 .v2-board-footer {
    padding-inline: 14px;
  }

  body.spatial-ui-v2 .v2-step-dots {
    gap: 9px;
  }
}

@media (max-width: 440px) {
  body.spatial-ui-v2 .v2-profile-trigger {
    min-width: 46px;
    width: 46px;
    padding: 3px;
  }

  body.spatial-ui-v2 .v2-profile-trigger > .v2-icon {
    display: none;
  }

  body.spatial-ui-v2 .v2-session-actions {
    gap: 7px;
  }

  body.spatial-ui-v2 .v2-mode-switch button {
    min-width: 60px;
    padding-inline: 9px;
  }

  body.spatial-ui-v2 .v2-problem-actions {
    flex-wrap: wrap;
  }

  body.spatial-ui-v2 .v2-show-work {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.spatial-ui-v2 *,
  body.spatial-ui-v2 *::before,
  body.spatial-ui-v2 *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
