/* Base styles with Chase & Marshal branding */
:root {
  --brand-primary: #221161;
  --brand-accent: #81CFCD;
  --brand-white: #ffffff;
  --brand-gray-50: #f9fafb;
  --brand-gray-100: #f3f4f6;
  --brand-gray-200: #e5e7eb;
  --brand-gray-300: #d1d5db;
  --brand-gray-400: #9ca3af;
  --brand-gray-500: #6b7280;
  --brand-gray-600: #4b5563;
  --brand-gray-700: #374151;
  --brand-gray-800: #1f2937;
  --brand-gray-900: #111827;
  --brand-red: #ef4444;
  --brand-green: #10b981;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Custom branded colors from template */
.brand-primary { color: var(--brand-primary); }
.bg-brand-primary { background-color: var(--brand-primary); }
.brand-accent { color: var(--brand-accent); }
.bg-brand-accent { background-color: var(--brand-accent); }

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

html {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--brand-gray-900);
  scroll-behavior: smooth;
}

body {
  background-color: var(--brand-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  flex: 1;
  padding: 2rem 0;
}

/* Header */
.header {
  background-color: var(--brand-primary);
  color: var(--brand-white);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
}

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

.user-name {
  font-weight: 500;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
  background: var(--brand-white);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--brand-gray-200);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-gray-900);
  margin-bottom: 0.5rem;
}

.card-content {
  padding: 1.5rem;
}

/* Forms */
.form {
  max-width: 500px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--brand-gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-label.required::after {
  content: " *";
  color: var(--brand-red);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--brand-gray-300);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(34, 17, 97, 0.1);
}

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

.form-error {
  color: var(--brand-red);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.form-help {
  color: var(--brand-gray-500);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  line-height: 1;
}

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

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--brand-white);
}

.btn-primary:hover:not(:disabled) {
  background-color: #1a0d4d;
}

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

.btn-accent:hover:not(:disabled) {
  background-color: #6bb8b5;
}

.btn-secondary {
  background-color: var(--brand-gray-100);
  color: var(--brand-gray-700);
  border: 1px solid var(--brand-gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--brand-gray-200);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--brand-primary);
  color: var(--brand-white);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* File upload */
.file-upload-area {
  border: 2px dashed var(--brand-gray-300);
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--brand-primary);
  background-color: rgba(34, 17, 97, 0.02);
}

.file-upload-icon {
  width: 48px;
  height: 48px;
  color: var(--brand-gray-400);
  margin: 0 auto 1rem;
}

.file-upload-text {
  color: var(--brand-gray-600);
  margin-bottom: 0.5rem;
}

.file-upload-hint {
  color: var(--brand-gray-400);
  font-size: 0.875rem;
}

/* Progress bar */
.progress-container {
  margin: 1rem 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--brand-gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--brand-primary);
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--brand-gray-600);
  margin-top: 0.5rem;
  text-align: center;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
  background-color: rgba(129, 207, 205, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(129, 207, 205, 0.2);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--brand-gray-200);
}

.table th {
  background-color: var(--brand-gray-50);
  font-weight: 600;
  color: var(--brand-gray-700);
}

.table tbody tr:hover {
  background-color: var(--brand-gray-50);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--brand-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--brand-primary);
}

.stat-label {
  color: var(--brand-gray-600);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* Login page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
}

