/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555;
  --border: #e0e0e0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.subtitle { color: var(--text-secondary); font-size: 1.25rem; margin-top: 0.25rem; }
.description { color: var(--text-secondary); max-width: 540px; margin-top: 1rem; font-size: 1.05rem; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}
.hero-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.hero .subtitle {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.75rem;
}
.hero .description {
  margin: 1rem auto 0;
  text-align: center;
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ─── How It Works ─────────────────────────────────────────────────────────── */
.how-it-works {
  margin: 0 0 2.5rem;
  text-align: center;
}
.how-it-works h2 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.step {
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-right: none; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  border: 1.5px solid #bfdbfe;
}
.step p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── Domain Picker ────────────────────────────────────────────────────────── */
.domain-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.domain-option input[type="radio"] { display: none; }
.domain-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1.25rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.domain-card:hover { border-color: var(--primary); background: #f0f4ff; }
.domain-option input[type="radio"]:checked + .domain-card {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.domain-icon { font-size: 2rem; }
.domain-card strong { font-size: 1rem; }
.domain-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }

/* ─── Forms ────────────────────────────────────────────────────────────────── */
.start-form, .submit-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  margin-top: 0;
  box-shadow: var(--shadow);
}
.form-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.form-header h2 { margin-bottom: 0.25rem; font-size: 1.35rem; }
.form-header p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.975rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #fff;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-hint { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.375rem; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.875rem;
  text-align: center;
  line-height: 1.6;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: #93b4f4; cursor: not-allowed; }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.875rem; }

/* ─── Error Message ────────────────────────────────────────────────────────── */
.error-msg {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ─── Project Page ─────────────────────────────────────────────────────────── */
.project-page { max-width: 900px; }

.timer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}
.timer-info { display: flex; flex-direction: column; }
.timer-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.countdown {
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}
.countdown.warning { color: var(--warning); }
.countdown.danger { color: var(--danger); }
.countdown.expired { color: var(--danger); }

.brief-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  line-height: 1.7;
}
.brief-content h1 { font-size: 1.75rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); padding-bottom: 0.75rem; }
.brief-content h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--primary); }
.brief-content h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.brief-content p { margin-bottom: 0.75rem; }
.brief-content ul, .brief-content ol { margin: 0.5rem 0 0.75rem 1.5rem; }
.brief-content li { margin-bottom: 0.375rem; }
.brief-content table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.9rem; }
.brief-content th, .brief-content td { padding: 0.5rem 0.75rem; border: 1px solid var(--border); text-align: left; }
.brief-content th { background: var(--bg); font-weight: 600; }
.brief-content code { background: var(--bg); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.875em; }
.brief-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0.75rem 0;
  max-height: 400px;
}
.brief-content pre code { background: none; padding: 0; color: inherit; }
.brief-content strong { font-weight: 600; }
.brief-content em { font-style: italic; color: var(--text-secondary); }

