/* ─────────────────────────────────────────────────────────────
   Quietwealth Upload (V2) — styles.css
   Mirrors V1 visual language. Same colour tokens, fonts, motifs.
   ───────────────────────────────────────────────────────────── */

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

:root {
  --ink: #1a1a18;
  --ink-2: #4a4a45;
  --ink-3: #8a8a82;
  --paper: #faf9f6;
  --paper-2: #f2f0eb;
  --paper-3: #e8e5dd;
  --sage: #5a7a5a;
  --sage-light: #e8f0e8;
  --sage-dark: #3a5a3a;
  --gold: #c8a96e;
  --gold-light: #f5eed8;
  --danger: #c45a3a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(26,26,24,0.08), 0 4px 16px rgba(26,26,24,0.04);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ── */
.header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--paper-3);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo > span:first-of-type { color: var(--sage); }
.logo-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--sage-dark);
  background: var(--sage-light);
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tagline {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  font-weight: 300;
  display: none;
}
@media(min-width:600px){ #taglineText { display: block; } }
.about-nav-link {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}
.about-nav-link:hover { color: var(--sage); }

/* ── PROGRESS ── */
.progress-wrap {
  background: var(--paper);
  padding: 1rem 2rem 0;
  border-bottom: 1px solid var(--paper-3);
}
.progress-steps {
  display: flex;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 0;
}
.step-dot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}
.step-dot::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--paper-3);
  z-index: 0;
}
.step-dot:last-child::after { display: none; }
.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--paper-3);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  position: relative;
  z-index: 1;
  transition: all 0.2s;
}
.step-dot.active .dot { background: var(--sage); border-color: var(--sage); color: white; }
.step-dot.done .dot   { background: var(--sage-light); border-color: var(--sage); color: var(--sage); }
.step-label {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 400;
  white-space: nowrap;
  padding-bottom: 0.75rem;
}
.step-dot.active .step-label { color: var(--sage); font-weight: 500; }
.step-dot.done   .step-label { color: var(--sage); }

/* ── MAIN ── */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* ── SCREEN ── */
.screen { display: none; animation: fadeUp 0.3s ease; }
.screen.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen-header { margin-bottom: 2rem; }
.screen-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.screen-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.screen-sub {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 300;
  line-height: 1.5;
}

/* ── FORM ELEMENTS ── */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}
.field input, .field select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-sm);
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s;
  appearance: none;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-light);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── CHOICE CARDS ── */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 1.25rem;
}
.choice-card {
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  background: white;
  text-align: center;
}
.choice-card:hover { border-color: var(--sage); background: var(--sage-light); }
.choice-card.selected {
  border-color: var(--sage);
  background: var(--sage-light);
  box-shadow: 0 0 0 2px var(--sage-light);
}
.choice-icon { font-size: 24px; margin-bottom: 0.4rem; display: block; }
.choice-label { font-size: 13px; font-weight: 500; color: var(--ink); display: block; }
.choice-sub { font-size: 11px; color: var(--ink-3); display: block; margin-top: 2px; }

/* ── TOGGLE FIELD ── */
.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.toggle-field:hover { border-color: var(--sage); }
.toggle-info { flex: 1; }
.toggle-title { font-size: 13px; font-weight: 500; color: var(--ink); }
.toggle-desc { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.toggle-switch {
  width: 40px;
  height: 22px;
  background: var(--paper-3);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-field.on .toggle-switch { background: var(--sage); }
.toggle-field.on .toggle-switch::after { transform: translateX(18px); }

/* ── ALLOWANCE DETAIL (revealed on toggle) ── */
.allowance-detail {
  padding: 0.9rem 1rem;
  background: var(--sage-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-top: -8px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--paper-3);
  border-top: none;
}
.allowance-detail label {
  font-size: 12px;
  font-weight: 500;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 4px;
}
.allowance-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.allowance-input .dollar { font-size: 13px; color: var(--sage-dark); }
.allowance-input .suffix { font-size: 12px; color: var(--sage-dark); }
.allowance-input input {
  width: 150px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--sage);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  background: white;
  color: var(--ink);
}
.allowance-input input:focus { outline: none; box-shadow: 0 0 0 2px var(--sage-light); }
.allowance-detail .hint {
  font-size: 11px;
  color: var(--sage-dark);
  margin-top: 4px;
  line-height: 1.4;
  opacity: 0.85;
}

/* ── PERSON BLOCK ── */
.person-block {
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.person-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--paper-2);
}
.person-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}
.p1-avatar { background: var(--sage-light); color: var(--sage-dark); }
.p2-avatar { background: var(--gold-light); color: #8a6a2a; }
.person-block-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.person-block-sub   { font-size: 12px; color: var(--ink-3); }

/* ── CHILD / PET BLOCK ── */
.child-block, .pet-block {
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  position: relative;
}
.child-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--paper-2);
}
.child-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
}
.remove-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--paper-3);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.remove-btn:hover { border-color: var(--danger); color: var(--danger); background: #fdf2ee; }

/* ── ADD BUTTON ── */
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1rem;
  border: 1.5px dashed var(--paper-3);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-3);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
  margin-bottom: 1rem;
}
.add-btn:hover { border-color: var(--sage); color: var(--sage); background: var(--sage-light); }

