body.theme-dark #app-view .holiday-month-select {
  background: #191d2b;
  color: #fff;
  border: 1.5px solid var(--accent-soft);
  box-shadow: 0 2px 8px rgba(91, 142, 255, 0.10);
}

body.theme-dark #app-view .holiday-month-select::placeholder {
  color: #b8b8d0;
}

body.theme-dark #app-view .holiday-month-select:focus {
  border-color: var(--accent2);
  box-shadow: 0 2px 12px rgba(91, 142, 255, 0.18);
  outline: none;
}

/* ═══════════════════════════════════════════════
   SHARED RESET & CSS VARIABLES
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Landing base */
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface2: #eef3fb;
  --border: rgba(13, 33, 68, 0.12);
  --accent: #7c5cfc;
  --accent2: #5b8eff;
  --accent3: #ff6b6b;
  --glow: rgba(124, 92, 252, 0.35);
  --text: #0d2144;
  --muted: #667792;
  --subtle: #8b9ab3;
  /* App extras (available globally) */
  --sidebar-bg: #13141b;
  --card-bg: #1a1b24;
  --card-hover: #1f2030;
  --accent-soft: #9d83fd;
  --accent-dim: rgba(124, 92, 252, 0.12);
  --green: #3ecf8e;
  --green-dim: rgba(62, 207, 142, 0.12);
  --red: #f55f5f;
  --yellow: #f5c842;
  --text-muted: #7b7d95;
  --text-dim: #4a4c62;
  --radius: 12px;
  --sidebar-w: 200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   SHARED ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }

  20% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.2);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 8px var(--accent);
  }

  50% {
    box-shadow: 0 0 16px var(--accent);
  }
}

@keyframes slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 24px rgba(124, 92, 252, 0.5);
  }

  50% {
    box-shadow: 0 4px 36px rgba(124, 92, 252, 0.8);
  }
}

/* ═══════════════════════════════════════════════
   LANDING VIEW  — all rules scoped to #landing-view
═══════════════════════════════════════════════ */

/* ── NAV ── */
#landing-view nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 82px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

#landing-view .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

#landing-view .nav-logo img {
  display: block;
  height: 52px;
  width: auto;
}

#landing-view .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

#landing-view .nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

#landing-view .nav-links a:hover {
  color: var(--text);
}

#landing-view .nav-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

#landing-view .btn-ghost {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

#landing-view .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#landing-view .btn-primary {
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.4);
}

#landing-view .btn-primary:hover {
  background: #8f6fff;
  box-shadow: 0 0 30px rgba(124, 92, 252, 0.6);
  transform: translateY(-1px);
}

/* Simple professional top navbar (reusable) */
.simple-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(13,33,68,0.04);
}

.simple-navbar .brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); font-weight:700; }
.simple-navbar .brand img { height:40px; width:auto; display:block; }
.simple-navbar .brand-name { font-size:1rem; letter-spacing:-0.01em; }

.simple-navbar .nav-items { display:flex; gap:20px; align-items:center; list-style:none; }
.simple-navbar .nav-items a { color:var(--muted); text-decoration:none; padding:8px 10px; border-radius:8px; font-weight:500; font-size:0.95rem; }
.simple-navbar .nav-items a:hover { color:var(--text); background: rgba(124,92,252,0.04); }

.simple-navbar .nav-actions { display:flex; gap:12px; align-items:center; }
.simple-navbar .hamburger { display:none; background:none; border:0; padding:8px; border-radius:8px; cursor:pointer; color:var(--text); }
.simple-navbar .hamburger svg { width:22px; height:22px; stroke:currentColor; }

@media (max-width: 880px) {
  .simple-navbar { padding: 0 16px; }
  .simple-navbar .nav-items {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    display: none;
  }
  .simple-navbar .nav-items a { padding:12px 8px; }
  .simple-navbar .hamburger { display: inline-flex; }
  .simple-navbar.open .nav-items { display:flex; }
}

/* ── HERO ── */
#landing-view .hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

#landing-view .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 92, 252, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(91, 142, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(124, 92, 252, 0.08) 0%, transparent 50%);
}

#landing-view .particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#landing-view .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-up var(--dur, 6s) var(--delay, 0s) infinite ease-in-out;
}

#landing-view .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.3);
  font-size: 0.8rem;
  font-weight: 500;
  color: #b59eff;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  animation: fade-in 0.7s ease both;
}

#landing-view .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}

#landing-view .hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 900px;
  position: relative;
  z-index: 1;
  animation: fade-up 0.8s 0.1s ease both;
}

#landing-view .hero h1 .accent-word {
  background: linear-gradient(135deg, #7c5cfc, #5b8eff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#landing-view .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 24px auto 0;
  position: relative;
  z-index: 1;
  animation: fade-up 0.8s 0.2s ease both;
  line-height: 1.7;
}

#landing-view .hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
  animation: fade-up 0.8s 0.3s ease both;
  flex-wrap: wrap;
  justify-content: center;
}

#landing-view .btn-hero {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(124, 92, 252, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#landing-view .btn-hero:hover {
  background: #8f6fff;
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(124, 92, 252, 0.7);
}

#landing-view .btn-hero-outline {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

#landing-view .btn-hero-outline:hover {
  border-color: rgba(124, 92, 252, 0.5);
  background: rgba(124, 92, 252, 0.07);
  transform: translateY(-2px);
}

#landing-view .hero-social-proof {
  margin-top: 48px;
  position: relative;
  z-index: 1;
  animation: fade-up 0.8s 0.45s ease both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#landing-view .proof-avatars {
  display: flex;
}

#landing-view .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

#landing-view .avatar:first-child {
  margin-left: 0;
}

#landing-view .a1 {
  background: linear-gradient(135deg, #7c5cfc, #5b8eff);
}

#landing-view .a2 {
  background: linear-gradient(135deg, #ff6b6b, #ffa94d);
}

#landing-view .a3 {
  background: linear-gradient(135deg, #20c997, #5b8eff);
}

#landing-view .a4 {
  background: linear-gradient(135deg, #f06292, #ce93d8);
}

#landing-view .a5 {
  background: linear-gradient(135deg, #ffca28, #ff8a65);
}

#landing-view .proof-text {
  font-size: 0.875rem;
  color: var(--muted);
}

#landing-view .proof-text strong {
  color: var(--text);
}

/* ── DASHBOARD MOCKUP ── */
#landing-view .hero-mockup {
  margin-top: 72px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  animation: fade-up 0.9s 0.5s ease both;
}

#landing-view .mockup-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124, 92, 252, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

#landing-view .mockup-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 92, 252, 0.1);
}

#landing-view .mockup-toolbar {
  background: var(--surface2);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

#landing-view .traffic-lights {
  display: flex;
  gap: 7px;
}

#landing-view .tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

#landing-view .tl-r {
  background: #ff5f57;
}

#landing-view .tl-y {
  background: #ffbd2e;
}

#landing-view .tl-g {
  background: #28c840;
}

#landing-view .mockup-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  font-family: monospace;
}

#landing-view .mockup-body {
  display: flex;
  height: 420px;
}

#landing-view .mockup-sidebar {
  width: 210px;
  background: var(--surface2);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

#landing-view .sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 10px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

#landing-view .sidebar-logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

#landing-view .sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  transition: all 0.15s;
}

#landing-view .sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

#landing-view .sidebar-item.active {
  background: rgba(124, 92, 252, 0.15);
  color: #b59eff;
}

#landing-view .sidebar-icon {
  width: 16px;
  text-align: center;
}

#landing-view .mockup-main {
  flex: 1;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#landing-view .mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#landing-view .mockup-title {
  font-size: 1rem;
  font-weight: 600;
}

#landing-view .mockup-search {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
}

#landing-view .meetings-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

#landing-view .meeting-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s;
}

#landing-view .meeting-card:hover {
  border-color: rgba(124, 92, 252, 0.3);
}

#landing-view .meeting-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

#landing-view .mic1 {
  background: rgba(124, 92, 252, 0.15);
}

#landing-view .mic2 {
  background: rgba(91, 142, 255, 0.15);
}

#landing-view .mic3 {
  background: rgba(32, 201, 151, 0.15);
}

#landing-view .meeting-info {
  flex: 1;
  min-width: 0;
}

#landing-view .meeting-name {
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#landing-view .meeting-meta {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

#landing-view .meeting-tags {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

#landing-view .tag {
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 500;
}

#landing-view .tag-purple {
  background: rgba(124, 92, 252, 0.15);
  color: #b59eff;
}

#landing-view .tag-blue {
  background: rgba(91, 142, 255, 0.15);
  color: #88aaff;
}

#landing-view .tag-green {
  background: rgba(32, 201, 151, 0.15);
  color: #6eddb8;
}

#landing-view .mockup-right {
  width: 240px;
  border-left: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

#landing-view .panel-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#landing-view .summary-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#landing-view .summary-item {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

#landing-view .summary-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

#landing-view .ai-chat {
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.78rem;
}

#landing-view .ai-chat-q {
  color: var(--muted);
  margin-bottom: 6px;
}

#landing-view .ai-chat-a {
  color: var(--text);
}

/* ── LOGOS ── */
#landing-view .logos-section {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#landing-view .logos-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#landing-view .logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

#landing-view .logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.6;
  transition: opacity 0.2s;
  letter-spacing: -0.01em;
}

#landing-view .logo-item:hover {
  opacity: 1;
}

#landing-view .logo-icon {
  font-size: 1.2rem;
}

/* ── FEATURES ── */
#landing-view .section {
  padding: 24px 24px 24px 24px;
}

#landing-view .section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

#landing-view .section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 auto;
}

#landing-view .section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 16px auto 0;
  line-height: 1.7;
  text-align: center;
}

#landing-view .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 56px auto 0;
}

#landing-view .feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

#landing-view .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 252, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

#landing-view .feature-card:hover {
  border-color: rgba(124, 92, 252, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 92, 252, 0.06);
}

#landing-view .feature-card:hover::before {
  opacity: 1;
}

#landing-view .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

#landing-view .fi-purple {
  background: rgba(124, 92, 252, 0.12);
}

#landing-view .fi-blue {
  background: rgba(91, 142, 255, 0.12);
}

#landing-view .fi-green {
  background: rgba(32, 201, 151, 0.12);
}

#landing-view .fi-pink {
  background: rgba(240, 98, 146, 0.12);
}

#landing-view .fi-orange {
  background: rgba(255, 138, 101, 0.12);
}

#landing-view .fi-teal {
  background: rgba(38, 198, 218, 0.12);
}

#landing-view .feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

#landing-view .feature-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
#landing-view .how-section {
  padding: 24px 24px 24px 24px;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 252, 0.04) 50%, transparent);
}

#landing-view .how-inner {
  max-width: 900px;
  margin: 0 auto;
}

#landing-view .steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 56px;
}

#landing-view .step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  animation: slide-in 0.6s ease both;
}

#landing-view .step:nth-child(1) {
  animation-delay: 0.1s;
}

#landing-view .step:nth-child(2) {
  animation-delay: 0.25s;
}

#landing-view .step:nth-child(3) {
  animation-delay: 0.4s;
}

#landing-view .step:nth-child(4) {
  animation-delay: 0.55s;
}

#landing-view .step-num {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--accent);
}

#landing-view .step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

#landing-view .step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── INTEGRATIONS ── */
#landing-view .integrations-section {
  padding: 96px 24px;
  text-align: center;
}

#landing-view .integrations-inner {
  max-width: 1100px;
  margin: 0 auto;
}

#landing-view .int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 48px;
}

#landing-view .int-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}

#landing-view .int-card:hover {
  border-color: rgba(124, 92, 252, 0.3);
  color: var(--text);
  background: var(--surface2);
  transform: translateY(-2px);
}

#landing-view .int-icon {
  font-size: 1.6rem;
}

/* ── PRICING ── */
#landing-view .pricing-section {
  padding: 24px 24px 24px 24px;
}

#landing-view .pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#landing-view .pricing-toggle {
  display: flex;
  justify-content: center;
  margin: 32px 0 48px;
}

#landing-view .toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
  user-select: none;
  width: 360px;
}

#landing-view .toggle-switch input {
  display: none;
}

#landing-view .toggle-slider {
  position: absolute;
  left: 4px;
  width: 172px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px;
  transition: left 0.3s ease;
  pointer-events: none;
}

#landing-view .toggle-switch input:checked ~ .toggle-slider {
  left: 180px;
}

#landing-view .toggle-label {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 8px 20px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #667792;
  transition: color 0.2s ease;
}

#landing-view .toggle-label.monthly {
  color: #fff;
}

#landing-view .toggle-switch input:checked ~ .toggle-label.monthly {
  color: #667792;
}

#landing-view .toggle-label.annual {
  color: #667792;
}

#landing-view .toggle-switch input:checked ~ .toggle-label.annual {
  color: #fff;
}

#landing-view .toggle-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--muted);
}

#landing-view .toggle-btn.active {
  background: var(--accent);
  color: #fff;
}

#landing-view .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

#landing-view .pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  position: relative;
  transition: all 0.25s;
}

#landing-view .pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

#landing-view .pricing-card.popular {
  border-color: rgba(124, 92, 252, 0.4);
  box-shadow: 0 0 0 1px rgba(124, 92, 252, 0.15), 0 0 40px rgba(124, 92, 252, 0.08);
}

#landing-view .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

#landing-view .plan-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

#landing-view .plan-price {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

#landing-view .plan-price sup {
  font-size: 1rem;
  vertical-align: top;
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
}

#landing-view .plan-period {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}

#landing-view .plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

#landing-view .plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
}

#landing-view .check {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

#landing-view .btn-plan {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

#landing-view .btn-plan-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

#landing-view .btn-plan-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#landing-view .btn-plan-fill {
  background: var(--accent);
  color: #fff;
}

#landing-view .btn-plan-fill:hover {
  background: #8f6fff;
}

/* ── TESTIMONIALS ── */
#landing-view .testimonials-section {
  padding: 24px 24px 24px 24px;
}

#landing-view .testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#landing-view .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

#landing-view .testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: left;
  transition: all 0.25s;
}

#landing-view .testimonial-card:hover {
  border-color: rgba(124, 92, 252, 0.25);
  transform: translateY(-2px);
}

#landing-view .stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

#landing-view .testimonial-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

#landing-view .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

#landing-view .author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

#landing-view .author-name {
  font-size: 0.88rem;
  font-weight: 600;
}

#landing-view .author-role {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── BOTTOM CTA ── */
#landing-view .cta-section {
  padding:24px 24px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#landing-view .cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(124, 92, 252, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

#landing-view .cta-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  max-width: 650px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

#landing-view .cta-section p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 440px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

#landing-view .cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ── */
#landing-view footer {
  border-top: 1px solid var(--border);
  padding: 56px 48px 32px;
}

#landing-view .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

#landing-view .footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

#landing-view .footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 240px;
}

#landing-view .footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}

#landing-view .footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#landing-view .footer-col ul li a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

#landing-view .footer-col ul li a:hover {
  color: var(--text);
}

#landing-view .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--muted);
}

#landing-view .footer-socials {
  display: flex;
  gap: 16px;
}

#landing-view .footer-socials a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.85rem;
}

#landing-view .footer-socials a:hover {
  color: var(--text);
}

/* ── UTILITY ── */
#landing-view .center {
  text-align: center;
}

#landing-view .center .section-title,
#landing-view .center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #landing-view nav {
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: 76px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #landing-view .nav-logo img {
    height: 44px;
  }

  #landing-view .nav-links,
  #landing-view .nav-ctas {
    display: flex;
  }

  #landing-view .nav-links {
    order: 3;
    width: 100%;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  #landing-view .nav-ctas {
    margin-left: auto;
    padding: 0;
    gap: 10px;
  }

  #landing-view .mockup-right,
  #landing-view .mockup-sidebar {
    display: none;
  }

  #landing-view .mockup-body {
    flex-direction: column;
  }

  #landing-view .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  #landing-view footer {
    padding: 40px 20px 24px;
  }
}

/* ═══════════════════════════════════════════════
   APP VIEW  — all rules scoped to #app-view
═══════════════════════════════════════════════ */
#app-view {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 200;
  font-family: 'Sora', sans-serif;
  /* App-specific CSS variable overrides */
  --bg: #f2f5fb;
  --sidebar-bg: #eef2f8;
  --card-bg: #ffffff;
  --card-hover: #f7f9fd;
  --border: #d8e1ef;
  --accent: #2577e8;
  --accent-soft: #16a4ed;
  --accent-dim: rgba(37, 119, 232, 0.12);
  --green: #1f9d6b;
  --green-dim: rgba(62, 207, 142, 0.12);
  --red: #d34a4a;
  --yellow: #b08309;
  --text: #0d2144;
  --text-muted: #4a5b7a;
  --text-dim: #7d8eaa;
  --radius: 12px;
  --sidebar-w: 210px;
  --sidebar-collapsed-w: 74px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

#app-view.active {
  display: flex;
}

#app-view.voice-agent-live-mode {
  background: #000000;
}

#app-view.voice-agent-live-mode .sidebar-backdrop,
#app-view.voice-agent-live-mode .sidebar,
#app-view.voice-agent-live-mode .topbar {
  display: none !important;
}

#app-view.voice-agent-live-mode .main {
  padding-top: 0;
}

#app-view .sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 39, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 240;
}

#app-view .mobile-menu-btn,
#app-view .sidebar-inline-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: #314665;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

#app-view .mobile-menu-btn svg,
#app-view .sidebar-inline-menu svg {
  width: 16px;
  height: 16px;
}

/* ── SIDEBAR ── */
#app-view .sidebar {
  position: relative;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.22s ease;
}

#app-view .sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 0 18px;
  scrollbar-width: thin;
  scrollbar-color: #bfd0e8 transparent;
}

#app-view .sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

#app-view .sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

#app-view .sidebar-scroll::-webkit-scrollbar-thumb {
  background: #bfd0e8;
  border-radius: 999px;
}

#app-view .sidebar-collapse-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d6dce9;
  background: linear-gradient(180deg, #f0f2f8 0%, #e3e7f0 100%);
  color: #526481;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.18s ease;
  box-shadow: 0 6px 18px rgba(41, 66, 115, 0.08);
}

#app-view .sidebar:hover .sidebar-collapse-btn,
#app-view .sidebar-collapse-btn:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#app-view .sidebar-collapse-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(41, 66, 115, 0.16);
}

#app-view .sidebar-collapse-btn svg {
  width: 20px;
  height: 20px;
}

#app-view .logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px 10px;
  min-height: 42px;
}

#app-view .logo-icon {
  flex-shrink: 0;
}

#app-view .logo-text {
  display: block;
  width: min(185px, 100%);
  height: auto;
}

#app-view .collapsed-logo {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 12px;
}

#app-view .collapsed-logo img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

#app-view .nav-section {
  margin-bottom: 10px;
}

#app-view .nav-chip {
  margin: 6px 10px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, #2a67ec, #19aae9);
}

#app-view .nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  padding: 8px 20px 4px;
}

#app-view .nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 6px;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #12284d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

#app-view .nav-item-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

#app-view .nav-item:hover {
  background: #dce6f5;
  color: #0f2350;
}

#app-view .nav-item.active {
  background: #dce6f5;
  color: #2361d7;
  font-weight: 700;
}

#app-view .nav-item.active::before {
  display: none;
}

#app-view .nav-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex-shrink: 0;
}

#app-view .nav-item svg {
  color: inherit;
  stroke: currentColor;
  opacity: 1;
}

#app-view .nav-item.active svg {
  opacity: 1;
}

#app-view .nav-item-img-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#app-view .nav-item:hover .nav-item-img-icon {
  transform: scale(1.6);
}

#app-view .nav-item.active .nav-item-img-icon {
  transform: scale(1.4);
}

#app-view .badge {
  margin-left: auto;
  background: #2f91e6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

#app-view .usage-bar-wrap {
  margin-bottom: 12px;
}

#app-view .usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#app-view .usage-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

#app-view .usage-fill {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 4px;
}

/* ── MAIN ── */
#app-view .main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 68px;
}

#app-view .topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
  padding: 10px 16px;
  background: #ffffff;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

#app-view .page-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

#app-view .topbar-right {
  margin-left: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#app-view .topbar-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
}

#app-view .search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  width: min(240px, 22vw);
}

#app-view .search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  width: 100%;
}

#app-view .search-box input::placeholder {
  color: var(--text-dim);
}

#app-view .btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

#app-view .btn-primary {
  background: var(--accent);
  color: #fff;
}

#app-view .btn-primary:hover {
  background: var(--accent-soft);
}

#app-view .btn-ghost {
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

#app-view .btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

#app-view .header-notification-wrap {
  position: relative;
}

#app-view .header-notification-btn {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

#app-view .header-notification-btn svg {
  width: 19px;
  height: 19px;
}

#app-view .header-notification-btn.active {
  color: var(--text);
  border-color: #b8ccec;
  background: #edf4ff;
}

#app-view .header-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b, #ff8a3d);
  color: var(--text);
}

#app-view .header-notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: min(380px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(14, 32, 66, 0.16);
  overflow: hidden;
  z-index: 40;
}

#app-view .header-notification-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

#app-view .header-notification-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

#app-view .header-notification-read-all {
  border: none;
  background: transparent;
  color: #2a67ec;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

#app-view .header-notification-subtitle {
  margin-top: 3px;
  border: none;
  background: transparent;
  color: #2a67ec;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

#app-view .header-notification-read-all:disabled {
  color: #9badcb;
  cursor: default;
}

#app-view .header-notification-list {
  max-height: min(380px, calc(100vh - 190px));
  overflow-y: auto;
  padding: 8px;
}

