:root {
  --ink: #25243a;
  --muted: #6a6884;
  --line: #dedbef;
  --soft: #f0eff8;
  --soft-2: #fff3ee;
  --panel: #ffffff;
  --accent: #6d6a9f;
  --accent-2: #e18a6a;
  --gold: #b99a5b;
  --warn: #fff4dc;
  --bg: #fafafd;
}

* {
  box-sizing: border-box;
}

button {
  font: inherit;
  color: inherit;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

body.is-app-shell .topbar .links,
body.is-app-shell .topbar .mobile-menu {
  display: none !important;
}

body.is-app-shell .topbar .nav {
  max-width: 1280px;
}

body.is-app-shell .side-nav {
  top: 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-logo {
  display: block;
  width: 54px;
  height: auto;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.brand-text small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.links a.active,
.links a:hover {
  color: var(--ink);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.language-menu {
  position: relative;
}

.mobile-menu {
  display: none;
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 4px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.language-menu summary::after {
  content: "▾";
  color: var(--accent);
  font-size: 12px;
  transform: translateY(1px);
  transition: transform 0.2s ease;
}

.language-menu[open] summary::after {
  transform: rotate(180deg) translateY(-1px);
}

.language-menu summary:hover {
  opacity: 0.72;
}

.language-menu summary::-webkit-details-marker,
.mobile-menu summary::-webkit-details-marker,
.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(109, 106, 159, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f6f5fb 100%);
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(66, 61, 110, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.user-menu-trigger:hover,
.user-menu[open] .user-menu-trigger {
  border-color: rgba(109, 106, 159, 0.36);
  box-shadow: 0 10px 24px rgba(66, 61, 110, 0.14);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-avatar-default {
  background: #eceaf5;
  color: #6d6a9f;
}

.user-menu-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.user-menu-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform 0.2s ease;
}

.user-menu[open] .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 35, 34, 0.12);
  padding: 6px;
  z-index: 20;
}

.user-menu-panel a,
.user-menu-logout {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.user-menu-panel a:hover,
.user-menu-logout:hover {
  background: var(--soft);
}

.user-menu-logout {
  color: #b42318;
  font-weight: 700;
}

.mobile-logout-link {
  display: block;
  width: calc(100% - 12px);
  margin: 8px 6px 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #b42318;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.language-options,
.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 35, 34, 0.12);
  padding: 6px;
  z-index: 20;
}

.mobile-menu-panel {
  min-width: 220px;
}

.language-options a,
.mobile-menu-panel a {
  position: relative;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
}

.language-options a:first-child {
  background: var(--soft);
  color: var(--accent);
  font-weight: 800;
  padding-right: 32px;
}

.language-options a:first-child::after {
  content: "✓";
  position: absolute;
  right: 12px;
  color: var(--accent);
}

.language-options a:hover,
.mobile-menu-panel a:hover {
  background: var(--soft);
}

.mobile-menu-group {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
  padding: 8px 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mobile-menu-group.three {
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
}

.mobile-menu-group span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu-group a {
  text-align: center;
}

.mobile-login-link {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  text-align: center;
}

.nav-actions > a.button::after {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 10px;
  margin-left: 7px;
  background: currentColor;
  opacity: 0.9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='%23000' d='M0 5.25h9.5v1.5H0v-1.5Zm9.5-2.75 5.5 3.75-5.5 3.75V2.5Z'/%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 16 12'%3E%3Cpath fill='%23000' d='M0 5.25h9.5v1.5H0v-1.5Zm9.5-2.75 5.5 3.75-5.5 3.75V2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav-actions > a.button {
  gap: 0;
  min-width: 82px;
  padding: 0 13px 0 16px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(66, 61, 110, 0.08);
}

.nav-actions > a.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-actions > a.button[hidden] {
  display: none !important;
}

.nav-actions > a.button.primary:hover {
  color: #fff;
  box-shadow: 0 10px 24px rgba(66, 61, 110, 0.18);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.accent {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #fff;
}

button.button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button.button.primary,
button.button.accent {
  color: #fff;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  min-height: 520px;
}

.hero.compact {
  min-height: auto;
  padding: 38px 0 24px;
}

h1 {
  margin: 12px 0 16px;
  font-size: 46px;
  line-height: 1.1;
}

h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

p {
  margin: 0;
  color: var(--muted);
}

ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 6px;
}

.lead {
  max-width: 680px;
  font-size: 18px;
}

.section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 560px;
}

.therapist-hero,
.onboarding-hero {
  align-items: end;
}

.hero-actions {
  display: flex;
  justify-content: end;
  align-items: center;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.panel {
  background: linear-gradient(180deg, #fff, #f9fcfb);
}

.card.highlight {
  border-color: rgba(109, 106, 159, 0.35);
  background: #f4f3fb;
}

.card.warm {
  background: var(--soft-2);
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 800;
}

.visual-stage {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 50%, rgba(225, 138, 106, 0.9) 0 14px, transparent 15px),
    linear-gradient(90deg, rgba(109, 106, 159, 0.12) 0 1px, transparent 1px),
    linear-gradient(180deg, #f2faf6, #fff);
  background-size: auto, 50% 100%, auto;
  position: relative;
  overflow: hidden;
}

.visual-stage::before,
.visual-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(109, 106, 159, 0.18);
}

.visual-stage::before {
  left: 25%;
}

.visual-stage::after {
  right: 25%;
}

.device-visual {
  min-height: 300px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 32% 48%, #6d6a9f 0 36px, transparent 37px),
    radial-gradient(circle at 68% 48%, #6d6a9f 0 36px, transparent 37px),
    linear-gradient(90deg, transparent 47%, #9fbab4 48% 52%, transparent 53%),
    linear-gradient(180deg, #f0eff8, #fff);
}

.device-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 36px;
}

.device-content .section:first-child {
  padding-top: 0;
}

.device-buy-card {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(30, 50, 47, 0.08);
}

.device-visual.compact {
  min-height: 210px;
  margin: 14px 0 16px;
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin: 14px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbfa, #fff);
}

.product-image img {
  display: block;
  max-width: 78%;
  max-height: 210px;
  object-fit: contain;
}

.room-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  align-self: start;
}

.qr-code {
  width: 180px;
  height: 180px;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.practice-section.is-logged [data-room-guest],
.practice-section.is-guest [data-room-logged],
[data-room-guest][hidden],
[data-room-logged][hidden] {
  display: none !important;
}

.share-field {
  margin: 16px 0 12px;
}

.practice-room-card {
  display: grid;
  gap: 0;
}

.practice-room-main {
  padding-bottom: 4px;
}

.practice-room-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.practice-room-share h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.practice-share-head {
  margin-bottom: 16px;
}

.practice-share-logged {
  margin-top: 0;
}

.practice-share-guest .actions {
  margin-top: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.pill.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.warning {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #edcf98;
  border-radius: 8px;
  background: var(--warn);
  color: #665132;
}

.auth-shell {
  display: grid;
  gap: 26px;
  max-width: 920px;
  margin: 0 auto;
  padding: 44px 0 36px;
}

.auth-intro {
  text-align: center;
}

.auth-intro .lead {
  margin: 0 auto;
}

.auth-switcher {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.auth-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.auth-card[hidden] {
  display: none !important;
}

.auth-tab-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.auth-link {
  text-align: center;
}

.auth-link a {
  color: var(--accent);
  font-weight: 800;
}

.logo-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.logo-options .card {
  display: grid;
  gap: 14px;
}

.logo-options img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow span,
.language-switch span,
.filter span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.language-switch,
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}

.swatch.active {
  box-shadow: 0 0 0 3px rgba(109, 106, 159, 0.32);
}

.swatch.teal {
  background: #6d6a9f;
}

.swatch.green {
  background: #168528;
}

.swatch.yellow {
  background: #ffd21e;
}

.swatch.coral {
  background: #e18a6a;
}

.swatch.blue {
  background: #4267c8;
}

.swatch.gold {
  background: #b99a5b;
}

.swatch.dark {
  background: #25243a;
}

.color-tools {
  position: relative;
}

.swatch-tool {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(109, 106, 159, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f7f6fb 100%);
  color: #4b5560;
  box-shadow: 0 1px 0 #fff inset, 0 3px 8px rgba(66, 61, 110, 0.1);
  cursor: pointer;
  flex: 0 0 auto;
}

.swatch-tool svg {
  width: 20px;
  height: 20px;
}

.swatch-tool .sprite-tool-default {
  width: 28px;
  height: 28px;
}

.swatch-tool.sprite-tool.active .sprite-tool-default,
.swatch-tool [hidden] {
  display: none;
}

.swatch-tool img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
}

.swatch-tool.active {
  border-color: #2f6f73;
  box-shadow: 0 0 0 2px rgba(47, 111, 115, 0.28);
}

.color-picker-popover,
body.control-body .color-picker-popover {
  position: fixed;
  z-index: 80;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 18px 18px 22px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(109, 106, 159, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #fafafd 100%);
  color: var(--ink);
  color-scheme: light;
  box-shadow: 0 18px 40px rgba(37, 36, 58, 0.22);
}

.color-picker-popover[hidden],
body.control-body .color-picker-popover[hidden] {
  display: none;
}

.color-picker-popover *,
body.control-body .color-picker-popover * {
  box-sizing: border-box;
}

.color-picker-popover button,
body.control-body .color-picker-popover button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

.color-picker-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-head strong {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.color-picker-hex-field {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-left: auto;
  border-bottom: 1px solid rgba(109, 106, 159, 0.28);
  padding-bottom: 2px;
  color: var(--ink);
  cursor: text;
}

.color-picker-hex-hash {
  color: #e18a6a;
  font-size: 14px;
  font-weight: 600;
}

.color-picker-hex-field input,
body.control-body .color-picker-popover .color-picker-hex-field input {
  all: unset;
  display: inline-block;
  width: 7.2ch;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  caret-color: var(--ink);
}

.color-picker-close,
body.control-body .color-picker-popover .color-picker-close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(109, 106, 159, 0.1);
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
}

.color-picker-close svg {
  width: 14px;
  height: 14px;
}

.color-picker-sliders {
  display: grid;
  gap: 14px;
  margin: 22px 0 28px;
}

.color-picker-slider {
  position: relative;
  height: 16px;
  min-height: 16px;
  border-radius: 99px;
  cursor: pointer;
  touch-action: none;
}

.color-picker-slider.is-hue {
  background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}

.color-picker-thumb {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.color-picker-presets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.color-picker-presets-head > span {
  color: var(--muted);
  font-size: 13px;
}

.color-picker-presets-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.color-picker-reset,
.color-picker-edit,
body.control-body .color-picker-popover .color-picker-reset,
body.control-body .color-picker-popover .color-picker-edit {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.color-picker-reset {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.color-picker-reset svg {
  width: 16px;
  height: 16px;
  display: block;
}

.color-picker-edit {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.color-picker-presets-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0 2px;
}

.color-picker-current,
body.control-body .color-picker-popover .color-picker-current {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  flex: 0 0 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #6d6a9f;
  color: #fff;
  box-shadow: none;
  cursor: default;
}

.color-picker-current::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  bottom: -16px;
  width: 2px;
  background: var(--picker-current, #c077db);
  opacity: 0.55;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  box-shadow: 0 0 10px var(--picker-current, #c077db);
}

.color-picker-current svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
}

.color-picker-current.is-light {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(37, 36, 58, 0.16);
}

.color-picker-swatches {
  display: grid;
  grid-template-columns: repeat(4, 36px);
  gap: 12px 14px;
}

.color-picker-swatch-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}

.color-picker-swatch,
.color-picker-swatch-add,
body.control-body .color-picker-popover .color-picker-swatch,
body.control-body .color-picker-popover .color-picker-swatch-add {
  display: block;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
}

.color-picker-swatch.is-light {
  box-shadow: 0 0 0 1px rgba(37, 36, 58, 0.16);
}

.color-picker-swatch.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

.color-picker-swatch-remove,
.color-picker-swatch-add,
body.control-body .color-picker-popover .color-picker-swatch-remove,
body.control-body .color-picker-popover .color-picker-swatch-add {
  display: none;
}

.color-picker-popover.is-editing .color-picker-swatch-remove,
.color-picker-popover.is-editing .color-picker-swatch-add,
body.control-body .color-picker-popover.is-editing .color-picker-swatch-remove,
body.control-body .color-picker-popover.is-editing .color-picker-swatch-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.color-picker-swatch-remove,
body.control-body .color-picker-popover.is-editing .color-picker-swatch-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eceaf4;
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.color-picker-swatch-add,
body.control-body .color-picker-popover.is-editing .color-picker-swatch-add {
  border: 1.5px dashed rgba(109, 106, 159, 0.35);
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.session-dialog.sprite-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 18px 18px 16px;
  overflow: hidden;
}

.sprite-dialog-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  height: min(620px, calc(100vh - 120px));
}

.sprite-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 12px;
}

.sprite-cats {
  display: grid;
  align-content: start;
  gap: 6px;
}

.sprite-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sprite-cat img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sprite-cat.active {
  background: #eceaf4;
}

.sprite-preview-block {
  margin-top: auto;
}

.sprite-preview-block strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.sprite-preview-screen {
  display: grid;
  place-items: center;
  height: 120px;
  border-radius: 8px;
  background: #cfd3d8;
}

.sprite-preview-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(23, 35, 34, 0.16);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.sprite-preview-dot.is-sprite {
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.sprite-catalog {
  overflow: auto;
  min-width: 0;
  padding-right: 4px;
}

.sprite-section-title {
  margin: 0 0 10px;
  font-size: 15px;
}

.sprite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 10px;
}

.sprite-tile {
  aspect-ratio: 1;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f4f5f7;
  cursor: pointer;
}

.sprite-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sprite-tile.active {
  border-color: #2f6f73;
  background: #fff;
}

.sprite-tile.is-circle {
  display: grid;
  place-items: center;
}

.sprite-tile.is-circle span {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 35, 34, 0.2);
}

@media (max-width: 720px) {
  .sprite-dialog-layout {
    grid-template-columns: 1fr;
    height: min(70vh, 560px);
  }

  .sprite-cats {
    grid-template-columns: 1fr 1fr;
  }

  .sprite-preview-screen {
    height: 80px;
  }
}

.control-body {
  background: #eceaf4;
  height: 100vh;
  overflow: hidden;
}

.control-body .control-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-width: none;
  width: 100%;
  height: calc(100vh - 69px);
  margin: 0 auto;
  padding: 12px 18px 12px;
  overflow: hidden;
}

.control-body .session-bar {
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(109, 106, 159, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 18px rgba(66, 61, 110, 0.06);
}

.session-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
}

.session-bar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.session-actions.right {
  justify-content: flex-end;
}

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #263230;
}

.connection-state span:first-child {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d21f25;
}

.connection-state.is-waiting span:first-child {
  background: #e0a100;
}

.connection-state.is-connected span:first-child {
  background: #168528;
}

.connection-state.is-reconnecting span:first-child {
  background: #e0a100;
  animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.filter-bar {
  margin-bottom: 1rem;
}

.filter-bar .form-grid {
  margin: 0;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.plan-badge.is-pro {
  color: #168528;
  border-color: #b7e4c7;
  background: #f3fbf5;
}

.icon-tabs button.is-locked,
.number-tabs button.is-locked,
.sound-grid button.is-locked,
.tile-options button.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.control-console,
.control-body .control-console.is-four-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.control-console.is-four-col > .console-card,
.control-console.is-four-col > .modality-stack,
.control-console.is-four-col > .operator-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.control-body .control-console.is-four-col > .console-card,
.control-body .modality-stack > .console-card {
  padding: 14px 0 12px;
}

.control-body .control-console.is-four-col > .console-card > .console-card-head,
.control-body .modality-stack > .console-card > .console-card-head {
  flex: 0 0 auto;
  padding: 0 20px;
}

.control-body .control-console.is-four-col > .console-card > .console-card-body,
.control-body .modality-stack > .console-card > .console-card-body {
  padding: 0 20px 6px;
}

.modality-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.modality-stack > .console-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.modality-stack > .console-card > .console-card-head {
  flex: 0 0 auto;
}

.modality-stack > .console-card > .console-card-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.control-body .visual-panel > .console-card-body {
  container-type: inline-size;
}

.control-console.is-four-col > .console-card > .console-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.control-body .visual-panel .visual-group {
  display: grid;
  gap: 12px;
}

.control-body .visual-panel .visual-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.control-body .visual-panel .visual-field > strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7a7890;
}

.control-body .visual-panel .visual-motion {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr) minmax(0, 0.85fr);
  gap: 10px 12px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid rgba(109, 106, 159, 0.1);
}

.control-body .visual-panel .visual-size {
  grid-column: 1 / -1;
}

.control-body .visual-panel .visual-size .size-control {
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
}

.control-body .visual-panel .visual-size .compact-input {
  min-width: 0;
  width: 52px;
  padding: 6px 4px;
  text-align: center;
}

.control-body .visual-panel .swatches.large {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 8px 6px;
}

.control-body .visual-panel .swatches.large .swatch {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(37, 36, 58, 0.14), 0 2px 4px rgba(37, 36, 58, 0.12);
}

.control-body .visual-panel .swatches.large .swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

.control-body .visual-panel .swatch-tool {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.control-body .visual-panel .swatch-tool svg {
  width: 22px;
  height: 22px;
}

.control-body .visual-panel .swatch-tool .sprite-tool-default,
.control-body .visual-panel .swatch-tool img {
  width: 28px;
  height: 28px;
}

.control-body .visual-panel .swatch-tool.sprite-tool.active .sprite-tool-default,
.control-body .visual-panel .swatch-tool [hidden] {
  display: none;
}

.control-body .visual-panel .tile-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 4px;
}

.control-body .visual-panel .tile {
  flex: 1 1 0;
  min-width: 40px;
  min-height: 32px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: none;
}

.control-body .visual-panel .tile.image-tile,
.control-body .visual-panel .tile.video-tile {
  min-width: 36px;
  padding: 0;
}

.control-body .visual-panel .tile.image-tile svg {
  width: 16px;
  height: 16px;
}

.control-body .visual-panel .tile.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accent);
}

.control-body .visual-panel .segment {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(109, 106, 159, 0.1);
  background: #f1f0f6;
  box-shadow: inset 0 1px 2px rgba(66, 61, 110, 0.04);
}

.control-body .visual-panel .segment button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #5c5a72;
}

.control-body .visual-panel .segment button svg {
  width: 16px;
  height: 16px;
}

.control-body .visual-panel .segment button.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(66, 61, 110, 0.14);
}

@container (max-width: 380px) {
  .control-body .visual-panel .visual-motion {
    grid-template-columns: 1fr;
  }

  .control-body .visual-panel .visual-size {
    grid-column: auto;
  }
}

.control-body .visual-panel .run-log {
  flex: 1 1 auto;
  min-height: 72px;
  max-height: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #f6f5fb;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.run-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.run-log-head strong {
  font-size: 13px;
}

.run-log-head .button {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
}

.run-log-empty {
  margin: 0;
  color: var(--muted);
}

.run-log-list {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.run-log-item {
  display: grid;
  grid-template-columns: 52px repeat(4, minmax(0, 1fr)) auto;
  gap: 6px 8px;
  align-items: baseline;
  padding: 8px 10px;
  border: 1px solid rgba(23, 35, 34, 0.14);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.run-log-item strong {
  font-size: 13px;
}

.run-log-item span {
  color: var(--ink);
}

.run-log-item span small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.run-log-item em {
  font-style: normal;
  color: #168528;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.run-log-item.is-pending em {
  color: var(--muted);
}

.run-log-list::-webkit-scrollbar {
  width: 8px;
}

.run-log-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 35, 34, 0.22);
}

.control-body .stimulus-stack .control-block.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.control-body .control-block {
  gap: 8px;
  margin-bottom: 0;
}

.control-body .console-card {
  padding: 16px 18px;
  border-radius: 14px;
  border-color: rgba(109, 106, 159, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 24px rgba(66, 61, 110, 0.08);
}

.control-body .console-card-head {
  margin-bottom: 10px;
}

.control-body .console-card-head div,
.control-body .console-card-head strong {
  font-size: 16px;
}

.control-body .console-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7f6fc 0%, #eceaf6 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(37, 36, 58, 0.08);
  color: var(--accent);
  font-size: 0;
}

.control-body .console-icon svg {
  width: 20px;
  height: 20px;
}

.control-body .audio-panel .console-icon {
  background: linear-gradient(180deg, #f4faf8 0%, #e7f3ee 100%);
  color: #2f6f73;
}

.control-body .haptic-panel .console-icon {
  background: linear-gradient(180deg, #fff6f2 0%, #f8e8e1 100%);
  color: var(--accent-2);
}

.control-body .operator-panel {
  overflow: hidden;
  gap: 14px;
}

.control-body .visitor-preview,
.control-body .run-dock {
  padding: 18px 20px;
  border-radius: 14px;
  border-color: rgba(109, 106, 159, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 24px rgba(66, 61, 110, 0.08);
}

.control-body .visitor-preview {
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
}

.control-body .preview-frame {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.control-body .run-dock {
  flex: 0 0 auto;
  gap: 14px;
}

.control-body .preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.control-body .preview-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7a7890;
}

.control-body .preview-title .button-icon {
  color: var(--accent);
}

.control-body .preview-actions {
  margin: 0;
  gap: 6px;
}

.control-body .preview-actions .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.control-body .run-field {
  display: grid;
  gap: 8px;
}

.control-body .run-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.control-body .run-field-head strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7a7890;
}

.control-body .run-field-head [data-speed-value] {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.control-body .run-dock .speed-control {
  grid-template-columns: minmax(0, 1fr) 56px;
}

.control-body .run-dock .slider.wide {
  margin-top: 0;
}

.control-body .run-dock .speed-buttons.segment {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(109, 106, 159, 0.1);
  background: #f1f0f6;
  box-shadow: inset 0 1px 2px rgba(66, 61, 110, 0.04);
}

.control-body .run-dock .speed-buttons button {
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
  color: #5c5a72;
}

.control-body .run-dock .speed-buttons button:hover {
  background: #fff;
  color: var(--accent);
}

.control-body .run-dock .session-counter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: stretch;
}

.control-body .session-counter > div:not(.run-tools) {
  min-width: 0;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(109, 106, 159, 0.1);
  background: #f6f5fb;
  box-shadow: none;
}

.control-body .session-counter span {
  font-size: 11px;
  font-weight: 700;
  color: #7a7890;
}

.control-body .session-counter strong {
  font-size: 18px;
}

.control-body .run-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-body .run-tools .button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}

.control-body .run-dock .start-row {
  gap: 8px;
}

.control-body .run-dock .start-row .button:not(.start-button) {
  min-height: 46px;
  padding: 0 12px;
}

.control-body .button {
  gap: 8px;
  border-radius: 10px;
  box-shadow: 0 1px 0 #fff inset, 0 4px 10px rgba(66, 61, 110, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.control-body .button-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.control-body .button:hover {
  transform: translateY(-1px);
}

.control-body .button.primary {
  background: linear-gradient(180deg, #7d79b8 0%, #6d6a9f 100%);
  box-shadow: 0 8px 16px rgba(109, 106, 159, 0.28);
}

.control-body .button.accent {
  background: linear-gradient(180deg, #e9a084 0%, #e18a6a 100%);
  box-shadow: 0 8px 16px rgba(225, 138, 106, 0.28);
}

.control-body .swatches.large .swatch {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 3px 6px rgba(23, 35, 34, 0.18);
}

.control-body .tile,
.control-body .number-tabs button,
.control-body .icon-tabs button,
.control-body .sound-grid button,
.control-body .speed-head button {
  border-radius: 10px;
  border-color: rgba(109, 106, 159, 0.22);
  background: linear-gradient(180deg, #fff 0%, #f7f6fb 100%);
  box-shadow: 0 1px 0 #fff inset, 0 2px 6px rgba(66, 61, 110, 0.06);
}

.control-body .connection-state {
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(109, 106, 159, 0.14);
  background: #fff;
  box-shadow: 0 1px 0 #fff inset, 0 4px 10px rgba(66, 61, 110, 0.05);
}

.control-body .connection-state span:first-child {
  box-shadow: 0 0 0 4px rgba(210, 31, 37, 0.16);
}

.control-body .connection-state.is-connected span:first-child {
  box-shadow: 0 0 0 4px rgba(22, 133, 40, 0.16);
}

.control-body .compact-input {
  border-radius: 10px;
  border: 1px solid rgba(109, 106, 159, 0.2);
  background: #fff;
}

.control-body .preview-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(37, 36, 58, 0.08);
}

.control-body .control-block > strong {
  font-size: 13px;
  color: #3f3d56;
}

.control-body .speed-head strong {
  font-size: 16px;
}

.control-body .start-button {
  min-height: 46px;
  font-size: 16px;
  gap: 8px;
}

.control-body .start-button-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.control-body .stimulus-stack .haptic-product {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(225, 138, 106, 0.18);
  background: linear-gradient(180deg, #fffaf7 0%, #f8eee8 100%);
}

.control-body .stimulus-stack .haptic-product p {
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.control-body .swatches.large .swatch-tool {
  width: 44px;
  height: 44px;
}

.control-body .visual-panel .swatches.large .swatch-tool {
  width: 44px;
  height: 44px;
}

.control-body .tile,
.control-body .number-tabs button,
.control-body .icon-tabs button,
.control-body .sound-grid button {
  min-width: 34px;
  min-height: 30px;
  font-size: 12px;
}

.control-body .icon-tabs button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 8px;
  color: #4a4866;
}

.control-body .icon-tabs button svg {
  display: block;
  width: 18px;
  height: 18px;
}

.control-body .icon-tabs button.active {
  background: linear-gradient(180deg, #8480c4 0%, #6d6a9f 100%);
  border-color: #5a5790;
  color: #fff;
  box-shadow: 0 6px 12px rgba(109, 106, 159, 0.28);
}

.control-body .number-tabs button.active {
  background: linear-gradient(180deg, #8480c4 0%, #6d6a9f 100%);
  border-color: #5a5790;
  color: #fff;
  box-shadow: 0 6px 12px rgba(109, 106, 159, 0.28);
}

.control-body .tile.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(109, 106, 159, 0.55);
}

.control-body .audio-panel .sound-grid button {
  min-height: 32px;
  padding: 0 8px;
  line-height: 1.2;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: none;
}

.control-body .audio-panel .sound-grid button.active {
  border-color: transparent;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accent);
  font-weight: 800;
}

.control-body .audio-panel .audio-group {
  display: grid;
  gap: 10px;
}

.control-body .audio-panel .audio-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.control-body .audio-panel .audio-field > strong,
.control-body .audio-panel .audio-mute > strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7a7890;
}

.control-body .audio-panel .sound-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 6px 4px;
}

.control-body .audio-panel .sound-grid button {
  flex: none;
  min-width: 0;
  width: 100%;
}

.control-body .audio-panel .audio-mix {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid rgba(47, 111, 115, 0.12);
}

.control-body .audio-panel .audio-volume {
  grid-column: 1 / -1;
}

.control-body .audio-panel .audio-mute {
  display: grid;
  justify-items: end;
  gap: 6px;
  padding-bottom: 2px;
}

.stimulus-tabs {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  height: 100%;
}

.tab-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stimulus-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 74px;
  border: 1px solid rgba(23, 35, 34, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(23, 35, 34, 0.1);
  padding: 0 16px;
  cursor: pointer;
}

.stimulus-tab strong {
  margin-right: auto;
  font-size: 24px;
}

.stimulus-tab.is-active {
  border-color: #6d6a9f;
  box-shadow: 0 0 0 4px rgba(109, 106, 159, 0.24);
}

.tab-panels {
  position: relative;
  min-height: 0;
  height: 100%;
}

.tab-panel {
  position: relative;
  display: block;
  overflow: visible;
}

.stimulus-stack .visual-panel,
.stimulus-stack .audio-panel,
.stimulus-stack .haptic-panel {
  display: flex;
}

.console-card {
  border: 1px solid rgba(23, 35, 34, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(23, 35, 34, 0.08);
  padding: 10px 12px 8px;
  min-height: 0;
}

.stimulus-stack .console-card.is-off {
  border-color: rgba(23, 35, 34, 0.1);
  box-shadow: none;
}

.stimulus-stack .console-card.is-off .console-card-body {
  opacity: 0.5;
}

.console-card.expanded {
  overflow-y: auto;
}

.console-card.collapsed {
  max-height: 92px;
  overflow: hidden;
}

.console-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.console-card-head div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.console-card-head strong {
  font-size: 18px;
}

.console-icon {
  font-size: 26px;
}

button.switch {
  border: 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9aa0a8 0%, #7d838a 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #f2f2f6 100%);
  box-shadow: 0 2px 4px rgba(23, 35, 34, 0.28);
  transition: left 0.2s ease;
}

.switch.on {
  background: linear-gradient(180deg, #8b87c4 0%, #6d6a9f 100%);
}

.switch.on::after {
  left: 23px;
}

.control-block {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.control-block.compact-row,
.control-block.compact-row.three,
.stimulus-stack .control-block.split {
  grid-template-columns: 1fr;
}

.stimulus-stack .sound-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0;
}

.control-block.compact-row > div {
  display: grid;
  gap: 6px;
}

.stimulus-stack .control-block:last-child,
.stimulus-stack .actions {
  margin-bottom: 4px;
}

.stimulus-stack .actions {
  margin-top: 6px;
}

.stimulus-stack .sound-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.stimulus-stack .haptic-product {
  grid-template-columns: 52px 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.stimulus-stack .haptic-product img {
  max-width: 52px;
  max-height: 64px;
}

.stimulus-stack .haptic-product p {
  margin: 4px 0 0;
  font-size: 13px;
}

.haptic-product.is-connected strong {
  color: var(--accent);
}

.collapsed-summary {
  color: var(--muted);
  font-weight: 700;
}

.console-card.collapsed .sound-grid,
.console-card.collapsed .control-block,
.console-card.collapsed .haptic-product,
.console-card.collapsed .actions {
  display: none;
}

.control-block.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.swatches.large .swatch {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.tile-options,
.number-tabs,
.icon-tabs,
.sound-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tile,
.number-tabs span,
.number-tabs button,
.icon-tabs span,
.icon-tabs button,
.sound-grid span,
.sound-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 46px;
  border: 1px solid #8c98a0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tile.active,
.number-tabs span.active,
.number-tabs button.active,
.icon-tabs span.active,
.icon-tabs button.active,
.sound-grid span.active,
.sound-grid button.active {
  border-color: #6d6a9f;
  box-shadow: 0 0 0 4px rgba(109, 106, 159, 0.28);
}

.tile.dark-bg {
  background: #2a2a2a;
  color: #fff;
}

.tile.white-bg {
  background: #fff;
}

.tile.pink-bg {
  background: #f8d4da;
}

.tile.image-tile,
.tile.video-tile {
  min-width: 54px;
  padding: 0 10px;
}

.tile.image-tile {
  color: var(--accent);
}

.tile.image-tile svg {
  display: block;
  width: 22px;
  height: 22px;
}

.tile.image-tile.has-image {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.tile.image-tile.has-image svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.icon-tabs span,
.icon-tabs button {
  font-size: 28px;
}

.icon-tabs.compact span,
.icon-tabs.compact button {
  min-width: 62px;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.haptic-product {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
}

.haptic-product img {
  max-width: 100px;
  max-height: 130px;
  object-fit: contain;
}

.operator-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.visitor-preview,
.run-dock {
  border: 1px solid rgba(23, 35, 34, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(23, 35, 34, 0.08);
  padding: 12px;
}

.visitor-preview {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: auto;
}

.run-dock {
  flex: 0 0 auto;
}

.preview-title {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}

.preview-frame {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
}

.preview-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(23, 35, 34, 0.18);
  background: #b9bdbd;
  overflow: hidden;
  transition: background 0.2s ease;
}

.preview-screen.bg-gray {
  background: #b9bdbd;
}

.preview-screen.bg-dark {
  background: #242331;
}

.preview-screen.bg-white {
  background: #fff;
}

.preview-screen.bg-pink {
  background: #f8d4da;
}

.preview-screen.bg-soft {
  background: linear-gradient(135deg, #f0eff8, #fff3ee);
}

.preview-screen.bg-image {
  background: #2a2a2a center / cover no-repeat;
}

.preview-screen.bg-focus {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.95) 0 18%, rgba(240,239,248,0.75) 40%, rgba(109,106,159,0.28) 100%);
}

.moving-dot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.preview-frame:fullscreen,
.preview-frame:-webkit-full-screen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #111;
}

.visitor-preview.is-hidden .preview-frame {
  display: none;
}

.preview-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.run-dock {
  display: grid;
  gap: 8px;
}

.speed-head,
.session-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.speed-head strong {
  font-size: 18px;
}

.speed-head button {
  min-width: 42px;
  height: 32px;
  border: 1px solid rgba(109, 106, 159, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f7f6fb 100%);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 1px 0 #fff inset, 0 2px 6px rgba(66, 61, 110, 0.06);
}

.speed-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.speed-control {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 68px;
  align-items: center;
  gap: 8px;
}

.size-control {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 88px;
  align-items: center;
  gap: 8px;
}

.compact-input {
  min-height: 34px;
  padding: 6px 8px;
}

.inline-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: none;
  gap: 12px;
}

.bar.wide,
.slider.wide {
  margin-top: 8px;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 70%, #e4e2ef 70%);
  box-shadow: inset 0 1px 2px rgba(37, 36, 58, 0.12);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #8b87c4 0%, #6d6a9f 100%);
  box-shadow: 0 2px 6px rgba(66, 61, 110, 0.35);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #8b87c4 0%, #6d6a9f 100%);
  box-shadow: 0 2px 6px rgba(66, 61, 110, 0.35);
  cursor: pointer;
}

.slider:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.session-counter div {
  display: grid;
  justify-items: center;
}

.session-counter span {
  font-weight: 800;
}

.session-counter strong {
  font-size: 28px;
  line-height: 1;
}

.session-counter small {
  color: var(--muted);
  font-weight: 800;
}

.gear-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(109, 106, 159, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f6f5fb 100%);
  color: var(--accent);
  box-shadow: 0 1px 0 #fff inset, 0 4px 10px rgba(66, 61, 110, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gear-button svg {
  width: 18px;
  height: 18px;
}

.gear-button:hover {
  border-color: rgba(109, 106, 159, 0.36);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(66, 61, 110, 0.12);
}

.gear-button:active {
  transform: translateY(0);
}

.session-dialog {
  position: relative;
  width: min(440px, 92vw);
  border: 1px solid rgba(23, 35, 34, 0.14);
  border-radius: 12px;
  padding: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 40px rgba(23, 35, 34, 0.18);
}

.session-dialog::backdrop {
  background: rgba(37, 36, 58, 0.38);
}

.session-dialog h2 {
  margin: 0 36px 8px 0;
}

.settings-dialog {
  width: min(460px, 92vw);
  padding: 28px 28px 24px;
  border-radius: 18px;
  border-color: rgba(109, 106, 159, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #fafafd 100%);
  box-shadow: 0 24px 60px rgba(37, 36, 58, 0.22);
}

.settings-dialog-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 36px 18px 0;
}

.settings-dialog-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.settings-dialog .settings-dialog-head p,
.invite-dialog .settings-dialog-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.settings-dialog-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f6fc 0%, #eceaf6 100%);
  color: var(--accent);
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(66, 61, 110, 0.1);
}

.settings-dialog-icon svg {
  width: 22px;
  height: 22px;
}

.settings-field {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(109, 106, 159, 0.14);
  border-radius: 12px;
  background: #f7f6fc;
}

.settings-field span {
  font-size: 13px;
  font-weight: 800;
}

.settings-field .input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(109, 106, 159, 0.18);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}

.settings-note {
  margin: 0 0 18px;
  line-height: 1.55;
}

.settings-dialog .dialog-actions {
  margin-top: 4px;
}

.settings-dialog .dialog-actions .button {
  min-height: 42px;
  min-width: 88px;
  border-radius: 10px;
}

.settings-dialog .dialog-actions .button.primary {
  background: linear-gradient(180deg, #7d79b8 0%, #6d6a9f 100%);
  box-shadow: 0 8px 16px rgba(109, 106, 159, 0.28);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close svg {
  width: 16px;
  height: 16px;
}

.dialog-close:hover {
  color: var(--ink);
  background: #f4f3f9;
  border-color: rgba(109, 106, 159, 0.12);
}

.session-dialog p {
  margin: 0 0 16px;
  color: var(--muted);
}

.session-dialog .field span {
  font-weight: 700;
}

.session-dialog .input {
  width: 100%;
  color: var(--ink);
  font: inherit;
}

.session-dialog.account-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
}

.account-dialog-head {
  padding: 20px 22px 0;
  border-bottom: 1px solid var(--line);
  background: #faf9fd;
}

.account-dialog-head h2 {
  margin-bottom: 14px;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
}

.account-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-tabs button.active,
.account-tabs button:hover {
  border-color: rgba(109, 106, 159, 0.35);
  background: var(--soft);
  color: var(--ink);
}

.account-dialog-body {
  padding: 18px 22px;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.account-panel h3 {
  margin: 0 0 10px;
}

.account-panel-grid,
.account-saved-grid {
  margin-bottom: 16px;
}

.account-meta-table {
  margin-top: 8px;
}

.account-settings-list {
  margin-top: 16px;
}

.account-saved-card.profile {
  height: 100%;
}

.account-dialog .dialog-actions {
  padding: 0 22px 20px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.preset-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.preset-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.preset-row p,
.empty-presets {
  margin: 4px 0 0;
  color: var(--muted);
}

.preset-row-actions {
  display: flex;
  gap: 8px;
}

.session-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: 320px;
  border-radius: 8px;
  padding: 12px 16px;
  background: #25243a;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(23, 35, 34, 0.2);
}

.session-dialog .session-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.summary-grid div,
.history-row {
  border: 1px solid rgba(23, 35, 34, 0.14);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.summary-grid span,
.history-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.history-list {
  display: grid;
  gap: 8px;
  max-height: 54vh;
  overflow: auto;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
}

.history-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.visitor-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  overflow: hidden;
}

.visitor-stage {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  min-height: 0;
  border: 0;
}

.visitor-gate {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(36, 35, 49, 0.72);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.visitor-gate[hidden] {
  display: none;
}

.visitor-gate.is-error {
  background: rgba(120, 24, 32, 0.82);
}

.visitor-status {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 9;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.82);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.visitor-status[hidden] {
  display: none;
}

.visitor-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0a100;
  flex-shrink: 0;
}

.visitor-status.is-connected .visitor-status-dot {
  background: #168528;
}

.visitor-audio-status {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  max-width: min(320px, calc(100vw - 32px));
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(20, 20, 28, 0.84);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.visitor-audio-status[hidden] {
  display: none;
}

.visitor-audio-status.is-ok {
  background: rgba(22, 133, 40, 0.9);
}

.visitor-audio-status.is-warn {
  background: rgba(224, 161, 0, 0.92);
}

.visitor-status.is-reconnecting .visitor-status-dot {
  background: #e0a100;
  animation: pulse-dot 1s ease-in-out infinite;
}

.visitor-status.is-error .visitor-status-dot {
  background: #d21f25;
}

.invite-dialog {
  width: min(560px, 92vw);
  padding: 28px 28px 24px;
  border-radius: 18px;
  border-color: rgba(109, 106, 159, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #fafafd 100%);
  box-shadow: 0 24px 60px rgba(37, 36, 58, 0.22);
  overflow: visible;
}

.invite-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin: 4px 0 0;
}

.invite-link-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(109, 106, 159, 0.14);
  border-radius: 12px;
  background: #f7f6fc;
}

.invite-qr-panel {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(109, 106, 159, 0.14);
  background: #fff;
  box-shadow: 0 8px 18px rgba(66, 61, 110, 0.08);
}

.invite-link-block > span {
  font-weight: 700;
}

.session-dialog p.invite-url {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-all;
  user-select: all;
  cursor: pointer;
}

.session-dialog p.invite-url:hover {
  color: var(--accent);
}

.invite-dialog [data-action="copy-invite"].button {
  width: 100%;
  min-height: 44px;
}

.invite-dialog [data-action="copy-invite"].button .button-icon {
  width: 15px;
  height: 15px;
}

.invite-dialog [data-action="copy-invite"].button.is-copied {
  border-color: #168528;
  background: linear-gradient(180deg, #2a9a3c 0%, #168528 100%);
  box-shadow: 0 8px 16px rgba(22, 133, 40, 0.28);
}

.invite-dialog [data-action="copy-invite"].button.is-copy-failed {
  border-color: #d21f25;
  background: linear-gradient(180deg, #e24a4e 0%, #d21f25 100%);
  box-shadow: 0 8px 16px rgba(210, 31, 37, 0.28);
}

.invite-qr-panel .qr-code {
  width: 160px;
  height: 160px;
}

@media (max-width: 640px) {
  .invite-dialog-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .invite-qr-panel {
    justify-self: center;
  }
}

.visitor-ended {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: rgba(36, 35, 49, 0.72);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  pointer-events: none;
}

.visitor-ended[hidden] {
  display: none;
}

.start-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.start-button {
  min-height: 48px;
  font-size: 18px;
}

.practice-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 18px;
  margin-top: 18px;
}

.control {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 55%, #d9e3df 55%);
}

.price {
  margin: 12px 0;
  font-size: 34px;
  font-weight: 800;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  display: grid;
  align-content: start;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 30px 28px;
}

.plan-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 18px 50px rgba(109, 106, 159, 0.14);
}

.plan-card h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.plan-price {
  margin: 0 0 12px;
  color: #111827;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
}

.plan-price span {
  font-size: 22px;
  font-weight: 700;
}

.plan-price.quote {
  font-size: 34px;
}

.plan-desc {
  min-height: 52px;
  margin-bottom: 22px;
}

.plan-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  display: inline-block;
  width: 28px;
  color: #111827;
}

.billing-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #a8b0bf;
}

.toggle span {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s ease, right 0.15s ease;
}

.billing-toggle {
  cursor: pointer;
  user-select: none;
}

.billing-toggle.is-year .toggle {
  background: #4267c8;
}

.billing-toggle.is-year .toggle span {
  left: auto;
  right: 5px;
}

.center {
  text-align: center;
}

.article-meta,
.small {
  color: var(--muted);
  font-size: 14px;
}

.article-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 0;
}

.article-cover {
  min-height: 150px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(109, 106, 159, 0.18), rgba(225, 138, 106, 0.12)),
    var(--soft);
}

.article-body {
  padding: 0 18px 18px;
}

.article-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.article-page {
  max-width: 820px;
  margin: 0 auto;
}

.article-page .article-cover {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 24px 0;
}

.article-content {
  display: grid;
  gap: 18px;
  font-size: 18px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-content p {
  color: #34413f;
}

.article-content blockquote {
  margin: 0;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  padding: 16px;
  color: var(--ink);
}

.profile {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
}

.hero-profile {
  align-items: start;
  max-width: 720px;
}

.therapist-detail-hero {
  padding-top: 28px;
}

.therapist-detail-back {
  margin-bottom: 18px;
}

.therapist-detail-profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.therapist-detail-meta h1 {
  margin-top: 0;
}

.therapist-detail-meta .lead + .small {
  margin-top: 8px;
}

.therapist-detail-meta .actions {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .therapist-detail-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .therapist-detail-meta .actions {
    justify-content: center;
  }
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #dbeee8, #fff);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6d6a9f, #4267c8);
}

.avatar-lg {
  width: 96px;
  height: 96px;
}

.avatar-lg .avatar-fallback {
  font-size: 34px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-table th,
.info-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 220px;
  background: var(--soft);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
}

.input,
.select,
.textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  color: var(--muted);
}

input.input,
select.select,
textarea.textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--ink);
}

