/* ============================================
   LOGIN PAGE STYLES - Professional Dark Theme
   ============================================ */

/* Fonts - Add to HTML head:
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@400;500;600&display=swap" rel="stylesheet">
*/

/* Login Page Layout */
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'SF Pro Display', 'DM Sans', -apple-system, sans-serif;
}

.login-page * {
  box-sizing: border-box;
}

/* Left Panel - Branding */
.brand-panel {
  background: linear-gradient(145deg, var(--login-bg-secondary) 0%, var(--login-bg-primary) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(212, 168, 83, 0.06) 0%, transparent 50%);
  animation: subtleFloat 20s ease-in-out infinite;
}

.brand-panel::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 60%);
  animation: subtleFloat 25s ease-in-out infinite reverse;
}

@keyframes subtleFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.brand-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  animation: loginFadeInUp 0.8s ease-out;
}

@keyframes loginFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--login-accent) 0%, #B8912E 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  color: var(--login-bg-primary);
}

.logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--login-text-primary);
}

h2.brand-headline,
.brand-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--login-text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.brand-headline em {
  font-style: italic;
  color: var(--login-accent);
}

.brand-description {
  font-size: 1.125rem;
  color: var(--login-text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* Feature Pills */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--login-surface);
  border: 1px solid var(--login-border);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--login-text-secondary);
  animation: loginFadeInUp 0.8s ease-out backwards;
}

.feature-pill:nth-child(1) { animation-delay: 0.2s; }
.feature-pill:nth-child(2) { animation-delay: 0.3s; }
.feature-pill:nth-child(3) { animation-delay: 0.4s; }

.feature-pill svg {
  width: 16px;
  height: 16px;
  color: var(--login-accent);
}

/* Right Panel - Auth */
.auth-panel {
  background: var(--login-bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  position: relative;
}

.auth-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--login-border-strong), transparent);
}

.auth-container {
  width: 100%;
  max-width: 400px;
  animation: loginFadeIn 0.6s ease-out 0.2s backwards;
}

@keyframes loginFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--login-text-primary);
}

.auth-subtitle {
  color: var(--login-text-secondary);
  font-size: 0.9375rem;
}

/* Auth Card */
.auth-card {
  background: var(--login-bg-tertiary);
  border: 1px solid var(--login-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* Google Button */
.login-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--login-text-primary);
  color: var(--login-bg-primary);
  border: none;
  border-radius: 10px;
  font-family: 'SF Pro Display', 'DM Sans', -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.login-google-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.login-google-btn:active {
  transform: translateY(0);
}

.login-google-btn svg {
  width: 20px;
  height: 20px;
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  margin: 1.75rem 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--login-border);
}

.login-divider span {
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: var(--login-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--login-text-secondary);
  letter-spacing: 0.02em;
}

.login-form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--login-surface);
  border: 1px solid var(--login-border);
  border-radius: 10px;
  font-family: 'SF Pro Display', 'DM Sans', -apple-system, sans-serif;
  font-size: 1rem;
  color: var(--login-text-primary);
  transition: all 0.2s ease;
  outline: none;
}

.login-form-input::placeholder {
  color: var(--login-text-muted);
}

.login-form-input:hover {
  border-color: var(--login-border-strong);
}

.login-form-input:focus {
  border-color: var(--login-accent);
  box-shadow: 0 0 0 3px var(--login-accent-subtle);
}

.login-form-hint {
  font-size: 0.75rem;
  color: var(--login-text-muted);
}

.login-form-error {
  background: var(--login-error-bg);
  color: var(--login-error);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  display: none;
}

.login-form-error.show {
  display: block;
  animation: loginShake 0.4s ease;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Primary Button */
.login-btn-primary {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--login-accent) 0%, #C49A40 100%);
  color: var(--login-bg-primary);
  border: none;
  border-radius: 10px;
  font-family: 'SF Pro Display', 'DM Sans', -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(212, 168, 83, 0.3);
}

.login-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.4);
}

.login-btn-primary:active {
  transform: translateY(0);
}

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

/* Secondary Button */
.login-btn-secondary {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--login-surface);
  color: var(--login-text-primary);
  border: 1px solid var(--login-border-strong);
  border-radius: 10px;
  font-family: 'SF Pro Display', 'DM Sans', -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn-secondary:hover {
  background: var(--login-surface-hover);
  border-color: var(--login-text-muted);
}

/* Text Button */
.login-btn-text {
  background: none;
  border: none;
  color: var(--login-text-secondary);
  font-family: 'SF Pro Display', 'DM Sans', -apple-system, sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.login-btn-text:hover {
  color: var(--login-accent);
}

.login-btn-text svg {
  width: 16px;
  height: 16px;
}

/* Auth Footer */
.auth-footer {
  margin-top: 2rem;
  text-align: center;
}

.auth-switch {
  color: var(--login-text-secondary);
  font-size: 0.875rem;
}

.auth-switch a {
  color: var(--login-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-switch a:hover {
  color: var(--login-accent-hover);
}

/* Page Footer */
.login-page-footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.login-page-footer-text {
  font-size: 0.75rem;
  color: var(--login-text-muted);
}

/* Auth Modes */
.login-auth-mode {
  display: none;
}

.login-auth-mode.active {
  display: block;
  animation: loginFadeIn 0.3s ease;
}

/* Back Button */
.login-back-btn-row {
  margin-top: 1.5rem;
  text-align: center;
}

/* Google Sign-In Container */
.google-signin-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  padding: 2px 0;
  transition: all 0.2s ease;
}

/* Loading State */
.login-btn-loading {
  position: relative;
  color: transparent !important;
}

.login-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--login-bg-primary);
  border-right-color: transparent;
  border-radius: 50%;
  animation: loginSpin 0.6s linear infinite;
}

@keyframes loginSpin {
  to { transform: rotate(360deg); }
}

/* ============================================
   LOGIN PAGE RESPONSIVE STYLES
   ============================================ */