#app-view .header-notification-empty {
  padding: 18px 14px;
  border-radius: 14px;
  background: #f7faff;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

#app-view .header-notification-item {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f8fbff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#app-view .header-notification-item+.header-notification-item {
  margin-top: 8px;
}

#app-view .header-notification-item:hover {
  background: #edf4ff;
  border-color: #c6d8f3;
  transform: translateY(-1px);
}

#app-view .header-notification-item.is-read {
  background: #fbfcfe;
  opacity: 0.84;
}

#app-view .header-notification-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#app-view .header-notification-item-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
}

#app-view .header-notification-item-time {
  flex-shrink: 0;
  font-size: 10.5px;
  color: var(--text-dim);
}

#app-view .header-notification-item-message {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

#app-view .header-notification-item-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  color: #1f5dd8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#app-view .header-notification-item-link:hover {
  color: #1648ab;
}

#app-view .header-notification-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

#app-view .header-notification-item-type {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c78b5;
}

#app-view .header-notification-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a67ec;
  box-shadow: 0 0 0 4px rgba(42, 103, 236, 0.1);
}

#app-view .header-profile-wrap {
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header-profile-wrap.visible {
  opacity: 1;
  visibility: visible;
}

#app-view .header-profile-btn {
  gap: 0;
  width: 54px;
  height: 54px;
  padding: 0;
  white-space: nowrap;
  justify-content: center;
  border: none;
  background: transparent;
  box-shadow: none;
}

#app-view .header-profile-btn:hover {
  border: none;
  background: transparent;
  box-shadow: none;
}

#app-view .header-profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a67ec, #19aae9);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#app-view .header-profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-view .header-profile-caret {
  width: 14px;
  height: 14px;
  opacity: 0.85;
  transition: transform 0.18s ease;
  display: none;
}

#app-view .header-profile-wrap.open .header-profile-caret {
  transform: rotate(180deg);
}

#app-view .header-profile-btn.active {
  background: transparent;
  color: inherit;
  border-color: transparent;
}

#app-view .header-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(14, 32, 66, 0.16);
  padding: 10px;
  z-index: 30;
}

#app-view .header-profile-summary {
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

#app-view .header-profile-summary-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-view .header-profile-summary-email {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-view .header-profile-tabs {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

#app-view .header-profile-tab {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  color: #203556;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

#app-view .header-profile-tab:hover {
  background: #edf4ff;
  border-color: #b8ccec;
}

#app-view .header-profile-signout {
  width: 100%;
  height: 38px;
  border: 1px solid #f0bcc5;
  border-radius: 10px;
  background: #fff5f7;
  color: #a8324b;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .header-profile-signout:hover {
  background: #ffecef;
  border-color: #e691a2;
}

#app-view .header-profile-signout:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#app-view .theme-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 66px;
  padding: 0;
  border: none;
  background: transparent;
  color: #405577;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: transform 0.2s ease;
}

#app-view .theme-toggle:hover {
  transform: translateY(-1px);
}

#app-view .theme-toggle-track {
  position: relative;
  display: block;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  background: #2f91e6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

#app-view .theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f5f7fb;
  box-shadow: 0 2px 8px rgba(13, 33, 68, 0.28);
  transition: transform 0.2s ease;
}

#app-view .theme-toggle.is-dark .theme-toggle-thumb {
  transform: translateX(26px);
}

#app-view .theme-toggle-text {
  position: static;
  margin: 0;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* ── STATIC RIGHT PANEL ── */
#app-view .right-static-panel {
  position: absolute;
  top: 68px;
  right: 0;
  bottom: 0;
  width: 360px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px);
  padding: 8px 0 12px;
  box-sizing: border-box;
  gap: 12px;
  overflow: visible;
  z-index: 230;
  pointer-events: none;
  transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

#app-view .right-static-panel.all-panels-collapsed {
  width: 0;
  border-left-color: transparent;
  background: transparent;
}

#app-view .right-static-panel.all-panels-collapsed .interactive-panel {
  flex: 1 1 50%;
}

#app-view .interactive-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 10px;
  pointer-events: auto;
}

#app-view .transcript-interactive-panel {
  order: 1;
  flex: 1 1 55%;
}

#app-view .assistant-interactive-panel {
  order: 2;
  flex: 1 1 45%;
  margin-top: auto;
}

#app-view .interactive-panel.is-collapsed {
  flex: 0 0 64px;
  width: 0;
  padding: 0;
}

#app-view .interactive-panel-handle {
  position: absolute;
  left: -18px;
  top: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #344867;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(22, 38, 66, 0.12);
  opacity: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#app-view .interactive-panel:hover .interactive-panel-handle,
#app-view .interactive-panel:focus-within .interactive-panel-handle,
#app-view .interactive-panel-handle:hover,
#app-view .interactive-panel-handle:focus-visible {
  opacity: 1;
}

#app-view .interactive-panel.is-collapsed .interactive-panel-handle {
  opacity: 1;
}

#app-view .interactive-panel-handle:hover {
  transform: translateX(-8px) translateY(-1px);
  border-color: #b7c7df;
  box-shadow: 0 16px 32px rgba(22, 38, 66, 0.16);
}

#app-view .interactive-panel-handle-label {
  display: none;
  white-space: nowrap;
}

#app-view .interactive-panel-handle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #5972a0;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.22s ease;
}

#app-view .interactive-panel-handle:hover .interactive-panel-handle-icon {
  transform: translateX(-2px);
}

#app-view .interactive-panel.is-collapsed .interactive-panel-handle {
  left: auto;
  right: 0;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  min-width: 158px;
  padding: 0 14px 0 16px;
  border-radius: 16px;
}

#app-view .interactive-panel.is-collapsed .interactive-panel-handle-label {
  display: inline;
}

#app-view .interactive-panel.is-collapsed .interactive-panel-handle-icon {
  width: 20px;
}

#app-view .interactive-panel-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(16, 28, 51, 0.08);
  background: var(--card-bg);
}

#app-view .interactive-panel.is-collapsed .interactive-panel-card {
  display: none;
}

#app-view .interactive-panel.is-collapsed {
  flex: 0 0 64px;
}

#app-view .interactive-panel.is-collapsed .interactive-panel-handle {
  top: 10px;
}

#app-view .right-static-panel.all-panels-collapsed .interactive-panel.is-collapsed .interactive-panel-handle {
  top: 50%;
  transform: translateY(-50%);
}

#app-view .right-static-panel.all-panels-collapsed .interactive-panel.is-collapsed .interactive-panel-handle:hover {
  transform: translateX(-8px) translateY(-50%);
}

#app-view .right-panel-head {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

#app-view .right-panel-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

#app-view .right-panel-head input {
  width: 100%;
  margin-top: 6px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
}

#app-view .right-panel-head input::placeholder {
  color: var(--text-dim);
}

#app-view .transcript-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

#app-view .transcript-line {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  padding: 3px 6px;
  border-radius: 6px;
  margin: 2px 0;
}

#app-view .transcript-line.active {
  background: var(--accent-dim);
  color: var(--text);
}

#app-view .transcript-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

#app-view .transcript-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  padding: 0;
  font-size: 14px;
}

#app-view .transcript-toggle-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

#app-view .transcript-toggle-btn.recording {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  animation: pulse 2s infinite;
}

#app-view .transcript-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #ef4444;
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

#app-view .transcript-status[hidden] {
  display: none !important;
}

#app-view .transcript-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}

#app-view .transcript-line.interim {
  color: var(--text-dim);
  font-style: italic;
}

#app-view .transcript-line.final {
  color: var(--text);
}

#app-view .transcript-line.has-question {
  background: rgba(91, 142, 255, 0.04);
}

#app-view .transcript-question-trigger {
  display: inline;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

#app-view .transcript-question-trigger:hover {
  color: var(--accent-soft);
}

#app-view .transcript-question-trigger:focus-visible {
  outline: 2px solid rgba(91, 142, 255, 0.45);
  outline-offset: 2px;
}

#app-view .right-panel-block {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

#app-view .assistant-interactive-panel .right-panel-block {
  flex: 1;
  border-bottom: none;
}

#app-view .right-panel-block h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

#app-view .rename-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#app-view .rename-row input,
#app-view .rename-row button {
  height: 36px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px;
}

#app-view .rename-row input {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  padding: 0 12px;
}

#app-view .rename-row button {
  border: none;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--accent), #5b8eff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#app-view .ai-feed {
  flex: 1;
  min-height: 140px;
  max-height: none;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
  margin-bottom: 6px;
}

#app-view .ai-feed .ai-entry {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px;
  width: 100%;
}

#app-view .ai-feed .ai-entry.you {
  align-items: flex-end;
}

#app-view .ai-feed .ai-entry.ai {
  align-items: flex-start;
}

#app-view .ai-feed .ai-entry-role {
  display: none;
}

#app-view .ai-feed .ai-entry-body {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 16px;
  border-radius: 18px;
  max-width: 85%;
  word-wrap: break-word;
}

#app-view .ai-feed .ai-entry.you .ai-entry-body {
  background: #f0f0f0;
  color: #111;
  border-bottom-right-radius: 4px;
}

#app-view .ai-feed .ai-entry.ai .ai-entry-body {
  background: #e6e9f2;
  color: #111;
  border-bottom-left-radius: 4px;
}

#app-view .ai-feed .ai-entry-body li {
  margin: 0 0 4px 16px;
}

#app-view .ai-feed p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

#app-view .ai-feed p:last-child {
  margin-bottom: 0;
}

#app-view .ai-assistant-form {
  margin-top: 6px;
}

#app-view .ai-input-pill {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 8px 0 12px;
  height: 40px;
  transition: border-color 0.15s;
}

#app-view .ai-input-pill:focus-within {
  border-color: var(--accent);
}

#app-view .ai-assistant-form input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  padding: 0;
  min-width: 0;
}

#app-view .ai-assistant-form input::placeholder {
  color: var(--text-dim);
}

#app-view .ai-input-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

#app-view .ai-mic-btn,
#app-view .ai-send-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  padding: 0;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  font-size: 14px;
}

#app-view .ai-mic-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

#app-view .ai-send-btn {
  display: none;
}

#app-view .ai-send-btn.visible {
  display: flex;
  color: var(--accent);
}

#app-view .ai-send-btn.visible:hover {
  background: var(--accent-dim);
}

#app-view .ai-send-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* DASHBOARD ONBOARD BLOCKS */
#app-view .dashboard-onboard {
  display: grid;
  gap: 12px;
  width: min(100%, 1040px);
  margin: 0 auto;
}

#app-view .app-view-section[hidden] {
  display: none !important;
}

#app-view .dash-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 18px rgba(25, 48, 92, 0.04);
}

#app-view .welcome-card h2 {
  margin: 0 0 4px;
  max-width: 28ch;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.45px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

#app-view .welcome-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

#app-view .quickstart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

#app-view .quickstart-head h3,
#app-view .join-card h3 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.35px;
  line-height: 1.18;
}

#app-view .quickstart-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

#app-view .qs-schedule-btn {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

#app-view .quickstart-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#app-view .quick-action {
  border: 1px solid var(--border);
  background: #f7faff;
  color: #203556;
  border-radius: 14px;
  height: 56px;
  text-align: left;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .dashboard-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 30px 34px;
  margin-bottom: 12px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(67, 120, 214, 0.16);
  box-shadow: 0 18px 40px rgba(39, 82, 153, 0.12);
  min-height: 170px;
  background-color: #d9eef5;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#app-view .dashboard-hero::before,
#app-view .dashboard-hero::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.55;
}

#app-view .dashboard-hero::before {
  width: 240px;
  height: 240px;
  top: -120px;
  right: 12%;
  background: rgba(255, 255, 255, 0.5);
}

#app-view .dashboard-hero::after {
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: -120px;
  background: rgba(103, 194, 241, 0.3);
}

#app-view .dashboard-hero.is-morning {
  background-position: center 58%;
  background-image:
    linear-gradient(135deg, rgba(255, 245, 219, 0.62) 0%, rgba(255, 232, 196, 0.42) 28%, rgba(195, 230, 255, 0.26) 72%, rgba(151, 208, 240, 0.22) 100%),
    url("/Src/morning.jpg");
}

#app-view .dashboard-hero.is-afternoon {
  background-position: center 46%;
  background-image:
    linear-gradient(135deg, rgba(247, 239, 225, 0.38) 0%, rgba(231, 242, 244, 0.28) 34%, rgba(153, 210, 244, 0.18) 100%),
    url("/Src/Afternoon.jpg");
}

#app-view .dashboard-hero.is-evening {
  background-position: center 52%;
  background-image:
    linear-gradient(135deg, rgba(252, 233, 218, 0.42) 0%, rgba(224, 219, 245, 0.3) 40%, rgba(145, 176, 238, 0.2) 100%),
    url("/Src/Evening.jpg");
}

#app-view .dashboard-hero.is-night {
  background-position: center 58%;
  background-image:
    linear-gradient(135deg, rgba(16, 33, 63, 0.56) 0%, rgba(24, 54, 95, 0.44) 42%, rgba(33, 77, 135, 0.34) 100%),
    url("/Src/Night.jpg");
  border-color: rgba(132, 177, 255, 0.18);
  box-shadow: 0 18px 44px rgba(7, 18, 43, 0.36);
}

#app-view .dashboard-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

#app-view .dashboard-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #223253;
}

#app-view .dashboard-hero p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: #4c638a;
}

#app-view .dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

#app-view .dashboard-split .dashboard-join-card {
  grid-column: 1 / -1;
}

#app-view .dashboard-split .holiday-card,
#app-view .dashboard-split .todays-meetings-card {
  grid-column: unset;
}

#app-view .join-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

#app-view .join-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

#app-view .join-icon {
  font-size: 18px;
}

#app-view .dashboard-join-card {
  padding: 18px 20px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border-color: #d7e4f6;
  box-shadow: 0 10px 30px rgba(31, 74, 154, 0.08);
}

#app-view .dashboard-join-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(37, 119, 232, 0.08);
}

#app-view .dashboard-join-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

#app-view .dashboard-join-title-row h3 {
  font-size: 20px;
  letter-spacing: -0.35px;
  color: var(--text);
}

#app-view .dashboard-join-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 119, 232, 0.12), rgba(22, 164, 237, 0.18));
  color: var(--accent);
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#app-view .dashboard-join-form {
  display: grid;
  gap: 10px;
}

#app-view .join-card input {
  width: 100%;
  height: 48px;
  margin-bottom: 0;
  border: 1px solid #d5e1f2;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#app-view .join-card input::placeholder {
  color: #8da0be;
}

#app-view .join-card input:focus {
  outline: none;
  border-color: rgba(37, 119, 232, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 119, 232, 0.12);
}

#app-view .join-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #2a67ec, #19aae9);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .dashboard-join-card .join-btn {
  margin-top: 2px;
  box-shadow: 0 12px 26px rgba(42, 103, 236, 0.18);
}

#app-view .holiday-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#app-view .holiday-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#app-view .holiday-head-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#app-view .holiday-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

#app-view .holiday-head button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: border 0.18s, box-shadow 0.18s;
}

#app-view .holiday-head button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#app-view .holiday-month {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-muted);
}

#app-view .holiday-month-select {
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 0 28px 0 10px;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border 0.18s;
  background-image:
    url('data:image/svg+xml;utf8,<svg fill="%235b8eff" height="12" viewBox="0 0 20 20" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 8l3 3 3-3" stroke="%235b8eff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-position: right 10px center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  margin: 2px 0;
}

#app-view .holiday-month-select:hover,
#app-view .holiday-month-select:focus {
  border-color: var(--accent2);
  outline: none;
}

#app-view .holiday-month-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

#app-view .holiday-card p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

#app-view .holiday-list {
  display: grid;
  gap: 5px;
  max-height: 160px;
  overflow-y: auto;
}

#app-view .holiday-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
}

#app-view .holiday-row strong {
  font-size: 12px;
  color: var(--text);
}

#app-view .holiday-row span,
#app-view .holiday-empty {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

#app-view .holiday-empty {
  padding: 6px 0 2px;
}

#app-view .holiday-progress {
  margin-top: 4px;
  height: 4px;
  border-radius: 4px;
  background: #edf3fb;
  position: relative;
  overflow: hidden;
}

#app-view .holiday-progress span {
  position: absolute;
  left: 16%;
  right: 40%;
  top: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--accent-soft);
}

#app-view .holiday-card {
  min-height: 0;
}

#app-view .profile-view {
  display: grid;
  gap: 12px;
  width: min(100%, 1040px);
  margin: 0 auto;
}

#app-view .settings-view {
  display: flex;
  flex-direction: column;
  width: min(100%, 1040px);
  margin: 0 auto;
  height: 100%;
}

#app-view .settings-view h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.25px;
  color: var(--text);
}

#app-view .settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#app-view .settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#app-view .settings-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
}

#app-view .timezone-select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#app-view .timezone-select:hover {
  border-color: var(--accent-soft);
}

#app-view .timezone-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

#app-view .timezone-selector {
  display: grid;
  gap: 10px;
}

#app-view .timezone-search-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 0 12px;
}

#app-view .timezone-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

#app-view .timezone-search-input::placeholder {
  color: var(--text-dim);
}

#app-view .timezone-selected-preview {
  min-height: 18px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

#app-view .timezone-section {
  display: grid;
  gap: 6px;
}

#app-view .timezone-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

#app-view .timezone-option-list {
  display: grid;
  gap: 6px;
}

#app-view .timezone-option-region {
  margin-top: 4px;
  margin-bottom: 1px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#app-view .timezone-option {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  color: var(--text);
  text-align: left;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

#app-view .timezone-option:hover {
  border-color: #b9cdee;
  background: #edf4ff;
}

#app-view .timezone-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

#app-view .timezone-option.selected {
  border-color: #9bc2ff;
  background: #e8f2ff;
}

#app-view .timezone-option-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 2px;
}

#app-view .settings-help-text {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

#app-view .settings-save-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
}

#app-view .settings-save-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 92, 252, 0.2);
}

#app-view .settings-save-btn:active {
  transform: translateY(0);
}

#app-view .settings-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#app-view .settings-message {
  margin: 12px 0 0;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}

#app-view .settings-message.success {
  background: rgba(62, 207, 142, 0.12);
  color: #3ecf8e;
  display: block;
}

#app-view .settings-message.error {
  background: rgba(245, 95, 95, 0.12);
  color: #f55f5f;
  display: block;
}

#app-view .integration-view {
  display: grid;
  gap: 12px;
  width: min(100%, 1040px);
  margin: 0 auto;
}


#app-view .integration-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

#app-view .integration-sync-card {
  max-width: 340px;
  width: 100%;
}

#app-view .integration-provider-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#app-view .meetings-primary-btn.microsoft-btn {
  background: linear-gradient(135deg, #0078d4, #005a9e);
}

#app-view .meetings-primary-btn.microsoft-btn:hover {
  background: linear-gradient(135deg, #106ebe, #004f8c);
}

#app-view .profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

#app-view .profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a67ec, #19aae9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

#app-view .profile-hero-text h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.4px;
}

#app-view .profile-hero-text p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

#app-view .profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 12px;
}

#app-view .profile-panel-right {
  display: flex;
  flex-direction: column;
}

#app-view .profile-panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.25px;
}

#app-view .profile-list {
  display: grid;
  gap: 8px;
}

#app-view .profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

#app-view .profile-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#app-view .profile-row span {
  color: var(--text-muted);
  font-size: 12.5px;
}

#app-view .profile-row strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
}

#app-view .profile-delete-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

#app-view .content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

#app-view .content::-webkit-scrollbar {
  width: 6px;
}

#app-view .content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

/* FILTERS */
#app-view .filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

#app-view .filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  transition: all 0.15s;
}

#app-view .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

#app-view .filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-soft);
}

#app-view .filter-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

/* MEETING CARDS */
#app-view .meetings-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#app-view .meeting-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

#app-view .meeting-card:hover {
  background: var(--card-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#app-view .meeting-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

#app-view .icon-zoom {
  background: rgba(45, 140, 255, 0.15);
}

#app-view .icon-gmeet {
  background: rgba(62, 207, 142, 0.15);
}

#app-view .icon-teams {
  background: rgba(124, 92, 252, 0.15);
}

#app-view .icon-phone {
  background: rgba(245, 200, 66, 0.15);
}

#app-view .meeting-body {
  flex: 1;
  min-width: 0;
}

#app-view .meeting-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

#app-view .meeting-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

#app-view .meeting-tags {
  display: flex;
  gap: 6px;
}

#app-view .tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#app-view .tag-ai {
  background: var(--accent-dim);
  color: var(--accent-soft);
}

#app-view .tag-new {
  background: var(--green-dim);
  color: var(--green);
}

#app-view .tag-shared {
  background: rgba(245, 200, 66, 0.12);
  color: var(--yellow);
}

#app-view .meeting-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

#app-view .meeting-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

#app-view .meeting-summary {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#app-view .meeting-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
  margin-top: 2px;
}

#app-view .action-dots {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
}

#app-view .action-dots:hover {
  background: var(--border);
  color: var(--text);
}

#app-view .participants {
  display: flex;
}

#app-view .participant-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  margin-left: -6px;
  flex-shrink: 0;
}

#app-view .participant-avatar:first-child {
  margin-left: 0;
}

/* STATS ROW */
#app-view .stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

#app-view .stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

#app-view .stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#app-view .stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: 'JetBrains Mono', monospace;
}

#app-view .stat-value.accent {
  color: var(--accent-soft);
}

#app-view .stat-value.green {
  color: var(--green);
}

#app-view .stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* RECORD FAB */

#app-view .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#app-view .section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