/* ── INFO BOX ── */
.info-box {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1rem;
  font-size: 13px;
  color: #6a5020;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.info-box strong { font-weight: 500; }

/* ── SAGE BOX ── */
.sage-box {
  background: var(--sage-light);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1rem;
  font-size: 13px;
  color: var(--sage-dark);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--paper-3);
}

/* ── SUMMARY CHIPS ── */
.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.chip {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--paper-2);
  font-size: 12px;
  color: var(--ink-2);
}
.chip.green { background: var(--sage-light); color: var(--sage-dark); }

/* ── NAVIGATION ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--paper-3);
}
.btn-back {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-back:hover { border-color: var(--ink-2); }
.btn-next {
  padding: 0.7rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--sage);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-next:hover { background: var(--sage-dark); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── WELCOME SCREEN ── */
.welcome { text-align: center; padding: 3rem 1rem; }
.welcome-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 1.5rem;
}
.welcome h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.welcome h1 span { color: var(--sage); }
.welcome-sub {
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.welcome-quote {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-3);
  margin: 1.5rem auto;
  max-width: 460px;
  line-height: 1.6;
}
.welcome-quote cite {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-style: normal;
  color: var(--ink-3);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}
.welcome p {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-weight: 300;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.feat {
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.feat-icon { font-size: 20px; margin-bottom: 0.4rem; }
.feat-text { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.btn-start {
  padding: 0.85rem 2.5rem;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-start:hover { background: var(--sage-dark); transform: translateY(-1px); }
.welcome-alt {
  margin-top: 2rem;
  font-size: 13px;
  color: var(--ink-3);
}
.welcome-alt a {
  color: var(--sage);
  text-decoration: none;
  font-weight: 500;
}
.welcome-alt a:hover { text-decoration: underline; }

/* ── DISCLAIMER MODAL ── */
.disclaimer-modal {
  position: fixed; inset: 0; background: rgba(26,26,24,0.75);
  z-index: 2000; display: flex; align-items: center;
  justify-content: center; padding: 1.5rem;
}
.disclaimer-modal.hidden { display: none; }
.disclaimer-box {
  background: var(--paper); border-radius: var(--radius);
  max-width: 580px; width: 100%; padding: 2rem;
  box-shadow: 0 20px 60px rgba(26,26,24,0.3);
  max-height: 92vh; overflow-y: auto;
}
.disc-logo {
  font-family: 'Playfair Display',serif; font-size: 18px;
  color: var(--ink); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.disc-logo > span:first-of-type { color: var(--sage); }
.disc-badge {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px;
  font-weight: 500;
  color: var(--sage-dark) !important;
  background: var(--sage-light);
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.disc-title {
  font-size: 16px; font-weight: 500; color: var(--ink);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 8px;
}
.disc-body {
  font-size: 13px; color: var(--ink-2); line-height: 1.7;
  margin-bottom: 1.25rem; border-left: 3px solid var(--gold);
  background: var(--gold-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1rem;
}
.disc-body strong { color: var(--ink); font-weight: 500; }
.disc-points {
  margin-bottom: 1.25rem;
  background: white; border: 1px solid var(--paper-3);
  border-radius: var(--radius-sm); overflow: hidden;
}
.disc-point {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--paper-2);
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
}
.disc-point:last-child { border-bottom: none; }
.disc-point-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.disc-agree {
  display: flex; align-items: center; gap: 14px;
  padding: 1rem 1.1rem; background: var(--sage-light);
  border-radius: var(--radius-sm); margin-bottom: 1.25rem;
  border: 1.5px solid var(--sage-light); transition: border-color 0.15s;
}
.disc-agree:has(input:checked) { border-color: var(--sage); }
.disc-agree input[type=checkbox] {
  width: 22px; height: 22px; min-width: 22px;
  accent-color: var(--sage); cursor: pointer;
  margin: 0; flex-shrink: 0;
}
.disc-agree label {
  font-size: 13px; color: var(--sage-dark); line-height: 1.5; cursor: pointer;
}
.disc-agree label strong { font-weight: 500; }
.btn-disc {
  width: 100%; padding: 0.9rem; background: var(--paper-3);
  color: var(--ink-3); border: none; border-radius: var(--radius-sm);
  font-family: 'DM Sans',sans-serif; font-size: 14px; font-weight: 500;
  cursor: not-allowed; transition: all 0.2s;
}
.btn-disc.active {
  background: var(--sage); color: white; cursor: pointer;
  box-shadow: 0 2px 8px rgba(90,122,90,0.3);
}
.btn-disc.active:hover { background: var(--sage-dark); transform: translateY(-1px); }
.disc-footer {
  font-size: 11px; color: var(--ink-3); text-align: center;
  margin-top: 0.75rem; line-height: 1.6;
}

/* ── PERSISTENT BANNER ── */
.disclaimer-banner {
  background: var(--gold-light); border-bottom: 1px solid var(--gold);
  padding: 0.55rem 2rem; font-size: 12px; color: #6a5020;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; line-height: 1.5;
}
.disclaimer-banner strong { font-weight: 500; }
.banner-link {
  font-size: 11px; color: #6a5020; text-decoration: underline;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}

/* ── UPLOAD: FILE LIST (multi-file) ── */
.file-list {
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
  animation: fadeUp 0.3s ease;
}
.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--paper-2);
  margin-bottom: 0.75rem;
  gap: 1rem;
}
.file-list-summary {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.file-list-summary .meta {
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 6px;
}
.file-list-clear {
  background: transparent;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.file-list-clear:hover { color: var(--danger); background: #fdf2ee; }
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  background: var(--paper);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.file-row:hover { background: var(--paper-2); }
.file-row-invalid {
  background: #fdf2ee;
  border-color: #f5d0c2;
}
.file-row-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.file-row-info {
  flex: 1;
  min-width: 0;
}
.file-row-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row-meta {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.file-row-error    { color: var(--danger); }
.file-row-detecting{ color: var(--sage-dark); }
.file-row-detail   { color: var(--ink-3); }
.add-more-btn { margin-top: 0.75rem; margin-bottom: 0; }

/* ── UPLOAD: DATE RANGE PANEL ── */
.date-range-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  border: 1px solid var(--paper-3);
  background: var(--paper);
  transition: all 0.2s;
}
.date-range-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.3;
}
.date-range-info { flex: 1; }
.date-range-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.date-range-detail {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.date-range-panel.range-ok {
  border-color: var(--sage);
  background: var(--sage-light);
}
.date-range-panel.range-ok .date-range-title { color: var(--sage-dark); }
.date-range-panel.range-ok .date-range-detail { color: var(--sage-dark); opacity: 0.85; }
.date-range-panel.range-warn {
  border-color: var(--gold);
  background: var(--gold-light);
}
.date-range-panel.range-warn .date-range-title { color: #6a5020; }
.date-range-panel.range-warn .date-range-detail { color: #6a5020; opacity: 0.85; }
.date-range-panel.range-blocked,
.date-range-panel.range-error {
  border-color: #e8a98a;
  background: #fdf2ee;
}
.date-range-panel.range-blocked .date-range-title,
.date-range-panel.range-error .date-range-title { color: var(--danger); }
.date-range-panel.range-blocked .date-range-detail,
.date-range-panel.range-error .date-range-detail { color: #8a4a2e; }

/* ── UPLOAD: DROP-ZONE HELP TEXT ── */
.drop-help {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 300;
  line-height: 1.5;
  margin-top: 0.6rem;
  font-style: italic;
}

/* ── FLASH STATUS (toast) ── */
.flash-status {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 8px 24px rgba(26,26,24,0.25);
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s;
}
.flash-status.flash-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.flash-status.flash-warn { background: var(--gold); color: #3a2a10; }
.flash-status.flash-error { background: var(--danger); }

/* ── LINK BUTTON ── */
.link-btn {
  background: transparent;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.link-btn:hover { color: var(--danger); background: #fdf2ee; }

/* ── DROP ZONE ── */
.drop-zone {
  border: 2px dashed var(--paper-3);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.drop-zone:hover {
  border-color: var(--sage);
  background: var(--sage-light);
}
.drop-zone.drag-over {
  border-color: var(--sage);
  background: var(--sage-light);
  transform: scale(1.01);
  box-shadow: 0 0 0 4px var(--sage-light);
}
.drop-icon {
  font-size: 48px;
  margin-bottom: 0.75rem;
}
.drop-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.drop-sub {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 300;
  line-height: 1.5;
}

/* ── UPLOAD: FILE PREVIEW ── */
.file-preview {
  background: white;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
  position: relative;
  animation: fadeUp 0.3s ease;
}
.file-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--paper-2);
  margin-bottom: 1rem;
}
.file-preview-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.file-preview-info {
  flex: 1;
  min-width: 0;
}
.file-preview-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}
.file-preview-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.file-preview-body {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
}
.file-preview-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
}
.file-preview-body th {
  background: var(--paper-2);
  padding: 6px 8px;
  text-align: left;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--paper-3);
}
.file-preview-body td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--paper-2);
  color: var(--ink-2);
}
.file-preview-body td:nth-child(odd) { color: var(--ink); }
.file-preview-error {
  color: var(--danger);
  background: #fdf2ee;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}

/* ── ANALYSIS SPINNER ── */
.spinner {
  display: inline-block;
  width: 56px;
  height: 56px;
}
.spinner-ring {
  width: 56px;
  height: 56px;
  border: 4px solid var(--paper-3);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


@media (max-width: 600px) {
  .header { padding: 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .main { padding: 1.5rem 1rem 3rem; }
  .features { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .progress-wrap { padding: 0.75rem 1rem 0; }
  .step-label { display: none; }
  .disclaimer-banner { padding: 0.55rem 1rem; font-size: 11px; }
  .welcome h1 { font-size: 30px; }
  .disclaimer-box { padding: 1.5rem; }
  .allowance-input input { width: 110px; }
  .drop-zone { padding: 2rem 1rem; }
  .drop-icon { font-size: 36px; }
  .drop-title { font-size: 16px; }
}