/* Tablet / Mobile */
@media (max-width: 768px) {
  .login-page {
    grid-template-columns: 1fr;
    flex-direction: column;
    justify-content: center;
  }

  .brand-panel {
    display: none;
    width: 100%;
    flex: none;
  }

  .auth-panel {
    padding: 2rem;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    flex: none;
  }

  .auth-panel::before {
    display: none;
  }

  .auth-container {
    max-width: 420px;
  }

  .auth-header {
    margin-bottom: 2rem;
  }

  .auth-header .logo-mark {
    justify-content: center;
    margin-bottom: 1.5rem;
    display: flex !important;
  }

  .auth-title {
    font-size: 1.75rem;
  }

  .login-page-footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .auth-panel {
    padding: 1.25rem;
    justify-content: flex-start;
    padding-top: 3rem;
  }

  .auth-container {
    width: 100%;
    max-width: 100%;
  }

  .auth-header {
    margin-bottom: 1.5rem;
  }

  .auth-header .logo-mark {
    margin-bottom: 1.25rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .logo-icon svg {
    width: 24px;
    height: 24px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-subtitle {
    font-size: 0.875rem;
  }

  .auth-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .login-form-input {
    padding: 0.75rem 0.875rem;
  }

  .login-btn-primary,
  .login-btn-secondary,
  .login-google-btn {
    padding: 0.8125rem 1.25rem;
    font-size: 0.9375rem;
  }

  .login-divider {
    margin: 1.5rem 0;
  }

  .login-divider span {
    font-size: 0.75rem;
  }

  .auth-footer {
    margin-top: 1.5rem;
  }

  .auth-switch {
    font-size: 0.8125rem;
  }

  .login-page-footer {
    margin-top: 1.5rem;
  }

  .login-page-footer-text {
    font-size: 0.6875rem;
  }

  .login-back-btn-row {
    margin-top: 1.25rem;
  }

  .login-btn-text {
    font-size: 0.8125rem;
  }

  .footer {
    padding: 0.625rem 1rem;
    font-size: 0.7rem;
  }

  .segment-speaker {
    font-size: 0.75rem;
  }

  .segment-time {
    font-size: 0.6875rem;
  }

  .results-card-value {
    font-size: 1.25rem;
  }

  .results-card-label {
    font-size: 0.6875rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .auth-panel {
    padding: 1rem;
    padding-top: 2rem;
  }

  .auth-card {
    padding: 1rem;
  }

  .auth-title {
    font-size: 1.375rem;
  }

  .login-form-group {
    gap: 0.375rem;
  }

  .login-form {
    gap: 1rem;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .auth-panel {
    padding: 1rem 2rem;
    justify-content: center;
  }

  .auth-header {
    margin-bottom: 1rem;
  }

  .auth-header .logo-mark {
    margin-bottom: 0.75rem;
  }

  .auth-card {
    padding: 1.25rem;
  }

  .login-form {
    gap: 0.875rem;
  }

  .login-divider {
    margin: 1rem 0;
  }

  .auth-footer {
    margin-top: 1rem;
  }

  .login-page-footer {
    display: none;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .login-btn-primary,
  .login-btn-secondary,
  .login-google-btn {
    min-height: 48px;
  }

  .login-form-input {
    min-height: 48px;
  }

  .login-btn-text {
    min-height: 44px;
    padding: 0.75rem;
  }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
  .auth-panel {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

/* ============================================
   LEGACY LOGIN STYLES (kept for compatibility)
   ============================================ */

/* Login Container - Legacy */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.login-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s;
  background: var(--surface);
  color: var(--text-primary);
}

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

.form-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.form-error {
  background: rgba(229, 72, 77, 0.12);
  color: #E5484D;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
  padding: 0.875rem 1rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--primary-color);
}

.login-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin: 2rem 0 0;
}

/* Auth Modes - Legacy */
.auth-mode {
  margin-bottom: 1rem;
}

.auth-mode-title {
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Auth Divider - Legacy */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  padding: 0 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Auth Options - Legacy */
.auth-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Password Hint */
.password-hint {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Button Large */
.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

/* Onboarding */
.onboarding-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
}

.onboarding-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.onboarding-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.onboarding-subtitle {
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

.onboarding-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.onboarding-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--radius-md);
}

.onboarding-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.onboarding-icon.done {
  background: rgba(48, 164, 108, 0.15);
  color: #30A46C;
}

.onboarding-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.onboarding-text strong {
  color: var(--text-primary);
}

.onboarding-text span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ============================================
   SKELETON LOADING STYLES
   ============================================ */

.meeting-card--skeleton {
  pointer-events: none;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.skeleton-line {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-title {
  height: 1.25rem;
  width: 60%;
}

.skeleton-meta {
  height: 0.875rem;
  width: 40%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   TOAST - MOBILE-SAFE POSITIONING
   ============================================ */

.toast {
  position: fixed;
  bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  padding: 0.875rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  z-index: 10001;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

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

.toast--success {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.12);
}

.toast--warning {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* Small screens - edge-to-edge toast */
@media (max-width: 400px) {
  .toast {
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(100%);
    max-width: none;
  }

  .toast--visible {
    transform: translateX(0) translateY(0);
  }
}

/* User Menu */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Email Sent Banner */
.email-sent-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(48, 164, 108, 0.12);
  border: 1px solid rgba(48, 164, 108, 0.3);
  border-radius: var(--radius-md, 0.5rem);
  margin-bottom: 1rem;
  color: var(--success-color, #30A46C);
  font-size: 0.9rem;
}

.email-sent-banner svg {
  flex-shrink: 0;
  color: var(--success-color, #30A46C);
}

.email-sent-banner strong {
  color: var(--text-primary, #F7F9FB);
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-header h2 {
  font-size: 1.125rem;
  white-space: nowrap;
}

.export-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.export-buttons .btn {
  font-size: 0.8125rem;
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
}

/* Export secondary actions */
.export-secondary-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.25rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-color, #e5e7eb);
}

.export-secondary-actions .btn {
  font-size: 0.75rem;
  padding: 0.375rem 0.6rem;
}

/* Danger outline button */
.btn-danger-outline {
  color: var(--danger-color, #dc2626);
  border: 1px solid var(--danger-color, #dc2626);
  background: transparent;
}

.btn-danger-outline:hover {
  background: var(--danger-color, #dc2626);
  color: white;
}

/* Export dropdown */
.export-dropdown {
  position: relative;
}

.export-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.dropdown-chevron {
  transition: transform 0.2s;
}

.export-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.export-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  background: var(--surface, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-md, 0.5rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  min-width: 180px;
  z-index: 100;
  padding: 0.25rem 0;
}

.export-dropdown.open .export-dropdown-menu {
  display: block;
}

.export-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.15s;
}

.export-dropdown-item:hover {
  background: var(--hover-bg, rgba(255, 255, 255, 0.05));
}

.export-dropdown-divider {
  height: 1px;
  background: var(--border-color, #e5e7eb);
  margin: 0.25rem 0;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
  min-height: 300px;
  padding-top: 0.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.2s ease-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Summary Tab */
.summary-section {
  margin-bottom: 2rem;
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section h3 {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.summary-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.summary-section ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.summary-section li {
  margin-bottom: 0.5rem;
}

/* Key Points — card-style list items */
.summary-section--key-points ul {
  list-style: none;
  padding-left: 0;
}

.summary-section--key-points li {
  position: relative;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--login-accent, #D4A853);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  transition: background 0.15s;
}

.summary-section--key-points li:hover {
  background: var(--surface-hover, rgba(255,255,255,0.05));
}

.summary-section--key-points li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--login-accent, #D4A853);
  border-radius: 50%;
}

/* Collapsible toggle */
.summary-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.summary-section__header h3 {
  margin: 0;
}

.summary-section__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.summary-section--key-points.collapsed .summary-section__chevron {
  transform: rotate(-90deg);
}

.summary-section__collapsible {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  opacity: 1;
}

.collapsed .summary-section__collapsible {
  max-height: 0;
  opacity: 0;
}

/* Follow-ups — alert/notice box */
.summary-section--follow-ups {
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.follow-ups-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.follow-ups-header h3 {
  margin: 0;
}

.follow-ups-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a1a;
  background: var(--login-accent, #D4A853);
  border-radius: 999px;
}

.summary-section--follow-ups ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.summary-section--follow-ups li {
  position: relative;
  padding: 0.375rem 0 0.375rem 1rem;
  margin-bottom: 0.5rem;
}

.summary-section--follow-ups li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--login-accent, #D4A853);
  border-radius: 50%;
}

/* Timestamp link (shared) */
.summary-timestamp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0.5rem;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--login-accent, #D4A853);
  background: rgba(212, 168, 83, 0.1);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
  vertical-align: middle;
}

.summary-timestamp:hover {
  background: rgba(212, 168, 83, 0.22);
}

.summary-timestamp svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Transcript Tab */
.transcript-controls {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  max-width: 300px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s;
  background: var(--surface);
  color: var(--text-primary);
}

.search-input:focus {
  border-color: var(--primary-color);
}

.transcript-content {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.transcript-segment {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.4s ease;
}

.transcript-segment:last-child {
  border-bottom: none;
}

.transcript-segment.segment-highlight {
  background-color: rgba(212, 168, 83, 0.3);
}

.transcript-segment:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.segment-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: monospace;
  min-width: 60px;
}

.segment-speaker {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.875rem;
  min-width: 100px;
}

.segment-text {
  flex: 1;
  color: var(--text-secondary);
}

.segment-text mark {
  background: rgba(212, 168, 83, 0.3);
  padding: 0 2px;
  border-radius: 2px;
}

/* Confidence Badge */
.segment-confidence {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  min-width: 32px;
  text-align: center;
}

.confidence-high {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
}

.confidence-medium {
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
}

.confidence-low {
  background: rgba(248, 113, 113, 0.15);
  color: #F87171;
}

/* Low confidence word underline */
.word-conf-low {
  text-decoration: underline wavy rgba(248, 113, 113, 0.5);
  text-underline-offset: 3px;
  cursor: help;
}

/* Speaker Dot */
.speaker-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 0.375rem;
}

/* Search Wrapper */
.search-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 420px;
  gap: 0.375rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 0.375rem 0 0;
  background: var(--surface);
  transition: border-color 0.2s;
}
.search-wrapper:focus-within { border-color: var(--primary-color); }
.search-wrapper .search-input { border: none; outline: none; flex: 1; min-width: 0; max-width: none; }

/* Search Match Status & Nav Buttons */
.search-match-status { font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; min-width: 60px; text-align: center; }
.search-nav-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; border-radius: var(--radius-sm); padding: 0; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.search-nav-btn:hover { background: var(--background); color: var(--text-primary); }

/* Current Match Highlight */
.segment-text mark.current-match {
  background: rgba(212, 168, 83, 0.5);
  color: #fff;
  outline: 2px solid #D4A853;
  outline-offset: -1px;
}

/* Speaker Quick-Nav Chips */
.transcript-speaker-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.transcript-speaker-nav:empty { display: none; }
.speaker-nav-chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.3125rem 0.75rem; border: 1px solid var(--border-color); border-radius: 999px; background: var(--surface); font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.speaker-nav-chip:hover { background: var(--background); border-color: var(--text-secondary); color: var(--text-primary); }

/* Read-Time Meta Bar */
.transcript-meta-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.transcript-meta-bar:empty { display: none; }
.transcript-read-time { font-size: 0.75rem; color: var(--text-secondary); }
.transcript-read-time:empty { display: none; }

/* Actions Tab */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.actions-column h3 {
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

.items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.items-list li {
  background: var(--background);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.item-task, .item-decision {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.item-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Action & Decision Card Accents */
.items-list li.action-card {
  background: var(--surface);
  border-left: 4px solid #F59E0B;
  padding: 1rem 1rem 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.items-list li.decision-card {
  background: var(--surface);
  border-left: 4px solid #10B981;
  padding: 1rem 1rem 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Card hover lift */
.items-list li.action-card,
.items-list li.decision-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.items-list li.action-card:hover,
.items-list li.decision-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Highlight timestamp pill on card hover */
.items-list li.action-card:hover .summary-timestamp,
.items-list li.decision-card:hover .summary-timestamp {
  background: rgba(212, 168, 83, 0.18);
}

.action-card-top { display: flex; align-items: flex-start; gap: 0.625rem; }
.action-checkbox { flex-shrink: 0; width: 1.125rem; height: 1.125rem; border: 2px solid var(--border-color); border-radius: var(--radius-sm); margin-top: 0.125rem; background: var(--surface); }
.action-checkbox::after {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.25rem;
  border-left: 2px solid #F59E0B;
  border-bottom: 2px solid #F59E0B;
  transform: rotate(-45deg);
  margin: 0.1875rem auto 0;
}

.decision-card-top { display: flex; align-items: flex-start; gap: 0.625rem; }
.decision-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: #10B981; margin-top: 0.125rem; }
.action-card-meta, .decision-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.625rem; font-size: 0.75rem; color: var(--text-secondary); }

.assignee-avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: 0.625rem; font-weight: 600; color: #fff; text-transform: uppercase; flex-shrink: 0; }
.assignee-info { display: inline-flex; align-items: center; gap: 0.375rem; }

.priority-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; }
.priority-badge--high { background: rgba(239,68,68,0.12); color: #DC2626; }
.priority-badge--medium { background: rgba(245,158,11,0.12); color: #D97706; }
.priority-badge--low { background: rgba(16,185,129,0.12); color: #059669; }
.priority-badge--none { background: var(--background); color: var(--text-secondary); }
.priority-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; }
.priority-dot--high { background: #EF4444; }
.priority-dot--medium { background: #F59E0B; }
.priority-dot--low { background: #10B981; }
.priority-dot--none { background: var(--text-secondary); }

.due-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 500; }
.due-badge--overdue { background: rgba(239,68,68,0.12); color: #DC2626; }
.due-badge--today { background: rgba(239,68,68,0.12); color: #DC2626; }
.due-badge--week { background: rgba(245,158,11,0.12); color: #D97706; }
.due-badge--later { background: var(--background); color: var(--text-secondary); }
.due-badge--none { background: var(--background); color: var(--text-secondary); font-style: italic; }

.open-window-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; background: var(--background); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.open-window-btn:hover { background: var(--surface); border-color: var(--primary-color); color: var(--primary-color); }
.open-window-btn svg { flex-shrink: 0; }

/* Speakers Tab */
.speakers-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.speaker-card {
  background: var(--background);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.speaker-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

.speaker-info {
  flex: 1;
}

.speaker-name {
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.speaker-name:hover {
  background: rgba(255, 255, 255, 0.05);
}

.speaker-name-input {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-sm);
  outline: none;
  width: 100%;
  background: var(--surface);
  color: var(--text-primary);
}

.speaker-stats {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Speaker name row with edit icon */
.speaker-name-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.speaker-edit-icon {
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}

.speaker-card:hover .speaker-edit-icon {
  opacity: 0.6;
}

.speaker-edit-icon:hover {
  opacity: 1 !important;
  color: var(--primary-color);
}

/* Speaking time bar */
.speaker-bar {
  height: 4px;
  background: var(--border-color, #e5e7eb);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.speaker-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Character counter for rename input */
.speaker-name-counter {
  font-size: 0.675rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
  text-align: right;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  margin: 0 0 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Speaker Merge UI */
.speaker-actions-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--background);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.merge-hint {
  color: var(--text-secondary);
  font-size: 0.875rem;
  flex: 1;
}

.speaker-card.merge-mode {
  cursor: pointer;
  transition: all 0.2s;
}

.speaker-card.merge-mode:hover {
  background: rgba(212, 168, 83, 0.1);
}

.speaker-card.selected {
  background: rgba(212, 168, 83, 0.15);
  border: 2px solid var(--primary-color);
}

.speaker-select-checkbox {
  margin-right: 0.5rem;
}

.speaker-select-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.speaker-tools {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.speaker-tools .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* Transcript Segment Edit UI */
.transcript-segment {
  position: relative;
}

.segment-speaker-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 100px;
}

.segment-speaker {
  cursor: pointer;
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.segment-speaker:hover {
  background: rgba(255, 255, 255, 0.05);
}

.segment-speaker-select {
  font-size: 0.875rem;
  padding: 0.25rem;
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  min-width: 100px;
}

.segment-text {
  cursor: text;
}

.segment-text-input {
  width: 100%;
  font-size: inherit;
  font-family: inherit;
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 2.5em;
  background: var(--surface);
  color: var(--text-primary);
}

.segment-actions {
  display: none;
  gap: 0.25rem;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.transcript-segment:hover .segment-actions {
  display: flex;
}

.segment-edit-btn,
.segment-speaker-btn {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.375rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.segment-edit-btn:hover,
.segment-speaker-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.segment-edit-btn svg,
.segment-speaker-btn svg {
  pointer-events: none;
}

/* ============================================
   PROFILE & ACCOUNT SETTINGS
   ============================================ */

.profile-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.profile-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color, #D4A853), #B8912E);
  color: var(--login-bg-primary, #0F1419);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.profile-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.profile-email {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.profile-badges {
  display: flex;
  gap: 0.375rem;
}

.profile-badge {
  display: inline-block;
  padding: 0.1875rem 0.5rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.profile-badge--provider {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

.profile-section-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-section-group:last-child {
  border-bottom: none;
}

.profile-section-group h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-edit-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.profile-edit-row .history-search-input {
  flex: 1;
}

.profile-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.profile-detail-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.profile-detail-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.profile-usage-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-usage-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.profile-usage-fill {
  height: 100%;
  background: var(--primary-color, #D4A853);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.profile-usage-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.profile-section-danger {
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: rgba(239, 68, 68, 0.04);
}

.profile-danger-desc {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.user-name-btn {
  cursor: pointer;
  padding: 0.25rem 0.5rem !important;
}

.user-name-btn:hover .user-name {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-badges {
    justify-content: center;
  }

  .profile-edit-row {
    flex-direction: column;
  }

  .profile-edit-row .btn {
    align-self: stretch;
  }
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

.admin-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.admin-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
}

.admin-search-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.admin-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem !important;
}

.admin-role-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-role-badge--super_admin {
  background: rgba(212, 168, 83, 0.15);
  color: #D4A853;
}

.admin-role-badge--admin {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.admin-role-badge--member {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

.admin-status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-status-badge--active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.admin-status-badge--suspended {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.admin-status-badge--trial {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.admin-action-btns {
  display: flex;
  gap: 0.375rem;
}

.admin-action-btn {
  padding: 0.375rem 0.625rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.admin-action-btn:hover {
  background: var(--surface-hover, rgba(255, 255, 255, 0.06));
  color: var(--text-primary);
}

.admin-action-btn--danger {
  color: var(--danger-color, #ef4444);
}

.admin-action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

@media (max-width: 768px) {
  .admin-col-hide-mobile {
    display: none;
  }

  .admin-toolbar {
    flex-direction: column;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
  }

  .admin-action-btns {
    flex-direction: column;
  }
}

/* ============================================
   MEETING HISTORY (PAGINATED)
   ============================================ */

.history-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.history-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.history-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.history-search-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.history-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.history-search-input {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.history-search-input:focus {
  border-color: var(--primary-color);
}

.history-search-input::placeholder {
  color: var(--text-muted);
}

.history-filter-select {
  padding: 0.625rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  min-width: 140px;
}

.history-filter-select:focus {
  border-color: var(--primary-color);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
}

.history-page-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-width: 100px;
  text-align: center;
}

.recent-meetings-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .history-controls {
    flex-direction: column;
  }

  .history-search-input,
  .history-filter-select {
    min-height: 44px;
  }

  .history-filter-select {
    width: 100%;
  }

  .history-pagination {
    gap: 0.5rem;
  }

  .history-page-info {
    font-size: 0.8125rem;
  }
}

/* ============================================
   PDPA COMPLIANCE MODALS & TOASTS
   ============================================ */

/* PDPA Modal Overlay */
.pdpa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.pdpa-modal-overlay.active {
  display: flex;
}

.pdpa-modal {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: pdpaSlideIn 0.2s ease-out;
}

@keyframes pdpaSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pdpa-modal-header {
  padding: 1.75rem 1.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.pdpa-modal-header .pdpa-header-icon {
  font-size: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
}

.pdpa-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.pdpa-modal-body {
  padding: 1.25rem 1.75rem;
}

.pdpa-modal-footer {
  padding: 0 1.75rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pdpa-modal-footer .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .pdpa-modal-footer {
    grid-template-columns: 1fr;
  }
}

.pdpa-notice {
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.pdpa-notice-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.pdpa-notice-danger {
  background: rgba(229, 72, 77, 0.1);
  border-color: rgba(229, 72, 77, 0.25);
  color: var(--danger-color);
}

.pdpa-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--background);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pdpa-checkbox-label:hover {
  border-color: var(--primary-color);
  background: rgba(212, 168, 83, 0.06);
}

.pdpa-checkbox-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary-color);
  cursor: pointer;
  flex-shrink: 0;
}

/* Secondary option - Apple-like subtle styling */
.pdpa-checkbox-label.secondary-option {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.04);
  margin-top: 0.25rem;
}

.pdpa-checkbox-label.secondary-option:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.pdpa-checkbox-label.secondary-option span {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.option-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.7;
}

/* PDPA Consent Modal — Shield Icon */
.pdpa-header-icon-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212, 168, 83, 0.12);
  color: var(--primary-color, #D4A853);
  flex-shrink: 0;
}

/* PDPA Consent Modal — Disclosure List */
.pdpa-disclosure-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdpa-disclosure-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pdpa-disclosure-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--primary-color, #D4A853);
  margin-top: 0.4375rem;
}

/* Consent Status Badge (shown during recording/upload) */
.consent-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #22c55e;
  margin-bottom: 1rem;
}

.consent-status-badge svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* PDPA Consent Modal — Mobile-friendly touch targets */
@media (hover: none) and (pointer: coarse) {
  .pdpa-modal-footer .btn {
    min-height: 48px;
    font-size: 1rem;
  }

  .pdpa-checkbox-label {
    min-height: 52px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .pdpa-checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .pdpa-modal {
    width: 95%;
    max-width: none;
  }

  .pdpa-modal-header {
    padding: 1.25rem 1.25rem 0;
  }

  .pdpa-modal-body {
    padding: 1rem 1.25rem;
  }

  .pdpa-modal-footer {
    padding: 0 1.25rem 1.25rem;
  }

  .pdpa-disclosure-list li {
    font-size: 0.8125rem;
  }
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.2s ease-out;
  max-width: 360px;
}

.toast-success {
  border-color: var(--success-color);
  background: rgba(48, 164, 108, 0.12);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   COPY BUTTON & SECTION HEADER
   ============================================ */

/* Section header with copy button */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header-row h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-primary);
}

/* Copy button — small inline button with icon */
.copy-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--background, #f5f5f5);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary, #666);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-section-btn:hover {
  background: var(--surface, #fff);
  border-color: var(--primary-color, #3B82F6);
  color: var(--primary-color, #3B82F6);
}

.copy-section-btn svg {
  flex-shrink: 0;
}

/* Copied success state */
.copy-section-btn.copied {
  color: #059669;
  border-color: #059669;
  background: rgba(5, 150, 105, 0.08);
  animation: copyPulse 0.2s ease-out;
}

@keyframes copyPulse {
  0%  { transform: scale(1); }
  40% { transform: scale(1.08); }
  100%{ transform: scale(1); }
}

#copy-all-btn.copied {
  animation: copyPulse 0.2s ease-out;
}

/* Transcript controls layout — add flex for search + copy */
.transcript-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.transcript-controls .search-input {
  flex: 1;
}

.transcript-export-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.transcript-export-buttons .btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

.transcript-export-buttons .copy-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* ============================================
   MEETING META HEADER & OVERVIEW CARDS
   ============================================ */

/* Meeting Meta Header */
.meeting-meta {
  margin-bottom: 1.5rem;
}

.meeting-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.meeting-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.meta-stat svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Overview Cards Grid */
.results-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.results-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.results-card--overview {
  border-top: 3px solid var(--primary-color, #3B82F6);
}

.results-card--actions {
  border-top: 3px solid var(--success-color, #10B981);
}

.results-card--decisions {
  border-top: 3px solid var(--warning-color, #F59E0B);
}

.results-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.results-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.results-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--text-secondary, #6B7280);
}

.results-card--actions .results-card__badge {
  background: var(--success-color, #10B981);
}

.results-card--decisions .results-card__badge {
  background: var(--warning-color, #F59E0B);
}

.results-card__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.results-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.results-card__list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.results-card__list li:last-child {
  border-bottom: none;
}

.card-more {
  color: var(--primary-color, #3B82F6);
  cursor: pointer;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
}

.card-more:hover {
  text-decoration: underline;
}

/* Tab Panel Accent Borders */
.tab-panel--blue.active {
  border-left: 3px solid #D4A853;
  padding-left: 1.25rem;
}

.tab-panel--purple.active {
  border-left: 3px solid #8B5CF6;
  padding-left: 1.25rem;
}

.tab-panel--green.active {
  border-left: 3px solid #10B981;
  padding-left: 1.25rem;
}

.tab-panel--amber.active {
  border-left: 3px solid #F59E0B;
  padding-left: 1.25rem;
}

/* ============================================
   RESULTS SIDEBAR LAYOUT
   ============================================ */

/* Results section layout override */
#results-section {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
}

.results-main {
  flex: 1;
  min-width: 0;
  padding: 2rem;
  overflow-x: hidden;
}

/* Sidebar */
.results-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--background);
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar-inner { padding: 1.5rem 1.25rem; }
.sidebar-close-btn { display: none; }

.sidebar-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

/* Sidebar meta list */
.sidebar-meta-list { list-style: none; padding: 0; margin: 0; }
.sidebar-meta-list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--text-secondary); padding: 0.375rem 0;
}
.sidebar-meta-list li svg { flex-shrink: 0; opacity: 0.7; }

/* Sidebar nav buttons */
.sidebar-nav-links { display: flex; flex-direction: column; gap: 0.125rem; }
.sidebar-nav-btn {
  display: flex; align-items: center; width: 100%; text-align: left;
  padding: 0.5rem 0.75rem; border: none; background: transparent;
  border-radius: var(--radius-sm, 0.375rem); font-size: 0.875rem;
  color: var(--text-secondary); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.sidebar-nav-btn:hover { background: var(--surface); color: var(--text-primary); }
.sidebar-nav-btn.active { background: var(--primary-color); color: white; font-weight: 500; }

/* Sidebar stats grid */
.sidebar-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.sidebar-stat-item {
  text-align: center; padding: 0.625rem; background: var(--surface);
  border-radius: var(--radius-sm, 0.375rem); border: 1px solid var(--border-color);
}
.sidebar-stat-value { display: block; font-size: 1.125rem; font-weight: 600; color: var(--text-primary); }
.sidebar-stat-label { display: block; font-size: 0.6875rem; color: var(--text-secondary); margin-top: 0.125rem; }

/* Sidebar TOC */
.sidebar-toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.sidebar-toc-item { counter-increment: toc; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.sidebar-toc-item:last-child { border-bottom: none; }
.sidebar-toc-btn {
  display: flex; align-items: flex-start; gap: 0.5rem; width: 100%;
  text-align: left; padding: 0; border: none; background: transparent;
  cursor: pointer; font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.4;
  transition: color 0.15s;
}
.sidebar-toc-btn::before {
  content: counter(toc) "."; flex-shrink: 0; font-weight: 600;
  color: var(--primary-color); min-width: 1.25rem;
}
.sidebar-toc-btn:hover { color: var(--text-primary); }
.sidebar-toc-time { display: block; font-size: 0.6875rem; color: var(--text-secondary); opacity: 0.7; margin-top: 0.125rem; }

/* ============================================
   COLLAPSIBLE HEADER
   ============================================ */

.results-header-left { display: flex; align-items: center; gap: 0.75rem; }

.sidebar-hamburger {
  display: none;
  background: transparent; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 0.375rem); padding: 0.375rem;
  cursor: pointer; color: var(--text-secondary);
}
.sidebar-hamburger:hover { background: var(--background); }

.meeting-meta-compact { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.meeting-stats-inline {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8125rem; color: var(--text-secondary);
}

.meta-expand-btn {
  background: transparent; border: none; cursor: pointer;
  padding: 0.25rem; color: var(--text-secondary); display: inline-flex;
}
.meta-chevron { transition: transform 0.2s; }
.meeting-meta.expanded .meta-chevron { transform: rotate(180deg); }

.meeting-meta-expanded {
  display: none; margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}
.meeting-meta.expanded .meeting-meta-expanded { display: block; }

/* Desktop: sidebar has the full metadata, so hide expand button */
@media (min-width: 1024px) {
  .meta-expand-btn { display: none; }
  .meeting-meta-expanded { display: none !important; }
}

/* ============================================
   MOBILE DRAWER
   ============================================ */

@media (max-width: 1023px) {
  #results-section { flex-direction: column; }
  .results-main { padding: 1.5rem; }
  .sidebar-hamburger { display: inline-flex; }

  .results-sidebar {
    position: fixed; top: 0; left: 0; width: 300px; max-width: 85vw;
    height: 100vh; height: 100dvh; z-index: 1000;
    background: var(--surface); border-right: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .results-sidebar.open { transform: translateX(0); }

  .sidebar-close-btn {
    display: inline-flex; position: absolute; top: 1rem; right: 1rem;
    background: transparent; border: none; cursor: pointer;
    color: var(--text-secondary); padding: 0.25rem; z-index: 1;
  }

  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; }
  .sidebar-backdrop.visible { display: block; }
}

@media (min-width: 1024px) {
  .sidebar-backdrop { display: none !important; }
  .sidebar-hamburger { display: none !important; }
}

/* Responsive: Results header */
@media (max-width: 768px) {
  .results-main { padding: 1rem; }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Change 2: Full-width stacked export buttons */
  .export-buttons {
    width: 100%;
    flex-direction: column;
    gap: 0.625rem;
  }
  .export-buttons .btn,
  .export-dropdown {
    width: 100%;
  }
  .export-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .export-secondary-actions {
    flex-direction: column;
    gap: 0.625rem;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }
  .export-secondary-actions .btn {
    width: 100%;
  }
  #copy-all-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile tabs: horizontal scroll */
@media (max-width: 768px) {
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
    padding-bottom: 1px;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  /* Change 6: Tab indicator polish */
  .tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    position: relative;
    border-bottom: none;
  }

  .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
  }

  .tab.active {
    border-bottom-color: transparent;
  }

  /* Change 9: Tab content spacing */
  .tab-content {
    padding-top: 1rem;
  }
}

/* Sticky meeting meta on mobile/tablet */
@media (max-width: 1023px) {
  .meeting-meta {
    position: sticky;
    top: 60px;
    z-index: 50;
    background: var(--surface);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .meeting-meta {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0.625rem 1rem;
    top: 52px;
  }
}

/* Responsive: Cards */
@media (max-width: 768px) {
  /* Change 1: Apple-style card aesthetics */
  .results-cards {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .results-card {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 1rem;
  }

  .items-list li.action-card,
  .items-list li.decision-card {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-left-width: 3px;
  }

  /* Change 4: Speakers grid single column */
  .speakers-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .speaker-card {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 1rem;
  }

  /* Change 5: Actions grid single column */
  .actions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Change 3: Transcript segments as bubbles */
  .transcript-content {
    border: none;
    padding: 0.5rem 0;
  }

  .transcript-segment {
    border-radius: 10px;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0.25rem;
  }

  .transcript-segment:last-child {
    margin-bottom: 0;
  }

  .segment-time {
    min-width: auto;
  }

  .segment-speaker {
    min-width: auto;
  }

  /* Change 7: Search focus ring enhancement */
  .search-wrapper {
    border-radius: 10px;
  }

  .search-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
  }

  /* Change 8: Remove tab panel accent borders on mobile */
  .tab-panel--blue.active,
  .tab-panel--purple.active,
  .tab-panel--green.active,
  .tab-panel--amber.active {
    border-left: none;
    padding-left: 0;
  }

  /* Text minimization */
  .section-header-row h3 {
    font-size: 1rem;
  }

  .segment-speaker {
    font-size: 0.8125rem;
  }

  .copy-section-btn .btn-label {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .results-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-card--overview {
    grid-column: 1 / -1;
  }
}

/* Responsive: Very small screens */
@media (max-width: 360px) {
  .results-main { padding: 0.75rem; }
  .results-header { gap: 0.5rem; }
  .export-buttons { gap: 0.375rem; }
  .export-buttons .btn { font-size: 0.75rem; padding: 0.375rem 0.625rem; }
  .items-list li.action-card,
  .items-list li.decision-card { padding: 0.75rem 0.75rem 0.75rem 1rem; }
  .action-card-meta, .decision-card-meta { gap: 0.375rem; }
  .tab { font-size: 0.8125rem; padding: 0.625rem 0.75rem; }
  .meeting-meta { font-size: 0.75rem; }
}

/* ============================================
   ACCESSIBILITY — FOCUS INDICATORS
   ============================================ */

/* Global focus ring for interactive elements */
.tab:focus-visible,
.btn:focus-visible,
.btn-secondary:focus-visible,
.copy-section-btn:focus-visible,
.search-nav-btn:focus-visible,
.segment-edit-btn:focus-visible,
.segment-speaker-btn:focus-visible,
.export-dropdown-toggle:focus-visible,
.export-dropdown-item:focus-visible,
.open-window-btn:focus-visible,
.speaker-nav-chip:focus-visible,
.sidebar-nav-btn:focus-visible,
.sidebar-toc-btn:focus-visible,
.summary-timestamp:focus-visible {
  outline: 2px solid var(--primary-color, #3B82F6);
  outline-offset: 2px;
}

/* Key-points toggle focus */
#key-points-toggle:focus-visible {
  outline: 2px solid var(--primary-color, #3B82F6);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

/* Remove default outline when focus-visible handles it */
.tab:focus,
.btn:focus,
.copy-section-btn:focus,
.search-nav-btn:focus,
.segment-edit-btn:focus,
.segment-speaker-btn:focus,
.speaker-nav-chip:focus,
.sidebar-nav-btn:focus {
  outline: none;
}

/* Speaker index number (accessibility — supplements color) */
.speaker-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--border-color, #e5e7eb);
  color: var(--text-secondary);
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* Inside nav chips — slightly smaller */
.speaker-nav-chip .speaker-index {
  width: 1rem;
  height: 1rem;
  font-size: 0.5625rem;
}

/* ============================================
   TOUCH DEVICE IMPROVEMENTS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; }
  .btn-sm { min-height: 44px; }
  .tab { min-height: 44px; padding: 0.75rem 1rem; }

  .search-nav-btn { width: 44px; height: 44px; }
  .header-hamburger { min-width: 44px; min-height: 44px; }

  /* Segment edit/speaker buttons — always visible on touch */
  .segment-actions {
    display: flex;
    position: static;
    transform: none;
    margin-top: 0.5rem;
  }
  .segment-edit-btn,
  .segment-speaker-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }

  .speaker-nav-chip { min-height: 44px; padding: 0.5rem 0.875rem; }
  .copy-section-btn { min-height: 44px; padding: 0.5rem 0.875rem; }
  .sidebar-nav-btn { min-height: 48px; padding: 0.75rem; }
  .export-dropdown-item { min-height: 44px; padding: 0.75rem; }
  .meta-expand-btn {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .open-window-btn { min-height: 44px; }
  .sidebar-close-btn { min-width: 44px; min-height: 44px; }
  .sidebar-hamburger {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }

  /* Speaker edit icon — always visible on touch */
  .speaker-edit-icon { opacity: 0.6; }

  .pdpa-checkbox-label { min-height: 48px; }
  .pdpa-checkbox-label input[type="checkbox"] { width: 24px; height: 24px; }

  /* Style selector radio buttons */
  .style-option { min-height: 48px; }

  /* Tag input area */
  .tag-input { min-height: 44px; font-size: 16px; }

  /* History filter buttons */
  .history-filter-btn { min-height: 44px; padding: 0.5rem 1rem; }

  /* Meeting card (entire card is tappable) */
  .meeting-card { min-height: 56px; }

  /* Search inputs */
  .search-input, .transcript-search-input { min-height: 44px; font-size: 16px; }

  /* Upload dropzone */
  .upload-dropzone { min-height: 120px; }

  /* Consent modal checkbox */
  .consent-checkbox-label { min-height: 48px; }

  /* All text inputs - 16px prevents iOS Safari zoom on focus */
  input[type="text"], input[type="email"], input[type="password"], textarea, select {
    font-size: 16px;
  }
}

/* ============================================
   LANGUAGE OPTION - Summary Language Toggle
   ============================================ */

.language-option {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.language-option .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.language-option .checkbox-label:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 168, 83, 0.3);
  color: var(--text-primary);
}

.language-option .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
  margin: 0;
}

.language-option .checkbox-label:has(input:checked) {
  background: rgba(212, 168, 83, 0.08);
  border-color: rgba(212, 168, 83, 0.4);
  color: var(--text-primary);
}

.language-option-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile touch improvements */
@media (hover: none) and (pointer: coarse) {
  .language-option .checkbox-label {
    min-height: 48px;
    padding: 0.875rem 1.25rem;
  }

  .language-option .checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }
}

/* ============================================
   COMPLETION SECTION - Email Sent Success
   ============================================ */

.completion-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.completion-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: pulseSuccess 2s ease-in-out infinite;
}

@keyframes pulseSuccess {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.3);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(74, 222, 128, 0);
  }
}

.completion-icon svg {
  color: #4ade80;
}

.completion-icon.expired {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  animation: none;
}

.completion-icon.expired svg {
  color: #f59e0b;
}

.completion-container h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.completion-message {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.completion-email {
  margin-bottom: 1rem;
}

.completion-email strong {
  color: var(--accent);
  font-size: 1.125rem;
}

.completion-details {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 400px;
}

.completion-privacy-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.completion-privacy-note svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

#new-meeting-completion-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .completion-container {
    padding: 2rem 1rem;
  }

  .completion-container h2 {
    font-size: 1.5rem;
  }

  .completion-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
  }

  .completion-icon svg {
    width: 60px;
    height: 60px;
  }

  .completion-privacy-note {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Back button in results header */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-back:hover {
  color: var(--primary-color, #3B82F6);
  background: rgba(59, 130, 246, 0.08);
}

.btn-back svg {
  flex-shrink: 0;
}

.back-btn-text {
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .back-btn-text {
    display: none;
  }
}

/* ============================================
   RECENT MEETINGS SECTION - MOBILE FIRST
   ============================================ */

/* Mobile-first base */
.recent-meetings-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.recent-meetings-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.recent-meetings-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Primary CTA - full width, prominent on mobile */
.recent-meetings-header .btn-primary {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  min-height: 48px;
}

.recent-meetings-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.recent-meetings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.load-more-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.75rem;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: color 0.15s ease;
}

.load-more-btn:hover {
  color: var(--primary-color);
}

/* Skeleton cards - mobile styling */
.meeting-card--skeleton {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
}

/* Meeting Card - mobile refinement */
.meeting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 68px;
}

.meeting-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-color-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.meeting-card:active {
  transform: scale(0.98);
  background: var(--surface-hover);
}

/* Touch devices - immediate feedback */
@media (hover: none) and (pointer: coarse) {
  .meeting-card {
    -webkit-tap-highlight-color: transparent;
  }

  .meeting-card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}

.meeting-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.meeting-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meeting-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.meeting-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
}

.meeting-card-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.meeting-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.meeting-card-status--completed {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.meeting-card-status--processing {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

.meeting-card-status--pending {
  background: rgba(107, 114, 128, 0.12);
  color: var(--text-secondary);
}

.meeting-card-status--failed {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.meeting-card-status--expired {
  background: rgba(156, 163, 175, 0.12);
  color: #9CA3AF;
}

.meeting-card-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.meeting-card:hover .meeting-card-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Expired state */
.meeting-card--expired {
  opacity: 0.7;
}

.meeting-card--expired .meeting-card-title {
  color: var(--text-secondary);
}

/* Swipe-to-delete container (Apple-style) */
.meeting-card-swipe-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.meeting-card-swipe-content {
  position: relative;
  z-index: 2;
  background: var(--surface);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  -webkit-user-select: none;
}

.meeting-card-swipe-content.swiping {
  transition: none;
}

.meeting-card-swipe-content.swiped {
  transform: translateX(-80px);
}

.meeting-card-delete-action {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EF4444;
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  z-index: 1;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.meeting-card-delete-action:hover {
  background: #DC2626;
}

.meeting-card-delete-action:active {
  background: #B91C1C;
}

.meeting-card-delete-action svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Long-press context menu */
.meeting-card-context-menu {
  position: fixed;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  overflow: hidden;
  animation: contextMenuIn 0.15s ease-out;
}

@keyframes contextMenuIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.meeting-card-context-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.meeting-card-context-menu-item:hover,
.meeting-card-context-menu-item:active {
  background: var(--surface-hover);
}

.meeting-card-context-menu-item--danger {
  color: #EF4444;
}

.meeting-card-context-menu-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.meeting-card-context-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.3);
  animation: backdropIn 0.15s ease-out;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Long-press visual feedback */
.meeting-card.long-pressing {
  transform: scale(0.97);
  transition: transform 0.2s ease;
}

/* Remove border radius from card when inside swipe container (container has it) */
.meeting-card-swipe-container .meeting-card {
  border-radius: 0;
  border: none;
  margin: 0;
}

/* Add border to swipe container instead */
.meeting-card-swipe-container {
  border: 1px solid var(--border-color);
  background: #EF4444;
}

/* Desktop hover hint for swipe */
@media (hover: hover) {
  .meeting-card-swipe-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40%;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 2px 0 0 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 3;
  }

  .meeting-card-swipe-container:hover::after {
    opacity: 1;
  }

  .meeting-card-swipe-content.swiped + .meeting-card-delete-action + .meeting-card-swipe-container::after,
  .meeting-card-swipe-container:has(.swiped)::after {
    opacity: 0;
  }
}

/* Empty state - centered, mobile friendly */
.recent-meetings-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.recent-meetings-empty .empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.recent-meetings-empty h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.recent-meetings-empty p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  max-width: 280px;
}

.recent-meetings-empty .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-meetings-empty .btn-lg {
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  border-radius: 12px;
}

/* Desktop: side-by-side header */
@media (min-width: 640px) {
  .recent-meetings-container {
    padding: 2rem 1.5rem;
  }

  .recent-meetings-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .recent-meetings-header .btn-primary {
    width: auto;
    padding: 0.75rem 1.25rem;
  }

  .meeting-card {
    padding: 1rem 1.25rem;
  }

  .recent-meetings-empty {
    padding: 4rem 2rem;
  }
}

/* ============================================
   PRIVACY BANNER
   ============================================ */
.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary, #1a1f26);
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
  padding: 1rem 1.5rem;
  z-index: 1000;
  animation: privacySlideUp 0.2s ease-out;
}

@keyframes privacySlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.privacy-banner-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.privacy-banner-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #8b9aad);
  line-height: 1.5;
  flex: 1;
}

.privacy-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .privacy-banner-content {
    flex-direction: column;
    text-align: center;
  }
  .privacy-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */
.privacy-text {
  color: var(--text-secondary, #8b9aad);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.privacy-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-secondary, #8b9aad);
  font-size: 0.9rem;
  line-height: 1.8;
}

.privacy-list li {
  margin-bottom: 0.25rem;
}

.privacy-list strong {
  color: var(--text-primary, #f7f9fb);
}

.privacy-link {
  color: var(--accent, #d4a853);
  text-decoration: none;
  font-size: 0.85rem;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER ENHANCEMENTS
   ============================================ */
.footer-divider {
  color: var(--text-muted, #5c6b7d);
  margin: 0 0.35rem;
}

.footer-link {
  color: var(--text-secondary, #8b9aad);
  text-decoration: none;
  font-size: inherit;
}

.footer-link:hover {
  color: var(--accent, #d4a853);
  text-decoration: underline;
}

/* ============================================
   OFFLINE / NETWORK STATUS
   ============================================ */

/* Header network status pill */
.network-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.network-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: networkPulse 2s ease-in-out infinite;
}

@keyframes networkPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Full-width offline banner */
.offline-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.offline-banner svg {
  flex-shrink: 0;
}

/* Offline recording badge (shown during recording while offline) */
.offline-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.offline-status-badge--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.offline-status-badge--uploading {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.offline-status-badge--failed {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Offline queue badge on "Recent meetings" heading */
.offline-queue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f59e0b;
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}

/* Offline recordings group above server meetings */
.offline-recordings-group {
  margin-bottom: 1rem;
}

.offline-recordings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.offline-recordings-header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f59e0b;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offline-recordings-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Individual offline recording card */
.offline-recording-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--login-bg-tertiary, #252B33);
  border-left: 3px solid #f59e0b;
  gap: 0.75rem;
}

.offline-recording-card-content {
  flex: 1;
  min-width: 0;
}

.offline-recording-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--login-text-primary, #F7F9FB);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offline-recording-card-meta {
  font-size: 0.75rem;
  color: var(--login-text-secondary, #8B9AAD);
}

.offline-recording-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.offline-recording-card-actions .btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
}

.offline-recording-card--uploading {
  border-left-color: #3b82f6;
}

.offline-recording-card--failed {
  border-left-color: #ef4444;
}

/* Sync progress bar inside card */
.offline-sync-progress {
  height: 3px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.offline-sync-progress-bar {
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Offline responsive — tablet */
@media (max-width: 600px) {
  .network-status-text {
    display: none; /* Show only pulsing dot on small screens */
  }

  .offline-banner {
    font-size: 0.75rem;
    padding: 8px 12px;
    gap: 6px;
  }
}

/* Offline responsive — mobile */
@media (max-width: 480px) {
  .network-status {
    padding: 3px 8px;
  }

  .offline-status-badge {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .offline-recording-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .offline-recording-card-content {
    width: 100%;
  }

  .offline-recording-card-actions {
    width: 100%;
    gap: 0.5rem;
  }

  .offline-recording-card-actions .btn {
    flex: 1;
    min-height: 44px; /* iOS/Android minimum touch target */
    padding: 8px 12px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .offline-sync-progress {
    height: 4px;
    margin-top: 8px;
  }

  .offline-queue-badge {
    font-size: 0.65rem;
    margin-left: 4px;
  }

  .offline-recordings-header h3 {
    font-size: 0.8rem;
  }
}

/* ============================================
   SPEAKER TURN TRANSITIONS
   ============================================ */

.speaker-transition {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  margin: 0.125rem 0;
}

.transition-line {
  flex: 1;
  height: 1px;
  background: var(--border-color, rgba(255, 255, 255, 0.08));
}

.transition-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.transition-label .speaker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.transition-name {
  font-size: 0.7rem;
  color: var(--text-secondary, #999);
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================
   SPEAKER ROLE STYLES
   ============================================ */

.speaker-role-row {
  margin-top: 0.35rem;
}

.speaker-role-select {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  background: var(--bg-secondary, rgba(255, 255, 255, 0.04));
  color: var(--text-secondary, #aaa);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.speaker-role-select:hover,
.speaker-role-select:focus {
  border-color: var(--text-secondary, rgba(255, 255, 255, 0.25));
}

.speaker-role-badge {
  display: inline-block;
  font-size: 0.625rem;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--bg-secondary, rgba(255, 255, 255, 0.06));
  color: var(--text-secondary, #999);
  margin-left: 0.35rem;
  vertical-align: middle;
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================
   AI BADGE - GPT-4o Attribution
   ============================================ */

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  font-size: 0.6875rem;
  color: #10B981;
  font-weight: 500;
  margin-bottom: 1rem;
}

.ai-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================
   SUMMARY STYLE SELECTOR
   ============================================ */

.summary-style-option {
  margin-top: 1rem;
  padding: 0.75rem 0;
}

.style-selector-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.style-selector {
  display: inline-flex;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  overflow: hidden;
}

.style-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
}

.style-btn:last-child {
  border-right: none;
}

.style-btn:hover {
  background: rgba(212, 168, 83, 0.08);
  color: var(--text-primary);
}

.style-btn--active {
  background: rgba(212, 168, 83, 0.15);
  color: var(--login-accent, #D4A853);
  font-weight: 600;
}

/* ============================================
   ACTION ITEM EMAIL ASSIGNMENT
   ============================================ */

.action-card-email {
  padding: 0.5rem 0.75rem 0;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  margin-top: 0.5rem;
}

.action-email-input {
  width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  background: var(--background, #0a0a0a);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 6px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.action-email-input::placeholder {
  color: var(--text-muted, #666);
}

.action-email-input:focus {
  border-color: var(--login-accent, #D4A853);
}

/* ============================================
   DECISION SENTIMENT BADGES
   ============================================ */

.sentiment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  background: none;
}

.sentiment-badge:hover {
  opacity: 0.85;
}

.sentiment-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.sentiment-badge--pro {
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.sentiment-dot--pro {
  background: #10B981;
}

.sentiment-badge--con {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.sentiment-dot--con {
  background: #EF4444;
}

.sentiment-badge--neutral {
  color: var(--text-secondary, #999);
  border-color: var(--border-color, rgba(255, 255, 255, 0.12));
  background: rgba(255, 255, 255, 0.04);
}

.sentiment-dot--neutral {
  background: var(--text-secondary, #999);
}

/* ============================================
   MEETING ORGANIZATION: Pin, Tags, Folders, Filters, Search
   ============================================ */

/* Pin indicator */
.meeting-card--pinned {
  border-left: 2px solid var(--primary-color, #D4A853);
}

.pin-icon {
  width: 14px;
  height: 14px;
  color: var(--primary-color, #D4A853);
  vertical-align: middle;
  flex-shrink: 0;
}

/* Tag pills */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.4;
}

.tag-pill--sm {
  font-size: 0.625rem;
  padding: 0.0625rem 0.375rem;
}

.tag-pill--removable {
  cursor: default;
}

.tag-pill-remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0 0 0 0.125rem;
  opacity: 0.7;
}

.tag-pill-remove:hover {
  opacity: 1;
}

.meeting-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

/* Tag input section */
.tag-input-section {
  margin-top: 1.25rem;
}

.tag-input-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  background: var(--surface-hover, #252B33);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
}

.tag-input-container:focus-within {
  border-color: var(--primary-color, #D4A853);
}

.pending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tag-input {
  flex: 1;
  min-width: 80px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary, #e0e0e0);
  font-size: 0.875rem;
  padding: 0.125rem 0;
}

.tag-input::placeholder {
  color: var(--text-muted, #666);
}

.tag-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface, #1a1a2e);
  border: 1px solid var(--border-color-strong, rgba(255, 255, 255, 0.2));
  border-radius: 8px;
  margin-top: 4px;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tag-autocomplete-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary, #e0e0e0);
  transition: background 0.1s ease;
}

.tag-autocomplete-item:hover {
  background: var(--surface-hover, rgba(255, 255, 255, 0.06));
}

.tag-autocomplete-create {
  color: var(--primary-color, #D4A853);
  font-size: 0.8125rem;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
}

/* Folder chips bar */
.folder-chips-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 0 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.folder-chips-bar::-webkit-scrollbar {
  display: none;
}

.folder-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--surface, #1a1a2e);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  color: var(--text-secondary, #999);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.folder-chip:hover {
  border-color: var(--border-color-strong, rgba(255, 255, 255, 0.2));
  color: var(--text-primary, #e0e0e0);
}

.folder-chip--active {
  background: rgba(212, 168, 83, 0.12);
  border-color: var(--primary-color, #D4A853);
  color: var(--primary-color, #D4A853);
}

.folder-chip--add {
  border-style: dashed;
  font-size: 1rem;
  padding: 0.25rem 0.625rem;
}

.folder-chip-count {
  font-size: 0.6875rem;
  opacity: 0.7;
}

/* Filter panel */
/* Bulk Select & Delete */
.bulk-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface, #1a1a2e);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
}

.bulk-select-all-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
  user-select: none;
}

.bulk-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bulk-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color, #D4A853);
  cursor: pointer;
}

.bulk-meeting-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color, #D4A853);
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.meeting-card.bulk-selected {
  background: var(--surface-hover, rgba(212, 168, 83, 0.08));
  border-color: var(--primary-color, #D4A853);
}

#bulk-select-toggle.active {
  background: var(--primary-color, #D4A853);
  color: #000;
  border-color: var(--primary-color, #D4A853);
}

@media (max-width: 480px) {
  .bulk-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .bulk-actions-right {
    justify-content: flex-end;
  }
}

.filter-toggle-btn {
  position: relative;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--primary-color, #D4A853);
  color: #000;
  font-size: 0.625rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.filter-panel {
  background: var(--surface, #1a1a2e);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.filter-row {
  margin-bottom: 0.75rem;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #999);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.filter-date-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--surface-hover, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  color: var(--text-primary, #e0e0e0);
  font-size: 0.8125rem;
}

.date-input:focus {
  border-color: var(--primary-color, #D4A853);
  outline: none;
}

.filter-date-sep {
  color: var(--text-muted, #666);
  font-size: 0.8125rem;
}

.filter-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.filter-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--tag-bg, rgba(212, 168, 83, 0.12));
  color: var(--tag-color, #D4A853);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-tag-pill:hover {
  opacity: 0.8;
}

.filter-tag-pill--selected {
  border-color: var(--tag-color, #D4A853);
  box-shadow: 0 0 0 1px var(--tag-color, #D4A853);
}

.filter-no-tags {
  font-size: 0.8125rem;
  color: var(--text-muted, #666);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
}

/* Context menu enhancements */
.context-menu-divider {
  height: 1px;
  background: var(--border-color, rgba(255, 255, 255, 0.12));
  margin: 4px 0;
}

.context-menu-label {
  padding: 4px 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Global Search Modal */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.search-modal-overlay.active {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 600px;
  background: var(--surface, #1a1a2e);
  border: 1px solid var(--border-color-strong, rgba(255, 255, 255, 0.2));
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: searchModalIn 0.2s ease-out;
}

@keyframes searchModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
}

.search-input-row .search-icon {
  flex-shrink: 0;
  color: var(--text-muted, #666);
}

.search-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary, #e0e0e0);
  font-size: 1.0625rem;
}

.search-input-row input::placeholder {
  color: var(--text-muted, #666);
}

.search-kbd {
  flex-shrink: 0;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background: var(--surface-hover, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  font-size: 0.6875rem;
  color: var(--text-muted, #666);
  font-family: inherit;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-hint {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted, #666);
  font-size: 0.875rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background 0.1s ease;
  border-left: 2px solid transparent;
}

.search-result-item:hover,
.search-result-item--active {
  background: var(--surface-hover, rgba(255, 255, 255, 0.06));
  border-left-color: var(--primary-color, #D4A853);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #e0e0e0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.search-result-item .meeting-card-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.3;
}

.search-result-item:hover .meeting-card-arrow,
.search-result-item--active .meeting-card-arrow {
  opacity: 0.7;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .search-modal-overlay {
    padding-top: 5vh;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .search-modal {
    border-radius: 12px;
  }

  .folder-chips-bar {
    padding: 0 0 0.5rem;
  }

  .filter-date-inputs {
    flex-direction: column;
    gap: 0.375rem;
  }

  .filter-date-sep {
    display: none;
  }
}

/* ============================================
   LIGHT THEME COMPONENT OVERRIDES
   ============================================ */

[data-theme="light"] .brand-panel {
  background: linear-gradient(145deg, #E8EAF0 0%, #F8F9FA 100%);
}

[data-theme="light"] .search-modal {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .meeting-card-context-menu {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .toast {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .auth-card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .skeleton-line {
  background: linear-gradient(90deg,
    rgba(0,0,0,0.06) 25%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.06) 75%);
  background-size: 200% 100%;
}

[data-theme="light"] .recording-visualizer {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .recording-controls .btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .recording-controls .btn-secondary:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .input-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .language-option .checkbox-label {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .language-option .checkbox-label:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .speaker-name:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .segment-speaker:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pdpa-checkbox-label.secondary-option {
  border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pdpa-checkbox-label.secondary-option:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] #auth-loader {
  background: #F8F9FA;
}

[data-theme="light"] .spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: #B8912E;
}

/* ============================================
   QUICK RECORD BUTTON
   ============================================ */

.btn-record-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 12px;
}

.btn-record-fab svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   KEYBOARD SHORTCUTS MODAL
   ============================================ */

.shortcuts-modal {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: searchModalIn 0.2s ease-out;
}

.shortcuts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.shortcuts-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.shortcuts-list {
  padding: 0.75rem 0;
  max-height: 400px;
  overflow-y: auto;
}

.shortcuts-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1.5rem;
  transition: background 0.15s;
}

.shortcuts-row:hover {
  background: var(--hover-bg);
}

.shortcut-action {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.shortcut-keys {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.shortcut-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'SF Pro Display', -apple-system, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 1px 0 var(--border-color);
}

.shortcuts-header kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'SF Pro Display', -apple-system, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.shortcuts-header kbd:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

/* ============================================
   TRANSCRIPT SEGMENT NAVIGATION (Mobile)
   ============================================ */

.transcript-swipe-nav {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.transcript-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--hover-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.transcript-nav-btn:active {
  background: var(--primary-color);
  color: white;
}

.transcript-nav-indicator {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  min-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Only show on mobile when transcript tab active */
@media (min-width: 769px) {
  .transcript-swipe-nav { display: none !important; }
}

/* ============================================
   TAB SWIPE ANIMATIONS
   ============================================ */

.tab-content.swipe-left { animation: slideFromRight 0.2s ease-out; }
.tab-content.swipe-right { animation: slideFromLeft 0.2s ease-out; }

@keyframes slideFromRight {
  from { opacity: 0.5; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromLeft {
  from { opacity: 0.5; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   SKIP TO CONTENT (Accessibility)
   ============================================ */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  font-size: 1rem;
  z-index: 10000;
  text-decoration: none;
}

/* ============================================
   MOBILE MEETING CARDS (480px and below)
   ============================================ */
@media (max-width: 480px) {
  .recent-meetings-header-actions {
    flex-wrap: wrap;
    gap: 0.375rem;
    width: 100%;
  }

  .recent-meetings-header-actions .btn-sm {
    flex: 1;
    min-width: 0;
  }

  .recent-meetings-header .btn-record-fab {
    width: 100%;
    order: -1;
  }

  .meeting-card {
    padding: 0.75rem;
    min-height: auto;
  }

  .meeting-card-title {
    font-size: 0.875rem;
  }

  .meeting-card-meta {
    font-size: 0.75rem;
    gap: 0.25rem 0.5rem;
  }

  .meeting-card-status {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
  }
}
