/* Per-view layout */

/* ---- onboarding & lock ---- */
.hero-view {
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100dvh - 120px);
  padding: 24px 4px;
}
.hero-view .logo { font-size: 3.25rem; margin-bottom: 10px; }
.hero-view h1 { font-size: 1.75rem; }
.hero-view .tagline { font-size: 1rem; margin: 6px 0 26px; }

.onb-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.onb-steps span { height: 5px; flex: 1; border-radius: 99px; background: var(--line); }
.onb-steps span.done { background: var(--brand); }

.member-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.member-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 12px 7px 8px;
  font-size: 0.875rem; font-weight: 700;
}
.member-chip button { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 0.9375rem; padding: 0 2px; }

/* ---- dashboard ---- */
.dash-greeting { margin: 6px 0 2px; }
.dash-section { margin-top: 20px; }
.dash-section h2 { display: flex; align-items: center; justify-content: space-between; }
.dash-section h2 .count { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.dash-empty-cta { margin-top: 10px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 12px; text-align: center;
}
.stat-tile .n { font-size: 1.375rem; font-weight: 800; color: var(--brand-dark); }
.stat-tile .l { font-size: 0.7188rem; color: var(--muted); font-weight: 600; }

/* ---- capture ---- */
.capture-input-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.capture-choice {
  background: var(--surface); border: 1.5px dashed var(--line);
  border-radius: var(--radius); padding: 22px 12px;
  text-align: center; cursor: pointer; font: inherit;
}
.capture-choice:hover { border-color: var(--brand); background: var(--brand-light); }
.capture-choice .ico { font-size: 1.875rem; display: block; margin-bottom: 6px; }
.capture-choice .t { font-weight: 700; font-size: 0.875rem; }
.capture-choice .s { font-size: 0.75rem; color: var(--muted); }

.ocr-progress { text-align: center; padding: 40px 20px; }
.ocr-progress .spinner { width: 34px; height: 34px; margin-bottom: 14px; }

.proposal-card { border-left: 4px solid var(--brand); }
.proposal-card .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.proposal-card .head .t { flex: 1; font-weight: 800; font-size: 0.9375rem; }
.proposal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proposal-grid .field { margin-bottom: 0; }
.proposal-grid .full { grid-column: 1 / -1; }
.parsed-note { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

.doc-text-preview {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px; font-size: 0.8125rem; color: var(--muted);
  max-height: 130px; overflow-y: auto; white-space: pre-wrap;
  font-family: ui-monospace, Menlo, monospace;
}

/* ---- vault ---- */
.vault-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.vault-filters::-webkit-scrollbar { display: none; }
.vault-filters .badge { cursor: pointer; flex-shrink: 0; border: 1.5px solid transparent; }
.vault-filters .badge.active { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.vault-search { margin-bottom: 10px; }

.doc-image-preview { width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.kv .v { text-align: right; font-weight: 600; word-break: break-word; }

/* ---- paywall ---- */
.plan-card {
  position: relative;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 16px;
  margin-bottom: 10px; cursor: pointer;
}
.plan-card.selected { border-color: var(--brand); background: var(--brand-light); }
.plan-card .plan-name { font-weight: 800; font-size: 1rem; }
.plan-card .plan-price { font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.plan-card .save-tag {
  position: absolute; top: -9px; right: 12px;
  background: var(--accent); color: #fff;
  font-size: 0.6875rem; font-weight: 800;
  border-radius: 999px; padding: 2px 10px;
}

/* ---- digest ---- */
.digest-highlight { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 0.9062rem; }
.digest-highlight .ico { flex-shrink: 0; }

/* ---- settings ---- */
.settings-group { margin-bottom: 22px; }
.settings-group h2 { margin-bottom: 8px; }
.danger-zone { border: 1.5px solid var(--danger-light); }

/* appearance / theme picker */
.palette-row { display: flex; flex-wrap: wrap; gap: 8px; }
.palette-swatch {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  border: 2px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--text);
  cursor: pointer;
}
.palette-swatch .sw {
  width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0;
}
.palette-swatch .sw + .sw {
  margin-left: -11px;
  box-shadow: 0 0 0 2px var(--surface);
}
.palette-swatch.active { border-color: var(--brand); background: var(--brand-light); }