/* ─── Curveball Banner ──────────────────────────────────────────────────────── */
.curveball-banner {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  animation: curveballSlide 0.5s ease-out;
}
@keyframes curveballSlide {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.curveball-header {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #92400e;
  margin-bottom: 0.5rem;
}
.curveball-banner p {
  color: #78350f;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.project-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.project-actions .btn { flex: 1; }

/* ─── Submit Page ──────────────────────────────────────────────────────────── */
.submit-timer {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0 1.5rem;
  font-variant-numeric: tabular-nums;
}

.submit-result {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.result-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.submit-result h2 { margin-bottom: 0.5rem; }
.submit-result p { color: var(--text-secondary); }

/* ─── Resume Bar (full-width) ──────────────────────────────────────────────── */
.resume-bar {
  background: var(--primary);
  padding: 0.9rem 2rem;
}
.resume-bar-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.resume-bar-text {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.resume-bar-text strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.resume-bar-text span {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}
.resume-form {
  display: flex;
  gap: 0.5rem;
  flex: 2;
  min-width: 240px;
}
.resume-form input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
  transition: all 0.15s;
}
.resume-form input::placeholder { color: rgba(255,255,255,0.45); }
.resume-form input:focus {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}
.btn-resume {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.btn-resume:hover { background: #dbeafe; }
.btn-resume:active { transform: scale(0.98); }
.btn-resume:disabled { opacity: 0.55; cursor: not-allowed; }
.resume-error {
  max-width: 800px;
  margin: 0.6rem auto 0;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  color: #fff;
  font-size: 0.85rem;
}

/* ─── Page Header ──────────────────────────────────────────────────────────── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.company-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

/* ─── Admin Page ───────────────────────────────────────────────────────────── */
.admin-page { max-width: 1100px; }

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.admin-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.gate-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}
.gate-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.gate-summary-header h2 { margin-bottom: 0; }
.gate-summary-header .subtitle { font-size: 0.9rem; }
.gate-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gate-row {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.1fr 0.45fr 0.65fr 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.gate-row:first-child { border-top: 0; }
.gate-row span {
  display: block;
  color: var(--text-secondary);
}
.gate-failed {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.submissions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.submission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.15s;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.submission-card:hover { box-shadow: var(--shadow-lg); }
.submission-card.compare-mode { cursor: default; }
.submission-card .compare-checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}
.submission-card-content { flex: 1; min-width: 0; }
.submission-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.submission-card-header h3 { margin: 0; }
.submission-card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-late { background: #fef2f2; color: var(--danger); }
.badge-ontime { background: #f0fdf4; color: var(--success); }
.badge-reviewed { background: #eff6ff; color: var(--primary); }
.badge-score { background: #f0f4ff; color: var(--primary); font-variant-numeric: tabular-nums; }

/* ─── Review Panel ─────────────────────────────────────────────────────────── */
.review-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.review-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.review-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.review-meta-item {
  background: var(--bg);
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
}
.review-meta-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: block;
}

.review-rubric { margin-bottom: 1.5rem; }
.rubric-section {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rubric-section-header {
  background: var(--bg);
  padding: 0.75rem 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.rubric-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}
.rubric-item-text { flex: 1; font-size: 0.9rem; }
.rubric-item-points {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 65px;
  text-align: right;
}
.rubric-item-notes {
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: inherit;
}

/* ─── Score Slider ─────────────────────────────────────────────────────────── */
.rubric-item-slider {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  min-width: 130px;
}
.score-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.score-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.slider-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  min-width: 14px;
  text-align: center;
}
.slider-max {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.review-actions {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.review-actions .btn-primary { margin-top: 0.75rem; }

.score-summary {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin: 1rem 0;
  color: var(--primary);
}

/* ─── Comparison Table ─────────────────────────────────────────────────────── */
.comparison-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
}
.comparison-view h2 {
  margin-bottom: 1.25rem;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: center;
}
.comparison-table th {
  background: var(--bg);
  font-weight: 600;
  text-align: center;
}
.comparison-table td:first-child,
.comparison-table th:first-child {
  text-align: left;
  font-weight: 500;
}
.comparison-total {
  background: var(--bg);
}
.comparison-total td {
  font-size: 1rem;
}

.score-cell-green {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
}
.score-cell-yellow {
  background: #fef9c3;
  color: #854d0e;
  font-weight: 600;
}
.score-cell-red {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 600;
}

/* ─── Git Analysis ─────────────────────────────────────────────────────────── */
.git-analysis {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.git-analysis h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.git-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.git-stat {
  background: var(--surface);
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.git-stat .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: block;
}
.git-stat strong {
  font-size: 1.1rem;
}
.git-commits-list {
  max-height: 300px;
  overflow-y: auto;
}
.git-commits-list h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.git-commits-list ul {
  list-style: none;
  padding: 0;
}
.git-commits-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.git-commits-list li:last-child {
  border-bottom: none;
}
.git-commits-list code {
  background: var(--surface);
  padding: 0.1rem 0.375rem;
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--primary);
  flex-shrink: 0;
}
.git-commit-msg {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.git-commit-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.git-error {
  color: var(--danger);
  font-size: 0.9rem;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ─── Loading ──────────────────────────────────────────────────────────────── */
.loading {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 1rem; }
  .resume-bar { padding: 0.875rem 1rem; }
  .resume-bar-inner { flex-direction: column; gap: 0.75rem; }
  .resume-form { min-width: unset; width: 100%; }
  .hero h1 { font-size: 2.25rem; }
  .hero .subtitle { font-size: 1.1rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-last-child(-n+2) { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .start-form { padding: 1.25rem; }
  .domain-picker { grid-template-columns: 1fr; }
  .project-actions { flex-direction: column; }
  .timer-bar { flex-direction: column; gap: 0.5rem; text-align: center; }
  .gate-summary-header { flex-direction: column; align-items: flex-start; }
  .gate-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .submission-card-header { flex-direction: column; gap: 0.375rem; }
  .review-meta { grid-template-columns: 1fr; }
  .admin-header-row { flex-direction: column; }
  .rubric-item { flex-direction: column; }
  .rubric-item-slider { min-width: unset; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th,
  .comparison-table td { padding: 0.5rem; }
}
