@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --graphite-900: #263238;
  --graphite-800: #37474F;
  --graphite-700: #455A64;
  --graphite-500: #90A4AE;
  --graphite-100: #CFD8DC;
  --graphite-200: #EEEEEE;
  --graphite-300: #E0E0E0;
  --white: #FFFFFF;
  --accent: #78909C;
  --accent-light: #B0BEC5;
  --success: #66BB6A;
  --danger: #EF5350;
  --warning: #FFA726;
  --card-bg: #FAFAFA;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--graphite-800);
  color: var(--white);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--graphite-100);
  color: var(--graphite-900);
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== LOADING ===== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--graphite-300);
  border-top-color: var(--graphite-800);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-section {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-block {
  height: 80px;
  background: linear-gradient(90deg, var(--graphite-200) 25%, var(--graphite-300) 50%, var(--graphite-200) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: shimmer 1.5s infinite;
}

.skeleton-block.short { width: 60%; height: 48px; }

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

/* ===== ROLE SELECT ===== */
.role-select-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(135deg, var(--graphite-900) 0%, var(--graphite-800) 50%, var(--graphite-700) 100%);
}

.role-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInDown 0.6s ease;
}

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

.logo-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.role-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
}

.subtitle {
  color: var(--graphite-500);
  font-size: 1.1rem;
  margin-top: 8px;
}

.role-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.role-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: var(--white);
  font-family: inherit;
  font-size: inherit;
}

.role-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.25);
}

.role-emoji {
  font-size: 48px;
}

.role-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.role-desc {
  font-size: 0.85rem;
  color: var(--graphite-500);
  line-height: 1.4;
}

.welcome-name {
  margin-top: 32px;
  color: var(--graphite-500);
  font-size: 0.9rem;
}

/* ===== APP LAYOUT ===== */
.app-container {
  min-height: 100vh;
}

.app-header {
  background: var(--graphite-900);
  color: var(--white);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-small {
  font-size: 24px;
}

.app-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  background: var(--graphite-800);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--graphite-300);
}

.btn-back {
  background: none;
  border: 1px solid var(--graphite-700);
  color: var(--graphite-500);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-back:hover {
  border-color: var(--graphite-500);
  color: var(--white);
}

/* ===== HOST TABS ===== */
.host-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.host-tabs {
  display: flex;
  gap: 4px;
  background: var(--graphite-200);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--graphite-700);
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--white);
  color: var(--graphite-900);
  box-shadow: var(--shadow-sm);
}

/* ===== STORIES PANEL ===== */
.add-story-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--graphite-300);
}

.add-story-form h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--graphite-800);
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--graphite-300);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
  background: var(--card-bg);
  color: var(--graphite-900);
}

.input-field:focus {
  outline: none;
  border-color: var(--graphite-800);
  box-shadow: 0 0 0 3px rgba(33,33,33,0.08);
}

.textarea {
  resize: vertical;
  min-height: 60px;
}

.btn-primary {
  background: var(--graphite-900);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
  background: var(--graphite-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: var(--graphite-200);
  color: var(--graphite-800);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--graphite-300);
}

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

/* ===== STORY CARDS ===== */
.stories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--graphite-300);
  transition: all 0.2s;
  animation: fadeInUp 0.4s ease both;
}

.story-card:nth-child(1) { animation-delay: 0s; }
.story-card:nth-child(2) { animation-delay: 0.05s; }
.story-card:nth-child(3) { animation-delay: 0.1s; }
.story-card:nth-child(4) { animation-delay: 0.15s; }
.story-card:nth-child(5) { animation-delay: 0.2s; }

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

.story-card.active-story {
  border-color: var(--graphite-800);
  border-left: 4px solid var(--graphite-900);
  box-shadow: var(--shadow-md);
}

.story-card.estimated {
  opacity: 0.7;
}

.story-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.story-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--graphite-500);
  font-weight: 600;
}

.story-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.estimate-badge {
  background: var(--graphite-900);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.story-desc {
  font-size: 0.85rem;
  color: var(--graphite-700);
  margin-bottom: 12px;
}

.story-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-sm {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-sm.btn-secondary {
  background: var(--graphite-200);
  color: var(--graphite-800);
  padding: 6px 14px;
}

.btn-sm.btn-active {
  background: var(--graphite-900);
  color: var(--white);
}

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

.btn-sm.btn-danger:hover {
  background: var(--danger);
  color: var(--white);
}

/* ===== VOTING PANEL ===== */
.active-story-banner {
  background: var(--graphite-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.banner-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--graphite-500);
  display: block;
  margin-bottom: 8px;
}

.active-story-banner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.active-story-banner p {
  color: var(--graphite-500);
  margin-top: 8px;
  font-size: 0.9rem;
}

.vote-status-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.vote-count-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vote-count-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--graphite-900);
}

