/* ===== Design Tokens ===== */
:root {
  /* Colors */
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #1f2b47;
  --bg-input: #253350;
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0c0;
  --text-muted: #6b6b8d;
  --accent-primary: #6C63FF;
  --accent-primary-hover: #5a52e0;
  --accent-kanban: #00B4D8;
  --accent-scrum: #2DC653;
  --timer-green: #2DC653;
  --timer-amber: #FFB703;
  --timer-red: #E63946;
  --border-color: #2a3a5c;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

  /* Sizing */
  --header-height: 56px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== App Layout ===== */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

#app-header.hidden {
  display: none;
}

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

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

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.session-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.session-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  cursor: pointer;
  user-select: all;
}

/* ===== Phase Navigation ===== */
.phase-nav {
  display: flex;
  gap: 4px;
}

.phase-nav.hidden {
  display: none;
}

.phase-nav-item {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.phase-nav-item.active {
  color: var(--text-primary);
  background: var(--accent-primary);
}

.phase-nav-item.completed {
  color: var(--timer-green);
}

/* ===== View Container ===== */
#view-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Dashboard ===== */
.dashboard {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.dashboard-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow);
}

.dashboard-card h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.dashboard-card .subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 36px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input[type="text"]:focus {
  border-color: var(--accent-primary);
}

.form-group input[type="text"]::placeholder {
  color: var(--text-muted);
}

/* Methodology Picker */
.methodology-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.methodology-option {
  padding: 20px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.methodology-option:hover {
  border-color: var(--text-muted);
}

.methodology-option.selected {
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
}

.methodology-option.selected[data-method="kanban"] {
  border-color: var(--accent-kanban);
  background: rgba(0, 180, 216, 0.1);
}

.methodology-option.selected[data-method="scrum"] {
  border-color: var(--accent-scrum);
  background: rgba(45, 198, 83, 0.1);
}

.methodology-option .method-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.methodology-option .method-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.methodology-option[data-method="kanban"] .method-name {
  color: var(--accent-kanban);
}

.methodology-option[data-method="scrum"] .method-name {
  color: var(--accent-scrum);
}

/* Session Title Preview */
.session-title-preview {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

/* ===== Dashboard Footer ===== */
.dashboard-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.dashboard-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.dashboard-footer a:hover {
  color: var(--accent-primary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ===== Session View ===== */
.session {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: 1fr;
  gap: 0;
  height: calc(100vh - var(--header-height));
}

.session-main {
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  overflow-y: auto;
}

.session-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

/* Phase Display */
.phase-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.phase-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
}

.phase-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.phase-key-question {
  font-size: 20px;
  color: var(--accent-primary);
  font-style: italic;
  margin: 16px 0 32px;
  padding-left: 16px;
  border-left: 3px solid var(--accent-primary);
}

/* Phase Steps */
.phase-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.phase-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.phase-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.phase-step-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.phase-step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.phase-step.step-active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 0 16px rgba(108, 99, 255, 0.15);
}

.phase-step.step-completed {
  opacity: 0.6;
  border-color: var(--timer-green);
}

.phase-step.step-completed .phase-step-number {
  background: var(--timer-green);
}

/* ===== Timer ===== */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.timer-ring-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}

.timer-ring-wrapper svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 8;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--timer-green);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke 0.5s, stroke-dashoffset 0.3s;
}

.timer-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.timer-time {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  letter-spacing: -1px;
}

.timer-phase-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.timer-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.timer-overtime {
  color: var(--timer-red);
}

.timer-overtime .timer-time {
  color: var(--timer-red);
}

@keyframes timer-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.timer-flashing .timer-time {
  animation: timer-flash 1s infinite;
}

/* ===== Phase Progress Bar ===== */
.phase-progress {
  display: flex;
  gap: 3px;
  padding: 0 24px;
  height: 4px;
  background: var(--bg-secondary);
}

.phase-progress-segment {
  flex: 1;
  background: var(--border-color);
  border-radius: 2px;
  transition: background 0.3s;
}

.phase-progress-segment.active {
  background: var(--accent-primary);
}

.phase-progress-segment.completed {
  background: var(--timer-green);
}

/* ===== Ground Rules (shown in Phase A) ===== */
.ground-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.ground-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.ground-rule-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.ground-rule-text {
  font-size: 14px;
}

.ground-rule-text strong {
  display: block;
  margin-bottom: 2px;
}

