:root {
  --bg: #0f1115;
  --panel: #151823;
  --text: #e8ebf0;
  --muted: #9aa4b2;
  --primary: #4f8cff;
  --danger: #ff5a7a;
  --ok: #43d17a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, Apple Color Emoji, Segoe UI Emoji;
  background: radial-gradient(1200px 600px at 10% 0%, #0f172a, #0b1020 60%, #070a14 100%);
  color: var(--text);
}

#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Session page should use full width */
#app.session-app {
  max-width: none;
  width: 100vw;
  padding: 24px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.logout-btn {
  background: var(--danger);
  color: white;
  border: 1px solid var(--danger);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background: #ff4a6b;
}

.badge {
  padding: 6px 10px;
  border-radius: 10px;
  background: #2a2f42;
  color: var(--muted);
  font-size: 12px;
}

.controls {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

button {
  background: #1b2340;
  color: var(--text);
  border: 1px solid #2c355c;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

button:hover:not([disabled]) {
  border-color: var(--primary);
}

.waveform-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
}

.waveform {
  background: radial-gradient(120px 120px at 50% 50%, rgba(79, 140, 255, 0.10), rgba(79, 140, 255, 0.02));
  border: 1px solid rgba(79, 140, 255, 0.15);
  border-radius: 50%;
  padding: 20px;
  width: 260px;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.waveform canvas {
  border-radius: 50%;
  background: #0f1320;
}

.transcript-section {
  margin-top: 24px;
}

.panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
  height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
}

.transcript {
  flex: 1;
  overflow: auto;
  border-radius: 10px;
  background: rgba(15, 19, 32, 0.7);
  border: 1px solid rgba(37, 42, 66, 0.7);
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.transcript-docked {
  height: calc(100vh - 120px);
  margin: 0;
}

.transcript .segment {
  margin-bottom: 16px;
  padding: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transcript .segment.speaker-user {
  align-items: flex-end;
}

.transcript .segment.speaker-ai {
  align-items: flex-start;
}

.transcript .segment.speaker-unknown {
  align-items: flex-start;
}

.transcript .segment.speaker-unknown .message-content {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--muted) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.transcript .speaker-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 8px;
}

.transcript .message-content {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  line-height: 1.4;
}

.transcript .segment.speaker-user .message-content {
  background: #4f8cff !important;
  color: white !important;
  border-bottom-right-radius: 4px;
}

.transcript .segment.speaker-ai .message-content {
  background: rgba(97, 214, 163, 0.15) !important;
  color: #61d6a3 !important;
  border: 1px solid rgba(97, 214, 163, 0.3);
  border-bottom-left-radius: 4px;
}

.transcript .segment.final .message-content {
  opacity: 1;
}

.transcript .segment:not(.final) .message-content {
  opacity: 0.7;
}

#remote-audio {
  display: none;
}

/* Survey Page Styles */
#survey-app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.survey-container {
  width: 100%;
  max-width: 700px;
}

.survey-card {
  background: var(--panel);
  border: 1px solid #22283b;
  border-radius: 12px;
  padding: 40px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.survey-header {
  margin-bottom: 32px;
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: #252a42;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.loading-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
  color: var(--muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #252a42;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.survey-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.question-slide {
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.question-slide.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.question-number {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  text-align: center;
}

.question-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 32px 0;
  text-align: center;
  line-height: 1.3;
}

.question-options {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.option-card {
  background: #0f1320;
  border: 1px solid #252a42;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.option-card:hover {
  border-color: var(--primary);
  background: rgba(79, 140, 255, 0.05);
}

.option-card.selected {
  border-color: var(--primary);
  background: rgba(79, 140, 255, 0.08);
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.option-letter {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.option-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.4;
}

.text-input-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.text-input-large {
  width: 100%;
  max-width: 400px;
  background: #0f1320;
  border: 2px solid #252a42;
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text);
  font-size: 18px;
  text-align: center;
  transition: border-color 0.2s;
}

.text-input-large:focus {
  outline: none;
  border-color: var(--primary);
}

.input-hint {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.survey-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}

.primary-btn {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-btn:hover:not(:disabled) {
  background: #4080ff;
  border-color: #4080ff;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.secondary-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid #252a42;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover:not(:disabled) {
  border-color: var(--muted);
  color: var(--text);
}

/* Login Page Styles */
#login-app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--panel);
  border: 1px solid #22283b;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  background: #0f1320;
  border: 1px solid #252a42;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.login-btn {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.login-btn:hover:not(:disabled) {
  background: #4080ff;
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  background: rgba(255, 90, 122, 0.15);
  border: 1px solid rgba(255, 90, 122, 0.3);
  color: var(--danger);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

.loading-message {
  color: var(--primary);
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
}

.register-link,
.login-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.register-link a,
.login-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover,
.login-link a:hover {
  text-decoration: underline;
}

/* Home Page Styles */
.minimal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid #22283b;
}

.minimal-header .brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-greeting {
  font-size: 14px;
  color: var(--muted);
}

.menu-button {
  padding: 8px;
  background: none;
  border: 1px solid #22283b;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--panel);
  border: 1px solid #22283b;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1000;
  margin-top: 8px;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.menu-item:first-child {
  border-radius: 8px 8px 0 0;
}

.menu-item:last-child {
  border-radius: 0 0 8px 8px;
}

.logout-btn {
  background: transparent;
  border: 1px solid #252a42;
  color: var(--muted);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.home-main {
  max-width: 800px;
  margin: 0 auto;
}

.welcome-section {
  text-align: center;
  margin-bottom: 48px;
}

.welcome-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.welcome-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

/* Recommendations Section */
.recommendations-section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.loading-spinner {
  display: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #22283b;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.recommendation-card {
  background: linear-gradient(180deg, #171c2b, #12182a);
  border: 1px solid #2a355a;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  outline: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recommendation-card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(79, 140, 255, .18);
  transform: translateY(-4px);
}

.recommendation-card:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 140, 255, .12);
}

.recommendation-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, .35);
}

.topic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.topic-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.topic-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.topic-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.empty-state,
.error-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* Shimmer skeletons */
.recommendation-card.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.recommendation-card.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.02) 100%);
  transform: translateX(-100%);
  animation: shimmer 1.1s linear infinite;
}