input.input:disabled,
select.select:disabled {
  background: var(--soft);
  color: var(--muted);
}

.form-msg {
  min-height: 1.3em;
  font-size: 14px;
}

.form-msg.is-error {
  color: #b42318;
}

.form-msg.is-ok {
  color: #027a48;
}

.textarea {
  min-height: 96px;
}

.onboarding-main {
  max-width: 1040px;
}

.onboarding-steps {
  position: sticky;
  top: 69px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(66, 61, 110, 0.08);
  backdrop-filter: blur(10px);
}

.onboarding-steps a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.onboarding-steps a.active,
.onboarding-steps a:hover {
  background: var(--soft);
  color: var(--accent);
}

.onboarding-steps span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(109, 106, 159, 0.24);
}

.onboarding-card {
  scroll-margin-top: 150px;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(66, 61, 110, 0.07);
}

.onboarding-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.notice-box {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #f6f5fb;
}

.notice-box p {
  color: var(--muted);
}

.radio-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.radio-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.radio-list span {
  width: 16px;
  height: 16px;
  border: 1px solid #b9b6cc;
  border-radius: 50%;
}

.radio-list .selected {
  border-color: rgba(109, 106, 159, 0.45);
  color: var(--accent);
  background: var(--soft);
}

.radio-list .selected span {
  border: 4px solid var(--accent);
  background: #fff;
}