.ground-rule-text span {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ===== Session Navigation Buttons ===== */
.session-nav {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
}

/* ===== Parking Lot ===== */
.parking-lot {
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.parking-lot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.parking-lot-title {
  font-size: 15px;
  font-weight: 600;
}

.parking-lot-empty {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 0;
}

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

.parking-lot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.parking-lot-item-topic {
  font-size: 14px;
  font-weight: 500;
}

.parking-lot-item-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.parking-lot-owner::before {
  content: '\uD83D\uDC64 ';
}

.parking-lot-date::before {
  content: '\uD83D\uDCC5 ';
}

.parking-lot-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.parking-lot-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
}

.parking-lot-input:focus {
  border-color: var(--accent-primary);
}

.parking-lot-delete {
  width: 28px;
  height: 28px;
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== Definition of Ready Checklist ===== */
.dor-checklist {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

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

.dor-title {
  font-size: 15px;
  font-weight: 600;
}

.dor-score {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.dor-progress-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.dor-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

.dor-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
}

.dor-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dor-item.checked {
  color: var(--timer-green);
}

.dor-item.checked .dor-item-text {
  text-decoration: line-through;
  opacity: 0.7;
}

.dor-item input[type="checkbox"] {
  accent-color: var(--timer-green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.dor-ready {
  text-align: center;
  font-weight: 700;
  color: var(--timer-green);
  font-size: 14px;
  padding: 8px;
  margin-top: 8px;
  background: rgba(45, 198, 83, 0.1);
  border-radius: var(--radius-sm);
  letter-spacing: 2px;
}

/* ===== Planning Poker ===== */
.poker {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}

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

.poker-title {
  font-size: 28px;
  font-weight: 700;
}

.poker-scale-select {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
}

.poker-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.poker-members, .poker-item-section, .poker-voting, .poker-results, .poker-history {
  margin-bottom: 24px;
}

.poker-member-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poker-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.poker-member-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.poker-member-status {
  font-size: 12px;
}

.poker-voted {
  color: var(--timer-green);
  font-weight: 600;
}

.poker-waiting {
  color: var(--text-muted);
}

.poker-vote-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 14px;
}

.poker-current-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
}

.poker-item-text {
  font-size: 16px;
  font-weight: 600;
}

.poker-add-item {
  display: flex;
  gap: 8px;
}

.poker-item-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}

.poker-item-input:focus {
  border-color: var(--accent-primary);
}

.poker-vote-row {
  margin-bottom: 12px;
}

.poker-vote-member {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.poker-cards {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.poker-card {
  width: 48px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s;
}

.poker-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.poker-card.selected {
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.2);
  color: var(--accent-primary);
}

.poker-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.poker-actions .btn {
  flex: 1;
}

/* Poker Results */
.poker-results {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.poker-results-header {
  text-align: center;
  margin-bottom: 16px;
}

.poker-consensus {
  font-size: 20px;
  font-weight: 700;
  color: var(--timer-green);
}

.poker-average {
  font-size: 16px;
  font-weight: 600;
  color: var(--timer-amber);
}

.poker-no-consensus {
  font-size: 16px;
  color: var(--text-muted);
}

.poker-histogram {
  display: flex;
  justify-content: center;
  gap: 12px;
  height: 100px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.poker-histogram-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 48px;
}

.poker-histogram-fill {
  width: 36px;
  background: var(--accent-primary);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.3s;
}

.poker-histogram-label {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.poker-histogram-count {
  font-size: 11px;
  color: var(--text-muted);
}

.poker-accept-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.poker-final-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-mono);
  outline: none;
}

.poker-final-input:focus {
  border-color: var(--accent-primary);
}

/* Poker History */
.poker-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poker-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.poker-history-name {
  font-size: 14px;
}

.poker-history-estimate {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--timer-green);
  font-size: 16px;
}

/* ===== Legal Pages ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  line-height: 1.7;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

.legal-page section {
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-page h3 {
  font-size: 15px;
  margin: 12px 0 6px;
  color: var(--text-secondary);
}

.legal-page p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.legal-page li {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}

.legal-page a {
  color: var(--accent-primary);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-nav {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* ===== Estimated Items Summary ===== */
.estimated-items-summary {
  margin: 24px 0;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* ===== Hidden Utility ===== */
.hidden {
  display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .session {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .session-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-color);
    max-height: 350px;
  }

  .session-main {
    padding: 24px;
  }

  .phase-title {
    font-size: 28px;
  }

  .ground-rules {
    grid-template-columns: 1fr;
  }

  .poker-vote-row {
    margin-bottom: 16px;
  }

  .poker-cards {
    gap: 4px;
  }

  .poker-card {
    width: 42px;
    height: 48px;
    font-size: 14px;
  }

  .poker-histogram {
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .dashboard-card {
    padding: 24px 20px;
  }

  .dashboard-card h1 {
    font-size: 24px;
  }

  .methodology-picker {
    grid-template-columns: 1fr;
  }

  #app-header {
    padding: 0 12px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    gap: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-left {
    gap: 10px;
  }

  .logo {
    font-size: 16px;
  }

  .session-title {
    font-size: 12px;
  }

  .phase-nav {
    flex-wrap: wrap;
    gap: 2px;
  }

  .phase-nav-item {
    padding: 4px 8px;
    font-size: 11px;
  }

  .session-main {
    padding: 16px;
  }

  .phase-title {
    font-size: 22px;
  }

  .phase-key-question {
    font-size: 16px;
  }

  .phase-step {
    padding: 14px;
    gap: 12px;
  }

  .phase-step-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .timer-ring-wrapper {
    width: 140px;
    height: 140px;
  }

  .timer-time {
    font-size: 32px;
  }

  .timer-controls {
    gap: 6px;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .poker {
    padding: 16px;
  }

  .poker-title {
    font-size: 22px;
  }

  .poker-card {
    width: 38px;
    height: 44px;
    font-size: 13px;
  }

  .poker-cards {
    gap: 3px;
  }

  .legal-page {
    padding: 24px 16px 40px;
  }

  .legal-page h1 {
    font-size: 24px;
  }

  .ground-rule {
    padding: 10px 12px;
    gap: 8px;
  }

  .ground-rule-icon {
    font-size: 20px;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== Print Styles (for PDF report) ===== */
@media print {
  body {
    background: white;
    color: #1a1a2e;
  }

  #app-header {
    display: none;
  }

  .btn, .timer-controls, .session-nav {
    display: none;
  }
}