.skeleton-line {
  height: 14px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  margin: 6px 0;
}

.skeleton-line.title {
  height: 18px;
  width: 65%;
}

.skeleton-line.line {
  width: 90%;
}

.skeleton-meta {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.skeleton-pill {
  height: 12px;
  width: 70px;
  background: #0f1320;
  border-radius: 999px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.recent-section {
  margin-top: 48px;
}

.recent-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 24px 0;
}

.recent-items {
  display: grid;
  gap: 16px;
}

@media (max-width: 768px) {
  #app {
    padding: 16px;
  }

  .waveform {
    width: 200px;
    height: 200px;
  }

  .waveform canvas {
    width: 160px;
    height: 160px;
  }

  .login-card {
    padding: 24px;
  }

  .login-header h1 {
    font-size: 20px;
  }
}

/* Session page layout - minimal two-column UI */
.session-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.session-app.single {
  grid-template-columns: 1fr;
}

.session-left {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.session-right {
  display: flex;
}

@media (max-width: 900px) {
  .session-app {
    grid-template-columns: 1fr;
  }
}

/* Bottom control dock */
.control-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: calc(100vw - 32px);
  z-index: 100;
}

.dock-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  background: rgba(22, 26, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}

/* Consistent, uniform controls in dock */
.control-dock button {
  background: #151b2f;
  color: var(--text);
  border: 1px solid #29345a;
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 120px;
  height: 40px;
  transition: border-color .15s ease, background-color .15s ease, transform .02s ease;
}

.control-dock button:hover:not([disabled]) {
  border-color: var(--primary);
  background: #182243;
}

.control-dock button:active:not([disabled]) {
  transform: translateY(1px);
}