.vote-count-label {
  font-size: 0.85rem;
  color: var(--graphite-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.voters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.voter-chip {
  background: var(--white);
  border: 1px solid var(--graphite-300);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.voter-name {
  color: var(--graphite-800);
  font-weight: 500;
}

.voter-points {
  background: var(--graphite-900);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.voter-hidden {
  font-size: 1.1rem;
}

.host-controls {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.final-estimate-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--graphite-300);
  text-align: center;
}

.final-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--graphite-700);
  display: block;
  margin-bottom: 12px;
}

.final-points-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.final-pt-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--graphite-300);
  background: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--graphite-800);
}

.final-pt-btn:hover {
  border-color: var(--graphite-800);
}

.final-pt-btn.selected {
  background: var(--graphite-900);
  color: var(--white);
  border-color: var(--graphite-900);
}

/* ===== VOTER VIEW ===== */
.voter-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
}

.notification-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--graphite-900);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.9rem;
  z-index: 200;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
  box-shadow: var(--shadow-lg);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

.waiting-screen {
  text-align: center;
  padding: 60px 0;
}

.waiting-animation {
  margin-bottom: 24px;
}

.waiting-card {
  font-size: 72px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

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

.waiting-screen h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--graphite-800);
  margin-bottom: 8px;
}

.waiting-screen p {
  color: var(--graphite-500);
}

.stories-overview {
  margin-top: 40px;
  text-align: left;
}

.stories-overview h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--graphite-700);
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid var(--graphite-300);
}

.overview-item.done {
  opacity: 0.7;
}

.overview-status {
  font-size: 0.85rem;
}

.overview-pts {
  margin-left: auto;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--graphite-800);
}

/* ===== STORY DISPLAY (voter) ===== */
.story-display {
  background: var(--graphite-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.story-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  display: block;
  margin-bottom: 8px;
}

.story-display h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.story-description {
  color: var(--graphite-500);
  margin-top: 8px;
  font-size: 0.9rem;
}

.my-vote-status {
  text-align: center;
  margin-bottom: 20px;
}

.voted-indicator {
  color: var(--success);
  font-size: 0.9rem;
}

.voted-check {
  font-weight: 700;
  margin-right: 4px;
}

.vote-prompt {
  color: var(--graphite-700);
  font-size: 0.9rem;
}

/* ===== VOTING CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.voting-card {
  aspect-ratio: 3 / 4;
  background: var(--white);
  border: 2px solid var(--graphite-300);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-family: inherit;
  padding: 8px;
}

.voting-card:hover {
  border-color: var(--graphite-800);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.voting-card.selected {
  background: var(--graphite-900);
  border-color: var(--graphite-900);
  color: var(--white);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-suit {
  font-size: 0.75rem;
  color: var(--graphite-500);
  position: absolute;
}

.voting-card.selected .card-suit {
  color: var(--graphite-500);
}

.top-suit {
  top: 6px;
  left: 8px;
}

.bottom-suit {
  bottom: 6px;
  right: 8px;
  transform: rotate(180deg);
}

.card-points {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

/* ===== TEAM STATUS ===== */
.team-status {
  border-top: 1px solid var(--graphite-300);
  padding-top: 20px;
}

.team-status h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--graphite-700);
  margin-bottom: 12px;
}

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-chip {
  background: var(--white);
  border: 1px solid var(--graphite-300);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.team-chip.is-me {
  border-color: var(--graphite-800);
  background: var(--graphite-200);
}

.chip-name { font-weight: 500; }
.chip-status { color: var(--success); font-weight: 700; }

.no-votes-yet {
  color: var(--graphite-500);
  font-size: 0.85rem;
  font-style: italic;
}

/* ===== RESULTS ===== */
.results-area {
  text-align: center;
}

.results-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.results-display {
  margin-bottom: 24px;
}

.results-summary {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--graphite-900);
}

.stat-value.consensus {
  color: var(--success);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--graphite-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.consensus-banner {
  background: linear-gradient(135deg, var(--graphite-900), var(--graphite-800));
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 1rem;
  animation: fadeInUp 0.4s ease;
}

.distribution-chart {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  height: 120px;
  margin-bottom: 20px;
}

.dist-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dist-bar-container {
  height: 80px;
  width: 36px;
  display: flex;
  align-items: flex-end;
}

.dist-bar {
  width: 100%;
  background: var(--graphite-800);
  border-radius: 6px 6px 0 0;
  min-height: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: height 0.5s ease;
}

.dist-count {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 4px;
}

.dist-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--graphite-700);
}