.login-card {
  background: var(--brand-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-logo {
  height: 60px;
  margin: 0 auto 2rem;
  display: block;
}

.login-title {
  text-align: center;
  color: var(--brand-gray-900);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .file-upload-area {
    padding: 2rem 1rem;
  }
  
  .login-card {
    margin: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .form-group .btn + .btn {
    margin-top: 0.5rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators for better accessibility */
.btn:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.drawer-link:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 1px solid var(--brand-gray-800);
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    border: 2px solid var(--brand-gray-800);
  }
}

/* ==========================================================================
   MOBILE-FIRST FIELD-WORKER DESIGN SYSTEM
   Used by login, dashboard and the step-by-step submission flow. Driven by
   per-portal branding variables (--brand-primary/secondary/accent/font).
   ========================================================================== */

:root {
  --brand-secondary: var(--brand-primary);
  --mf-radius: 16px;
  --mf-radius-sm: 12px;
  --mf-tap: 3.25rem;            /* min thumb-friendly tap target */
  --mf-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --mf-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
  --mf-tint: color-mix(in srgb, var(--brand-primary) 8%, #ffffff);
  --mf-tint-strong: color-mix(in srgb, var(--brand-primary) 14%, #ffffff);
}

/* Larger default tap targets for primary controls on touch screens */
.btn {
  min-height: var(--mf-tap);
  border-radius: var(--mf-radius-sm);
}

.btn-block { width: 100%; }

/* Inputs feel app-native: bigger, rounded, 16px font (prevents iOS zoom) */
.form-input,
.form-select,
.form-textarea {
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--mf-radius-sm);
  border: 1.5px solid var(--brand-gray-300);
  -webkit-appearance: none;
  appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
  padding-right: 2.6rem;
}

/* ----------------------------- Login (mobile-first) -------------------- */
.login-container {
  padding: 1.25rem;
  background: linear-gradient(160deg, var(--brand-primary) 0%, var(--brand-secondary) 55%, var(--brand-accent) 130%);
}
.login-card {
  border-radius: var(--mf-radius);
  box-shadow: var(--mf-shadow-lg);
  padding: 2rem 1.5rem;
}
.login-card .btn-primary { width: 100%; }
.login-logo, .login-card img.login-logo { margin-left: auto; margin-right: auto; }

/* --------------------------- App bar / header ------------------------- */
.header { position: sticky; top: 0; z-index: 30; }
@media (max-width: 768px) {
  .header { padding: 0.75rem 0; }
  .header-content { flex-direction: row; gap: 0.5rem; text-align: left; }
  .logo { height: 32px; }
  .user-name { display: none; }
}

/* ----------------------- Hamburger button + drawer -------------------- */
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px; cursor: pointer; flex-shrink: 0;
}
.menu-toggle:hover { background: rgba(255,255,255,0.22); }
.menu-toggle-bar {
  display: block; height: 2.5px; width: 100%; border-radius: 2px;
  background: var(--brand-white);
}
/* Push logo to the left of the hamburger, keep user menu on the right */
.header-content { gap: 0.75rem; }
.header-content .logo-section { margin-right: auto; }

.drawer-overlay {
  position: fixed; inset: 0; background: rgba(16,24,40,0.5);
  z-index: 40; opacity: 0; transition: opacity .25s ease;
}
.drawer-overlay.show { opacity: 1; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 84vw; max-width: 320px;
  background: #fff; z-index: 50;
  box-shadow: var(--mf-shadow-lg);
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--brand-gray-100);
}
.drawer-title { font-weight: 700; color: var(--brand-gray-900); font-size: 1.05rem; }
.drawer-close {
  background: none; border: none; font-size: 1.75rem; line-height: 1;
  color: var(--brand-gray-500); cursor: pointer; padding: 0 0.25rem;
}

.drawer-user {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.25rem; background: var(--mf-tint);
}
.drawer-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
}
.drawer-user-name { font-weight: 600; color: var(--brand-gray-900); }
.drawer-user-company { font-size: 0.85rem; color: var(--brand-gray-500); }

.drawer-list { list-style: none; margin: 0; padding: 0.75rem; }
.drawer-link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1rem; border-radius: var(--mf-radius-sm);
  color: var(--brand-gray-700); text-decoration: none;
  font-weight: 500; font-size: 1rem; min-height: var(--mf-tap);
}
.drawer-link svg { flex-shrink: 0; color: var(--brand-gray-400); }
.drawer-link:hover { background: var(--brand-gray-50); text-decoration: none; }
.drawer-link.active { background: var(--mf-tint); color: var(--brand-primary); }
.drawer-link.active svg { color: var(--brand-primary); }
.drawer-divider { height: 1px; background: var(--brand-gray-100); margin: 0.5rem 0.5rem; }
.drawer-link-logout { color: var(--brand-red); }
.drawer-link-logout svg { color: var(--brand-red); }