#app-view .see-all {
  font-size: 12px;
  color: var(--accent-soft);
  cursor: pointer;
}

#app-view .see-all:hover {
  text-decoration: underline;
}

/* WORKSPACE SWITCHER */
#app-view .workspace-switcher {
  margin: 0 12px 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f7f9fe;
}

#app-view .workspace-brand-mark {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a67ec, #19aae9);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

#app-view .workspace-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#app-view .workspace-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.15px;
  flex: 1;
}

#app-view .workspace-pill {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent-soft);
  font-weight: 700;
}

#app-view .workspace-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* SAAS TOPBAR EXTRAS */
#app-view .plan-pill {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

#app-view .btn-upgrade {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #5b8eff);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}

#app-view .btn-upgrade:hover {
  transform: translateY(-1px);
}

@media (max-width: 1540px) and (min-width: 1081px) {
  #app-view .plan-pill {
    display: none;
  }
}

@media (max-width: 1420px) and (min-width: 1081px) {

  #app-view .btn-upgrade,
  #app-view .topbar-divider {
    display: none;
  }

  #app-view .search-box {
    width: min(210px, 24vw);
  }
}

/* SAAS INSIGHTS */
#app-view .saas-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

#app-view .insight-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

#app-view .insight-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

#app-view .insight-value {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

#app-view .insight-sub {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-dim);
}

#app-view .insight-value.revenue {
  color: #8ea3ff;
}

#app-view .insight-value.customer {
  color: #7ddfb1;
}

#app-view .billing-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

#app-view .billing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

#app-view .billing-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 9px;
}

#app-view .billing-main {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

#app-view .billing-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* MEETINGS VIEW */
#app-view .meetings-shell {
  display: grid;
  gap: 16px;
}

#app-view .meetings-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

#app-view .meetings-hero-copy h2 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.6px;
}

#app-view .meetings-hero-copy p {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

#app-view .meetings-eyebrow,
#app-view .meetings-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

#app-view .meetings-hero-actions,
#app-view .meetings-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#app-view .meetings-primary-btn,
#app-view .meetings-secondary-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

#app-view .meetings-primary-btn {
  border: none;
  background: linear-gradient(135deg, #2a67ec, #19aae9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(42, 103, 236, 0.18);
}

#app-view .meetings-primary-btn:hover,
#app-view .meetings-secondary-btn:hover {
  transform: translateY(-1px);
}

#app-view .meetings-secondary-btn {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
}

#app-view .meetings-secondary-btn.danger {
  border-color: #f0bcc5;
  color: #a8324b;
  background: #fff5f7;
}

#app-view .meetings-secondary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

#app-view .meetings-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 12px;
  align-items: start;
  grid-template-areas: "calendar agenda";
}

#app-view .meetings-primary-card {
  grid-area: calendar;
  max-width: 700px;
  width: 100%;
  justify-self: start;
}

#app-view .meetings-agenda-panel {
  grid-area: agenda;
  max-width: 460px;
  width: 100%;
  justify-self: end;
}

#app-view .dash-card.meetings-agenda-panel {
  padding: 12px 12px 10px;
}

#app-view .meetings-sync-card {
  grid-area: sync;
  max-width: 460px;
  width: 100%;
  justify-self: end;
}

#app-view .meetings-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#app-view .meetings-panel-head h3 {
  margin: 4px 0 0;
  font-size: 14px;
  letter-spacing: -0.35px;
}

#app-view .calendar-status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

#app-view .calendar-status-pill.connected {
  background: rgba(62, 207, 142, 0.16);
  color: #188252;
}

#app-view .calendar-status-pill.disconnected {
  background: rgba(245, 95, 95, 0.1);
  color: #b03a3a;
}

#app-view .meetings-panel-text {
  margin: 0 0 4px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--text);
}

#app-view .meetings-muted-text,
#app-view .meetings-events-meta {
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  white-space: normal;
  word-break: break-word;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

#app-view .meetings-mini-calendar-card {
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--card-bg), #f8fbff);
  padding: 12px;
}

#app-view .meetings-mini-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

#app-view .meetings-mini-calendar-head h4 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.25px;
}

#app-view .meetings-mini-calendar-head span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

#app-view .meetings-mini-calendar-weekdays,
#app-view .meetings-mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

#app-view .meetings-mini-calendar-weekdays {
  margin-bottom: 6px;
}

#app-view .meetings-mini-calendar-weekdays span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}

#app-view .meetings-mini-calendar-day {
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .meetings-mini-calendar-day:hover {
  background: #edf3ff;
}

#app-view .meetings-mini-calendar-day.outside {
  color: var(--text-dim);
  opacity: 0.35;
}

#app-view .meetings-mini-calendar-day.has-events {
  background: #5f63e9;
  color: #ffffff;
}

#app-view .meetings-mini-calendar-day.today {
  box-shadow: inset 0 0 0 1px #4f89f0;
}

#app-view .meetings-mini-calendar-day.selected {
  box-shadow: inset 0 0 0 2px rgba(42, 103, 236, 0.42);
}

#app-view .meetings-quick-points {
  display: grid;
  gap: 5px;
  margin: 8px 0;
}

#app-view .meetings-quick-point {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
}

#app-view .meetings-quick-point strong {
  display: block;
  margin-bottom: 1px;
  font-size: 11px;
}

#app-view .meetings-quick-point span {
  display: block;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

#app-view .integration-slack-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 12px;
}

#app-view .integration-slack-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#app-view .integration-slack-channel-select {
  flex: 1;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
}

#app-view .integration-slack-channel-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#app-view .meetings-feedback {
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

#app-view .meetings-feedback.success {
  background: rgba(62, 207, 142, 0.12);
  color: #126c44;
}

#app-view .meetings-feedback.error {
  background: rgba(245, 95, 95, 0.1);
  color: #a53b3b;
}

#app-view .meetings-calendar-shell {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-bg), #fafbff);
  padding: 9px;
  margin: 0 0 12px;
  max-width: 600px;
}

#app-view .meetings-agenda-panel {
  display: flex;
  flex-direction: column;
}

#app-view .meetings-agenda-panel .meetings-panel-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

#app-view .meetings-agenda-panel .meetings-panel-label {
  padding: 4px 8px;
  font-size: 9px;
}

#app-view .meetings-agenda-panel .meetings-panel-head h3 {
  font-size: 12.5px;
  line-height: 1.25;
  margin-top: 4px;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-view .meetings-agenda-panel .meetings-events-meta {
  font-size: 9px;
  padding: 2px 6px;
}

#app-view .meetings-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

#app-view .meetings-calendar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-dim);
}

#app-view .meetings-calendar-toolbar h4 {
  margin: 2px 0 0;
  font-size: 15px;
  letter-spacing: -0.3px;
}

#app-view .meetings-calendar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

#app-view .meetings-panel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

#app-view .meetings-small-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(42, 103, 236, 0.18);
  border-radius: 12px;
  background: var(--card-bg);
  color: #2a67ec;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(42, 103, 236, 0.04);
}

#app-view .meetings-small-btn:hover {
  background: rgba(42, 103, 236, 0.05);
  color: #1952cd;
  border-color: rgba(42, 103, 236, 0.35);
  transform: translateY(-0.5px);
}

#app-view .meetings-small-btn:active {
  transform: translateY(0.5px);
}

#app-view .meetings-small-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#app-view .meetings-small-btn.loading svg {
  animation: spin 1s linear infinite;
}

#app-view .meetings-calendar-nav-btn {
  min-width: 40px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

#app-view .meetings-calendar-nav-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

#app-view .meetings-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 7px;
}

#app-view .meetings-calendar-weekdays span {
  padding: 0 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-align: center;
}

#app-view .meetings-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

#app-view .meetings-calendar-day {
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#app-view .meetings-calendar-day:hover {
  background: #edf3ff;
}

#app-view .meetings-calendar-day.today {
  box-shadow: inset 0 0 0 1px #4f89f0;
}

#app-view .meetings-calendar-day.selected {
  box-shadow: inset 0 0 0 2px rgba(42, 103, 236, 0.42);
}

#app-view .meetings-calendar-day.outside-month {
  opacity: 0.35;
}

#app-view .meetings-calendar-day.has-events {
  background: #edf3ff;
}

#app-view .meetings-calendar-day.has-meetings {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  box-shadow: 0 6px 14px rgba(37, 119, 232, 0.18);
}

#app-view .meetings-calendar-day.has-meetings .meetings-calendar-day-number {
  color: #ffffff;
}

#app-view .meetings-calendar-day.has-holidays:not(.has-meetings) .meetings-calendar-day-number {
  color: #148646;
}

#app-view .meetings-calendar-day-number {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}

#app-view .meetings-calendar-day-events {
  display: none;
}

#app-view .meetings-calendar-event-dot,
#app-view .meetings-calendar-event-more {
  display: block;
  padding: 3px 5px;
  border-radius: 6px;
  background: #eef5ff;
  color: #2350a5;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-view .meetings-calendar-event-dot.holiday {
  background: #148646;
  color: #ffffff;
}

#app-view .meetings-calendar-event-dot.schedule {
  background: transparent;
  color: #1f2d3d;
  padding: 0;
  font-size: 8.8px;
  font-weight: 600;
}

#app-view .meetings-calendar-event-dot.schedule::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #2092d8;
  vertical-align: middle;
}

#app-view .meetings-calendar-event-more {
  background: #f1f4f8;
  color: var(--text-muted);
}

#app-view .meetings-day-head {
  margin-top: 4px;
}

#app-view .meetings-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  min-height: 130px;
  border: 1px dashed #d6e2f5;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(79, 137, 255, 0.08), transparent 52%),
    linear-gradient(180deg, var(--card-bg) 0%, #fbfdff 100%);
  color: #5f6f92;
  padding: 24px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#app-view .meetings-empty-state[hidden] {
  display: none !important;
}

#app-view .meetings-agenda-panel .meetings-empty-state {
  min-height: 188px;
  gap: 12px;
  padding: 28px 20px;
  border-radius: 28px;
  margin-top: 4px;
}

#app-view .meetings-agenda-panel .meetings-empty-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(180deg, #4c92ff 0%, #8e7cf6 100%);
  box-shadow:
    0 10px 22px rgba(76, 146, 255, 0.18),
    inset 0 -8px 14px rgba(0, 0, 0, 0.08);
}

#app-view .meetings-agenda-panel .meetings-empty-state strong {
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #435578;
}

#app-view .meetings-agenda-panel .meetings-empty-state span {
  font-size: 13px;
  line-height: 1.45;
  max-width: 29ch;
  color: #627395;
}

#app-view .meetings-empty-icon {
  font-size: 32px;
}

#app-view .meetings-loading {
  padding: 12px 0;
  color: var(--text-muted);
  font-size: 13px;
}

#app-view .calendar-events-list {
  display: grid;
  gap: 6px;
}

#app-view .meetings-agenda-panel .calendar-events-list {
  gap: 5px;
}

#app-view .meetings-agenda-panel .calendar-event-card {
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  overflow: hidden;
}

#app-view .meetings-agenda-panel .meeting-event-card {
  background: linear-gradient(180deg, rgba(37, 119, 232, 0.08) 0%, rgba(22, 164, 237, 0.12) 100%);
  border-color: rgba(37, 119, 232, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#app-view .meetings-agenda-panel .holiday-event-card {
  background: linear-gradient(180deg, var(--card-bg) 0%, #f8fbff 100%);
  border-color: var(--border);
}

#app-view .meetings-agenda-panel .calendar-event-content {
  flex: 1;
  min-width: 0;
}

#app-view .meetings-agenda-panel .calendar-event-title-row {
  gap: 7px;
  flex-wrap: nowrap;
  overflow: hidden;
}

#app-view .meetings-agenda-panel .calendar-event-title-row h4 {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

#app-view .meetings-agenda-panel .calendar-event-platform {
  padding: 2px 6px;
  font-size: 9px;
}

#app-view .meetings-agenda-panel .meeting-event-card .calendar-event-platform {
  background: rgba(37, 119, 232, 0.12);
  color: var(--accent);
}

#app-view .meetings-agenda-panel .meeting-event-card .calendar-event-platform.teams-badge {
  background: rgba(100, 65, 165, 0.12);
  color: #6441a5;
}

#app-view .meetings-agenda-panel .holiday-event-card .calendar-event-platform {
  background: #e9f7ee;
  color: #148646;
}

#app-view .meetings-agenda-panel .meeting-event-card .calendar-event-title-row h4 {
  color: var(--text);
}

#app-view .meetings-agenda-panel .holiday-event-card .calendar-event-title-row h4 {
  color: #1f2d3d;
}

#app-view .meetings-agenda-panel .calendar-event-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#app-view .meetings-agenda-panel .calendar-event-date,
#app-view .meetings-agenda-panel .calendar-event-date-only,
#app-view .meetings-agenda-panel .calendar-event-time-only,
#app-view .meetings-agenda-panel .calendar-event-meta-row {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.3;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  max-width: 100%;
}

#app-view .meetings-agenda-panel .calendar-event-description {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

#app-view .meetings-agenda-panel .calendar-event-actions {
  margin-left: auto;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#app-view .meetings-agenda-panel .calendar-event-link {
  min-width: 50px;
  height: 26px;
  padding: 0 7px;
  font-size: 9.5px;
  border-radius: 8px;
}

#app-view .calendar-event-card {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card-bg), #f8fbff);
}

#app-view .calendar-event-content {
  min-width: 0;
}

#app-view .calendar-event-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#app-view .calendar-event-title-row h4 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.2px;
}

#app-view .calendar-event-platform {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-soft);
  font-size: 10px;
  font-weight: 700;
}

#app-view .calendar-event-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#app-view .calendar-event-date,
#app-view .calendar-event-date-only,
#app-view .calendar-event-time-only,
#app-view .calendar-event-meta-row {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--text-muted);
}

#app-view .calendar-event-description {
  margin: 7px 0 0;
  font-size: 10.5px;
  color: var(--text);
  line-height: 1.45;
}

#app-view .calendar-event-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#app-view .calendar-event-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 29px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}

#app-view .calendar-event-link.primary {
  border: none;
  background: linear-gradient(135deg, var(--accent, #2a67ec), #19aae9);
  color: #fff;
}

/* DARK THEME OVERRIDES */
body.theme-dark #app-view {
  --bg: #0e0f14;
  --sidebar-bg: #13141b;
  --card-bg: #1a1b24;
  --card-hover: #1f2030;
  --border: #2a2b3a;
  --accent: #7c5cfc;
  --accent-soft: #9d83fd;
  --accent-dim: rgba(124, 92, 252, 0.14);
  --green: #3ecf8e;
  --red: #f55f5f;
  --yellow: #f5c842;
  --text: #e8e9f0;
  --text-muted: #a3a8be;
  --text-dim: #636982;
}

body.theme-dark #app-view .topbar {
  background: #0e0f14;
}

body.theme-dark #app-view .right-static-panel,
body.theme-dark #app-view .right-panel-head,
body.theme-dark #app-view .transcript-scroll,
body.theme-dark #app-view .right-panel-block {
  background: var(--card-bg);
}

body.theme-dark #app-view .right-static-panel.all-panels-collapsed {
  background: transparent;
  border-left-color: transparent;
}

body.theme-dark #app-view .interactive-panel-handle {
  background: linear-gradient(180deg, #171c2b 0%, #131926 100%);
  border-color: #2d334a;
  color: #edf2ff;
  box-shadow: 0 18px 36px rgba(5, 8, 18, 0.34);
}

body.theme-dark #app-view .interactive-panel-handle-icon {
  color: #9ab1df;
}

body.theme-dark #app-view .interactive-panel-card {
  background: var(--card-bg);
  border-color: #2d334a;
  box-shadow: 0 20px 40px rgba(5, 8, 18, 0.32);
}

body.theme-dark #app-view .right-panel-head input,
body.theme-dark #app-view .rename-row input {
  background: #121522;
  border-color: var(--border);
  color: var(--text);
}

body.theme-dark #app-view .ai-feed {
  background: #121522;
  border-color: var(--border);
}

body.theme-dark #app-view .ai-input-pill {
  background: #121522;
  border-color: var(--border);
}

body.theme-dark #app-view .transcript-line {
  color: #c8d0e7;
}

body.theme-dark #app-view .transcript-line.active {
  background: rgba(124, 92, 252, 0.2);
  color: #ece8ff;
}

body.theme-dark #app-view .transcript-line.has-question {
  background: rgba(91, 142, 255, 0.08);
}

body.theme-dark #app-view .transcript-question-trigger {
  color: #a5c4ff;
}

body.theme-dark #app-view .transcript-question-trigger:hover {
  color: #c5d9ff;
}

body.theme-dark #app-view .transcript-question-trigger:focus-visible {
  outline-color: rgba(160, 190, 255, 0.5);
}

body.theme-dark #app-view .theme-toggle {
  background: transparent;
  box-shadow: none;
}

body.theme-dark #app-view .theme-toggle:hover {
  box-shadow: none;
}

body.theme-dark #app-view .theme-toggle-track {
  background: linear-gradient(90deg, #6d3cf6 0%, #c442b2 52%, #f14d95 100%);
}

body.theme-dark #app-view .theme-toggle-thumb {
  background: #d9dce5;
}


body.theme-dark #app-view .meetings-agenda-panel .holiday-event-card .calendar-event-title-row h4 {
  color: #fff;
}

body.theme-dark #app-view .theme-toggle-text {
  color: #c7ccde;
}

body.theme-dark #app-view .workspace-switcher {
  background: #171a25;
}

body.theme-dark #app-view .mobile-menu-btn,
body.theme-dark #app-view .sidebar-inline-menu {
  background: #1a1b24;
  color: #d7dcf1;
}

body.theme-dark #app-view .sidebar-collapse-btn {
  background: rgba(26, 27, 36, 0.96);
  color: #d7dcf1;
  border-color: var(--border);
}

body.theme-dark #app-view .sidebar-scroll {
  scrollbar-color: #404766 transparent;
}

body.theme-dark #app-view .sidebar-scroll::-webkit-scrollbar-thumb {
  background: #404766;
}

body.theme-dark #app-view .nav-item {
  color: #d2d8eb;
}

body.theme-dark #app-view .nav-item:hover {
  background: rgba(124, 92, 252, 0.14);
  color: #f2f4ff;
}

body.theme-dark #app-view .nav-item.active {
  background: rgba(124, 92, 252, 0.2);
  color: #b5a2ff;
}

body.theme-dark #app-view .nav-chip {
  color: #f8f3ff;
  background: linear-gradient(90deg, #6d3cf6 0%, #c442b2 52%, #f14d95 100%);
  box-shadow: 0 8px 20px rgba(97, 60, 218, 0.3);
}

body.theme-dark #app-view .join-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(90deg, #6d3cf6 0%, #c442b2 52%, #f14d95 100%);
  box-shadow: 0 10px 22px rgba(97, 60, 218, 0.34);
}

body.theme-dark #app-view .join-btn:hover {
  filter: brightness(1.04);
}

@media (min-width: 1081px) {
  body.theme-dark #app-view.sidebar-collapsed .nav-item {
    color: #d2d8eb;
  }

  body.theme-dark #app-view.sidebar-collapsed .nav-item.active {
    color: #b5a2ff;
  }
}

body.theme-dark #app-view .header-profile-btn.active {
  background: transparent;
  color: inherit;
  border-color: transparent;
}

body.theme-dark #app-view .header-notification-btn.active {
  background: rgba(64, 99, 155, 0.22);
  border-color: rgba(126, 159, 211, 0.42);
}

body.theme-dark #app-view .header-notification-dropdown {
  background: #142038;
  border-color: rgba(118, 137, 177, 0.22);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

body.theme-dark #app-view .header-notification-header {
  border-bottom-color: rgba(118, 137, 177, 0.22);
}

body.theme-dark #app-view .header-notification-title {
  color: #eef4ff;
}

body.theme-dark #app-view .header-notification-subtitle {
  color: #9eb2d4;
}

body.theme-dark #app-view .header-notification-read-all {
  color: #84b6ff;
}

body.theme-dark #app-view .header-notification-read-all:disabled {
  color: #6b7e9f;
}

body.theme-dark #app-view .header-notification-empty {
  background: rgba(31, 44, 73, 0.85);
  color: #9eb2d4;
}

body.theme-dark #app-view .header-notification-item {
  background: rgba(29, 42, 70, 0.88);
}

body.theme-dark #app-view .header-notification-item:hover {
  background: rgba(39, 56, 91, 0.96);
  border-color: rgba(126, 159, 211, 0.24);
}

body.theme-dark #app-view .header-notification-item.is-read {
  background: rgba(22, 33, 56, 0.8);
}

body.theme-dark #app-view .header-notification-item-title {
  color: #eef4ff;
}

body.theme-dark #app-view .header-notification-item-time,
body.theme-dark #app-view .header-notification-item-message {
  color: #a6b8d7;
}

body.theme-dark #app-view .header-notification-item-link {
  color: #9ec6ff;
}

body.theme-dark #app-view .header-notification-item-link:hover {
  color: #c3dcff;
}

body.theme-dark #app-view .header-notification-item-type {
  color: #84b6ff;
}

body.theme-dark #app-view .header-profile-dropdown {
  background: #121522;
  border-color: #2f354d;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

body.theme-dark #app-view .header-profile-summary {
  border-bottom-color: #2f354d;
}

body.theme-dark #app-view .header-profile-summary-name {
  color: #ecf1ff;
}

body.theme-dark #app-view .header-profile-summary-email {
  color: #9da8ca;
}

body.theme-dark #app-view .header-profile-tab {
  background: #191d2b;
  border-color: #31374f;
  color: #dde4fb;
}