.revealed-votes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

.revealed-vote-card {
  background: var(--white);
  border: 2px solid var(--graphite-300);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  animation: flipIn 0.5s ease both;
}

.revealed-vote-card:nth-child(1) { animation-delay: 0s; }
.revealed-vote-card:nth-child(2) { animation-delay: 0.08s; }
.revealed-vote-card:nth-child(3) { animation-delay: 0.16s; }
.revealed-vote-card:nth-child(4) { animation-delay: 0.24s; }
.revealed-vote-card:nth-child(5) { animation-delay: 0.32s; }
.revealed-vote-card:nth-child(6) { animation-delay: 0.4s; }

@keyframes flipIn {
  0% { opacity: 0; transform: rotateY(90deg) scale(0.8); }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}

.revealed-vote-card.is-me {
  border-color: var(--graphite-800);
}

.revealed-name {
  font-size: 0.8rem;
  color: var(--graphite-700);
}

.revealed-points {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--graphite-900);
}

.final-estimate-display {
  background: var(--graphite-200);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--graphite-800);
  margin-top: 16px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--graphite-500);
}

.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .role-cards {
    flex-direction: column;
    align-items: center;
  }

  .role-card {
    width: 100%;
    max-width: 280px;
  }

  .role-header h1 {
    font-size: 1.8rem;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .card-points {
    font-size: 1.3rem;
  }

  .app-header {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .app-header h1 {
    font-size: 1rem;
  }

  .host-container,
  .voter-container {
    padding: 16px;
  }

  .results-summary {
    gap: 20px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .distribution-chart {
    gap: 10px;
  }

  .dist-bar-container {
    width: 28px;
  }

  .user-badge {
    display: none;
  }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Planning Poker! Choose your role — Scrum Master to run the session, or Team Member to vote on estimates.", "view": "all", "highlight_selector": ".role-cards", "wait_for": "user_interaction"},
  {"step": 2, "narration": "As the Scrum Master, start by adding user stories to your backlog. Enter a title and optional description.", "view": "host", "highlight_selector": ".add-story-form", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Activate a story to open it up for voting. Team members will see it appear on their screens.", "view": "host", "highlight_selector": ".story-actions", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Switch to the Voting Room tab to monitor incoming votes and control the reveal.", "view": "host", "highlight_selector": ".host-tabs", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "As a Team Member, you'll see the active story and can tap a card to cast your estimate privately.", "view": "voter", "highlight_selector": ".cards-grid", "wait_for": "user_interaction"},
  {"step": 6, "narration": "Once all votes are in, the Scrum Master clicks 'Reveal All Votes' to show everyone's estimates simultaneously.", "view": "host", "highlight_selector": ".btn-primary.btn-large", "wait_for": "user_interaction"},
  {"step": 7, "narration": "After the reveal, review the distribution chart and set the final estimate for the story. Then move on to the next!", "view": "host", "highlight_selector": ".final-estimate-section", "wait_for": "tap_to_continue"}
]
-->

.participant-panel { margin-top: 32px; text-align: left; }
.participant-panel h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; margin-bottom: 12px; color: var(--graphite-700); }
.participant-list { display: flex; flex-direction: column; gap: 10px; }
.participant-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--graphite-300); border-radius: 8px; }
.participant-row.has-voted { border-color: var(--success); }
.participant-row.waiting { opacity: 0.9; }
.participant-identity, .team-chip-copy { display: flex; flex-direction: column; gap: 2px; }
.participant-name, .chip-name { font-weight: 600; color: var(--graphite-800); }
.participant-id, .chip-id, .revealed-id { font-size: 0.75rem; color: var(--graphite-500); font-family: 'Space Grotesk', sans-serif; }
.participant-status, .revealed-status { font-size: 0.8rem; font-weight: 700; color: var(--graphite-700); }
.participant-row.has-voted .participant-status, .revealed-vote-card.has-voted .revealed-status { color: var(--success); }
.team-chip.waiting, .revealed-vote-card.waiting { opacity: 0.75; }
.team-chip { align-items: flex-start; justify-content: space-between; min-width: 180px; }
.revealed-vote-card { align-items: stretch; }