/* ------------------------- Dashboard home tiles ----------------------- */
.home-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.75rem;
}
.home-tile {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.4rem 1.25rem; min-height: 9.5rem;
  border-radius: var(--mf-radius); text-decoration: none;
  box-shadow: var(--mf-shadow); transition: transform .15s, box-shadow .15s;
  background: #fff; color: var(--brand-gray-900);
  border: 1px solid var(--brand-gray-100);
}
.home-tile:hover { transform: translateY(-3px); box-shadow: var(--mf-shadow-lg); text-decoration: none; }
.home-tile .tile-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--mf-tint); color: var(--brand-primary);
}
.home-tile .tile-icon svg { width: 30px; height: 30px; }
.home-tile h3 { margin: 0; font-size: 1.1rem; color: inherit; }
.home-tile p { margin: 0; font-size: 0.85rem; color: var(--brand-gray-500); }
.home-tile.tile-primary {
  grid-column: 1 / -1; flex-direction: row; align-items: center;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #fff; border: none;
}
.home-tile.tile-primary .tile-icon { background: rgba(255,255,255,0.18); color: #fff; }
.home-tile.tile-primary h3 { font-size: 1.3rem; }
.home-tile.tile-primary p { color: rgba(255,255,255,0.85); }

@media (min-width: 768px) {
  .home-tiles { grid-template-columns: repeat(3, 1fr); }
  .home-tile.tile-primary { grid-column: 1 / -1; }
}

/* ------------------------------ Dashboard ----------------------------- */
.dashboard-hero {
  background: linear-gradient(150deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #fff;
  border-radius: var(--mf-radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--mf-shadow);
}
.dashboard-hero h1 { color: #fff; font-size: 1.5rem; margin-bottom: 0.25rem; }
.dashboard-hero p { color: rgba(255,255,255,0.85); margin: 0; }

/* ===================== STEP-BY-STEP SUBMISSION FLOW ==================== */
.stepflow { max-width: 640px; margin: 0 auto; }

.stepflow-top { margin-bottom: 1.25rem; }
.stepflow-brandbar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.stepflow-brandbar img { max-height: 40px; width: auto; }
.stepflow-welcome h1 { color: var(--brand-primary); font-size: 1.4rem; margin: 0 0 0.25rem; }
.stepflow-welcome p { color: var(--brand-gray-600); margin: 0; }

.progress-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 600;
  color: var(--brand-gray-600);
}
.progress-track { height: 8px; background: var(--brand-gray-200); border-radius: 999px; overflow: hidden; }
.progress-meter { height: 100%; width: 0%; background: var(--brand-primary); border-radius: 999px; transition: width .3s ease; }

.step-card {
  background: #fff; border-radius: var(--mf-radius);
  box-shadow: var(--mf-shadow); padding: 1.5rem;
  min-height: 50vh; display: flex; flex-direction: column;
}

.draft-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1.25rem; padding: 0.9rem 1rem;
  background: var(--brand-gray-50, #f8fafc); border: 1px solid var(--brand-gray-200, #e5e7eb);
  border-left: 4px solid var(--brand-primary); border-radius: 10px;
}
.draft-banner-msg { font-size: 0.95rem; color: var(--brand-gray-900); font-weight: 500; flex: 1 1 220px; }
.draft-banner-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.draft-banner-actions .btn { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

.form-step { display: none; animation: stepIn .25s ease; }
.form-step.is-active { display: flex; flex-direction: column; flex: 1; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.step-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 0.5rem; }
.step-question { font-size: 1.35rem; line-height: 1.3; color: var(--brand-gray-900); margin: 0 0 0.4rem; font-weight: 600; }
.step-question .req { color: var(--brand-red); }
.step-help { color: var(--brand-gray-500); font-size: 0.95rem; margin: 0 0 1.25rem; }
.step-body { flex: 1; }
.step-error { color: var(--brand-red); font-weight: 500; margin-top: 0.75rem; font-size: 0.9rem; display: none; }
.step-error.is-shown { display: block; }

/* Choice cards (single + multi choice, yes/no) */
.choice-list { display: flex; flex-direction: column; gap: 0.75rem; }
.choice-card {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.1rem; border: 1.5px solid var(--brand-gray-300);
  border-radius: var(--mf-radius-sm); cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-size: 1rem; min-height: var(--mf-tap);
}
.choice-card:hover { border-color: var(--brand-primary); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card .choice-mark {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--brand-gray-300); display: grid; place-items: center;
  transition: border-color .15s, background .15s;
}
.choice-card.is-multi .choice-mark { border-radius: 7px; }
.choice-card .choice-mark svg { width: 14px; height: 14px; stroke: #fff; opacity: 0; }
.choice-card.is-selected {
  border-color: var(--brand-primary);
  background: var(--mf-tint);
  box-shadow: 0 0 0 1px var(--brand-primary) inset;
}
.choice-card.is-selected .choice-mark { background: var(--brand-primary); border-color: var(--brand-primary); }
.choice-card.is-selected .choice-mark svg { opacity: 1; }
.choice-label { flex: 1; }

/* Yes / No as two big buttons */
.yesno-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.yesno-grid .choice-card { justify-content: center; text-align: center; font-weight: 600; }

/* Rating stars */
.rating-stars { display: flex; gap: 0.4rem; }
.rating-stars button {
  background: none; border: none; cursor: pointer; padding: 0.2rem;
  color: var(--brand-gray-300); transition: color .12s, transform .12s;
  line-height: 0;
}
.rating-stars button svg { width: 40px; height: 40px; }
.rating-stars button.is-on { color: var(--brand-accent); }
.rating-stars button:active { transform: scale(0.9); }
.rating-value { margin-top: 0.5rem; color: var(--brand-gray-600); font-size: 0.9rem; }

/* File capture */
.file-field .file-upload-area {
  border-radius: var(--mf-radius-sm);
  border-width: 2px;
  padding: 2rem 1rem;
}
.capture-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.85rem; }
.capture-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 1rem; border: 1.5px solid var(--brand-gray-300);
  border-radius: var(--mf-radius-sm); background: #fff; cursor: pointer;
  color: var(--brand-primary); font-weight: 600; font-size: 0.9rem; min-height: var(--mf-tap);
}
.capture-btn:hover { border-color: var(--brand-primary); background: var(--mf-tint); }
.capture-btn svg { width: 26px; height: 26px; }
.file-previews { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.file-chip {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--brand-gray-50); border: 1px solid var(--brand-gray-200);
  border-radius: var(--mf-radius-sm); padding: 0.6rem 0.75rem;
}
.file-chip .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--brand-gray-200); display: grid; place-items: center; color: var(--brand-gray-500); }
.file-chip .meta { flex: 1; min-width: 0; }
.file-chip .meta .nm { font-weight: 500; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip .meta .sz { font-size: 0.78rem; color: var(--brand-gray-500); }
.file-chip .rm { background: none; border: none; color: var(--brand-red); cursor: pointer; padding: 0.35rem; border-radius: 8px; }
.file-chip .rm:hover { background: rgba(239,68,68,0.1); }

/* Review step */
.review-list { display: flex; flex-direction: column; gap: 0.85rem; }
.review-item { border: 1px solid var(--brand-gray-200); border-radius: var(--mf-radius-sm); padding: 0.85rem 1rem; }
.review-item .rv-q { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--brand-gray-500); margin-bottom: 0.25rem; }
.review-item .rv-a { color: var(--brand-gray-900); word-break: break-word; }
.review-item .rv-edit { float: right; font-size: 0.8rem; color: var(--brand-primary); background: none; border: none; cursor: pointer; font-weight: 600; }
.review-item .rv-a.empty { color: var(--brand-gray-400); font-style: italic; }

/* Sticky action bar */
.step-actions {
  display: flex; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--brand-gray-100);
}
.step-actions .btn { flex: 1; }
.step-actions .btn-back { flex: 0 0 auto; min-width: 6rem; }

/* Upload progress overlay */
.submit-progress { display: none; margin-top: 1rem; }
.submit-progress.is-shown { display: block; }

/* Confirmation */
.confirm-screen { text-align: center; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; }
.confirm-badge {
  width: 84px; height: 84px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-green) 14%, #fff);
  color: var(--brand-green); display: grid; place-items: center; margin-bottom: 1.25rem;
}
.confirm-badge svg { width: 44px; height: 44px; }
.confirm-screen h2 { color: var(--brand-gray-900); margin-bottom: 0.5rem; }
.confirm-screen p { color: var(--brand-gray-600); margin-bottom: 1.5rem; max-width: 24rem; }
.confirm-screen .btn { width: 100%; max-width: 20rem; }

@media (min-width: 640px) {
  .step-actions .btn { flex: 0 0 auto; }
  .step-actions .btn-next { margin-left: auto; min-width: 9rem; }
}