.intake-form {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.intake-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.intake-row > span {
  color: var(--ink);
  font-weight: 800;
}

.intake-row .input,
.intake-row .select {
  width: 100%;
  border-color: transparent;
  text-align: right;
  color: var(--ink);
}

.phone-row > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.phone-row strong {
  color: var(--muted);
}

.upload-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.upload-section.single {
  grid-template-columns: 1fr;
}

.upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.upload-box {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 128px;
  height: 112px;
  border: 1px dashed #c5c1d8;
  border-radius: 8px;
  background: #fbfbfe;
  color: #aaa6bb;
  cursor: pointer;
}

.upload-box strong {
  color: #c4c1d0;
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
}

.upload-box span {
  font-size: 13px;
}

.upload-box.has-file {
  border-color: #4267c8;
  background: #f3f6ff;
  color: #4267c8;
}

.upload-box.has-file strong {
  color: #4267c8;
  font-size: 24px;
  font-weight: 700;
}

.attachment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-links a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4267c8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.two .field.wide {
  grid-column: 1 / -1;
}

.field span {
  font-weight: 800;
}

.span-2 {
  grid-column: 1 / -1;
}

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

.confirm-check {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.faq-item strong {
  display: block;
  margin-bottom: 6px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 36px;
}

.guide-tabs {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.guide-tabs a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
}

.guide-tabs a:hover {
  background: var(--soft);
  color: var(--ink);
}

.guide-content {
  display: grid;
  gap: 18px;
}

.guide-section {
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.guide-section h2 {
  margin-bottom: 12px;
}

.account-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.side-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
}

.side-nav a.active,
.side-nav a:hover {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.order-list {
  display: grid;
  gap: 16px;
}

.order-list:empty {
  display: none;
}

.order-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.order-empty[hidden] {
  display: none;
}

.order-empty .actions {
  justify-content: center;
  margin-top: 16px;
}

.order-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
  align-items: start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.order-head h2 {
  margin: 0 0 6px;
}

.order-head p {
  margin: 0;
}

.order-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 0;
}

.order-meta > div {
  display: grid;
  gap: 4px;
}

.order-meta dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.order-meta dd {
  margin: 0;
  font-weight: 600;
}

.order-meta .wide {
  grid-column: 1 / -1;
}

.progress-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 8px solid var(--soft);
  border-top-color: var(--accent);
  font-weight: 800;
}

.split-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.split-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px;
}