.control-dock button[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.control-dock .badge {
  padding: 10px 14px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

/* Colorful loader (Uiverse - 20essentials), centered overlay */
.full-center {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
}

.container-loader {
  --size: 300px;
  --base-scale: 0.6;
  width: var(--size);
  height: var(--size);
  position: relative;
  transform: scale(calc(var(--base-scale) * var(--scale, 1)));
  transform-origin: 50% 50%;
  transition: transform 0.08s linear;
}

/* Precisely center the in-session orb */
#voice-orb {
  position: fixed;
  left: 50%;
  top: 50%;
  --orb-offset-x: 40px;
  transform: translate(calc(-50% - var(--orb-offset-x)), -50%) scale(calc(var(--base-scale) * var(--scale, 1)));
  pointer-events: none;
  z-index: 1;
}

.container-loader .ball {
  position: absolute;
  width: calc(var(--size) + var(--i));
  height: calc(var(--size) + var(--i));
  background-color: var(--color);
  border-radius: 50%;
  animation: move 5s linear infinite;
  transform-origin: var(--size);
  mix-blend-mode: hard-light;
  animation-duration: calc(var(--d) / var(--speed, 1));
  filter: blur(58px);
}

.container-loader .ball:nth-child(even) {
  animation-direction: reverse;
}

@keyframes move {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(359deg);
  }
}

/* Uiverse button (Ashon-G) for Start/End */
.control-dock button.uiverse {
  background: transparent;
  border: none;
  padding: 0;
  min-width: 140px;
  height: 40px;
  border-radius: 24px;
}

.control-dock button.uiverse:hover:not([disabled]),
.control-dock button.uiverse:active:not([disabled]) {
  background: transparent;
  border: none;
  transform: none;
}

.control-dock button.uiverse:focus-visible {
  background: transparent;
  border: none;
  box-shadow: none;
}

.uiverse {
  --duration: 7s;
  --easing: linear;
  --c-color-1: rgba(255, 163, 26, 0.7);
  --c-color-2: #1a23ff;
  --c-color-3: #e21bda;
  --c-color-4: rgba(255, 232, 26, 0.7);
  --c-shadow: rgba(255, 223, 87, 0.5);
  --c-shadow-inset-top: rgba(255, 223, 52, 0.9);
  --c-shadow-inset-bottom: rgba(255, 250, 215, 0.8);
  --c-radial-inner: #ffd215;
  --c-radial-outer: #fff172;
  --c-color: #fff;
  -webkit-tap-highlight-color: transparent;
    outline: none;
  position: relative;
  cursor: pointer;
  border: none;
  display: table;
  border-radius: 24px;
  padding: 0;
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--c-color);
  background: radial-gradient(circle, var(--c-radial-inner), var(--c-radial-outer) 80%);
  box-shadow: 0 0 14px var(--c-shadow);
}

.uiverse:before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  box-shadow: inset 0 3px 12px var(--c-shadow-inset-top), inset 0 -3px 4px var(--c-shadow-inset-bottom);
}