body.theme-dark #app-view .header-profile-tab:hover {
  background: #202537;
  border-color: #4a5374;
}

body.theme-dark #app-view .header-profile-signout {
  background: #2a1a22;
  border-color: #693544;
  color: #ff9db0;
}

body.theme-dark #app-view .header-profile-signout:hover {
  background: #361f29;
  border-color: #8c4258;
}

body.theme-dark #app-view .meeting-card:hover {
  border-color: #3a3d56;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

body.theme-dark #app-view .quick-action,
body.theme-dark #app-view .join-card input,
body.theme-dark #app-view .holiday-progress,
body.theme-dark #app-view .holiday-row {
  background: #171a25;
}

body.theme-dark #app-view .dashboard-join-card {
  background: linear-gradient(180deg, #1a2133 0%, #161c2d 100%);
  border-color: #2b3650;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body.theme-dark #app-view .dashboard-hero {
  background-image: linear-gradient(135deg, #1d2840 0%, #263863 42%, #294a7d 100%);
  border-color: rgba(121, 152, 229, 0.2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

body.theme-dark #app-view .dashboard-hero::before {
  background: rgba(140, 175, 255, 0.2);
}

body.theme-dark #app-view .dashboard-hero::after {
  background: rgba(75, 140, 255, 0.18);
}

body.theme-dark #app-view .dashboard-hero.is-morning {
  background-image:
    linear-gradient(135deg, rgba(32, 26, 42, 0.62) 0%, rgba(52, 45, 76, 0.48) 36%, rgba(36, 73, 109, 0.42) 100%),
    url("/Src/morning.jpg");
}

body.theme-dark #app-view .dashboard-hero.is-afternoon {
  background-image:
    linear-gradient(135deg, rgba(16, 31, 52, 0.58) 0%, rgba(26, 57, 86, 0.44) 46%, rgba(35, 88, 122, 0.36) 100%),
    url("/Src/Afternoon.jpg");
}

body.theme-dark #app-view .dashboard-hero.is-evening {
  background-position: center 52%;
  background-image:
    linear-gradient(135deg, rgba(42, 24, 48, 0.68) 0%, rgba(39, 55, 92, 0.5) 46%, rgba(34, 77, 120, 0.4) 100%),
    url("/Src/Evening.jpg");
}

body.theme-dark #app-view .dashboard-hero.is-night {
  background-position: center 58%;
  background-image:
    linear-gradient(135deg, rgba(13, 19, 38, 0.7) 0%, rgba(16, 27, 53, 0.56) 44%, rgba(22, 53, 95, 0.44) 100%),
    url("/Src/Night.jpg");
}

body.theme-dark #app-view .dashboard-hero h2 {
  color: #f5f8ff;
}

body.theme-dark #app-view .dashboard-hero p {
  color: #c5d6fb;
}

body.theme-dark #app-view .dashboard-join-head {
  border-bottom-color: rgba(124, 92, 252, 0.12);
}

body.theme-dark #app-view .dashboard-join-title-row h3 {
  color: #edf2ff;
}

body.theme-dark #app-view .dashboard-join-icon {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.24), rgba(244, 77, 149, 0.18));
  color: #cdbdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark #app-view .profile-row {
  border-bottom-color: #2d334a;
}

body.theme-dark #app-view .profile-row strong {
  color: #ecf1ff;
}

body.theme-dark #app-view .timezone-select {
  background: #191d2b;
  border-color: #2f3954;
  color: #ecf1ff;
}

body.theme-dark #app-view .timezone-select:hover {
  border-color: #524ba0;
}

body.theme-dark #app-view .timezone-select:focus {
  border-color: #7c5cfc;
  box-shadow: 0 0 0 2px rgba(124, 92, 252, 0.20);
}

body.theme-dark #app-view .timezone-search-input {
  background: #191d2b;
  border-color: #2f3954;
  color: #ecf1ff;
}

body.theme-dark #app-view .timezone-search-input::placeholder {
  color: #a2afc6;
}

body.theme-dark #app-view .timezone-search-input:focus {
  border-color: #7c5cfc;
  box-shadow: 0 0 0 2px rgba(124, 92, 252, 0.2);
}

body.theme-dark #app-view .timezone-selected-preview {
  color: #a3bcff;
}

body.theme-dark #app-view .timezone-section-title,
body.theme-dark #app-view .timezone-option-region {
  color: #98a6c0;
}

body.theme-dark #app-view .timezone-option {
  background: #1a2132;
  border-color: #2f3954;
  color: #ecf1ff;
}

body.theme-dark #app-view .timezone-option:hover {
  background: #222d44;
  border-color: #4a5c80;
}

body.theme-dark #app-view .timezone-option.active {
  border-color: #7c5cfc;
  box-shadow: 0 0 0 2px rgba(124, 92, 252, 0.2);
}

body.theme-dark #app-view .timezone-option.selected {
  background: #22314f;
  border-color: #5e7dc0;
}

body.theme-dark #app-view .timezone-option-empty {
  color: #a6b3cc;
}

body.theme-dark #app-view .settings-group label {
  color: #ecf1ff;
}

body.theme-dark #app-view .settings-view h2 {
  color: #ecf1ff;
}

body.theme-dark #app-view .settings-save-btn {
  background: #7c5cfc;
}

body.theme-dark #app-view .settings-save-btn:hover {
  background: #9d83fd;
}

body.theme-dark #app-view .settings-message.success {
  background: rgba(62, 207, 142, 0.15);
  color: #4dd9af;
}

body.theme-dark #app-view .settings-message.error {
  background: rgba(245, 95, 95, 0.15);
  color: #ff8787;
}

body.theme-dark #app-view .join-card input::placeholder {
  color: #7e86a3;
}

body.theme-dark #app-view .join-card input {
  border-color: #2f3954;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark #app-view .join-card input:focus {
  border-color: rgba(124, 92, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.14);
}

body.theme-dark #app-view .meetings-secondary-btn {
  background: #171a25;
  border-color: #31374f;
  color: #e8edf9;
}

body.theme-dark #app-view .meetings-secondary-btn.danger {
  background: #2a1a22;
  border-color: #693544;
  color: #ff9db0;
}

body.theme-dark #app-view .meetings-quick-point,
body.theme-dark #app-view .calendar-event-card,
body.theme-dark #app-view .meetings-calendar-shell,
body.theme-dark #app-view .meetings-calendar-day {
  background: #171a25;
  border-color: #2d334a;
}

body.theme-dark #app-view .meetings-primary-card,
body.theme-dark #app-view .meetings-agenda-panel,
body.theme-dark #app-view .meetings-sync-card {
  background: linear-gradient(180deg, #191b26, #171922);
  border-color: #2b3042;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.theme-dark #app-view .meetings-agenda-panel .meeting-event-card {
  background: linear-gradient(180deg, rgba(124, 92, 252, 0.18) 0%, rgba(91, 142, 255, 0.12) 100%);
  border-color: rgba(124, 92, 252, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark #app-view .meetings-agenda-panel .holiday-event-card {
  background: #171a25;
  border-color: #2d334a;
}

body.theme-dark #app-view .meetings-agenda-panel .meeting-event-card .calendar-event-platform {
  background: var(--accent-dim);
  color: var(--accent-soft);
}

body.theme-dark #app-view .meetings-agenda-panel .meeting-event-card .calendar-event-platform.teams-badge {
  background: rgba(100, 65, 165, 0.22);
  color: #b39ddb;
}

body.theme-dark #app-view .meetings-agenda-panel .holiday-event-card .calendar-event-platform {
  background: rgba(20, 134, 70, 0.22);
  color: #7fe0a2;
}

body.theme-dark #app-view .meetings-agenda-panel .meeting-event-card .calendar-event-title-row h4 {
  color: #edf3ff;
}

body.theme-dark #app-view .meetings-panel-head,
body.theme-dark #app-view .meetings-agenda-panel .meetings-panel-head {
  border-bottom-color: #2f3448;
}

body.theme-dark #app-view .meetings-panel-label,
body.theme-dark #app-view .meetings-events-meta,
body.theme-dark #app-view .meetings-muted-text {
  background: rgba(124, 92, 252, 0.2);
  color: #b8a8ff;
}

body.theme-dark #app-view .meetings-panel-head h3,
body.theme-dark #app-view .meetings-panel-text,
body.theme-dark #app-view .calendar-event-title-row h4 {
  color: #edf2ff;
}

body.theme-dark #app-view .calendar-event-date,
body.theme-dark #app-view .calendar-event-date-only,
body.theme-dark #app-view .calendar-event-time-only,
body.theme-dark #app-view .calendar-event-meta-row,
body.theme-dark #app-view .calendar-event-description,
body.theme-dark #app-view .meetings-quick-point span,
body.theme-dark #app-view .meetings-loading {
  color: #aab2cf;
}

body.theme-dark #app-view .calendar-status-pill.connected {
  background: rgba(62, 207, 142, 0.16);
  color: #7ee0b0;
}

body.theme-dark #app-view .calendar-status-pill.disconnected {
  background: rgba(245, 95, 95, 0.14);
  color: #ffacac;
}

body.theme-dark #app-view .calendar-event-platform {
  background: rgba(124, 92, 252, 0.18);
  color: #c7baff;
}

body.theme-dark #app-view .calendar-event-link.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(124, 92, 252, 0.35);
}

body.theme-dark #app-view .meetings-calendar-day {
  background: transparent;
}

body.theme-dark #app-view .meetings-calendar-day:hover {
  background: #212639;
}

body.theme-dark #app-view .meetings-calendar-day.has-events {
  background: #212639;
}

body.theme-dark #app-view .meetings-calendar-day.has-meetings {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  box-shadow: 0 8px 18px rgba(124, 92, 252, 0.28);
}

body.theme-dark #app-view .meetings-calendar-day.has-holidays:not(.has-meetings) .meetings-calendar-day-number {
  color: #7fe0a2;
}

body.theme-dark #app-view .meetings-mini-calendar-card {
  background: #171a25;
  border-color: #2d334a;
}

body.theme-dark #app-view .meetings-mini-calendar-day:hover {
  background: #212639;
}

body.theme-dark #app-view .meetings-mini-calendar-day.has-events {
  background: #5f63e9;
  color: #ffffff;
}

body.theme-dark #app-view .meetings-calendar-day.selected {
  background: linear-gradient(180deg, rgba(124, 92, 252, 0.2), rgba(25, 170, 233, 0.12));
  border-color: #7f69ff;
}

body.theme-dark #app-view .meetings-calendar-day.today {
  border-color: #5e8ff0;
}

body.theme-dark #app-view .meetings-calendar-event-dot {
  background: rgba(124, 92, 252, 0.16);
  color: #c6baff;
}

body.theme-dark #app-view .meetings-calendar-event-dot.holiday {
  background: #128248;
  color: #ffffff;
}

body.theme-dark #app-view .meetings-calendar-event-dot.schedule {
  background: transparent;
  color: #d5ddf5;
}

body.theme-dark #app-view .meetings-calendar-event-dot.schedule::before {
  background: #42abff;
}

body.theme-dark #app-view .meetings-calendar-event-more {
  background: #23283a;
  color: #a9b1cb;
}

body.theme-dark #app-view .meetings-calendar-nav-btn {
  background: #1e2231;
  border-color: #31374f;
  color: #edf2ff;
}

body.theme-dark #app-view .meetings-feedback.success {
  background: rgba(62, 207, 142, 0.16);
  color: #7ee0b0;
}

body.theme-dark #app-view .meetings-feedback.error {
  background: rgba(245, 95, 95, 0.16);
  color: #ffaaaa;
}

body.theme-dark #app-view .calendar-status-pill.connected {
  color: #7ee0b0;
}

body.theme-dark #app-view .calendar-status-pill.disconnected {
  color: #ffacac;
}

body.theme-dark #app-view .calendar-event-link {
  background: #1e2231;
  border-color: #31374f;
  color: #edf2ff;
}

body.theme-dark #app-view .ai-ctx-badge {
  background: rgba(124, 92, 252, 0.1);
  color: #7b82a8;
  opacity: 0.55;
}

body.theme-dark #app-view .ai-ctx-badge.active {
  opacity: 1;
  background: rgba(124, 92, 252, 0.22);
  color: #c4b5fd;
}

body.theme-dark #app-view .meetings-empty-state {
  border-color: #31374f;
  background:
    radial-gradient(circle at top, rgba(93, 130, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #14192a 0%, #101522 100%);
  color: #9aa8c8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-dark #app-view .meetings-agenda-panel .meetings-empty-state strong {
  color: #ecf2ff;
}

body.theme-dark #app-view .meetings-agenda-panel .meetings-empty-state span {
  color: #b1bdd8;
}

/* ── Dark theme: hardcoded white backgrounds ── */
body.theme-dark #app-view .meetings-calendar-shell {
  background: linear-gradient(180deg, #1a1c28, #161820);
}

body.theme-dark #app-view .meetings-mini-calendar-card {
  background: linear-gradient(180deg, #1a1c28, #161820);
}

body.theme-dark #app-view .meetings-empty-state {
  background:
    radial-gradient(circle at top, rgba(93, 130, 255, 0.12), transparent 52%),
    linear-gradient(180deg, #14192a 0%, #101522 100%);
  border-color: #2a3050;
  color: #8a96b8;
}

body.theme-dark #app-view .meetings-agenda-panel .holiday-event-card {
  background: linear-gradient(180deg, #1e2130, #191c2a);
  border-color: #2d334a;
}

body.theme-dark #app-view .calendar-event-card {
  background: linear-gradient(180deg, #1a1c28, #161820);
  border-color: #2d334a;
}

body.theme-dark #app-view .meetings-agenda-panel .meeting-event-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ═══════════════════════════════════════════════
   AUTH PAGE  (full-screen login / sign-up)
═══════════════════════════════════════════════ */
#auth-page {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 500;
  overflow-y: auto;
  background:
    linear-gradient(90deg, #f6f4ff 0 50%, #ffffff 50% 100%),
    radial-gradient(circle at 16% 12%, rgba(124, 92, 252, 0.12), transparent 32%),
    radial-gradient(circle at 78% 50%, rgba(91, 142, 255, 0.08), transparent 28%),
    #ffffff;
}

#auth-page.active {
  display: block;
}

.auth-page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-page-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.9;
}

.auth-glow-1 {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -60px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.16) 0%, rgba(124, 92, 252, 0) 72%);
}

.auth-glow-2 {
  width: 460px;
  height: 460px;
  right: -80px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(91, 142, 255, 0.12) 0%, rgba(91, 142, 255, 0) 70%);
}

.auth-page-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: clamp(48px, 6vw, 92px);
  align-items: center;
}

.auth-left {
  display: flex;
  justify-content: flex-start;
}

.auth-left-copy {
  max-width: 620px;
}

.auth-brand-logo {
  display: block;
  width: auto;
  height: 56px;
  margin-bottom: 48px;
}

.auth-mini-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 56px;
  background: linear-gradient(135deg, #7c5cfc, #8a64ff 52%, #5b8eff 100%);
  color: #f4f6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 30px rgba(124, 92, 252, 0.25);
}

.auth-left-copy h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.9rem, 4.8vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #1c2340;
  margin-bottom: 20px;
  max-width: 14ch;
}

.auth-highlight {
  background: linear-gradient(90deg, #9f7dff 0%, #6d8eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-left-copy p {
  margin: 0;
  max-width: 580px;
  color: #616b84;
  font-size: 1.28rem;
  line-height: 1.6;
}

.auth-perks {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0 0 42px;
  padding: 0;
}

.auth-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4c5773;
  font-size: 1.05rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7c5cfc, #6f90ff);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.auth-trust {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-avatars {
  display: flex;
}

.auth-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
  border: 2px solid #f6f4ff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.auth-trust-text {
  margin-left: 18px;
  color: #69738d;
  font-size: 0.98rem;
}

.auth-right {
  display: flex;
  justify-content: center;
}

.auth-card {
  width:500px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(21, 33, 68, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 255, 0.98) 100%);
  box-shadow: 0 28px 60px rgba(25, 35, 66, 0.12);
  color: #1e2745;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #f2f4fa;
  border: 1px solid rgba(21, 33, 68, 0.08);
}

.auth-tab {
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #707b93;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.auth-tab.active {
  background: linear-gradient(90deg, #7c5cfc 0%, #5f87ff 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(94, 112, 255, 0.28);
}

.auth-right h3 {
  display: block;
  margin: 0 0 8px;
  color: #1a2340;
  font-size: 1.72rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-right .auth-sub {
  display: block;
  margin: 0 0 18px;
  color: #687289;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sso-btns {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(21, 33, 68, 0.1);
  background: #ffffff;
  color: #263250;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}

.sso-btn:hover {
  transform: translateY(-1px);
  background: #f7f9fd;
  border-color: rgba(21, 33, 68, 0.16);
}

.sso-btn:active {
  transform: translateY(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: rgba(105, 114, 137, 0.72);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(21, 33, 68, 0.08);
}

.auth-form {
  display: grid;
  gap: 12px;
  width: 100%;
}

.auth-name-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-right label {
  display: grid;
  gap: 6px;
  color: #3f4a66;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: left;
}

.auth-right input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(21, 33, 68, 0.12);
  background: #ffffff;
  color: #1d2643;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.88rem;
  text-align: left;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.auth-right input::placeholder {
  color: #8a93a9;
}

.auth-right input:focus {
  outline: none;
  border-color: rgba(124, 92, 252, 0.82);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.16);
  background: #ffffff;
}

.auth-pw-wrap {
  position: relative;
}

.auth-pw-wrap input {
  padding-right: 42px !important;
}

.auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 0;
  border: none;
  background: transparent;
  color: #8b94ab;
  cursor: pointer;
}

.auth-pw-toggle:hover {
  color: #51607f;
}

.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.auth-forgot {
  color: #6e57f5;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(21, 33, 68, 0.1);
  background: #f5f7fc;
  color: #667189;
  font-size: 0.8rem;
}

.auth-plan strong {
  color: #1a2340;
  font-weight: 700;
}

.auth-right .auth-submit {
  min-height: 44px;
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #7c5cfc 0%, #5f87ff 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s, filter 0.16s, opacity 0.16s;
  box-shadow: 0 18px 34px rgba(96, 123, 255, 0.34);
}

.auth-right .auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.auth-right .auth-submit:active {
  transform: translateY(0);
}

.auth-right .auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-remember-row {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #677188;
  font-size: 0.86rem;
}

.auth-remember-row input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  min-width: 16px;
  accent-color: #7c5cfc;
}

.auth-message {
  display: none;
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f5f7fd;
  color: #4b5877;
  font-size: 0.8rem;
  line-height: 1.45;
}

.auth-message.is-visible {
  display: block;
}

.auth-message.is-error {
  background: rgba(255, 91, 141, 0.12);
  color: #ff9db7;
  border: 1px solid rgba(255, 91, 141, 0.22);
}

.auth-switch-line {
  display: block;
  margin: 20px 0 12px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.auth-switch-line a {
  color: #6f58ff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-switch-line a:hover {
  color: #5a45d6;
  text-decoration: underline;
}

.auth-note {
  color: #7a849b;
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.55;
}

.auth-note a {
  color: #6e57f5;
  text-decoration: none;
}

.auth-note a:hover {
  text-decoration: underline;
}

/* ══ Legal Modal (Terms & Privacy) ══ */
.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 30, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: legalFadeIn 0.22s ease;
}
@keyframes legalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.legal-modal.active {
  display: flex;
}
.legal-modal-card {
  position: relative;
  width: min(100%, 680px);
  max-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(10, 15, 50, 0.22), 0 0 0 1px rgba(124, 92, 252, 0.12);
  overflow: hidden;
  animation: legalSlideUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes legalSlideUp {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)      scale(1);    opacity: 1; }
}
.legal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(21, 33, 68, 0.06);
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.legal-modal-close:hover {
  background: rgba(21, 33, 68, 0.12);
  color: #1a2340;
}

/* ── Tab bar ── */
.legal-tabs {
  display: flex;
  gap: 0;
  padding: 18px 24px 0;
  border-bottom: 2px solid rgba(21, 33, 68, 0.08);
  flex-shrink: 0;
}
.legal-tab {
  position: relative;
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: #687289;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  transition: color 0.18s, background 0.18s;
}
.legal-tab:hover {
  color: #1a2340;
  background: rgba(124, 92, 252, 0.05);
}
.legal-tab.active {
  color: #7c5cfc;
}
.legal-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c5cfc, #5f87ff);
  border-radius: 2px 2px 0 0;
}

/* ── Panel (scrollable) ── */
.legal-panel {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 252, 0.25) transparent;
}
.legal-panel::-webkit-scrollbar { width: 5px; }
.legal-panel::-webkit-scrollbar-thumb { background: rgba(124, 92, 252, 0.22); border-radius: 10px; }

.legal-modal-heading {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a2340;
  line-height: 1.2;
}
.legal-effective {
  margin: 0 0 20px;
  font-size: 0.76rem;
  color: #8a93a9;
}
.legal-body h3 {
  margin: 20px 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2d3a58;
  letter-spacing: -0.01em;
}
.legal-body h3:first-child {
  margin-top: 0;
}
.legal-body p {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: #4a5573;
  line-height: 1.65;
}
.legal-body ul {
  margin: 4px 0 10px 18px;
  padding: 0;
}
.legal-body ul li {
  margin-bottom: 5px;
  font-size: 0.84rem;
  color: #4a5573;
  line-height: 1.6;
}
.legal-body strong {
  color: #1a2340;
  font-weight: 700;
}
.legal-inline-link {
  border: none;
  background: none;
  padding: 0;
  color: #7c5cfc;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-inline-link:hover {
  color: #5a3fd8;
}