.footer a,
.footer p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .control-body {
    height: auto;
    overflow: auto;
  }

  .control-body .control-main,
  .control-main {
    height: auto;
    overflow: visible;
  }

  .links {
    display: none;
  }

  .brand {
    min-width: 126px;
    gap: 8px;
  }

  .brand-logo {
    width: 42px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary.button {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 0;
  }

  .mobile-menu summary.button::before {
    content: "☰";
    font-size: 22px;
    line-height: 1;
  }

  .mobile-menu[open] summary.button::before {
    content: "×";
  }

  .nav-actions > .language-menu,
  .nav-actions > a.button {
    display: none;
  }

  .user-menu-trigger {
    min-height: 0;
    padding: 3px 8px 3px 3px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(66, 61, 110, 0.12);
  }

  .nav-avatar {
    width: 32px;
    height: 32px;
  }

  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .logo-options,
  .session-bar,
  .pricing-plans,
  .practice-layout,
  .account-shell,
  .guide-layout,
  .device-layout,
  .metric-row,
  .onboarding-steps,
  .radio-list,
  .upload-section,
  .form-grid.two,
  .confirm-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: start;
  }

  .onboarding-steps {
    position: static;
  }

  .onboarding-card {
    padding: 18px;
  }

  .onboarding-card-head {
    display: grid;
  }

  .intake-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .intake-row .input,
  .intake-row .select {
    min-height: 36px;
    padding: 6px 0;
    text-align: left;
  }

  .upload-box {
    width: 118px;
    height: 104px;
  }

  .wizard-actions {
    position: sticky;
    bottom: 0;
    z-index: 7;
    margin-right: -18px;
    margin-left: -18px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 24px rgba(66, 61, 110, 0.08);
  }

  .side-nav,
  .guide-tabs,
  .operator-panel {
    position: static;
  }

  .stimulus-stack,
  .stimulus-tabs,
  .operator-panel {
    height: auto;
    overflow: visible;
  }

  .stimulus-stack {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .control-console,
  .control-body .control-console.is-four-col {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .control-console.is-four-col > .console-card,
  .control-console.is-four-col > .modality-stack,
  .control-console.is-four-col > .operator-panel {
    height: auto;
    overflow: visible;
  }

  .control-body .visual-panel .run-log {
    min-height: 180px;
    max-height: 42vh;
  }

  .run-log-item {
    grid-template-columns: 52px 1fr 1fr;
  }

  .modality-stack {
    height: auto;
    overflow: visible;
  }

  .modality-stack > .console-card {
    flex: none;
    height: auto;
    overflow: visible;
  }

  .modality-stack > .console-card > .console-card-body {
    overflow: visible;
  }

  .control-body .visual-panel .visual-motion,
  .control-block.compact-row,
  .control-block.compact-row.three,
  .stimulus-stack .sound-grid {
    grid-template-columns: 1fr;
  }

  .control-body .visual-panel .visual-size {
    grid-column: auto;
  }

  .control-body .audio-panel .audio-mix {
    grid-template-columns: 1fr 1fr;
  }

  .control-body .audio-panel .audio-mute {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    align-items: center;
  }

  .console-card.expanded {
    overflow: visible;
  }

  .session-actions.right {
    justify-content: flex-end;
  }

  .control-block.split,
  .sound-grid,
  .haptic-product,
  .start-row,
  .session-counter {
    grid-template-columns: 1fr;
  }

  .session-counter {
    display: grid;
  }

  .control-body .run-dock .session-counter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .control-body .run-tools {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .device-buy-card {
    position: static;
    order: -1;
  }

  .account-header,
  .room-entry,
  .article-toolbar,
  .list-item,
  .order-head,
  .order-meta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  h1 {
    font-size: 34px;
  }

  main {
    padding-inline: 14px;
  }
}

.muted {
  color: var(--muted);
}

