/* Eng Debate Studio - 白底科技风 · Web + H5 */
:root {
  --bg: #f8fafc;
  --bg-pure: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-card: 0 4px 24px rgba(14, 165, 233, 0.06);
  --border: rgba(0,0,0,0.08);
  --nav-h: 56px;
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #1a201c;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + var(--safe-top));
  padding-bottom: var(--safe-bottom);
  position: relative;
}

/* 极弱网格（与议会背景协调） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  padding-top: var(--safe-top);
  background: rgba(26, 32, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #e8e4dc;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: #c4b896;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  height: 40px;
}

.nav-links > li {
  display: flex;
  align-items: center;
  height: 40px;
}

.nav-links > li:last-child {
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
  height: 40px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #e8e4dc;
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: currentColor;
  }
}

/* Nav avatar & dropdown — 固定 1:1，防止被挤压变形 */
.nav-user-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.nav-avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  flex-shrink: 0;
}

.nav-avatar-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.nav-avatar-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  color: #e8e4dc;
}

.nav-avatar-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 4px 0;
  z-index: 200;
}

.nav-avatar-dropdown.hide {
  display: none !important;
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: none;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-dropdown-logout {
  color: var(--text-muted);
  font-family: inherit;
}

/* Pages container */
#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  min-height: calc(100vh - var(--nav-h) - 40px);
}

.page {
  display: none;
  animation: fadeIn 0.25s ease;
}

.page.active {
  display: block;
}

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

/* Home: 议会厅全页背景 + 透明层块 */
#page-home {
  position: relative;
  min-height: 100%;
}

.parliament-hero {
  position: relative;
  margin: 0 -16px 24px;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.parliament-bg {
  position: absolute;
  inset: 0;
}

.parliament-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 透明灰色遮罩：保留图片，仅叠加半透明层 */
.parliament-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.parliament-content {
  position: relative;
  z-index: 1;
  padding: 24px 16px 40px;
  text-align: center;
  width: 100%;
}

.parliament-title {
  font-size: 1.5rem;
  color: #e8dcc8;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}

.parliament-subtitle {
  color: rgba(232, 220, 200, 0.85);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.parliament-seats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.seat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  min-height: 100px;
  padding: 16px 12px;
  background: rgba(60, 45, 35, 0.75);
  border: 2px solid rgba(180, 160, 120, 0.5);
  border-radius: 12px;
  text-decoration: none;
  color: #e8dcc8;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.seat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 180, 100, 0.8);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 20px rgba(200, 180, 100, 0.15);
  color: #fff;
}

.seat-card--primary {
  background: rgba(50, 70, 55, 0.8);
  border-color: rgba(120, 160, 120, 0.5);
}

.seat-card--primary:hover {
  border-color: rgba(140, 200, 140, 0.7);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 24px rgba(120, 180, 120, 0.2);
}

.seat-icon {
  font-size: 2.25rem;
  margin-bottom: 8px;
  display: block;
  animation: seat-float 3s ease-in-out infinite;
}

.seat-card:nth-child(1) .seat-icon { animation-delay: 0s; }
.seat-card:nth-child(2) .seat-icon { animation-delay: 0.3s; }
.seat-card:nth-child(3) .seat-icon { animation-delay: 0.6s; }
.seat-card:nth-child(4) .seat-icon { animation-delay: 0.2s; }
.seat-card:nth-child(5) .seat-icon { animation-delay: 0.5s; }
.seat-card:nth-child(6) .seat-icon { animation-delay: 0.4s; }

@keyframes seat-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.seat-label {
  font-size: 0.9rem;
  font-weight: 600;
}

@media (min-width: 600px) {
  .parliament-title { font-size: 1.85rem; }
  .parliament-subtitle { font-size: 1.05rem; }
  .parliament-seats { gap: 20px 24px; }
  .seat-card { width: 110px; min-height: 110px; }
  .seat-icon { font-size: 2.5rem; }
}

/* Home: Stats strip */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-skill {
  font-size: 1.1rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Home: 透明层块（叠在议会背景上） */
#page-home .home-section {
  margin-bottom: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#page-home .home-section .section-title {
  color: #e8e4dc;
}

#page-home .home-section .section-desc,
#page-home .home-section .section-desc a {
  color: rgba(232, 228, 220, 0.85);
}

#page-home .home-section .home-module-more {
  color: #c4b896;
}