/* ── Footer ── */
.legal-modal-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 28px 18px;
  border-top: 1px solid rgba(21, 33, 68, 0.07);
  background: #fafbff;
}
.legal-close-btn {
  padding: 9px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #7c5cfc, #5f87ff);
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.16s, transform 0.16s;
  box-shadow: 0 8px 20px rgba(124, 92, 252, 0.28);
}
.legal-close-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.legal-close-btn:active {
  transform: translateY(0);
}

/* ── Dark-mode overrides ── */
.dark-mode .legal-modal-card {
  background: #141826;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 92, 252, 0.18);
}
.dark-mode .legal-modal-heading { color: #e4e9f7; }
.dark-mode .legal-body h3       { color: #c8d0e8; }
.dark-mode .legal-body p,
.dark-mode .legal-body li        { color: #8f9ab8; }
.dark-mode .legal-body strong    { color: #dde2f3; }
.dark-mode .legal-tabs           { border-bottom-color: rgba(255,255,255,0.08); }
.dark-mode .legal-tab            { color: #7a86a6; }
.dark-mode .legal-tab:hover      { color: #dde2f3; background: rgba(124,92,252,0.08); }
.dark-mode .legal-tab.active     { color: #a78bfa; }
.dark-mode .legal-modal-footer   { background: #0f1320; border-top-color: rgba(255,255,255,0.06); }
.dark-mode .legal-modal-close    { background: rgba(255,255,255,0.06); color: #8f9ab8; }
.dark-mode .legal-modal-close:hover { background: rgba(255,255,255,0.1); color: #e4e9f7; }

@media (max-width: 640px) {
  .legal-modal-card {
    max-height: 92vh;
    border-radius: 16px;
  }
  .legal-panel {
    padding: 18px 18px 8px;
  }
  .legal-modal-footer {
    padding: 12px 18px 16px;
  }
  .legal-tabs {
    padding: 14px 18px 0;
  }
}
/* ══ end Legal Modal ══ */

.forgot-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 2800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.forgot-modal.active {
  display: flex;
}

.forgot-modal-card {
  width: min(100%, 420px);
  background: #121520;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  box-shadow: 0 18px 48px rgba(10, 8, 30, 0.5);
}

.forgot-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  color: #b7bdd9;
  cursor: pointer;
}

.forgot-close:hover {
  color: #ffffff;
}

.forgot-modal-card h4 {
  margin: 4px 0 8px;
  color: #f4f5fb;
  font-size: 19px;
}

.forgot-sub {
  margin: 0 0 14px;
  color: #9ea5c4;
  font-size: 13px;
}

.forgot-form {
  display: grid;
  gap: 12px;
}

.forgot-form label {
  display: grid;
  gap: 6px;
  color: #c7cbdf;
  font-size: 12px;
  font-weight: 600;
}

.forgot-primary {
  margin-top: 2px;
}

.forgot-note {
  margin-top: 12px;
  font-size: 12px;
  color: #8b91ae;
}

.delete-account-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 2800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.delete-account-modal.active {
  display: flex;
}

.delete-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.delete-modal-cancel {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #9ea5c4;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.delete-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.09);
}

.delete-modal-confirm {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: #f55f5f;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.delete-modal-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.delete-modal-confirm:not(:disabled):hover {
  background: #e04a4a;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .auth-page-inner {
    padding: 20px 16px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    width: 100%;
  }

  .auth-card {
    width: 100%;
    padding: 20px 18px 18px;
    border-radius: 20px;
  }

  .auth-right h3 {
    font-size: 1.56rem;
  }

  .auth-name-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .auth-page-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 32px;
  }

  .auth-left {
    justify-content: center;
    text-align: center;
  }

  .auth-left-copy h2 {
    max-width: none;
  }

  .auth-left-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-brand-logo {
    height: 52px;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-perks {
    justify-items: center;
  }

  .auth-trust {
    justify-content: center;
  }
}

@media (max-width: 1080px) {
  #app-view .right-static-panel {
    display: none;
  }

  #app-view .main {
    padding-top: 0;
  }

  #app-view .topbar {
    position: static;
    height: auto;
  }

  #app-view .sidebar-backdrop {
    display: block;
  }

  #app-view .sidebar-collapse-btn {
    display: none;
  }

  #app-view .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(100vw, 360px);
    border-right: 1px solid var(--border);
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    z-index: 260;
    box-shadow: 0 16px 40px rgba(14, 32, 66, 0.28);
  }

  #app-view.sidebar-open .sidebar {
    transform: translateX(0);
  }

  #app-view.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  #app-view .mobile-menu-btn,
  #app-view .sidebar-inline-menu {
    display: inline-flex;
  }

  #app-view .main {
    width: 100%;
  }

  #app-view .stats-row {
    grid-template-columns: 1fr;
  }

  #app-view .billing-strip {
    grid-template-columns: 1fr;
  }

  #app-view .saas-insights {
    grid-template-columns: 1fr 1fr;
  }

  #app-view .topbar {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }

  #app-view .topbar-right {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  #app-view .quickstart-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #app-view .quickstart-actions {
    grid-template-columns: 1fr;
  }

  #app-view .dashboard-split {
    grid-template-columns: 1fr;
  }

  #app-view .dashboard-hero {
    flex-direction: column;
    padding: 24px 22px 26px;
  }

  #app-view .meetings-hero,
  #app-view .meetings-grid-layout,
  #app-view .calendar-event-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  #app-view .profile-grid {
    grid-template-columns: 1fr;
  }

  #app-view .welcome-card h2,
  #app-view .quickstart-head h3,
  #app-view .join-card h3,
  #app-view .holiday-head h4,
  #app-view .dashboard-hero h2,
  #app-view .profile-hero-text h2 {
    font-size: clamp(24px, 5.5vw, 34px);
  }

  #app-view .welcome-card p,
  #app-view .quickstart-head p,
  #app-view .holiday-card p,
  #app-view .profile-hero-text p,
  #app-view .qs-schedule-btn,
  #app-view .holiday-month,
  #app-view .join-btn,
  #app-view .quick-action {
    font-size: clamp(14px, 3vw, 20px);
  }

  #app-view .plan-pill,
  #app-view .btn-upgrade {
    display: none;
  }

  #app-view .theme-toggle {
    width: 60px;
    gap: 3px;
  }

  #app-view .theme-toggle-track {
    width: 48px;
    height: 26px;
  }

  #app-view .theme-toggle-thumb {
    width: 20px;
    height: 20px;
  }

  #app-view .theme-toggle.is-dark .theme-toggle-thumb {
    transform: translateX(22px);
  }

  #app-view #theme-toggle-text {
    display: inline;
    font-size: 9px;
  }

  #app-view .header-notification-dropdown {
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    right: 0;
    left: auto;
  }

  #app-view .search-box {
    width: 100%;
  }

  #app-view .content {
    padding: 16px 14px;
  }
}

@media (max-width: 640px) {
  #app-view .header-notification-dropdown {
    position: fixed;
    top: 74px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 90px);
  }
}

@media (min-width: 1081px) {
  #app-view.sidebar-collapsed .topbar {
    left: var(--sidebar-collapsed-w);
  }

  #app-view.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-w);
  }

  #app-view.sidebar-collapsed .sidebar-scroll {
    padding-top: 62px;
  }

  #app-view.sidebar-collapsed .logo {
    display: none;
  }

  #app-view.sidebar-collapsed .collapsed-logo {
    display: flex;
  }

  #app-view.sidebar-collapsed .nav-section {
    margin-bottom: 8px;
  }

  #app-view.sidebar-collapsed .logo-text,
  #app-view.sidebar-collapsed .workspace-switcher,
  #app-view.sidebar-collapsed .nav-label,
  #app-view.sidebar-collapsed .workspace-name,
  #app-view.sidebar-collapsed .workspace-meta,
  #app-view.sidebar-collapsed .workspace-pill,
  #app-view.sidebar-collapsed .nav-chip,
  #app-view.sidebar-collapsed .nav-item-label,
  #app-view.sidebar-collapsed .badge,
  #app-view.sidebar-collapsed .usage-bar-wrap,
  #app-view.sidebar-collapsed .user-info {
    display: none;
  }

  #app-view.sidebar-collapsed .nav-item {
    justify-content: center;
    margin: 0 8px;
    padding: 10px;
    color: #29406a;
  }

  #app-view.sidebar-collapsed .nav-item.active {
    color: #2361d7;
  }

  #app-view.sidebar-collapsed .user-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  #app-view .saas-insights {
    grid-template-columns: 1fr;
  }
}

/* AI Assistant context badges */
#app-view .ai-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

#app-view .ai-block-head h4 {
  margin: 0;
}

#app-view .ai-context-badges {
  display: flex;
  gap: 4px;
}

#app-view .ai-ctx-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--border, #e5e7ef);
  color: var(--text-muted, #888);
  opacity: 0.45;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

#app-view .ai-ctx-badge.active {
  opacity: 1;
  background: var(--accent2, #dbeafe);
  color: var(--accent, #2563eb);
}

/* ── Notes View ─────────────────────────────────────────────────────── */
#app-view .mom-view,
#app-view .notes-view {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#app-view .mom-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 920px;
}

#app-view .mom-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#app-view .mom-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

#app-view .mom-subtext {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

#app-view .mom-header-actions,
#app-view .mom-run-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#app-view .mom-run-row {
  justify-content: space-between;
}

#app-view .mom-hint {
  font-size: 12px;
  color: var(--text-muted);
}

#app-view .mom-source-textarea {
  min-height: 240px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card-bg, #fff);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#app-view .mom-source-textarea:focus {
  outline: none;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#app-view .mom-output-card {
  max-width: 100%;
}

#app-view .mom-review-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 16, 28, 0.38);
  backdrop-filter: blur(4px);
  z-index: 2900;
}

#app-view .mom-review-modal.active {
  display: flex;
}

#app-view .mom-review-card {
  width: min(100%, 760px);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border-radius: 18px;
  background: #f7f9fe;
  border: 1px solid #d8dfef;
  box-shadow: 0 28px 80px rgba(21, 28, 48, 0.24);
  overflow: hidden;
}

#app-view .mom-review-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

#app-view .mom-review-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#app-view .mom-review-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#app-view .mom-review-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

#app-view .mom-review-topbar h4 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: #172033;
}

#app-view .mom-review-close {
  border: none;
  background: transparent;
  color: #55617f;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#app-view .mom-review-close:hover {
  background: rgba(85, 97, 127, 0.1);
  color: #111827;
}

#app-view .mom-review-tip {
  margin: 0 20px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e7e1bf;
  background: linear-gradient(180deg, #fffdf2 0%, #fff9e8 100%);
  color: #6b7280;
  font-size: 13px;
}

#app-view .mom-review-recipient-row {
  margin: 0 20px;
}

#app-view .mom-review-recipient-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5a79;
}

#app-view .mom-review-recipient-field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid #d8dfef;
  background: #ffffff;
  color: #172033;
  font: inherit;
  box-sizing: border-box;
}

#app-view .mom-review-recipient-field input:focus {
  outline: none;
  border-color: #2f7cf6;
  box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.12);
}

#app-view .mom-review-output {
  margin: 0 20px;
  border: 1px solid #d8dfef;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#app-view .mom-review-editor {
  min-height: 420px;
  max-height: min(52vh, 560px);
  padding: 18px 18px 20px;
  background: #ffffff;
  color: #172033;
  line-height: 1.7;
}

#app-view .mom-review-status {
  margin: 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

#app-view .mom-review-status.success {
  background: #eefbf3;
  border: 1px solid #b7e4c4;
  color: #18794e;
}

#app-view .mom-review-status.error {
  margin: 0 20px;
  border: 1px solid #fecdd3;
  color: #be123c;
}

#app-view .mom-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 20px 20px;
  border-top: 1px solid #e1e7f3;
  margin-top: 2px;
}

#app-view .mom-review-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

#app-view .mom-review-actions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#app-view .mom-review-cancel,
#app-view .mom-review-copy,
#app-view .mom-review-send,
#app-view .mom-review-pdf,
#app-view #mom-auto-improve-btn {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

#app-view .mom-review-cancel {
  border: 1px solid #cfd7eb;
  background: #ffffff;
  color: #41506f;
  cursor: pointer;
}

#app-view .mom-review-cancel:hover {
  background: #f3f6fd;
}

#app-view .mom-review-pdf {
  border: 1.5px solid rgba(47, 124, 246, 0.4);
  background: rgba(47, 124, 246, 0.05);
  color: #2563eb;
  box-shadow: 0 4px 12px rgba(47, 124, 246, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#app-view .mom-review-pdf:hover {
  background: linear-gradient(135deg, #2f7cf6 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

#app-view .mom-review-pdf:active {
  transform: translateY(1px);
}

#app-view .mom-review-copy,
#app-view .mom-review-send,
#app-view #mom-auto-improve-btn {
  border: none;
  color: #ffffff;
  background: linear-gradient(135deg, #2f7cf6 0%, #2563eb 100%);
  box-shadow: 0 10px 24px rgba(47, 124, 246, 0.24);
}

#app-view .mom-review-copy:hover,
#app-view .mom-review-send:hover,
#app-view #mom-auto-improve-btn:hover {
  opacity: 0.92;
}

#app-view .mom-review-copy:disabled,
#app-view .mom-review-send:disabled,
#app-view #mom-auto-improve-btn:disabled,
#app-view .mom-review-cancel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  #app-view .mom-review-modal {
    padding: 12px;
  }

  #app-view .mom-review-card {
    width: 100%;
    max-height: 92vh;
  }

  #app-view .mom-review-topbar h4 {
    font-size: 17px;
  }

  #app-view .mom-review-topbar {
    align-items: flex-start;
  }

  #app-view .mom-review-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  #app-view .mom-review-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #app-view .mom-review-actions-left {
    width: 100%;
  }

  #app-view .mom-review-actions-right {
    width: 100%;
    justify-content: stretch;
  }

  #app-view .mom-review-cancel,
  #app-view .mom-review-copy,
  #app-view .mom-review-send,
  #app-view .mom-review-pdf,
  #app-view #mom-auto-improve-btn {
    width: 100%;
  }
}

#app-view .notes-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  max-width: 860px;
  width: 100%;
}

#app-view .notes-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#app-view .notes-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

#app-view .notes-subtext {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

#app-view .notes-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#app-view .notes-clear-btn {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#app-view .notes-clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

#app-view .meeting-notes-textarea {
  flex: 1;
  min-height: 420px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card-bg, #fff);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#app-view .meeting-notes-textarea:focus {
  outline: none;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#app-view .meeting-notes-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

#app-view .notes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 2px;
}

#app-view .notes-saved-indicator {
  color: #16a34a;
}

#app-view .notes-saved-indicator.unsaved {
  color: var(--text-muted);
}

body.theme-dark #app-view .meeting-notes-textarea {
  background: #191d2b;
  border-color: #2d334a;
  color: #e2e4f0;
}

body.theme-dark #app-view .mom-source-textarea {
  background: #191d2b;
  border-color: #2d334a;
  color: #e2e4f0;
}

body.theme-dark #app-view .mom-output-card {
  background: linear-gradient(180deg, #171c2b 0%, #141926 100%);
  border-color: #3a315f;
}

body.theme-dark #app-view .mom-review-card {
  background: #181d2c;
  border-color: #343b57;
  box-shadow: 0 30px 90px rgba(4, 8, 20, 0.55);
}

body.theme-dark #app-view .mom-review-topbar h4 {
  color: #edf2ff;
}

body.theme-dark #app-view .mom-review-close {
  color: #98a2c7;
}

body.theme-dark #app-view .mom-review-close:hover {
  background: rgba(152, 162, 199, 0.12);
  color: #ffffff;
}

body.theme-dark #app-view .mom-review-tip {
  border-color: #343b57;
  background: rgba(255, 248, 210, 0.08);
  color: #c7cde2;
}

body.theme-dark #app-view .mom-review-recipient-field {
  color: #c7cde2;
}

body.theme-dark #app-view .mom-review-recipient-field input {
  background: #141926;
  border-color: #343b57;
  color: #edf2ff;
}

body.theme-dark #app-view .mom-review-recipient-field input:focus {
  border-color: #7c5cfc;
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.14);
}

body.theme-dark #app-view .mom-review-output {
  background: #141926;
  border-color: #343b57;
}

body.theme-dark #app-view .mom-review-actions {
  border-top-color: #2c344d;
}

body.theme-dark #app-view .mom-review-status.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #9be7b2;
}

body.theme-dark #app-view .mom-review-status.error {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

body.theme-dark #app-view .video-transcript-toolbar {
  background: #171c2b;
  border-bottom-color: #2d334a;
}

body.theme-dark #app-view .video-transcript-toolbar h4 {
  color: #edf2ff;
}

body.theme-dark #app-view .mom-output-hint {
  color: #98a2c7;
}

body.theme-dark #app-view .mom-output-editor {
  background: #141926;
  color: #e2e4f0;
}

body.theme-dark #app-view .mom-output-editor::placeholder {
  color: #7f89ab;
}

body.theme-dark #app-view #mom-generate-btn,
body.theme-dark #app-view #mom-auto-improve-btn {
  background: linear-gradient(90deg, #6d3cf6 0%, #c442b2 52%, #f14d95 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 22px rgba(97, 60, 218, 0.34);
}

body.theme-dark #app-view #mom-generate-btn:hover,
body.theme-dark #app-view #mom-auto-improve-btn:hover,
body.theme-dark #app-view .mom-review-copy:hover,
body.theme-dark #app-view .mom-review-send:hover {
  opacity: 0.9;
}

body.theme-dark #app-view #mom-generate-btn:disabled,
body.theme-dark #app-view #mom-auto-improve-btn:disabled,
body.theme-dark #app-view .mom-review-copy:disabled,
body.theme-dark #app-view .mom-review-send:disabled {
  opacity: 0.6;
}

body.theme-dark #app-view .mom-review-cancel {
  background: #171c2b;
  color: #d9e1fb;
  border-color: #3a4261;
}

body.theme-dark #app-view .mom-review-cancel:hover {
  background: #20283d;
}

body.theme-dark #app-view .mom-review-pdf {
  background: rgba(124, 92, 252, 0.08);
  color: #c7baff;
  border-color: rgba(124, 92, 252, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.theme-dark #app-view .mom-review-pdf:hover {
  background: linear-gradient(135deg, #7c5cfc 0%, #6f58ff 100%);
  color: #ffffff;
  border-color: #7c5cfc;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.35);
}

body.theme-dark #app-view .mom-review-pdf:active {
  transform: translateY(1px);
}

body.theme-dark #app-view .notes-clear-btn:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.4);
}

/* ── Ask Question View ───────────────────────────────────────────────── */
#app-view .ask-question-view {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#app-view .ask-question-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 920px;
}

#app-view .ask-question-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#app-view .ask-question-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

#app-view .ask-question-subtext {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

#app-view .ask-question-actions,
#app-view .ask-question-run-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#app-view .ask-question-run-row {
  justify-content: flex-end;
}

#app-view .ask-question-type-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

#app-view .ask-question-type {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  min-width: 170px;
}

#app-view .ask-question-type:focus {
  outline: none;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#app-view .ask-question-btn {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#app-view .ask-question-btn:hover {
  transform: translateY(-1px);
}

#app-view .ask-question-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

#app-view .ask-question-btn.secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

#app-view .ask-question-btn.secondary:hover {
  color: var(--text);
  background: #edf3ff;
}

#app-view .ask-question-btn.secondary.danger-hover:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fca5a5;
}

#app-view .ask-question-textarea {
  min-height: 220px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card-bg, #fff);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#app-view .ask-question-textarea:focus {
  outline: none;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#app-view .ask-question-output {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fd 100%);
  color: var(--text);
  padding: 16px;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 13.5px;
}

#app-view .ask-question-output strong {
  display: block;
  margin-bottom: 6px;
}

#app-view .ask-question-placeholder {
  color: var(--text-muted);
}

body.theme-dark #app-view .ask-question-textarea {
  background: #191d2b;
  border-color: #2d334a;
  color: #e2e4f0;
}

body.theme-dark #app-view .ask-question-type {
  background: #191d2b;
  border-color: #2d334a;
  color: #e2e4f0;
}

body.theme-dark #app-view .ask-question-btn.secondary:hover {
  background: #1f2436;
}

body.theme-dark #app-view .ask-question-output {
  background: linear-gradient(180deg, #171c2b 0%, #141926 100%);
  border-color: #2d334a;
  color: #dfe5f8;
}

/* ── Voice Agent View ──────────────────────────────────────────────── */
#app-view .voice-agent-view {
  padding: 24px;
  min-height: 100%;
}

#app-view .voice-agent-live-view {
  min-height: 100vh;
  padding: 0;
  background: #000000;
}

#app-view .voice-agent-live-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 56px 72px;
  box-sizing: border-box;
}

#app-view .voice-agent-live-stage {
  min-height: 480px;
  border-radius: 34px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 75%, rgba(213, 118, 255, 0.72) 0%, rgba(122, 71, 255, 0.5) 28%, rgba(74, 22, 214, 0.12) 60%, rgba(74, 22, 214, 0) 72%),
    linear-gradient(180deg, #1c0b57 0%, #2a0d7f 45%, #7f4cff 100%);
  box-shadow: inset 0 0 0 2px rgba(121, 78, 255, 0.85);
}