.uiverse .wrapper {
  overflow: hidden;
  border-radius: 24px;
  min-width: 132px;
  padding: 6px 20px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.uiverse .wrapper span.label {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.uiverse:hover {
  --duration: 1400ms;
}

.uiverse .wrapper .circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  filter: blur(var(--blur, 8px));
  background: var(--background, transparent);
  transform: translate(var(--x, 0), var(--y, 0)) translateZ(0);
  animation: var(--animation, none) var(--duration) var(--easing) infinite;
}

.uiverse .wrapper .circle.circle-1,
.uiverse .wrapper .circle.circle-9,
.uiverse .wrapper .circle.circle-10 {
  --background: var(--c-color-4);
}

.uiverse .wrapper .circle.circle-3,
.uiverse .wrapper .circle.circle-4 {
  --background: var(--c-color-2);
  --blur: 14px;
}

.uiverse .wrapper .circle.circle-5,
.uiverse .wrapper .circle.circle-6 {
  --background: var(--c-color-3);
  --blur: 16px;
}

.uiverse .wrapper .circle.circle-2,
.uiverse .wrapper .circle.circle-7,
.uiverse .wrapper .circle.circle-8,
.uiverse .wrapper .circle.circle-11,
.uiverse .wrapper .circle.circle-12 {
  --background: var(--c-color-1);
  --blur: 12px;
}

.uiverse .wrapper .circle.circle-1 {
  --x: 0;
  --y: -40px;
  --animation: circle-1;
}

.uiverse .wrapper .circle.circle-2 {
  --x: 92px;
  --y: 8px;
  --animation: circle-2;
}

.uiverse .wrapper .circle.circle-3 {
  --x: -12px;
  --y: -12px;
  --animation: circle-3;
}

.uiverse .wrapper .circle.circle-4 {
  --x: 80px;
  --y: -12px;
  --animation: circle-4;
}

.uiverse .wrapper .circle.circle-5 {
  --x: 12px;
  --y: -4px;
  --animation: circle-5;
}

.uiverse .wrapper .circle.circle-6 {
  --x: 56px;
  --y: 16px;
  --animation: circle-6;
}

.uiverse .wrapper .circle.circle-7 {
  --x: 8px;
  --y: 28px;
  --animation: circle-7;
}

.uiverse .wrapper .circle.circle-8 {
  --x: 28px;
  --y: -4px;
  --animation: circle-8;
}

.uiverse .wrapper .circle.circle-9 {
  --x: 20px;
  --y: -12px;
  --animation: circle-9;
}

.uiverse .wrapper .circle.circle-10 {
  --x: 64px;
  --y: 16px;
  --animation: circle-10;
}

.uiverse .wrapper .circle.circle-11 {
  --x: 4px;
  --y: 4px;
  --animation: circle-11;
}

.uiverse .wrapper .circle.circle-12 {
  --blur: 14px;
  --x: 52px;
  --y: 4px;
  --animation: circle-12;
}

@keyframes circle-1 {
  33% {
    transform: translate(0px, 16px) translateZ(0);
  }

  66% {
    transform: translate(12px, 64px) translateZ(0);
  }
}

@keyframes circle-2 {
  33% {
    transform: translate(80px, -10px) translateZ(0);
  }

  66% {
    transform: translate(72px, -48px) translateZ(0);
  }
}

@keyframes circle-3 {
  33% {
    transform: translate(20px, 12px) translateZ(0);
  }

  66% {
    transform: translate(12px, 4px) translateZ(0);
  }
}

@keyframes circle-4 {
  33% {
    transform: translate(76px, -12px) translateZ(0);
  }

  66% {
    transform: translate(112px, -8px) translateZ(0);
  }
}

@keyframes circle-5 {
  33% {
    transform: translate(84px, 28px) translateZ(0);
  }

  66% {
    transform: translate(40px, -32px) translateZ(0);
  }
}

@keyframes circle-6 {
  33% {
    transform: translate(28px, -16px) translateZ(0);
  }

  66% {
    transform: translate(76px, -56px) translateZ(0);
  }
}

@keyframes circle-7 {
  33% {
    transform: translate(8px, 28px) translateZ(0);
  }

  66% {
    transform: translate(20px, -60px) translateZ(0);
  }
}

@keyframes circle-8 {
  33% {
    transform: translate(32px, -4px) translateZ(0);
  }

  66% {
    transform: translate(56px, -20px) translateZ(0);
  }
}

@keyframes circle-9 {
  33% {
    transform: translate(20px, -12px) translateZ(0);
  }

  66% {
    transform: translate(80px, -8px) translateZ(0);
  }
}

@keyframes circle-10 {
  33% {
    transform: translate(68px, 20px) translateZ(0);
  }

  66% {
    transform: translate(100px, 28px) translateZ(0);
  }
}

@keyframes circle-11 {
  33% {
    transform: translate(4px, 4px) translateZ(0);
  }

  66% {
    transform: translate(68px, 20px) translateZ(0);
  }
}

@keyframes circle-12 {
  33% {
    transform: translate(56px, 0px) translateZ(0);
  }

  66% {
    transform: translate(60px, -32px) translateZ(0);
  }
}

/* End-state color variant */
.uiverse.end {
  --c-color-1: rgba(255, 77, 109, 0.6);
  --c-color-2: #ff3366;
  --c-color-3: #ff6b6b;
  --c-color-4: rgba(255, 120, 120, 0.7);
  --c-shadow: rgba(255, 90, 122, 0.4);
  --c-shadow-inset-top: rgba(255, 90, 122, 0.9);
  --c-shadow-inset-bottom: rgba(255, 180, 190, 0.8);
  --c-radial-inner: #ff5a7a;
  --c-radial-outer: #ff9bb0;
}

.uiverse.end .label::after {
  content: " ✕";
  font-weight: 700;
}

/* Simple pill button for Mic */
.btn-simple {
  background: #151b2f;
  color: var(--text);
  border: 1px solid #29345a;
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 120px;
  height: 40px;
}

.btn-simple:hover:not([disabled]) {
  border-color: var(--primary);
  background: #182243;
}

.btn-simple:active:not([disabled]) {
  transform: translateY(1px);
}

.btn-simple[disabled] {
  opacity: .55;
  cursor: not-allowed;
}