@import url("../../../shared-components/assets/prototype-components.css");

:root {
  --primary: #ff4d6d;
  --primary-light: #ff6b8a;
  --primary-soft: #ffe4e9;
  --purple: #7c5cfc;
  --purple-soft: #f0edff;
  --gold: #ffb930;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --bg: #faf7f5;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b6b80;
  --weak: #a0a0b0;
  --line: #f0ebe8;
  --shadow-xs: 0 1px 2px rgba(26, 26, 46, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.12);
  --shadow-primary: 0 4px 16px rgba(255, 77, 109, 0.3);
  --shadow-secondary: 0 4px 16px rgba(124, 92, 252, 0.3);
  --grad-primary: linear-gradient(135deg, #ff4d6d, #ff6b9d);
  --grad-tech: linear-gradient(135deg, #7c5cfc, #9b7fff);
  --safe-bottom: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background: #f0eeef;
  color: var(--text);
}

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

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:active,
a:active { transform: scale(0.96); }

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff4f7 0%, #fbf8fb 42%, var(--bg) 100%);
}

.nav {
  height: 62px;
  display: grid;
  grid-template-columns: 72px 1fr 108px;
  align-items: center;
  padding: 0 14px 0 16px;
}

.nav-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

prototype-switch {
  min-width: 0;
}

.nav-switch {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.nav-switch a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-switch a.active {
  color: var(--text);
}

.nav-switch a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateX(-50%);
}

.back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.scroll {
  position: absolute;
  inset: 108px 0 82px;
  overflow-y: auto;
  padding: 0 20px 24px;
  scrollbar-width: none;
}

.sub-page .scroll {
  inset-bottom: var(--safe-bottom);
  padding-bottom: calc(var(--safe-bottom) + 18px);
}

.phone.has-floating-notice .scroll {
  inset-top: var(--notice-scroll-top, 306px);
}

.scroll::-webkit-scrollbar,
.h-scroll::-webkit-scrollbar { display: none; }

.bottom-tabs {
  grid-template-columns: repeat(5, 1fr);
  padding-left: 10px;
  padding-right: 10px;
}

.tab { font-size: 11px; }

.tab-icon {
  position: relative;
  width: 29px;
  height: 29px;
  font-size: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
}

.section-head[id] {
  scroll-margin-top: 58px;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.section-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.hero-card,
.card,
.person-card,
.record-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.hero-card {
  padding: 16px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 88% 10%, rgba(124, 92, 252, 0.16), transparent 66px),
    linear-gradient(135deg, #fff, #fff4f7);
}

.intro-card {
  height: 172px;
  display: grid;
  align-content: space-between;
}

.intro-image-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.intro-image-card .hero-setting {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(12px);
}

.intro-card .hero-title {
  align-items: flex-start;
}

.intro-card .hero-title h1 {
  max-width: 196px;
  font-size: 22px;
  line-height: 1.22;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.hero-title span,
.hero-setting {
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}

.hero-setting {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-setting .ri {
  font-size: 14px;
  line-height: 1;
}

.hero-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.h-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.status-card {
  flex: 0 0 158px;
  min-height: 198px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.status-card.cover {
  position: relative;
  flex-basis: 154px;
  min-height: 194px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
}

.status-card.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 21, 0.02) 16%, rgba(7, 11, 21, 0.25) 56%, rgba(7, 11, 21, 0.84) 100%);
}

.status-card.cover .status-body {
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
  padding: 10px 10px 10px;
  color: #fff;
}

.status-card .photo {
  height: 104px;
  background-position: center;
  background-size: cover;
}

.status-body {
  padding: 10px 11px 12px;
}

.status-card.cover .status-body strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.15;
  flex-wrap: wrap;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.status-inline.success { background: #dcfce7; color: #15803d; }
.status-inline.warning { background: #fef3c7; color: #b45309; }
.status-inline.purple { background: var(--purple-soft); color: var(--purple); }
.status-inline.blue { background: #dbeafe; color: #1d4ed8; }

.status-body strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.status-body small {
  display: block;
  margin: 4px 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.tag.purple { background: var(--purple-soft); color: var(--purple); }
.tag.success { background: #dcfce7; color: #15803d; }
.tag.warning { background: #fef3c7; color: #b45309; }
.tag.blue { background: #dbeafe; color: #1d4ed8; }
.tag.gray { background: #f2f2f5; color: var(--muted); }

.tag.ink { background: #e8ecff; color: #3143b8; }

.person-list,
.record-list,
.settings-list {
  display: grid;
  gap: 12px;
}

.filter-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(16px);
}

.filter-tabs button {
  min-height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.filter-tabs .active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.person-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-xs);
}

.person-main { min-width: 0; }

.person-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.person-top strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online,
.offline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.offline { color: var(--weak); }

.online::before,
.offline::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.person-main p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.action-row.right-only {
  display: flex;
  justify-content: flex-end;
}

.action-row.right-only .mini-btn {
  min-width: calc((100% - 8px) / 2);
}

.mini-btn {
  min-height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff4f7;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.mini-btn.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.mini-btn.disabled {
  background: #f1f0f4;
  color: var(--weak);
  pointer-events: none;
}

.full-row { grid-template-columns: 1fr; }

.notice-stack {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 52px;
  z-index: 20;
  display: grid;
  gap: 8px;
}

.notice-float {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 102px;
  padding: 14px 14px 14px 13px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.notice-float.hidden {
  display: none;
}

.notice-float.urgent {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 244, 0.98)),
    linear-gradient(135deg, rgba(255, 77, 109, 0.05), rgba(124, 92, 252, 0.04));
  border: 1px solid rgba(255, 77, 109, 0.14);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.16);
}

.notice-float.reminder {
  min-height: 78px;
  background: linear-gradient(135deg, rgba(228, 244, 255, 0.98), rgba(239, 246, 255, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.notice-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background-position: center;
  background-size: cover;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.notice-avatar.reminder {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #2563eb;
  font-size: 22px;
}

.notice-copy {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.notice-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.notice-kicker.blue {
  color: #2563eb;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

.notice-kicker.blue .notice-dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.notice-float strong {
  display: block;
}

.notice-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notice-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-float small {
  display: block;
}

.notice-body {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-actions {
  display: grid;
  gap: 8px;
  align-self: stretch;
  align-content: center;
  min-width: 78px;
  justify-items: stretch;
}

.pill-action {
  min-height: 36px;
  min-width: 70px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.pill-action.secondary {
  background: #f2f2f5;
  color: var(--muted);
  box-shadow: none;
}

.pill-action.blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.22);
}

.pill-action.ghost {
  background: rgba(255, 255, 255, 0.9);
  color: #4b5563;
  box-shadow: var(--shadow-xs);
}

.switch-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 6;
  backdrop-filter: blur(16px);
}

.switch-tabs a,
.switch-tabs button {
  min-height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.switch-tabs .active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.record-card {
  padding: 16px;
}

.record-top {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
}

.record-top .avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.record-top strong,
.record-top small {
  display: block;
}

.record-top strong { font-size: 15px; }
.record-top small { margin-top: 3px; color: var(--weak); font-size: 12px; }

.record-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.time-option-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.time-option-list span,
.time-option-list button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  border: 1px solid var(--line);
}

.time-option-list button.selected {
  background: #fff4f7;
  color: var(--primary);
  border-color: transparent;
}

.record-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.record-actions.room-action {
  display: flex;
  justify-content: flex-end;
}

.record-actions.room-action .mini-btn {
  min-width: 104px;
  padding: 0 18px;
}

.call-page {
  background: radial-gradient(circle at 50% 22%, rgba(255, 77, 109, 0.28), transparent 142px), #17182b;
  color: #fff;
}

.call-page .status-bar,
.call-page .nav,
.call-page .phone-indicators { color: #fff; }

.call-page .battery { background: rgba(255,255,255,0.24); }
.call-page .signal i { background: #fff; }

.call-body {
  position: absolute;
  inset: 108px 0 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 20px 24px calc(var(--safe-bottom) + 22px);
}

.voice-center {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.voice-avatar {
  width: 138px;
  height: 138px;
  border: 5px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
}

.call-name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.call-meta {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.timer {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-weight: 700;
}

.call-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.control {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.76);
  font-size: 12px;
}

.control span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 24px;
}

.control.end span {
  background: var(--error);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.36);
}

.video-stage {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(26,26,46,0.18), rgba(26,26,46,0.68)),
    url("../../../assets/avatar-wanqing-blue-shirt.png");
  background-position: center;
  background-size: cover;
}

.video-page .status-bar,
.video-page .nav,
.video-page .call-body {
  position: relative;
  z-index: 2;
}

.video-mini {
  position: absolute;
  right: 18px;
  top: 128px;
  z-index: 3;
  width: 98px;
  height: 132px;
  border: 2px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  background-image: url("../../../assets/avatar-kuangnani-blue-blazer.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.video-info {
  align-self: end;
  margin-bottom: 28px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.mode-grid,
.time-grid {
  display: grid;
  gap: 10px;
}

.mode-grid { grid-template-columns: 1fr 1fr; }

.choice-card,
.time-card {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.choice-card strong,
.time-card strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.choice-card small,
.time-card small {
  color: var(--muted);
  font-size: 12px;
}

.choice-card.selected,
.time-card.selected {
  border-color: transparent;
  background: #fff1f4;
  box-shadow: var(--shadow-primary);
}

.time-slot {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.time-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.time-slot-head strong {
  font-size: 15px;
}

.slot-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f8f6f8;
  color: var(--muted);
  font-size: 18px;
}

.time-fields {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 8px;
}

.time-fields button {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 13px;
  background: #faf9fb;
  text-align: left;
}

.time-fields small {
  color: var(--weak);
  font-size: 11px;
}

.time-fields strong {
  font-size: 12px;
  white-space: nowrap;
}

.add-time {
  min-height: 44px;
  border: 1px dashed #ddd7e8;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--weak);
  font-size: 13px;
  font-weight: 700;
}

.add-time.disabled {
  background: #f7f6f8;
}

.bottom-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 92px;
  padding: 12px 24px var(--safe-bottom);
  background: linear-gradient(180deg, rgba(255,255,255,0.56), #fff 36%);
  z-index: 10;
}

.ended-card {
  margin-top: 26px;
  padding: 30px 20px;
  text-align: center;
}

.result-page .ended-card {
  margin-top: 20px;
  padding: 38px 20px 36px;
}

.ended-card .voice-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  border: 4px solid #fff;
}

.result-page .ended-card .voice-avatar {
  width: 128px;
  height: 128px;
  margin-bottom: 20px;
}

.ended-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.ended-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-item {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.settings-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 21px;
}

.settings-copy strong,
.settings-copy small {
  display: block;
}

.settings-copy strong { font-size: 15px; }
.settings-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.toggle {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  padding: 3px;
  background: var(--grad-primary);
  transition: background 0.16s ease;
}

.toggle::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transform: translateX(22px);
  transition: transform 0.16s ease;
}

.toggle.off {
  background: #d8d3d6;
}

.toggle.off::before {
  transform: translateX(0);
}

.dialog-mask.show { display: block; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 106px;
  z-index: 40;
  min-width: 166px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.88);
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