#app-view .voice-agent-live-stage-orb {
  width: 208px;
  height: 208px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 97, 237, 0.95) 0%, rgba(255, 97, 237, 0.05) 28%),
    radial-gradient(circle at 78% 80%, rgba(101, 255, 232, 0.7) 0%, rgba(101, 255, 232, 0.04) 24%),
    linear-gradient(180deg, rgba(20, 19, 51, 0.92) 0%, rgba(12, 12, 32, 0.96) 100%);
  box-shadow:
    0 0 0 12px rgba(230, 84, 255, 0.12),
    0 24px 80px rgba(87, 27, 228, 0.48),
    inset 0 0 24px rgba(255, 255, 255, 0.12);
}

#app-view .voice-agent-live-stage-core {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

#app-view .voice-agent-live-stage-core img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#app-view .voice-agent-live-panel {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #ffffff;
}

#app-view .voice-agent-live-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

#app-view .voice-agent-live-brand-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #ebc944 0%, #2b83f2 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

#app-view .voice-agent-live-brand-row h2 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}

#app-view .voice-agent-live-subtitle {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 14px;
}

#app-view .voice-agent-live-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

#app-view .voice-agent-live-mic-pill {
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 999px;
  background: #171717;
  color: #f5f5f5;
  font-size: 30px;
  cursor: default;
}

#app-view .voice-agent-live-device-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

#app-view .voice-agent-live-device-select {
  width: 100%;
  min-height: 72px;
  border: none;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  padding: 0 24px;
  font: inherit;
  font-size: 18px;
  box-sizing: border-box;
}

#app-view .voice-agent-live-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#app-view .voice-agent-live-status,
#app-view .voice-agent-live-connection {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

#app-view .voice-agent-live-status.idle {
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

#app-view .voice-agent-live-status.connecting {
  background: rgba(245, 158, 11, 0.18);
  color: #ffd27d;
}

#app-view .voice-agent-live-status.connected {
  background: rgba(34, 197, 94, 0.18);
  color: #9be7b2;
}

#app-view .voice-agent-live-status.error {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
}

#app-view .voice-agent-live-connection {
  background: rgba(111, 71, 255, 0.18);
  color: #d7ceff;
}

#app-view .voice-agent-live-note {
  margin: 0;
  max-width: 540px;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.5;
}

#app-view .voice-agent-live-note a {
  color: #d1d5db;
}

#app-view .voice-agent-live-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

#app-view .voice-agent-live-join-btn,
#app-view .voice-agent-live-back-btn {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 12px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .voice-agent-live-join-btn {
  border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
}

#app-view .voice-agent-live-back-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #d1d5db;
}

#app-view .voice-agent-live-feed {
  max-width: 560px;
  min-height: 150px;
  max-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}

#app-view .voice-agent-live-feed-empty {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

#app-view .voice-agent-live-feed-line {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #171717;
  color: #f3f4f6;
  font-size: 14px;
  line-height: 1.55;
}

#app-view .voice-agent-live-feed-line.user {
  background: rgba(37, 99, 235, 0.18);
}

#app-view .voice-agent-live-feed-line.agent {
  background: rgba(124, 58, 237, 0.2);
}

#app-view .voice-agent-live-feed-line.system {
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

#app-view .voice-agent-live-feed-line.error {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

#app-view .voice-agent-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#app-view .screening-voice-agent-setup {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#app-view .voice-agent-setup-topbar {
  display: flex;
  align-items: center;
}

#app-view .voice-agent-back-btn {
  border: 1px solid #d6deec;
  background: #ffffff;
  color: #304361;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 31, 57, 0.06);
}

#app-view .voice-agent-setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 340px;
  gap: 28px;
  align-items: start;
}

#app-view .voice-agent-setup-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

#app-view .voice-agent-builder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid #dff2ea;
  background: linear-gradient(180deg, #edfdf8 0%, #eafaf6 100%);
}

#app-view .voice-agent-builder-badge {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b8f270 0%, #66dbff 100%);
}

#app-view .voice-agent-builder-badge span,
#app-view .voice-agent-builder-badge::before,
#app-view .voice-agent-builder-badge::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

#app-view .voice-agent-builder-badge::before {
  width: 14px;
  height: 14px;
  left: 9px;
  top: 8px;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

#app-view .voice-agent-builder-badge::after {
  width: 10px;
  height: 10px;
  left: 20px;
  top: 16px;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

#app-view .voice-agent-builder-badge span {
  width: 7px;
  height: 7px;
  left: 11px;
  top: 22px;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

#app-view .voice-agent-builder-copy h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #17233f;
}

#app-view .voice-agent-builder-copy p {
  margin: 8px 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #5d718f;
}

#app-view .voice-agent-role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

#app-view .voice-agent-role-search-wrap {
  position: relative;
}

#app-view .voice-agent-role-search {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d7dfec;
  background: #ffffff;
  color: #17233f;
  font: inherit;
  font-size: 14px;
  padding: 0 16px;
  box-sizing: border-box;
}

#app-view .voice-agent-autofill-btn {
  min-width: 116px;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #d6d5ff 0%, #c8d4ff 100%);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .voice-agent-config-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid #d7deeb;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

#app-view .voice-agent-config-tab {
  min-height: 34px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: #5d6f8d;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

#app-view .voice-agent-config-tab.active {
  background: #f3f6fc;
  color: #17233f;
  font-weight: 700;
}

#app-view .voice-agent-question-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#app-view .voice-agent-question-label {
  font-size: 14px;
  font-weight: 600;
  color: #2b3d5c;
}

#app-view .voice-agent-questions-input {
  width: 100%;
  min-height: 190px;
  border-radius: 14px;
  border: 1px solid #d7dfec;
  background: #ffffff;
  color: #17233f;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  padding: 16px 18px;
  box-sizing: border-box;
  resize: vertical;
}

#app-view .voice-agent-profile-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
  border-left: 1px solid #e5eaf4;
  min-height: 100%;
}

#app-view .voice-agent-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#app-view .voice-agent-profile-icon {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  flex-shrink: 0;
}

#app-view .voice-agent-profile-icon span,
#app-view .voice-agent-profile-icon::before,
#app-view .voice-agent-profile-icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 4px;
}

#app-view .voice-agent-profile-icon::before {
  width: 10px;
  height: 22px;
  left: 12px;
  top: 14px;
}

#app-view .voice-agent-profile-icon::after {
  width: 12px;
  height: 7px;
  left: 24px;
  top: 15px;
}

#app-view .voice-agent-profile-icon span {
  width: 8px;
  height: 7px;
  left: 24px;
  top: 26px;
}

#app-view .voice-agent-profile-edit {
  border: none;
  background: transparent;
  color: #7a89a5;
  font-size: 16px;
  cursor: pointer;
}

#app-view .voice-agent-profile-title {
  margin-top: -4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #17233f;
}

#app-view .voice-agent-profile-subtitle {
  margin-top: -8px;
  font-size: 13px;
  color: #41587e;
}

#app-view .voice-agent-profile-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #2e4263;
}

#app-view .voice-agent-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

#app-view .voice-agent-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #445a7c;
}

#app-view .voice-agent-profile-row strong {
  color: #17233f;
  font-weight: 600;
}

#app-view .voice-agent-preview-btn {
  margin-top: auto;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #d7deeb;
  background: #ffffff;
  color: #304361;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .screening-voice-agent-setup {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#app-view .voice-agent-setup-topbar {
  display: flex;
  align-items: center;
}

#app-view .voice-agent-back-btn {
  border: 1px solid #d6deec;
  background: #ffffff;
  color: #304361;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 31, 57, 0.06);
}

#app-view .voice-agent-setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 340px;
  gap: 28px;
  align-items: start;
}

#app-view .voice-agent-setup-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

#app-view .voice-agent-builder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid #dff2ea;
  background: linear-gradient(180deg, #edfdf8 0%, #eafaf6 100%);
}

#app-view .voice-agent-builder-badge {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b8f270 0%, #66dbff 100%);
}

#app-view .voice-agent-builder-badge span,
#app-view .voice-agent-builder-badge::before,
#app-view .voice-agent-builder-badge::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

#app-view .voice-agent-builder-badge::before {
  width: 14px;
  height: 14px;
  left: 9px;
  top: 8px;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

#app-view .voice-agent-builder-badge::after {
  width: 10px;
  height: 10px;
  left: 20px;
  top: 16px;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

#app-view .voice-agent-builder-badge span {
  width: 7px;
  height: 7px;
  left: 11px;
  top: 22px;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

#app-view .voice-agent-builder-copy h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #17233f;
}

#app-view .voice-agent-builder-copy p {
  margin: 8px 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #5d718f;
}

#app-view .voice-agent-role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

#app-view .voice-agent-role-search-wrap {
  position: relative;
}

#app-view .voice-agent-role-search {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d7dfec;
  background: #ffffff;
  color: #17233f;
  font: inherit;
  font-size: 14px;
  padding: 0 16px;
  box-sizing: border-box;
}

#app-view .voice-agent-autofill-btn {
  min-width: 116px;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #d6d5ff 0%, #c8d4ff 100%);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .voice-agent-config-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid #d7deeb;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

#app-view .voice-agent-config-tab {
  min-height: 34px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: #5d6f8d;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

#app-view .voice-agent-config-tab.active {
  background: #f3f6fc;
  color: #17233f;
  font-weight: 700;
}

#app-view .voice-agent-question-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#app-view .voice-agent-question-label {
  font-size: 14px;
  font-weight: 600;
  color: #2b3d5c;
}

#app-view .voice-agent-questions-input {
  width: 100%;
  min-height: 190px;
  border-radius: 14px;
  border: 1px solid #d7dfec;
  background: #ffffff;
  color: #17233f;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  padding: 16px 18px;
  box-sizing: border-box;
  resize: vertical;
}

#app-view .voice-agent-profile-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
  border-left: 1px solid #e5eaf4;
  min-height: 100%;
}

#app-view .voice-agent-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#app-view .voice-agent-profile-icon {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  flex-shrink: 0;
}

#app-view .voice-agent-profile-icon span,
#app-view .voice-agent-profile-icon::before,
#app-view .voice-agent-profile-icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 4px;
}

#app-view .voice-agent-profile-icon::before {
  width: 10px;
  height: 22px;
  left: 12px;
  top: 14px;
}

#app-view .voice-agent-profile-icon::after {
  width: 12px;
  height: 7px;
  left: 24px;
  top: 15px;
}

#app-view .voice-agent-profile-icon span {
  width: 8px;
  height: 7px;
  left: 24px;
  top: 26px;
}

#app-view .voice-agent-profile-icon.pink {
  background: linear-gradient(135deg, #ff8fcf 0%, #f1a6ff 100%);
}

#app-view .voice-agent-profile-edit {
  border: none;
  background: transparent;
  color: #7a89a5;
  font-size: 16px;
  cursor: pointer;
}

#app-view .voice-agent-profile-title {
  margin-top: -4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #17233f;
}

#app-view .voice-agent-profile-subtitle {
  margin-top: -8px;
  font-size: 13px;
  color: #41587e;
}

#app-view .voice-agent-profile-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #2e4263;
}

#app-view .voice-agent-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

#app-view .voice-agent-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #445a7c;
}

#app-view .voice-agent-profile-row strong {
  color: #17233f;
  font-weight: 600;
}

#app-view .voice-agent-preview-btn {
  margin-top: auto;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #d7deeb;
  background: #ffffff;
  color: #304361;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .voice-agent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#app-view .voice-agent-header h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #16213f;
}

#app-view .voice-agent-feedback {
  margin-top: 10px;
  border: none;
  background: transparent;
  padding: 0;
  color: #7c5cfc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#app-view .voice-agent-custom-btn {
  min-height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6f47ff 0%, #7c5cfc 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(124, 92, 252, 0.22);
}

#app-view .voice-agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

#app-view .voice-agent-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 164px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #dfe5f2;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 12px 30px rgba(21, 32, 62, 0.06);
}

#app-view .voice-agent-card-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

#app-view .voice-agent-card-icon span,
#app-view .voice-agent-card-icon::before,
#app-view .voice-agent-card-icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 3px;
}

#app-view .voice-agent-card-icon::before {
  width: 8px;
  height: 18px;
  left: 9px;
  top: 9px;
}

#app-view .voice-agent-card-icon::after {
  width: 10px;
  height: 6px;
  left: 18px;
  top: 10px;
}

#app-view .voice-agent-card-icon span {
  width: 7px;
  height: 6px;
  left: 18px;
  top: 18px;
}

#app-view .voice-agent-card-icon.pink {
  background: linear-gradient(135deg, #ff8fcf 0%, #f1a6ff 100%);
}

#app-view .voice-agent-card-icon.cyan {
  background: linear-gradient(135deg, #58d5ff 0%, #8ee7ff 100%);
}

#app-view .voice-agent-card-icon.lavender {
  background: linear-gradient(135deg, #a99bff 0%, #c2b9ff 100%);
}

#app-view .voice-agent-card-icon.blue {
  background: linear-gradient(135deg, #85a8ff 0%, #9ec8ff 100%);
}

#app-view .voice-agent-card-icon.magenta {
  background: linear-gradient(135deg, #ff85d8 0%, #ffb3df 100%);
}

#app-view .voice-agent-card-icon.orange {
  background: linear-gradient(135deg, #ffa45f 0%, #ffc086 100%);
}

#app-view .voice-agent-card-icon.violet {
  background: linear-gradient(135deg, #a593ff 0%, #c8beff 100%);
}

#app-view .voice-agent-card h4 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
  color: #17233f;
}

#app-view .voice-agent-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #65748f;
}

#app-view .voice-agent-setup-btn {
  margin-top: auto;
  border: 1px solid #d7ddeb;
  background: #ffffff;
  color: #263655;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(30, 41, 59, 0.06);
}

#app-view .voice-agent-setup-btn.is-live {
  border-color: #6f47ff;
  background: linear-gradient(135deg, #6f47ff 0%, #5f3df5 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(95, 61, 245, 0.2);
}

#app-view .voice-agent-setup-btn:hover,
#app-view .voice-agent-custom-btn:hover,
#app-view .voice-agent-feedback:hover {
  opacity: 0.92;
}

body.theme-dark #app-view .voice-agent-header h3 {
  color: #f2f5ff;
}

body.theme-dark #app-view .voice-agent-card {
  background: linear-gradient(180deg, #171c2b 0%, #141926 100%);
  border-color: #2d334a;
  box-shadow: 0 14px 38px rgba(5, 9, 20, 0.36);
}

body.theme-dark #app-view .voice-agent-card h4 {
  color: #eef2ff;
}

body.theme-dark #app-view .voice-agent-card p {
  color: #98a2c7;
}

body.theme-dark #app-view .voice-agent-setup-btn {
  background: #171c2b;
  border-color: #3b4563;
  color: #edf2ff;
  box-shadow: none;
}

body.theme-dark #app-view .voice-agent-setup-btn.is-live {
  border-color: #7d67ff;
  background: linear-gradient(135deg, #7d67ff 0%, #6948ff 100%);
  color: #ffffff;
}

body.theme-dark #app-view .voice-agent-feedback {
  color: #a998ff;
}

body.theme-dark #app-view .voice-agent-back-btn,
body.theme-dark #app-view .voice-agent-config-tabs,
body.theme-dark #app-view .voice-agent-role-search,
body.theme-dark #app-view .voice-agent-questions-input,
body.theme-dark #app-view .voice-agent-preview-btn {
  background: #171c2b;
  border-color: #2d334a;
  color: #edf2ff;
}

body.theme-dark #app-view .voice-agent-builder-card {
  background: linear-gradient(180deg, rgba(38, 71, 74, 0.55) 0%, rgba(25, 49, 52, 0.72) 100%);
  border-color: rgba(95, 167, 153, 0.28);
}

body.theme-dark #app-view .voice-agent-builder-copy h4,
body.theme-dark #app-view .voice-agent-profile-title {
  color: #edf2ff;
}

body.theme-dark #app-view .voice-agent-builder-copy p,
body.theme-dark #app-view .voice-agent-profile-subtitle,
body.theme-dark #app-view .voice-agent-profile-description,
body.theme-dark #app-view .voice-agent-profile-row,
body.theme-dark #app-view .voice-agent-question-label {
  color: #98a2c7;
}

body.theme-dark #app-view .voice-agent-config-tab.active {
  background: #20283d;
  color: #edf2ff;
}

body.theme-dark #app-view .voice-agent-profile-card {
  border-left-color: #2d334a;
}

body.theme-dark #app-view .voice-agent-profile-row strong {
  color: #edf2ff;
}

@media (max-width: 1160px) {
  #app-view .voice-agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #app-view .voice-agent-setup-layout {
    grid-template-columns: 1fr;
  }

  #app-view .voice-agent-profile-card {
    border-left: none;
    border-top: 1px solid #e5eaf4;
    padding: 20px 0 0;
  }
}

@media (max-width: 768px) {

  #app-view .mom-view,
  #app-view .ask-question-view,
  #app-view .voice-agent-view {
    padding: 16px;
  }

  #app-view .mom-run-row,
  #app-view .ask-question-run-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #app-view .voice-agent-grid {
    grid-template-columns: 1fr;
  }

  #app-view .voice-agent-header h3 {
    font-size: 22px;
  }

  #app-view .voice-agent-builder-card {
    grid-template-columns: 1fr;
  }

  #app-view .voice-agent-role-row {
    grid-template-columns: 1fr;
  }

  #app-view .voice-agent-live-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 16px 32px;
  }

  #app-view .voice-agent-live-stage {
    min-height: 300px;
  }

  #app-view .voice-agent-live-brand-row {
    gap: 14px;
  }

  #app-view .voice-agent-live-brand-row h2 {
    font-size: 22px;
  }

  #app-view .voice-agent-live-controls,
  #app-view .voice-agent-live-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #app-view .voice-agent-live-mic-pill {
    width: 100%;
    border-radius: 18px;
  }
}

#app-view .screening-setup-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: calc(100vh - 168px);
}

#app-view .screening-setup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

#app-view .screening-setup-feedback {
  margin-top: 0;
}

#app-view .screening-setup-back-btn {
  border: 1px solid #d9e1ef;
  background: #ffffff;
  color: #35486a;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 31, 57, 0.06);
}

#app-view .screening-setup-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  min-height: 700px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e6eaf3;
  box-shadow: 0 12px 32px rgba(20, 31, 57, 0.06);
  overflow: hidden;
}

#app-view .screening-setup-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 44px 16px;
  min-width: 0;
}

#app-view .screening-setup-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  padding: 18px 18px 18px;
  max-width: 720px;
  border-radius: 12px;
  background: linear-gradient(180deg, #effffb 0%, #eefaf6 100%);
  border: 1px solid #ddf2ea;
}

#app-view .screening-setup-hero-badge {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #b4f06f 0%, #6edbff 100%);
}

#app-view .screening-setup-hero-badge span,
#app-view .screening-setup-hero-badge::before,
#app-view .screening-setup-hero-badge::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

#app-view .screening-setup-hero-badge::before {
  width: 11px;
  height: 11px;
  left: 7px;
  top: 6px;
}

#app-view .screening-setup-hero-badge::after {
  width: 8px;
  height: 8px;
  left: 16px;
  top: 13px;
}

#app-view .screening-setup-hero-badge span {
  width: 6px;
  height: 6px;
  left: 8px;
  top: 18px;
}

#app-view .screening-setup-hero-copy {
  min-width: 0;
}

#app-view .screening-setup-hero-copy h4 {
  margin: 6px 0 4px;
  font-size: 15px;
  line-height: 1.3;
  color: #31425f;
}

#app-view .screening-setup-hero-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #7f8ea8;
}

#app-view .screening-setup-role-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 12px;
}

#app-view .screening-setup-role-select,
#app-view .screening-setting-field select {
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid #dde4f1;
  background: #ffffff;
  color: #23314f;
  font: inherit;
  font-size: 14px;
  padding: 0 14px;
  box-sizing: border-box;
}

#app-view .screening-setup-autofill-btn {
  min-height: 40px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #ddd7ff 0%, #cfc9ff 100%);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .screening-setup-tabs {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #dfe4ef;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  margin-top: 8px;
}

#app-view .screening-setup-tab {
  border: none;
  background: transparent;
  min-height: 32px;
  padding: 0 16px;
  color: #667895;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

#app-view .screening-setup-tab.active {
  background: #f5f7fc;
  color: #22304e;
  font-weight: 700;
}

#app-view .screening-setup-panel,
#app-view .screening-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}

#app-view .screening-question-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #667895;
  font-size: 14px;
  font-weight: 600;
}

#app-view .screening-question-label strong {
  color: #94a2ba;
}

#app-view .screening-question-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #ffc58d;
  color: #f0a25c;
  font-size: 11px;
  font-weight: 700;
}

#app-view .screening-questions-input {
  width: 100%;
  min-height: 104px;
  border-radius: 10px;
  border: 1px solid #dde4f1;
  background: #ffffff;
  color: #24314f;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  box-sizing: border-box;
  resize: vertical;
}

#app-view .screening-input-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#app-view .screening-rich-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#app-view .screening-rich-field-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: #667895;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

#app-view .screening-rich-field-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #8f96fb;
}

#app-view .screening-rich-field-icon.knowledge::before,
#app-view .screening-rich-field-icon.knowledge::after,
#app-view .screening-rich-field-icon.instructions::before,
#app-view .screening-rich-field-icon.instructions::after,
#app-view .screening-rich-inline-icon.bolt::before,
#app-view .screening-rich-inline-icon.bolt::after {
  content: "";
  position: absolute;
}

#app-view .screening-rich-field-icon.knowledge::before {
  inset: 2px 3px 3px 3px;
  border: 1.6px solid currentColor;
  border-radius: 3px 6px 6px 3px;
}

#app-view .screening-rich-field-icon.knowledge::after {
  left: 9px;
  top: 2px;
  bottom: 3px;
  width: 1.6px;
  background: currentColor;
}