#page-home .home-section .card,
#page-home .home-features .feature-card,
#page-home .bp-team,
#page-home .home-1v1-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8e4dc;
}

#page-home .card-title,
#page-home .feature-card h3,
#page-home .bp-team strong {
  color: #e8e4dc;
}

#page-home .feature-card p,
#page-home .bp-team span,
#page-home .home-preview-meta,
#page-home .home-1v1-card p {
  color: rgba(232, 228, 220, 0.8);
}

#page-home .home-preview-item:hover,
#page-home .home-preview-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e8e4dc;
}

#page-home .home-preview-title {
  color: #e8e4dc;
}

/* Home: Sections */
.home-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.section-cta {
  margin-top: 16px;
}

/* Home: 模块预览（辩题 / 赛事 / 辩稿 / 1v1） */
.home-module {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

#page-home .home-module {
  border-top-color: rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.home-module-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.home-module-header .section-title {
  margin-bottom: 0;
}

.home-module-header .section-desc {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.home-module-more {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.home-module-more:hover {
  text-decoration: underline;
}

.home-module-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.home-module-preview .card {
  margin-bottom: 0;
}

.home-preview-item {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.home-preview-item:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.home-preview-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-preview-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.home-module-1v1 .home-module-header {
  align-items: center;
}

.home-module-1v1 .home-module-header .btn {
  margin-left: auto;
}

.home-1v1-card {
  padding: 20px;
  text-align: center;
}

.home-1v1-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.home-1v1-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .home-module-preview { grid-template-columns: 1fr; }
}

/* BP layout on home */
.bp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.bp-half h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.bp-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-team {
  padding: 12px 16px;
  margin-bottom: 0;
}

.bp-team strong { display: block; margin-bottom: 4px; }
.bp-team span { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .bp-layout { grid-template-columns: 1fr; }
}

/* Feature grid */
.home-features .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  text-align: center;
  padding: 24px 20px;
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .home-features .feature-grid { grid-template-columns: 1fr; }
}

/* Motion cards */
.motion-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.motion-card {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.motion-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.motion-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.motion-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.motion-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .motion-cards { grid-template-columns: 1fr; }
}

/* Quick links */
.home-quick .quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Profile stats */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  padding: 24px;
  align-items: stretch;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 4rem;
}

.profile-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  min-height: 1.5em;
  line-height: 1.5;
}

.profile-skill {
  font-size: 1.1rem;
  font-weight: 600;
}

.profile-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.profile-block-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-static-text {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0;
  min-height: 1.5em;
}

.profile-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 1.75rem; margin-bottom: 12px; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; margin-bottom: 16px; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }

p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(14, 165, 233, 0.15);
}

.card-title {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  touch-action: manipulation;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

/* Forms */
input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-pure);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Filters row */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.filters input,
.filters select {
  margin-bottom: 0;
  min-width: 120px;
}

@media (max-width: 600px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .filters input,
  .filters select {
    min-width: 0;
  }
}

/* List items */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.list-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.list-item .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 辩稿页：精选辩论稿卡片 */
.speeches-section {
  margin-bottom: 32px;
}

.speeches-section .section-title {
  margin-bottom: 4px;
}

.speeches-section .section-desc {
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.transcript-card {
  margin-bottom: 16px;
}

.transcript-event {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.transcript-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.transcript-motion {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

.transcript-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

/* Profile */
.profile-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.profile-avatar-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}

.profile-avatar-edit {
  font-size: 0.85rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-badges img,
.profile-badges .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-elevated);
}

/* Training */
.training-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.timer {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin: 12px 0;
  font-variant-numeric: tabular-nums;
}

.timer.warning { color: var(--warning); }
.timer.danger { color: var(--danger); }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

@media (max-width: 600px) {
  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.slot-card {
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.slot-card.drawn {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.slot-card .role {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.slot-card .team {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Voice / transcript */
.voice-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.1s, background 0.2s;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.voice-btn:hover {
  background: var(--accent-dark);
}

.voice-btn:active {
  transform: scale(0.95);
}

.voice-btn.recording {
  background: var(--danger);
  animation: pulse 1s infinite;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
  50% { opacity: 0.9; }
}

.transcript-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.9rem;
  white-space: pre-wrap;
  margin-top: 12px;
  color: var(--text);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

/* Utility */
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.hide { display: none !important; }

/* BP roles reference */
.bp-roles {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.bp-roles ul {
  margin-left: 1rem;
  margin-top: 4px;
}