.round-timer-panel { background: var(--white); border: 1px solid var(--graphite-300); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.round-timer-copy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.round-timer-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--graphite-500); }
.round-timer-value { font-family: 'Space Grotesk', sans-serif; color: var(--graphite-900); }
.round-timer-bar { height: 10px; background: var(--graphite-200); border-radius: 999px; overflow: hidden; }
.round-timer-fill { height: 100%; background: linear-gradient(90deg, var(--success), var(--accent)); border-radius: inherit; transition: width 1s linear; }
.round-timer-bar.expired .round-timer-fill { background: var(--danger); }
.round-timer-note { margin-top: 10px; font-size: 0.85rem; color: var(--graphite-500); }
.cards-grid.locked { opacity: 0.6; pointer-events: none; filter: grayscale(0.15); }
.round-host-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.round-host-controls .btn-large { width: auto; flex: 1; min-width: 220px; }
@media (max-width: 640px) { .round-timer-copy { flex-direction: column; align-items: flex-start; } .round-host-controls .btn-large { width: 100%; min-width: 0; } }

.participant-panel { margin-top: 32px; text-align: left; }
.participant-panel h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; margin-bottom: 12px; color: var(--graphite-700); }
.participant-list { display: flex; flex-direction: column; gap: 10px; }
.participant-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--graphite-300); border-radius: 8px; }
.participant-row.has-voted { border-color: var(--success); }
.participant-row.waiting { opacity: 0.9; }
.participant-identity, .team-chip-copy { display: flex; flex-direction: column; gap: 2px; }
.participant-name, .chip-name { font-weight: 600; color: var(--graphite-800); }
.participant-id, .chip-id, .revealed-id { font-size: 0.75rem; color: var(--graphite-500); font-family: 'Space Grotesk', sans-serif; }
.participant-status, .revealed-status { font-size: 0.8rem; font-weight: 700; color: var(--graphite-700); }
.participant-row.has-voted .participant-status, .revealed-vote-card.has-voted .revealed-status { color: var(--success); }
.team-chip.waiting, .revealed-vote-card.waiting { opacity: 0.75; }
.team-chip { align-items: flex-start; justify-content: space-between; min-width: 180px; }
.revealed-vote-card { align-items: stretch; }

.round-timer-panel { background: var(--white); border: 1px solid var(--graphite-300); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.round-timer-copy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.round-timer-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--graphite-500); }
.round-timer-value { font-family: 'Space Grotesk', sans-serif; color: var(--graphite-900); }
.round-timer-bar { height: 10px; background: var(--graphite-200); border-radius: 999px; overflow: hidden; }
.round-timer-fill { height: 100%; background: linear-gradient(90deg, var(--success), var(--accent)); border-radius: inherit; transition: width 1s linear; }
.round-timer-bar.expired .round-timer-fill { background: var(--danger); }
.round-timer-note { margin-top: 10px; font-size: 0.85rem; color: var(--graphite-500); }
.cards-grid.locked { opacity: 0.6; pointer-events: none; filter: grayscale(0.15); }
.round-host-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.round-host-controls .btn-large { width: auto; flex: 1; min-width: 220px; }
.velocity-panel { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--graphite-300); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); text-align: left; }
.velocity-panel h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; margin-bottom: 8px; color: var(--graphite-700); }
.velocity-panel p { color: var(--graphite-800); font-size: 0.95rem; }
@media (max-width: 640px) { .round-timer-copy { flex-direction: column; align-items: flex-start; } .round-host-controls .btn-large { width: 100%; min-width: 0; } }

.results-display { display: flex; flex-direction: column; gap: 20px; }
.velocity-panel { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--graphite-300); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); text-align: left; }
.velocity-panel h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; margin-bottom: 8px; color: var(--graphite-700); }
.velocity-panel p { color: var(--graphite-800); font-size: 0.95rem; }
.velocity-chart-canvas { width: 100%; height: 240px; display: block; }

.ai-suggestion-panel { margin: 12px 0 16px; padding: 16px; border: 1px solid var(--graphite-300); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.ai-suggestion-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.ai-suggestion-label { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--graphite-800); text-transform: uppercase; letter-spacing: 1px; }
.ai-suggestion-meta { font-size: 0.8rem; color: var(--graphite-500); }
.ai-suggestion-body { display: flex; gap: 16px; align-items: flex-start; }
.ai-suggestion-value { min-width: 88px; display: flex; align-items: baseline; gap: 4px; font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--graphite-900); }
.ai-suggestion-value span { font-size: 0.9rem; color: var(--graphite-500); font-weight: 600; }
.ai-suggestion-copy { flex: 1; color: var(--graphite-700); font-size: 0.9rem; }
.ai-match-list { margin-top: 8px; padding-left: 18px; color: var(--graphite-700); }
.ai-match-list li { margin-bottom: 4px; }
.ai-estimate-actions { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ai-estimate-actions .round-config-label { flex: 1; min-width: 240px; }
@media (max-width: 640px) { .ai-suggestion-body { flex-direction: column; } .ai-suggestion-header { flex-direction: column; align-items: flex-start; } .ai-estimate-actions { align-items: stretch; } }