#app-view .screening-rich-field-icon.instructions::before {
  left: 2px;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 1.6px solid currentColor;
  border-radius: 999px;
}

#app-view .screening-rich-field-icon.instructions::after {
  left: 12px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  border-radius: 0 0 0 3px;
  transform: rotate(-28deg);
}

#app-view .screening-rich-field-label strong {
  color: #94a2ba;
}

#app-view .screening-rich-surface {
  border: 1px solid #dde4f1;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

#app-view .screening-rich-textarea {
  width: 100%;
  min-height: 86px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #24314f;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  box-sizing: border-box;
  resize: vertical;
}

#app-view .screening-rich-textarea::placeholder {
  color: #9ba8be;
}

#app-view .screening-rich-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

#app-view .screening-rich-footer.instructions-only {
  justify-content: flex-start;
}

#app-view .screening-rich-footer.knowledge {
  background: #f7f4ff;
  border-top: 1px solid #ece7ff;
}

#app-view .screening-knowledge-upload-status {
  padding: 10px 14px 12px;
  border-top: 1px solid #f0ecff;
  color: #71829f;
  font-size: 12px;
  line-height: 1.5;
  background: #fcfbff;
}

#app-view .screening-knowledge-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
  background: #fcfbff;
}

#app-view .screening-knowledge-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #e2dafd;
  border-radius: 999px;
  background: #f6f1ff;
  color: #5c52a2;
  font-size: 12px;
  font-weight: 600;
}

#app-view .screening-knowledge-file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app-view .screening-knowledge-file-chip-remove {
  border: none;
  background: transparent;
  color: #7a6ce8;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

#app-view .screening-knowledge-upload-status.is-busy {
  color: #6f47ff;
}

#app-view .screening-knowledge-upload-status.is-error {
  color: #d14b65;
}

#app-view .screening-knowledge-upload-status.is-success {
  color: #2e8b57;
}

#app-view .screening-rich-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7f8ea8;
  font-size: 13px;
  line-height: 1.5;
}

#app-view .screening-rich-inline-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #b19afb;
}

#app-view .screening-rich-inline-icon.bolt::before {
  left: 5px;
  top: 1px;
  width: 6px;
  height: 13px;
  background: currentColor;
  clip-path: polygon(38% 0%, 100% 0%, 58% 44%, 100% 44%, 20% 100%, 41% 55%, 0% 55%);
}

#app-view .screening-rich-inline-icon.bolt::after {
  display: none;
}

#app-view .screening-rich-link {
  border: none;
  background: transparent;
  color: #6f47ff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

#app-view .screening-knowledge-block {
  margin-top: 4px;
  padding-top: 8px;
}

#app-view .screening-knowledge-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  color: #6f47ff;
  padding: 8px 0 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .screening-knowledge-toggle strong {
  color: #7d6bf6;
  font-size: 15px;
  line-height: 1;
}

#app-view .screening-knowledge-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#app-view .screening-knowledge-body.is-open {
  display: flex;
}

#app-view .screening-knowledge-body[hidden] {
  display: none !important;
}

#app-view .screening-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#app-view .screening-setting-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #62748f;
  font-size: 13px;
  font-weight: 600;
}

#app-view .screening-setup-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

#app-view .screening-setup-credit {
  color: #7c8aa2;
  font-size: 13px;
  font-weight: 500;
}

#app-view .screening-setup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#app-view .screening-create-status {
  min-width: 140px;
  color: #6d58f3;
  font-size: 13px;
  text-align: right;
}

#app-view .screening-footer-btn,
#app-view .screening-preview-btn {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .screening-footer-btn.cancel,
#app-view .screening-preview-btn {
  border: 1px solid #dfe4ef;
  background: #ffffff;
  color: #5c6c86;
}

#app-view .screening-footer-btn.create {
  border: 1px solid #5f3df5;
  background: linear-gradient(135deg, #6f47ff 0%, #5f3df5 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(95, 61, 245, 0.2);
}

#app-view .screening-setup-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px 18px;
  border-left: 1px solid #e6ebf4;
  background: #ffffff;
}

#app-view .screening-sidebar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#app-view .screening-sidebar-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

#app-view .screening-sidebar-icon span,
#app-view .screening-sidebar-icon::before,
#app-view .screening-sidebar-icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 3px;
}

#app-view .screening-sidebar-icon::before {
  width: 9px;
  height: 20px;
  left: 10px;
  top: 10px;
}

#app-view .screening-sidebar-icon::after {
  width: 11px;
  height: 6px;
  left: 20px;
  top: 11px;
}

#app-view .screening-sidebar-icon span {
  width: 8px;
  height: 6px;
  left: 20px;
  top: 19px;
}

#app-view .screening-sidebar-icon.pink {
  background: linear-gradient(135deg, #ff8fcf 0%, #f1a6ff 100%);
}

#app-view .screening-sidebar-edit {
  border: none;
  background: transparent;
  color: #8996ab;
  font-size: 18px;
  cursor: pointer;
}

#app-view .screening-sidebar-title {
  margin: 0;
  color: #22304e;
  font-size: 16px;
  line-height: 1.35;
}

#app-view .screening-sidebar-subtitle {
  margin-top: -10px;
  color: #5f7090;
  font-size: 13px;
}

#app-view .screening-sidebar-description {
  margin: 8px 0 0;
  color: #4d5f7d;
  font-size: 13px;
  line-height: 1.6;
}

#app-view .screening-sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

#app-view .screening-sidebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #667895;
  font-size: 13px;
}

#app-view .screening-sidebar-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#app-view .screening-sidebar-row-icon {
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

#app-view .screening-sidebar-row strong {
  color: #22304e;
  font-weight: 600;
}

#app-view .screening-sidebar-select {
  min-width: 168px;
  max-width: 220px;
  padding: 6px 30px 6px 10px;
  border: 1px solid #d6deed;
  border-radius: 8px;
  background: #f8fbff;
  color: #22304e;
  font: inherit;
  font-weight: 600;
  text-align: right;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7484a0 50%), linear-gradient(135deg, #7484a0 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

#app-view .screening-sidebar-select:focus {
  outline: none;
  border-color: #7c5cfb;
  box-shadow: 0 0 0 3px rgba(124, 92, 251, 0.16);
}

#app-view .screening-preview-btn {
  margin-top: auto;
  width: 100%;
}

#app-view .screening-preview-runtime {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e3e8f4;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f7fd 100%);
}

#app-view .screening-preview-runtime-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#app-view .screening-preview-runtime-title {
  margin: 0;
  color: #22304e;
  font-size: 14px;
  font-weight: 700;
}

#app-view .screening-preview-runtime-copy {
  margin: 6px 0 0;
  color: #61738f;
  font-size: 12px;
  line-height: 1.5;
}

#app-view .screening-preview-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#app-view .screening-preview-state.idle {
  background: #eef2ff;
  color: #546585;
}

#app-view .screening-preview-state.live {
  background: #e8fff0;
  color: #0f8a4b;
}

#app-view .screening-preview-state.busy {
  background: #fff8dc;
  color: #a56b00;
}

#app-view .screening-preview-state.error {
  background: #ffe9ee;
  color: #be123c;
}

#app-view .screening-preview-runtime-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#app-view .screening-preview-runtime-actions .screening-preview-btn {
  margin-top: 0;
  flex: 1 1 auto;
}

#app-view .screening-preview-clear-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d8dfef;
  background: #ffffff;
  color: #55617f;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .screening-preview-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  max-height: 320px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #dde4f1;
  background: #ffffff;
  overflow-y: auto;
}

#app-view .screening-preview-empty {
  margin: 0;
  color: #7c8aa2;
  font-size: 12px;
  line-height: 1.6;
}

#app-view .screening-preview-line {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #22304e;
  background: #f6f8fc;
}

#app-view .screening-preview-line strong {
  color: #445a7c;
}

#app-view .screening-preview-line.user {
  background: #eef5ff;
}

#app-view .screening-preview-line.agent {
  background: #f6f0ff;
}

#app-view .screening-preview-line.system {
  background: #f9fafb;
  color: #5f7090;
}

#app-view .screening-preview-line.warning {
  background: #fff8dc;
  color: #8a5a00;
}

#app-view .screening-preview-line.error {
  background: #fff1f4;
  color: #be123c;
}

body.theme-dark #app-view .screening-setup-canvas,
body.theme-dark #app-view .screening-setup-sidebar,
body.theme-dark #app-view .screening-role-select,
body.theme-dark #app-view .screening-setting-field select,
body.theme-dark #app-view .screening-questions-input,
body.theme-dark #app-view .screening-footer-btn.cancel,
body.theme-dark #app-view .screening-preview-btn,
body.theme-dark #app-view .screening-setup-back-btn,
body.theme-dark #app-view .screening-setup-tabs {
  background: #161b29;
  border-color: #2d334a;
  color: #edf2ff;
}

body.theme-dark #app-view .screening-setup-hero {
  background: linear-gradient(180deg, rgba(32, 67, 69, 0.78) 0%, rgba(25, 49, 52, 0.78) 100%);
  border-color: rgba(95, 167, 153, 0.28);
}

body.theme-dark #app-view .screening-setup-hero-copy h4,
body.theme-dark #app-view .screening-sidebar-title,
body.theme-dark #app-view .screening-sidebar-row strong {
  color: #edf2ff;
}

body.theme-dark #app-view .screening-setup-hero-copy p,
body.theme-dark #app-view .screening-question-label,
body.theme-dark #app-view .screening-rich-field-label,
body.theme-dark #app-view .screening-rich-hint,
body.theme-dark #app-view .screening-setting-field,
body.theme-dark #app-view .screening-sidebar-subtitle,
body.theme-dark #app-view .screening-sidebar-description,
body.theme-dark #app-view .screening-sidebar-row,
body.theme-dark #app-view .screening-setup-credit {
  color: #9aa6c3;
}

body.theme-dark #app-view .screening-sidebar-row-icon {
  color: #91a0bf;
}

body.theme-dark #app-view .screening-knowledge-block {
  border-top-color: #2d334a;
}

body.theme-dark #app-view .screening-rich-textarea {
  background: transparent;
  color: #edf2ff;
}

body.theme-dark #app-view .screening-rich-surface {
  background: #1a2132;
  border-color: #2d334a;
}

body.theme-dark #app-view .screening-rich-footer.knowledge {
  background: rgba(169, 152, 255, 0.08);
  border-top-color: #343b57;
}

body.theme-dark #app-view .screening-rich-textarea::placeholder {
  color: #7f8cad;
}

body.theme-dark #app-view .screening-rich-link {
  color: #a998ff;
}

body.theme-dark #app-view .screening-rich-field-icon,
body.theme-dark #app-view .screening-rich-inline-icon {
  color: #b6abff;
}

body.theme-dark #app-view .screening-knowledge-toggle,
body.theme-dark #app-view .screening-knowledge-toggle strong {
  color: #a998ff;
}

body.theme-dark #app-view .screening-setup-tab.active {
  background: #20283d;
  color: #edf2ff;
}

body.theme-dark #app-view .screening-setup-sidebar {
  border-left-color: #2d334a;
}

body.theme-dark #app-view .screening-preview-runtime {
  background: linear-gradient(180deg, #1b2132 0%, #171d2c 100%);
  border-color: #313954;
}

body.theme-dark #app-view .screening-preview-runtime-title {
  color: #edf2ff;
}

body.theme-dark #app-view .screening-preview-runtime-copy,
body.theme-dark #app-view .screening-preview-empty,
body.theme-dark #app-view .screening-preview-line.system {
  color: #98a2c7;
}

body.theme-dark #app-view .screening-preview-state.idle {
  background: #262e44;
  color: #c8d1ea;
}

body.theme-dark #app-view .screening-preview-state.live {
  background: rgba(34, 197, 94, 0.16);
  color: #9be7b2;
}

body.theme-dark #app-view .screening-preview-state.busy {
  background: rgba(245, 158, 11, 0.16);
  color: #ffd27d;
}

body.theme-dark #app-view .screening-preview-state.error {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

body.theme-dark #app-view .screening-preview-clear-btn {
  background: #171c2b;
  border-color: #343b57;
  color: #d9e1fb;
}

body.theme-dark #app-view .screening-preview-stream {
  background: #141926;
  border-color: #343b57;
}

body.theme-dark #app-view .screening-preview-line {
  background: #1d2436;
  color: #e6ecff;
}

body.theme-dark #app-view .screening-preview-line strong {
  color: #b8c2de;
}

body.theme-dark #app-view .screening-preview-line.user {
  background: rgba(47, 124, 246, 0.16);
}

body.theme-dark #app-view .screening-preview-line.agent {
  background: rgba(124, 92, 252, 0.16);
}

body.theme-dark #app-view .screening-preview-line.warning {
  background: rgba(245, 158, 11, 0.16);
  color: #ffd27d;
}

body.theme-dark #app-view .screening-preview-line.error {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

body.theme-dark #app-view .screening-agent-success-card {
  background: #181d2c;
  border-color: #343b57;
}

body.theme-dark #app-view .screening-agent-success-close {
  color: #98a2c7;
}

body.theme-dark #app-view .screening-agent-success-close:hover {
  background: rgba(152, 162, 199, 0.12);
  color: #ffffff;
}

body.theme-dark #app-view .screening-agent-success-hero h3 {
  color: #edf2ff;
}

body.theme-dark #app-view .screening-agent-success-copy,
body.theme-dark #app-view .screening-agent-success-row-icon,
body.theme-dark #app-view .screening-agent-success-row-meta {
  color: #98a2c7;
}

body.theme-dark #app-view .screening-agent-success-try {
  background: #171c2b;
  border-color: #343b57;
  color: #cdbfff;
}

body.theme-dark #app-view .screening-agent-success-list {
  background: linear-gradient(180deg, #1f2435 0%, #1b2131 100%);
}

body.theme-dark #app-view .screening-agent-success-row {
  background: #141926;
  border-color: #343b57;
  color: #edf2ff;
}

@media (max-width: 1160px) {
  #app-view .screening-setup-canvas {
    grid-template-columns: 1fr;
  }

  #app-view .screening-setup-sidebar {
    border-left: none;
    border-top: 1px solid #e6ebf4;
  }

  #app-view .screening-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  #app-view .screening-setup-toolbar,
  #app-view .screening-setup-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #app-view .screening-setup-main {
    padding: 20px 16px 16px;
  }

  #app-view .screening-setup-role-row {
    grid-template-columns: 1fr;
  }

  #app-view .screening-setup-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #app-view .screening-preview-runtime-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #app-view .screening-rich-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  #app-view .screening-create-status {
    width: 100%;
    text-align: left;
  }

  #app-view .screening-agent-success-modal {
    padding: 12px;
  }

  #app-view .screening-agent-success-card {
    padding: 22px 16px 16px;
  }

  #app-view .screening-agent-success-actions {
    width: 100%;
    flex-direction: column;
  }

  #app-view .screening-agent-success-try,
  #app-view .screening-agent-success-copy-btn {
    width: 100%;
  }
}

/* Screening setup modal overrides */
#app-view .screening-setup-page {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 16, 28, 0.38);
  backdrop-filter: blur(4px);
  z-index: 2900;
  min-height: 0;
  overflow: hidden;
}

#app-view .screening-setup-page.active {
  display: flex;
}

#app-view .screening-agent-success-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 16, 28, 0.42);
  backdrop-filter: blur(4px);
  z-index: 2950;
}

#app-view .screening-agent-success-modal.active {
  display: flex;
}

#app-view .screening-agent-success-card {
  position: relative;
  width: min(100%, 594px);
  padding: 28px 26px 26px;
  border-radius: 18px;
  border: 1px solid #e5e8f5;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(21, 28, 48, 0.24);
}

#app-view .screening-agent-success-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #8a94aa;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#app-view .screening-agent-success-close:hover {
  background: rgba(85, 97, 127, 0.1);
  color: #111827;
}

#app-view .screening-agent-success-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#app-view .screening-agent-success-poster {
  width: min(100%, 282px);
  min-height: 162px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 82%, rgba(249, 178, 224, 0.5) 0%, rgba(249, 178, 224, 0) 38%),
    radial-gradient(circle at 20% 25%, rgba(251, 215, 255, 0.32) 0%, rgba(251, 215, 255, 0) 20%),
    radial-gradient(circle at 80% 25%, rgba(251, 215, 255, 0.32) 0%, rgba(251, 215, 255, 0) 20%),
    linear-gradient(180deg, #2f2d33 0%, #1d1c22 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#app-view .screening-agent-success-poster-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 26px rgba(91, 142, 255, 0.2);
  overflow: hidden;
}

#app-view .screening-agent-success-poster-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#app-view .screening-agent-success-poster h4 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

#app-view .screening-agent-success-hero h3 {
  margin: 0;
  color: #1d2842;
  font-size: 17px;
  font-weight: 800;
}

#app-view .screening-agent-success-copy {
  margin: 10px 0 0;
  color: #6d7d98;
  font-size: 13px;
  line-height: 1.6;
}

#app-view .screening-agent-success-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

#app-view .screening-agent-success-try,
#app-view .screening-agent-success-copy-btn {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#app-view .screening-agent-success-try {
  border: 1px solid #d7deef;
  background: #ffffff;
  color: #5f3df5;
}

#app-view .screening-agent-success-copy-btn {
  border: 1px solid #5f3df5;
  background: linear-gradient(135deg, #6f47ff 0%, #5f3df5 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(95, 61, 245, 0.2);
}

#app-view .screening-agent-success-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4f1ff 0%, #f7f5ff 100%);

  #app-view .screening-agent-success-qr-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e7e1ff;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f5ff 100%);
  }

  #app-view .screening-agent-success-qr-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
  }

  #app-view .screening-agent-success-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  #app-view .screening-agent-success-qr-title {
    margin: 0;
    color: #1e2944;
    font-size: 15px;
    font-weight: 800;
  }

  #app-view .screening-agent-success-qr-text {
    margin: 8px 0 0;
    color: #667896;
    font-size: 13px;
    line-height: 1.6;
  }

  #app-view .screening-agent-success-qr-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    width: fit-content;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d6cffd;
    background: #ffffff;
    color: #6548f7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  #app-view .screening-agent-success-qr-toggle {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d6cffd;
    border-radius: 10px;
    background: #ffffff;
    color: #445a7c;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  #app-view .screening-agent-success-qr-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 20%, rgba(136, 103, 255, 0.14) 0%, rgba(136, 103, 255, 0) 55%), #ffffff;
    box-shadow: inset 0 0 0 1px rgba(109, 88, 243, 0.08);
  }

  #app-view .screening-agent-success-qr-image {
    display: block;
    width: 118px;
    height: 118px;
    object-fit: contain;
  }

  #app-view .screening-agent-success-qr-link {
    grid-column: 1 / -1;
    color: #7a889f;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
  }

  #app-view .screening-agent-success-qr-shell[hidden],
  #app-view .screening-agent-success-qr-link[hidden] {
    display: none;
  }
}

#app-view .screening-agent-success-row {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;

  body.theme-dark #app-view .screening-agent-success-qr-panel {
    border-color: #353b5b;
    background: linear-gradient(135deg, #20263a 0%, #181d2d 100%);
  }

  body.theme-dark #app-view .screening-agent-success-qr-title {
    color: #f2f5ff;
  }

  body.theme-dark #app-view .screening-agent-success-qr-text,
  body.theme-dark #app-view .screening-agent-success-qr-link {
    color: #a7b2c9;
  }

  body.theme-dark #app-view .screening-agent-success-qr-download {
    border-color: #4a4f77;
    background: #161b29;
    color: #b9a8ff;
  }

  body.theme-dark #app-view .screening-agent-success-qr-toggle {
    border-color: #4a4f77;
    background: #161b29;
    color: #d6def5;
  }

  body.theme-dark #app-view .screening-agent-success-qr-shell {
    background: radial-gradient(circle at 50% 20%, rgba(136, 103, 255, 0.18) 0%, rgba(136, 103, 255, 0) 55%), #ffffff;
  }

  border: 1px solid #ebe7fb;
  border-radius: 12px;
  background: #ffffff;
  color: #445a7c;
  font: inherit;
  font-size: 13px;
}

#app-view .screening-agent-success-row.static {
  cursor: default;

  #app-view .screening-agent-success-qr-panel {
    grid-template-columns: 1fr;
  }

  #app-view .screening-agent-success-qr-copy {
    align-items: flex-start;
  }
}

#app-view .screening-agent-success-row:not(.static) {
  cursor: pointer;
}

#app-view .screening-agent-success-row-label {
  font-weight: 600;
}

#app-view .screening-agent-success-row-icon,
#app-view .screening-agent-success-row-meta {
  color: #6d7d98;
  font-size: 12px;
  font-weight: 600;
}

#app-view .screening-agent-created-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  background: rgba(15, 18, 26, 0.96);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(15, 18, 26, 0.34);
  z-index: 3000;
}

#app-view .screening-agent-created-toast.active {
  display: inline-flex;
}

#app-view .screening-setup-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 1140px);
  max-height: min(88vh, 840px);
  min-height: 0;
  background: #f7f9fe;
  border: 1px solid #d8dfef;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(21, 28, 48, 0.24);
  overflow: hidden;
}

#app-view .screening-setup-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

#app-view .screening-setup-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#app-view .screening-setup-title-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

#app-view .screening-setup-topbar h4 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: #172033;
}

#app-view .screening-setup-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#app-view .screening-setup-topbar-link {
  border: none;
  background: transparent;
  color: #5d6f8d;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#app-view .screening-setup-close {
  border: none;
  background: transparent;
  color: #55617f;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#app-view .screening-setup-close:hover {
  background: rgba(85, 97, 127, 0.1);
  color: #111827;
}

#app-view .screening-setup-main {
  min-height: 0;
  overflow-y: auto;
  padding: 10px 20px 20px;
  scrollbar-gutter: stable;
}

#app-view .screening-setup-tip {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e7e1bf;
  background: linear-gradient(180deg, #fffdf2 0%, #fff9e8 100%);
  color: #6b7280;
  font-size: 13px;
}

#app-view .screening-setup-hero,
#app-view .screening-setup-panel,
#app-view .screening-settings-panel {
  max-width: 100%;
}

#app-view .screening-questions-input {
  min-height: 210px;
}

#app-view .screening-setup-footer {
  padding-top: 12px;
  border-top: 1px solid #e1e7f3;
}

#app-view .screening-setup-sidebar {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px 20px;
  scrollbar-gutter: stable;
}

#app-view .screening-setup-main::-webkit-scrollbar,
#app-view .screening-setup-sidebar::-webkit-scrollbar {
  width: 10px;
}

#app-view .screening-setup-main::-webkit-scrollbar-track,
#app-view .screening-setup-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

#app-view .screening-setup-main::-webkit-scrollbar-thumb,
#app-view .screening-setup-sidebar::-webkit-scrollbar-thumb {
  background: rgba(127, 142, 168, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

#app-view .screening-setup-main::-webkit-scrollbar-thumb:hover,
#app-view .screening-setup-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(111, 71, 255, 0.4);
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.theme-dark #app-view .screening-setup-canvas,
body.theme-dark #app-view .screening-setup-sidebar,
body.theme-dark #app-view .screening-setup-role-select,
body.theme-dark #app-view .screening-setting-field select,
body.theme-dark #app-view .screening-questions-input,
body.theme-dark #app-view .screening-footer-btn.cancel,
body.theme-dark #app-view .screening-preview-btn,
body.theme-dark #app-view .screening-setup-tabs {
  background: #181d2c;
  border-color: #343b57;
  color: #edf2ff;
}

body.theme-dark #app-view .screening-setup-topbar h4 {
  color: #edf2ff;
}

body.theme-dark #app-view .screening-setup-tip {
  border-color: #343b57;
  background: rgba(255, 248, 210, 0.08);
  color: #c7cde2;
}

body.theme-dark #app-view .screening-setup-close {
  color: #98a2c7;
}

body.theme-dark #app-view .screening-setup-close:hover {
  background: rgba(152, 162, 199, 0.12);
  color: #ffffff;
}

body.theme-dark #app-view .screening-setup-main::-webkit-scrollbar-thumb,
body.theme-dark #app-view .screening-setup-sidebar::-webkit-scrollbar-thumb {
  background: rgba(152, 162, 199, 0.35);
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.theme-dark #app-view .screening-setup-main::-webkit-scrollbar-thumb:hover,
body.theme-dark #app-view .screening-setup-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(169, 152, 255, 0.45);
  border: 2px solid transparent;
  background-clip: padding-box;
}


@media (max-width: 768px) {
  #app-view .screening-setup-page {
    padding: 12px;
  }

  #app-view .screening-setup-topbar,
  #app-view .screening-setup-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #app-view .screening-setup-topbar {
    padding: 16px 16px 0;
  }

  #app-view .screening-setup-topbar-actions {
    justify-content: space-between;
  }
}

/* ── Video Upload & Transcript View ─────────────────────────────────────── */
.video-view {
  padding: 24px;
}

.recordings-view {
  padding: 24px;
}

.recordings-shell {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recordings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.recordings-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recordings-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.recordings-subtext {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.recordings-status {
  border: 1px dashed rgba(34, 70, 144, 0.24);
  border-radius: 12px;
  background: #f8fbff;
  color: #3b4f76;
  padding: 12px;
  font-size: 12.5px;
}

.recordings-list {
  display: grid;
  gap: 10px;
}

.recording-card {
  border: 1px solid rgba(60, 94, 170, 0.2);
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
  display: grid;
  gap: 8px;
}

.recording-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.recording-card-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  word-break: break-word;
}

.recording-delete-btn {
  appearance: none;
  border: 1px solid rgba(219, 54, 54, 0.38);
  background: #fff0f0;
  color: #b32626;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 10px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.recording-delete-btn:hover {
  filter: brightness(0.96);
}

.recording-card-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.recording-card-preview {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
  background: rgba(47, 109, 241, 0.06);
  border-radius: 10px;
  padding: 10px;
}

.recording-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recording-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #2f6df1, #4f8eff);
}

.recording-open-link.secondary {
  color: #2f5fcf;
  background: #edf3ff;
}

.recording-open-link:hover {
  filter: brightness(0.95);
}

.video-upload-shell {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-upload-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.video-upload-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Drop zone */
.video-drop-zone {
  border: 2px dashed var(--accent, #7c5cfc);
  border-radius: 16px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: var(--card-bg);
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
}

.video-drop-zone:hover,
.video-drop-zone.drag-over {
  background: color-mix(in srgb, var(--accent, #7c5cfc) 8%, var(--card-bg));
  border-color: var(--accent, #7c5cfc);
}

.video-drop-icon {
  color: var(--accent, #7c5cfc);
  opacity: 0.85;
}

.video-drop-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.video-drop-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.video-browse-btn {
  margin-top: 8px;
  padding: 10px 28px;
  background: var(--accent, #7c5cfc);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.video-browse-btn:hover {
  opacity: 0.88;
}

/* Progress */
.video-progress-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-primary);
}

.video-file-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.video-progress-pct {
  font-weight: 700;
  color: var(--accent, #7c5cfc);
}

.video-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent, #7c5cfc);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.video-progress-status {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Transcript result */
.video-transcript-result {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.video-transcript-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.video-transcript-toolbar h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.mom-output-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.video-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.video-copy-btn {
  padding: 6px 16px;
  background: var(--accent, #7c5cfc);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.video-copy-btn:hover {
  opacity: 0.85;
}

.video-summarize-btn {
  padding: 6px 16px;
  background: linear-gradient(135deg, #7c5cfc, #a78bfa);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.video-summarize-btn:hover {
  opacity: 0.85;
}

.video-summarize-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.video-summary-result {
  background: var(--card-bg);
  border: 1px solid var(--accent, #7c5cfc);
  border-radius: 12px;
  overflow: hidden;
}

body.theme-dark #app-view .recordings-status {
  border-color: rgba(118, 152, 219, 0.3);
  background: rgba(22, 33, 52, 0.9);
  color: #b7c7e3;
}

body.theme-dark #app-view .recording-card {
  border-color: rgba(109, 142, 211, 0.28);
  background: rgba(21, 31, 49, 0.92);
}

body.theme-dark #app-view .recording-delete-btn {
  border-color: rgba(255, 120, 120, 0.34);
  background: rgba(131, 37, 37, 0.3);
  color: #ffb4b4;
}

body.theme-dark #app-view .recording-card-preview {
  color: #d5e2f8;
  background: rgba(106, 145, 224, 0.14);
}

body.theme-dark #app-view .recording-open-link.secondary {
  background: rgba(58, 88, 148, 0.28);
  color: #b9d2ff;
}

/* ── Recording player modal ──────────────────────────────────────────────── */
.rec-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rec-player-overlay:not([hidden]) {
  display: flex;
}

.rec-player-shell {
  background: #14151e;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 252, 0.25);
  width: 100%;
  max-width: 1160px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.65);
}

.rec-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(124, 92, 252, 0.18);
  flex-shrink: 0;
}

.rec-player-title {
  font-size: 14px;
  font-weight: 600;
  color: #c8c9e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 44px);
}

.rec-player-send-mom-btn {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.22), rgba(124, 92, 252, 0.08));
  border: 1px solid rgba(124, 92, 252, 0.45);
  color: #d1c9ff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(124, 92, 252, 0.15);
  backdrop-filter: blur(8px);
}

.rec-player-send-mom-btn:hover {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.35), rgba(124, 92, 252, 0.15));
  border-color: rgba(124, 92, 252, 0.7);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 92, 252, 0.3);
}

.rec-player-send-mom-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(124, 92, 252, 0.2);
}

.rec-player-send-mom-btn:disabled {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.rec-player-close {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: #9a9bb8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.rec-player-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.rec-player-body {
  display: flex;
  flex: 1;
  min-height: 480px;
  overflow: hidden;
}

.rec-player-video-panel {
  flex: 0 0 62%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rec-player-video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display: block;
}

.rec-player-transcript-panel {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(124, 92, 252, 0.15);
  overflow: hidden;
}

.rec-player-transcript-header {
  padding: 12px 16px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c5cfc;
  border-bottom: 1px solid rgba(124, 92, 252, 0.15);
  flex-shrink: 0;
}

.rec-player-lines {
  flex: 1;
  overflow-y: auto;
  padding: 12px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 252, 0.3) transparent;
}

.rec-player-lines::-webkit-scrollbar {
  width: 5px;
}

.rec-player-lines::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 252, 0.3);
  border-radius: 4px;
}

.rec-transcript-line {
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #9a9bb8;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.1s;
  margin: 1px 0;
}

.rec-transcript-line:hover {
  background: rgba(124, 92, 252, 0.1);
  color: #c8c9e0;
}

.rec-transcript-line--active {
  background: rgba(124, 92, 252, 0.18);
  color: #e0deff;
  font-weight: 500;
  border-left: 3px solid #7c5cfc;
  padding-left: 11px;
}

.rec-transcript-line--clicked {
  background: rgba(111, 88, 255, 0.25);
  color: #fff;
  transform: scale(1.01);
  border-left: 3px solid #6f58ff;
  padding-left: 11px;
}

.rec-transcript-timestamp-badge {
  opacity: 0.5;
  font-size: 0.85em;
  margin-right: 8px;
  color: #6f58ff;
  font-weight: 500;
}

.rec-transcript-empty {
  padding: 20px 16px;
  color: #5a5c78;
  font-size: 13px;
  font-style: italic;
}

.rec-player-error-note {
  margin: 0 8px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245, 95, 95, 0.12);
  border: 1px solid rgba(245, 95, 95, 0.22);
  color: #f3c0c0;
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .rec-player-body {
    flex-direction: column;
  }

  .rec-player-video-panel {
    flex: 0 0 45%;
  }

  .rec-player-transcript-panel {
    flex: 1;
    border-left: none;
    border-top: 1px solid rgba(124, 92, 252, 0.15);
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
.video-transcript-text {
  padding: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-primary);
  white-space: pre-wrap;
  max-height: 480px;
  overflow-y: auto;
}

#app-view .mom-output-editor {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: 100px;
  border: none;
  outline: none;
  resize: vertical;
  background: transparent;
  box-sizing: border-box;
  font-family: inherit;
}

#app-view .mom-output-static-header {
  display: block;
}

#app-view .mom-output-static-header .mom-header-row {
  margin: 0;
}

#app-view .mom-output-static-header+.mom-output-editor {
  border-top: 1px solid var(--border);
}

#app-view .mom-output-editor::placeholder {
  color: var(--text-muted);
}

/* MoM formatted output */
#app-view .video-transcript-text .mom-header-row,
#app-view .ai-entry-body .mom-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: -20px -20px 24px;
  padding: 22px 24px 20px;
  background: linear-gradient(90deg, #7c5cfc 0%, #6f58ff 45%, #6b4cf4 100%);
}

#app-view .video-transcript-text .mom-title,
#app-view .ai-entry-body .mom-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  flex: 1;
}

#app-view .video-transcript-text .mom-timestamp,
#app-view .ai-entry-body .mom-timestamp {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  text-align: right;
}

#app-view .video-transcript-text .mom-section-heading,
#app-view .ai-entry-body .mom-section-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, #7c5cfc);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 26px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(124, 92, 252, 0.5);
}

#app-view .video-transcript-text .mom-subsection-heading,
#app-view .ai-entry-body .mom-subsection-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 16px 0 8px;
}

#app-view .video-transcript-text .mom-section-heading:first-child,
#app-view .ai-entry-body .mom-section-heading:first-child {
  margin-top: 0;
}

#app-view .video-transcript-text .mom-body,
#app-view .ai-entry-body .mom-body {
  margin: 2px 0 8px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.65;
}

#app-view .video-transcript-text .mom-list,
#app-view .ai-entry-body .mom-list {
  margin: 6px 0 14px 20px;
  padding: 0;
}

#app-view .video-transcript-text li,
#app-view .ai-entry-body li {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 3px 0 3px 16px;
  list-style: disc;
}

#app-view .mom-table-wrap {
  margin: 10px 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  background: var(--card-bg, #fff);
}

#app-view .mom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#app-view .mom-table th,
#app-view .mom-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: top;
}

#app-view .mom-table th {
  font-weight: 700;
  color: var(--accent, #7c5cfc);
  background: color-mix(in srgb, var(--accent, #7c5cfc) 8%, var(--card-bg, #fff));
}

#app-view .mom-table tbody tr:last-child td {
  border-bottom: none;
}

body.theme-dark #app-view .mom-table-wrap {
  background: #171c2b;
  border-color: #2d334a;
}

body.theme-dark #app-view .mom-table th,
body.theme-dark #app-view .mom-table td {
  border-bottom-color: #2d334a;
  color: #edf2ff;
}

body.theme-dark #app-view .mom-table th {
  background: rgba(124, 92, 252, 0.16);
  color: #c7baff;
}

body.theme-dark #app-view .video-transcript-text .mom-header-row,
body.theme-dark #app-view .ai-entry-body .mom-header-row {
  background: linear-gradient(90deg, #7c5cfc 0%, #6f58ff 45%, #6b4cf4 100%);
}

/* Save as PDF button */
.video-save-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 92, 252, 0.05);
  color: var(--accent, #7c5cfc);
  border: 1.5px solid rgba(124, 92, 252, 0.35);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(124, 92, 252, 0.06);
}

.video-save-pdf-btn:hover {
  background: var(--accent, #7c5cfc);
  color: #fff;
  border-color: var(--accent, #7c5cfc);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 92, 252, 0.25);
}

.video-save-pdf-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(124, 92, 252, 0.15);
}

.video-save-pdf-btn .pdf-btn-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-save-pdf-btn:hover .pdf-btn-icon {
  transform: translateY(1.5px);
}

body.theme-dark .video-save-pdf-btn {
  background: rgba(124, 92, 252, 0.08);
  color: #c7baff;
  border-color: rgba(124, 92, 252, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.theme-dark .video-save-pdf-btn:hover {
  background: linear-gradient(135deg, #7c5cfc 0%, #6f58ff 100%);
  color: #ffffff;
  border-color: #7c5cfc;
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.35);
}

/* ── Nav tooltips handled via JS (see meetflux-merged.js) ── */

/* ── Nav tooltip bubble (body-level, never clipped) ─────────────────────── */
#nav-tooltip {
  position: fixed;
  background: #1e1b4b;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#nav-tooltip.visible {
  opacity: 1;
  transform: translateX(0);
}

#nav-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #1e1b4b;
}

/* ── Today's Meetings Dashboard Card ────────────────────────────────────── */
.todays-meetings-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.todays-meetings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.todays-meetings-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.todays-meetings-refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.todays-meetings-refresh-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.todays-meetings-refresh-btn.spinning svg {
  animation: spin-icon 0.7s linear infinite;
}

@keyframes spin-icon {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.todays-meetings-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 20px;
}

.todays-meetings-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.todays-meetings-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.todays-meetings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.todays-meetings-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

.todays-meeting-item {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.todays-meeting-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.todays-meeting-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todays-meeting-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-teams {
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent-soft);
}

.badge-google {
  background: rgba(37, 119, 232, 0.12);
  color: #2577e8;
}

.todays-meeting-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.todays-meeting-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.todays-meeting-btn {
  padding: 5px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s;
}

.todays-meeting-btn:hover {
  opacity: 0.85;
}

.btn-join {
  background: #2577e8;
  color: #fff;
}

.btn-details {
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--border) !important;
}

/* Dark mode */
body.theme-dark .badge-google {
  background: rgba(91, 142, 255, 0.15);
  color: #88aaff;
}

body.theme-dark .btn-join {
  background: var(--accent-soft);
}

body.theme-dark .btn-details {
  background: var(--card-bg);
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════
   RECORDING SOURCE BADGES
═══════════════════════════════════════════════ */
.recording-source-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.recording-source-badge.bot {
  background-color: #e3f2fd;
  color: #1976d2;
}

.recording-source-badge.teams {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

/* Dark theme support for badges */
body.theme-dark #app-view .recording-source-badge.bot {
  background-color: rgba(25, 118, 210, 0.2);
  color: #90caf9;
}

body.theme-dark #app-view .recording-source-badge.teams {
  background-color: rgba(123, 31, 162, 0.2);
  color: #ce93d8;
}

/* ══ AI Assistant Floating Widget ══ */
.ai-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ai-widget-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cfc 0%, #5f87ff 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 2;
}
.ai-widget-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 92, 252, 0.45);
}
.ai-widget-fab:active {
  transform: translateY(0);
}

.ai-widget-popup {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(15, 20, 35, 0.15), 0 0 0 1px rgba(124, 92, 252, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
  z-index: 9901;
  overflow: hidden;
}

.ai-widget-container.is-open .ai-widget-popup {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.ai-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fafbff;
  border-bottom: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  cursor: grab;
  user-select: none;
}
.ai-widget-header:active {
  cursor: grabbing;
}

.ai-widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2340;
}
.ai-widget-title svg {
  color: #7c5cfc;
}

.ai-widget-close {
  background: none;
  border: none;
  color: #8b94ab;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.ai-widget-close:hover {
  background: rgba(21, 33, 68, 0.06);
  color: #1a2340;
}

.ai-widget-popup .interactive-panel-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: none;
  border-radius: 0 0 20px 20px;
  background: transparent;
  min-height: 400px;
}

body.dark-mode .ai-widget-popup {
  background: #0a0a0f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 92, 252, 0.2);
}
body.dark-mode .ai-widget-header {
  background: #0a0a0f;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
body.dark-mode .ai-widget-title {
  color: #f1f3f9;
}
body.dark-mode .ai-widget-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f3f9;
}

/* Fix ai-block layout inside popup */
.ai-widget-popup .ai-block {
  margin: 0;
  height: 100%;
}
body.dark-mode .ai-widget-popup .ai-block {
  background: #0a0a0f;
}
.ai-widget-popup .ai-feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: transparent;
  border: none;
}
.ai-widget-popup .ai-assistant-form {
  padding: 12px 16px 16px;
  background: transparent;
  border-top: none;
}
.ai-widget-popup .ai-context-badges {
  padding: 12px 16px 0;
  border-bottom: none;
}

/* Typing indicator */
.ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: #e6e9f2;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}
body.dark-mode .ai-typing-indicator {
  background: #23242c;
}
.ai-typing-indicator .dot {
  width: 6px;
  height: 6px;
  background: #8b94ab;
  border-radius: 50%;
  animation: ai-typing 1.4s infinite ease-in-out;
}
.ai-typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
.ai-typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-typing {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 1; }
}
.ai-widget-popup .ai-context-badges {
  padding: 12px 16px 0;
  border-bottom: none;
}

@media (max-width: 600px) {
  .ai-widget-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    border-radius: 0;
    transform: translateY(100%);
  }
  .ai-widget-container.is-open .ai-widget-popup {
    transform: translateY(0);
  }
  .ai-widget-header {
    border-radius: 0;
  }
}


/* -- Dashboard Loading Overlay -- */
.auth-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-loading-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.auth-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(124, 92, 252, 0) 0deg, rgba(91, 142, 255, 0.8) 180deg, #7c5cfc 360deg);
  animation: auth-spin 1.2s cubic-bezier(0.6, 0.1, 0.4, 0.9) infinite;
  margin-bottom: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(124, 92, 252, 0.25);
}
.auth-spinner::after {
  content: '';
  position: absolute;
  width: 46px;
  height: 46px;
  background: #ffffff;
  border-radius: 50%;
}

@keyframes auth-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#dashboard-loading-text {
  font-family: 'Sora', 'DM Sans', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #0d2144, #4b5877) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: auth-text-pulse 2s ease-in-out infinite;
  letter-spacing: -0.01em;
  margin: 0;
}

@keyframes auth-text-pulse {
  0%, 100% { opacity: 0.65; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* ═══════════════════════════════════════════════
   SETTINGS VIEW
═══════════════════════════════════════════════ */
.settings-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
  overflow: hidden;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.settings-header h3 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-subtext {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.settings-layout {
  display: flex;
  gap: 32px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.settings-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.settings-tab {
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.settings-tab:hover {
  background: rgba(124, 92, 252, 0.05);
  color: var(--accent);
}

.settings-tab.active {
  background: rgba(124, 92, 252, 0.1);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 40px 0;
  scrollbar-width: thin;
  min-width: 0;
}

.settings-panel {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.settings-panel.active {
  display: flex;
}

.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.settings-card h4 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.settings-form input[type="text"],
.settings-form select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.settings-form input[type="text"]:focus,
.settings-form select:focus {
  border-color: var(--accent);
}

.settings-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-direction: row !important;
}

.settings-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.settings-textarea {
  width: 100%;
  height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s;
}

.settings-textarea:focus {
  border-color: var(--accent);
}

.settings-help {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 12px;
}

.settings-save-btn {
  align-self: flex-start;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.settings-save-btn:hover {
  background: color-mix(in srgb, var(--accent) 85%, black);
}

.settings-danger-text {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0;
}

.settings-danger-btn {
  align-self: flex-start;
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-danger-btn:hover {
  background: #ef4444;
  color: #fff;
}

body.theme-dark .settings-danger-btn {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
}

body.theme-dark .settings-danger-btn:hover {
  background: #ef4444;
  color: #fff;
}
