/* ═══════════════════════════════════════════════════════════
   Business P&L — Premium structured product UI
   Soft gray canvas · White cards · Quiet borders · Navy actions
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --font-sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --bg: #f4f5f7;
  --bg-soft: #eef0f3;
  --bg-card: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-quiet: #9ca3af;
  --border: #e5e7eb;
  --border-light: #eef0f3;

  --accent: #1b3a57;
  --accent-hover: #142b41;
  --accent-light: #eef3f8;
  --income: #1f2937;
  --income-bg: #f8fafc;
  --negative: #9b3b32;
  --negative-bg: #faf5f4;
  --total-bg: #f8fafc;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --radius-sm: 8px;

  color-scheme: light;
}


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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: 0.005em;
  min-height: 100dvh;
}


[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
svg { fill: currentColor; }

/* ── Negative accounting amounts ───────────────────────────── */
.amount--negative { color: var(--negative) !important; }

/* ── Worksheet shell ───────────────────────────────────────── */
.worksheet {
  max-width: 840px;
  margin: 0 auto;
  padding: 2.75rem 1.75rem 5rem;
}


/* App brand */
.app-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
}

.app-brand__mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 0.5rem;
}

.app-brand__text { min-width: 0; }

.app-brand__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin: 0 0 0.25rem;
}

.app-brand__tagline {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 0.55rem;
  letter-spacing: 0.01em;
}

.app-brand__name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
  max-width: 22ch;
}


/* Worksheet header */
.ws-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.ws-save-status {
  margin: 0 0 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  letter-spacing: 0.01em;
  min-height: 1.25rem;
}

.ws-save-status[data-kind="saving"] { color: #1b3a57; }
.ws-save-status[data-kind="saved"] { color: #3d6b4f; }
.ws-save-status[data-kind="error"] { color: #9b3b32; }

.ws-header__titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ws-header__business-line {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}


.ws-header__doc {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin: 0.4rem 0 0;
}


.ws-header__period {
  display: flex;
  gap: 0.75rem;
}

.ws-period-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ws-period-field__label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-quiet);
}


.ws-select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.92rem;
  font-weight: 500;
  min-width: 118px;
  outline: none;
  box-shadow: var(--shadow-sm);
}
.ws-select:focus {
  border-color: #c5ced8;
  box-shadow: 0 0 0 3px rgba(27, 58, 87, 0.08);
}



.ws-period-label {
  font-size: 0.78rem;
  color: var(--text-quiet);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}


/* Main sections */
.ws-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}



.ws-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem 1.85rem;
  box-shadow: var(--shadow-sm);
  margin: 0;
}



.ws-section__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.ws-section__header--expenses {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.ws-section__header--expenses .ws-section__title {
  margin: 0;
  padding: 0;
  border: none;
}

.ws-section__header--expenses .ws-section__hint {
  margin: 0.35rem 0 0;
}

.expenses-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #f7f8fa;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.expenses-empty p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.ws-section__hint {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: -0.5rem 0 1.35rem;
  line-height: 1.5;
}



.ws-fields {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.ws-fields--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.ws-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ws-field--inline {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

.ws-field__label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
}



.ws-field__name {
  flex: 1;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}



/* Currency inputs */
.currency-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d7dce3;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}



.currency-input::placeholder {
  color: #b0b8c4;
  text-align: right;
}

.currency-input:focus {
  border-color: #c5ced8;
  box-shadow: 0 0 0 3px rgba(27, 58, 87, 0.08);
  background: #fff;
}



.currency-input--lg {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
}



/* Checkboxes */
.ws-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.ws-check input { accent-color: var(--accent); width: 1rem; height: 1rem; flex-shrink: 0; }

.ws-check--prominent {
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  color: var(--text-muted);
}



.ws-check--compact { font-size: 0.8rem; white-space: nowrap; }

.ws-cogs-fields--hidden { display: none; }

/* Section totals */
.ws-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.95rem 1rem;
  background: var(--total-bg);
  border-radius: var(--radius-sm);
  margin-top: 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  border-top: none;
}



.ws-total strong {
  font-size: 1.05rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text);
}



.ws-total--profit {
  background: var(--total-bg);
  border: none;
  padding-top: 0.95rem;
}



.ws-total--profit strong:not(.amount--negative) {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 650;
}



/* Expense list — exact two-line hierarchy
   Line 1: Name                         Amount
   Line 2: Repeat Monthly [toggle]      [⋮]
*/
.expense-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.exp-item-wrap {
  border-bottom: 1px solid var(--border-light);
}

.exp-item-wrap:last-child { border-bottom: none; }

.exp-item {
  padding: 1.2rem 0.15rem 1.25rem;
}

.exp-item__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  align-items: center;
  column-gap: 1rem;
}

.exp-item__line--secondary {
  margin-top: 0.7rem;
  min-height: 1.85rem;
}

.exp-item__name {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.exp-item__amount {
  width: 148px;
  justify-self: end;
}

.exp-item__amount .currency-input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  font-weight: 550;
  border-color: #d7dce3;
  text-align: right;
}

.exp-item__repeat {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.exp-item__repeat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.exp-item__line--secondary .exp-menu {
  justify-self: end;
  align-self: center;
}

/* Toggle switch */
.exp-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.exp-switch__input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.exp-switch__track {
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d5dae2;
  position: relative;
  transition: background 0.18s ease;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.exp-switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}

.exp-switch__input:checked + .exp-switch__track {
  background: var(--accent);
}

.exp-switch__input:checked + .exp-switch__track::after {
  transform: translateX(16px);
}

.exp-switch__input:focus-visible + .exp-switch__track {
  outline: 2px solid rgba(27, 58, 87, 0.35);
  outline-offset: 2px;
}

/* Overflow menu */
.exp-menu {
  position: relative;
  flex-shrink: 0;
}

.exp-menu__btn {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-quiet);
  transition: background 0.15s, color 0.15s;
}

.exp-menu__btn:hover,
.exp-menu.is-open .exp-menu__btn {
  background: var(--bg-soft);
  color: var(--text-muted);
}

.exp-menu__dots {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.exp-menu__panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 148px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 30;
}

.exp-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.exp-menu__item:hover { background: var(--bg-soft); }

.exp-menu__item--danger { color: var(--negative); }

.exp-menu__item--danger:hover { background: var(--negative-bg); }

/* Annual label column — same two-line structure; amounts stay in month grid */
.exp-item--annual {
  padding: 0;
  width: 100%;
}

.exp-item--annual .exp-item__line {
  grid-template-columns: minmax(0, 1fr) 1.85rem;
}

.exp-item--annual .exp-item__line--primary {
  grid-template-columns: 1fr;
}

.exp-item--annual .exp-item__name {
  font-size: 0.95rem;
}

.expense-row__name-input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.9rem;
}

.btn-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}

.btn-icon:hover { background: var(--negative-bg); color: var(--negative); }

/* Summary panel */
.ws-summary-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem 1.85rem;
  margin-top: 1.35rem;
  box-shadow: var(--shadow-sm);
}



.ws-summary-panel__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}



.ws-summary-panel__grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ws-summary-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
}



.ws-summary-panel__row dt { color: var(--text-muted); font-weight: 400; }

.ws-summary-panel__row dd {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.ws-summary-panel__row--highlight {
  margin-top: 0.35rem;
  padding: 0.95rem 1rem;
  background: var(--total-bg);
  border-radius: var(--radius-sm);
  border: none;
  border-top: none;
}



.ws-summary-panel__row--highlight dt,
.ws-summary-panel__row--highlight dd:not(.amount--negative) {
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
}



.ws-summary-panel__row--highlight.amount--negative,
.ws-summary-panel__row--highlight .amount--negative {
  background: var(--negative-bg);
}

.ws-summary-panel__row--highlight.amount--negative dt,
.ws-summary-panel__row--highlight.amount--negative dd {
  color: var(--negative);
}

/* CTA */
.ws-cta {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}



.btn:active { transform: none; }


.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(27, 58, 87, 0.2);
}



.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 8px rgba(27, 58, 87, 0.22);
}



.btn--ghost {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  padding-left: 1rem;
  padding-right: 1rem;
}



.btn--ghost:hover { color: var(--text); }

.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }

.btn--outline {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 0.65rem 1.1rem;
  font-weight: 550;
  text-decoration: none;
}



.btn--outline:hover {
  background: var(--bg-soft);
  opacity: 1;
}



.btn--text {
  border: none;
  background: none;
  color: var(--accent);
  font-weight: 550;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  text-decoration: none;
}



.btn--text:hover { color: var(--accent-hover); }

.btn--generate {
  width: 100%;
  min-width: 0;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
}



/* Modal */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
}

.modal::backdrop {
  background: rgba(26, 35, 50, 0.45);
  backdrop-filter: blur(3px);
}

.modal__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-md);
  max-width: 28rem;
}



.modal__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
}


.modal__body-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal__actions .btn { width: 100%; }

/* ── Business Profile (worksheet) ─────────────────────────── */
.business-profile {
  margin-bottom: 1.35rem;
  padding: 1.75rem 1.85rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}



.business-profile__header { margin-bottom: 1rem; }

.business-profile__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
  color: var(--text);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}



.business-profile__intro {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 38rem;
}



.required-asterisk {
  color: #b42318;
  margin-left: 0.15rem;
  font-weight: 600;
}

.business-profile__optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.business-profile__alert {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--negative-bg);
  border: 1px solid #efd8d5;
  border-radius: var(--radius-sm);
  color: var(--negative);
  font-size: 0.9rem;
  line-height: 1.45;
}



.business-profile__saved {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: #f3f7f4;
  border: 1px solid #d9e8de;
  border-radius: var(--radius-sm);
  color: #3d5c48;
  font-size: 0.9rem;
}



.business-profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
  margin-top: 1.35rem;
}



.business-profile__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.business-profile__field--half { grid-column: span 1; }
.business-profile__field--logo,
#field-wrap-businessName,
#field-wrap-address,
#field-wrap-ownerName,
#field-wrap-website {
  grid-column: 1 / -1;
}

.business-profile__field--missing .business-profile__input,
.business-profile__field--missing .logo-upload {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}



.business-profile__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}



.business-profile__input {
  padding: 0.75rem 0.9rem;
  border: 1px solid #d7dce3;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.98rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.business-profile__input:focus {
  border-color: #c5ced8;
  box-shadow: 0 0 0 3px rgba(27, 58, 87, 0.08);
}



.business-profile__actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.logo-upload {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafbfc;
}

.logo-upload__preview {
  width: 4.75rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}



.logo-upload__preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-upload__preview--empty {
  background: transparent;
  width: auto;
  height: auto;
  place-items: start;
}

.business-profile__actions .btn--primary {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(27, 58, 87, 0.2);
}


.business-profile__actions .btn--primary:hover {
  background: var(--accent-hover);
  opacity: 1;
}


.ws-cta .btn--generate {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}


.logo-upload__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex: 1;
  min-width: 12rem;
}

.logo-upload__choose { cursor: pointer; margin: 0; }

.logo-upload__hint {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.logo-upload__error {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.82rem;
  color: #b42318;
}

@media (max-width: 640px) {
  .business-profile__grid { grid-template-columns: 1fr; }
  .business-profile__field--half { grid-column: span 1; }
}

/* Annual monthly comparison summary */
.annual-month-summary {
  margin: 1.35rem 0 1.25rem;
  padding: 1.75rem 1.85rem 1.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}



.annual-month-summary__header { margin-bottom: 1rem; }

.annual-month-summary__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 0.35rem;
  letter-spacing: -0.015em;
}


.annual-month-summary__subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.annual-month-summary__scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}



.annual-month-summary__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 640px;
}

.annual-month-summary__table th,
.annual-month-summary__table td {
  padding: 0.65rem 0.75rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-light);
  font-variant-numeric: tabular-nums;
}

.annual-month-summary__table thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  background: transparent;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}


.annual-month-summary__table th:first-child,
.annual-month-summary__table td:first-child,
.annual-month-summary__table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.annual-month-summary__total-col,
.annual-month-summary__table td:last-child {
  font-weight: 600;
  background: transparent;
}


.annual-month-summary__row--highlight th,
.annual-month-summary__row--highlight td {
  border-top: 1px solid var(--border);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   FINANCIAL STATEMENT — Report Preview, Print & PDF
   ══════════════════════════════════════════════════════════ */

body.report-open {
  background: var(--bg);
}



.stmt-preview {
  min-height: 100dvh;
  padding: 0 0 3rem;
}

.stmt-preview--annual .stmt-document {
  max-width: 8.5in;
  margin: 0 auto;
  background: #fff;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}



.stmt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 8.5in;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}

.stmt-toolbar__actions {
  display: flex;
  gap: 0.5rem;
}

.stmt-toolbar__btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
}



.stmt-toolbar__btn:hover { background: var(--bg-soft); color: var(--text); }



.stmt-toolbar__btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 0.55rem 1.05rem;
}



.stmt-toolbar__btn--primary:hover { background: #1a2836; }

.stmt-document {
  max-width: 8.5in;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 1px 18px rgba(0, 0, 0, 0.06);
}

.stmt-cover-slot:empty { display: none; }

.stmt-page {
  padding: 0.75in 0.8in 0.55in;
  color: #1a1a1a;
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.5;
  min-height: 9in;
  display: flex;
  flex-direction: column;
}

.stmt-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1pt solid #1a1a1a;
}

.stmt-header--text {
  display: block;
}

.stmt-header--text .stmt-header__business {
  font-size: 22pt;
  margin-bottom: 0.4rem;
}

.stmt-header__logo-col {
  flex-shrink: 0;
  width: 0.95in;
  padding-top: 0.1rem;
}

.stmt-header__logo {
  max-width: 0.95in;
  max-height: 0.65in;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.stmt-header__info { flex: 1; min-width: 0; }

.stmt-header__business {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 20pt;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.3rem;
  color: #1a1a1a;
}

.stmt-header__title {
  font-size: 11pt;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.35rem;
  color: #1a1a1a;
}

.stmt-header__period {
  font-size: 9.5pt;
  color: #444;
  margin: 0 0 0.55rem;
}

.stmt-header__profile {
  font-size: 8pt;
  color: #666;
  line-height: 1.45;
}

.stmt-header__profile div + div { margin-top: 0.05rem; }

.stmt-body { flex: 1; }

.stmt-lines {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.stmt-lines__col-label { width: 72%; }
.stmt-lines__col-amt { width: 28%; }

.stmt-lines__row td {
  padding: 0.28rem 0;
  vertical-align: top;
}

.stmt-lines__label {
  text-align: left;
  font-size: 10pt;
  color: #1a1a1a;
}

.stmt-lines__label--indent { padding-left: 1.35rem; color: #333; }
.stmt-lines__label--indent2 { padding-left: 2.1rem; }

.stmt-lines__label--section {
  font-weight: 600;
  font-size: 10pt;
  padding-top: 0.85rem;
  padding-bottom: 0.2rem;
}

.stmt-lines__label--subtotal {
  font-weight: 600;
  padding-top: 0.4rem;
  border-top: 0.5pt solid #bbb;
}

.stmt-lines__label--total {
  font-weight: 600;
  padding-top: 0.5rem;
  border-top: 0.75pt solid #888;
}

.stmt-lines__label--grand {
  font-weight: 700;
  font-size: 10.5pt;
  padding-top: 0.65rem;
  border-top: 1.5pt double #1a1a1a;
}

.stmt-lines__amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 10pt;
  white-space: nowrap;
  padding-right: 0.1rem;
}

.stmt-lines__amt--bold { font-weight: 600; }
.stmt-lines__amt--final {
  font-weight: 700;
  font-size: 10.5pt;
  border-top: 1.5pt double #1a1a1a;
}
.stmt-lines__amt--negative { color: #b91c1c; }
.stmt-lines__amt--empty { border: none; }

.stmt-lines__row--spacer td {
  height: 0.7rem;
  padding: 0;
}

.stmt-lines__row--section td { padding-top: 0.85rem; }
.stmt-lines__row--subtotal .stmt-lines__amt { border-top: 0.5pt solid #bbb; }
.stmt-lines__row--total .stmt-lines__amt { border-top: 0.75pt solid #888; font-weight: 600; }
.stmt-lines__row--grand .stmt-lines__amt { border-top: 1.5pt double #1a1a1a; }

.stmt-body--annual { overflow-x: auto; }

.stmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8pt;
}

.stmt-table__th {
  font-weight: 600;
  font-size: 7pt;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #666;
  text-align: right;
  padding: 0.3rem 0.3rem;
  border-bottom: 0.75pt solid #1a1a1a;
  white-space: nowrap;
}

.stmt-table__th--label { text-align: left; width: 1.55in; }
.stmt-table__th--total { font-weight: 700; color: #1a1a1a; }

.stmt-table__label {
  text-align: left;
  padding: 0.18rem 0.4rem 0.18rem 0;
  font-size: 8pt;
  white-space: nowrap;
}

.stmt-table__label--indent { padding-left: 0.75rem; color: #333; }

.stmt-table__amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding: 0.18rem 0.28rem;
  white-space: nowrap;
}

.stmt-table__amt--total { font-weight: 600; }
.stmt-table__amt--bold { font-weight: 600; }
.stmt-table__amt--final { font-weight: 700; border-top: 1.25pt double #1a1a1a; }
.stmt-table__amt--negative { color: #b91c1c; }

.stmt-table__row--section td {
  font-weight: 600;
  padding-top: 0.6rem;
}

.stmt-table__row--subtotal td { border-top: 0.5pt solid #bbb; font-weight: 600; }
.stmt-table__row--total td { border-top: 0.75pt solid #888; font-weight: 600; }
.stmt-table__row--grand td { border-top: 1.25pt double #1a1a1a; font-weight: 700; }
.stmt-table__row--spacer td { height: 0.45rem; }
.stmt-table__row--detail .stmt-table__label { color: #333; }

.stmt-table thead { display: table-header-group; }
.stmt-table__row--section { break-after: avoid; page-break-after: avoid; }
.stmt-table__row--subtotal,
.stmt-table__row--total,
.stmt-table__row--grand { break-inside: avoid; page-break-inside: avoid; }

.stmt-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 0.5pt solid #ccc;
  font-size: 7.5pt;
  color: #666;
}

.stmt-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.stmt-footer__prepared {
  margin: 0;
  font-weight: 600;
  color: #333;
  font-size: 8pt;
}

.stmt-footer__date { margin: 0; }
.stmt-footer__label { font-weight: 600; color: #333; }
.stmt-footer__page { margin: 0; text-align: right; min-width: 3.5rem; }

.stmt-footer__page::after {
  content: 'Page 1';
}

.stmt-footer__disclaimer {
  font-size: 7pt;
  color: #777;
  line-height: 1.45;
  margin: 0;
  max-width: 36rem;
}

.stmt-footer__product {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  font-size: 7pt;
  color: #888;
}

.stmt-footer__mark {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* App chrome (session navigation — hidden in print/PDF) */
.app-chrome {
  display: flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.app-chrome__back {
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1b3a57;
  text-decoration: none;
}

.app-chrome__back:hover {
  text-decoration: underline;
}

/* Print */
@media print {
  body {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.report-open { background: #fff !important; }

  .no-print { display: none !important; }

  #worksheet { display: none !important; }

  #report {
    display: block !important;
    visibility: visible !important;
  }

  .stmt-preview {
    padding: 0;
    min-height: auto;
  }

  .stmt-document {
    max-width: none;
    margin: 0;
    box-shadow: none;
  }

  .stmt-page {
    padding: 0;
    min-height: auto;
  }

  .stmt-header {
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  .stmt-header__logo {
    display: block !important;
    max-height: 0.6in !important;
    max-width: 0.9in !important;
    object-fit: contain !important;
  }

  .stmt-lines__amt--negative,
  .stmt-table__amt--negative {
    color: #b91c1c !important;
  }

  .stmt-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.12in 0.75in 0;
    background: #fff;
  }

  .stmt-footer__page::after {
    content: 'Page ' counter(page);
  }

  body.print-landscape .stmt-table { font-size: 7pt; }
  body.print-landscape .stmt-table__th,
  body.print-landscape .stmt-table__amt { padding: 0.1rem 0.22rem; }
}

#ann-add-cogs { margin-bottom: 1rem; }

/* View toggle */
.view-toggle {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}



.view-toggle__btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s;
  border-bottom: none;
}



.view-toggle__btn--active {
  background: var(--accent);
  color: #fff;
  font-weight: 560;
  border-bottom-color: transparent;
}



/* Annual view */
.worksheet:has(.annual-scroll) {
  max-width: 1180px;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}



.annual-controls {
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.annual-controls__period { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: flex-end; }
.annual-controls__hint { font-size: 0.85rem; color: var(--negative); margin-top: 0.5rem; }
.annual-empty { color: var(--text-muted); padding: 2rem; text-align: center; }

.annual-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}



.annual-scroll--freeze {
  overscroll-behavior-x: contain;
}

.annual-grid {
  display: grid;
  grid-template-columns: var(--label-w, 220px) repeat(var(--month-cols), minmax(108px, 1fr)) var(--total-w, 116px);
  min-width: max-content;
}

.annual-grid--freeze {
  isolation: isolate;
}

.annual-section-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  background: transparent;
  border-top: none;
  padding: 1.75rem 0 0.75rem;
  grid-column: 1 / -1;
}


.annual-section-label:first-child { border-top: none; }

.annual-no-cogs { margin: 0 1.25rem 1rem; }

.annual-row {
  display: contents;
}

.annual-row--head .annual-cell {
  border-bottom: 1px solid var(--border-light);
  background: transparent;
}



.annual-cell {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.annual-cell--label {
  text-align: left;
  font-weight: 400;
  background: #fff;
  color: var(--text);
}


/* Freeze panes — left category column */
.annual-cell--freeze-left {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  box-shadow: 4px 0 8px -6px rgba(15, 23, 42, 0.18);
}


/* Freeze panes — right Total column */
.annual-cell--freeze-right {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #fff;
  box-shadow: -4px 0 8px -6px rgba(15, 23, 42, 0.18);
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: var(--total-w, 116px);
}


.annual-cell--month {
  background: #fff;
  min-width: 108px;
}

.annual-cell--head {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  justify-content: center;
  text-align: center;
  font-weight: 500;
  background: #fff !important;
}

.annual-cell--head-corner {
  z-index: 7;
  top: 0;
  background: #fff !important;
}

.annual-cell--head.annual-cell--freeze-right {
  z-index: 7;
  top: 0;
  background: #fff !important;
}

.annual-cell--head.annual-cell--month {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
}

.annual-row--head .annual-cell--freeze-left {
  background: #fff;
}

.annual-row--subtotal .annual-cell--month { background: transparent; }

.annual-row--profit .annual-cell--month { background: transparent; }


.annual-row--subtotal .annual-cell--freeze-left { background: #fff; }

.annual-row--subtotal .annual-cell--freeze-right { background: #fff; }

.annual-row--profit .annual-cell--freeze-left { background: #fff; }

.annual-row--profit .annual-cell--freeze-right { background: #fff; }


.annual-cell--freeze-right.annual-cell--total { background: #fff; font-weight: 600; }

.annual-row--profit .annual-cell--freeze-right.annual-cell--total { background: #fff; }


.annual-cell--calc {
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 600;
}

.annual-cell--expense { padding-top: 0.65rem; padding-bottom: 0.65rem; }

.annual-row--subtotal .annual-cell { background: transparent; font-weight: 600; }

.annual-row--profit .annual-cell { background: transparent; font-weight: 600; }


.annual-cogs--hidden { display: none; }

.currency-input--compact {
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
  min-width: 96px;
}

.annual-summary-panel { margin-top: 2rem; }
.annual-summary-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.annual-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}
.annual-summary-row strong { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
 .worksheet { padding: 1.5rem 1rem 3rem; }
  .ws-section { padding: 1.5rem 1.25rem; }
  .ws-fields--grid { grid-template-columns: 1fr; }
  .exp-item__line {
    grid-template-columns: minmax(0, 1fr) 132px;
  }
  .exp-item__amount { width: 132px; }
  .annual-expenses-premium { padding: 1.5rem 1.25rem; }
  .annual-expenses-premium__header { flex-direction: column; }
}

/* ── Annual View Premium Redesign ────────────────────────── */

.annual-block--premium {
  margin-bottom: 1.35rem;
  padding: 1.75rem 1.85rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.annual-block__header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.annual-block__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0;
}

.annual-block__subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-quiet);
  margin: 0.35rem 0 0;
}

.annual-block--premium .annual-no-cogs {
  margin: 0 0 1rem;
}

.annual-scroll--premium {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.annual-scroll--totals {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}



.annual-grid--premium {
  gap: 0;
}

.annual-section-label--premium {
  padding-left: 0;
  background: transparent;
  font-size: 1.1rem;
}


.annual-section-label--inset {
  background: #fff;
}

.annual-row--head .annual-cell {
  background: #e8ecf1;
  font-weight: 600;
  font-size: 0.74rem;
}

.annual-cell--expense-premium {
  padding: 0.85rem 1rem;
  gap: 0;
  min-width: var(--label-w, 280px);
  align-items: stretch;
}

.annual-grid--expenses {
  --label-w: 280px;
  --total-w: 120px;
}

.annual-expense-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.expense-row__name-input--premium {
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
}

.annual-same-month {
  display: none;
}

.annual-remove-link { display: none; }

.annual-cell--money {
  background: #fff;
}

/* Operating Expenses premium section */
.annual-expenses-premium {
  margin-top: 1.35rem;
  padding: 1.75rem 1.85rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}



.annual-expenses-premium__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}



.annual-expenses-premium__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0;
}



.annual-expenses-premium__subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-quiet);
  margin: 0.35rem 0 0;
}


.annual-expenses-premium__empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #f7f8fa;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.annual-expenses-premium__empty p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.annual-expenses-premium__actions {
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}

.annual-scroll--expenses { margin-top: 0.5rem; }

.annual-grid--expenses {
  --label-w: 280px;
  --total-w: 120px;
}

.annual-cell--expense-premium.annual-cell--freeze-left {
  background: #fff;
  z-index: 6;
}

.annual-grid--expenses .annual-cell--freeze-right {
  z-index: 6;
  background: #fff;
}

.annual-summary-panel--premium {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}


/* Expense category picker */
.expense-picker {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.25rem 1.25rem;
  margin-bottom: 1.25rem;
}



.expense-picker__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.expense-picker__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 40rem;
}

.expense-picker__intro { margin-bottom: 1.5rem; }

.expense-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.expense-picker__grid--more {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.expense-picker__show-more {
  margin: 0.5rem 0 1.25rem;
  font-size: 1rem;
}

.expense-picker__footer {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}


.expense-picker-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}



.expense-picker-card:hover {
  border-color: #d0d7e0;
  background: #fff;
  opacity: 1;
  box-shadow: var(--shadow-sm);
}



.expense-picker-card--selected {
  border-color: #c5d0dc;
  background: var(--accent-light);
  box-shadow: none;
}



.expense-picker-card__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.expense-picker-card__check {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #b8c0cc;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}

.expense-picker-card--selected .expense-picker-card__check {
  background: var(--accent);
  border-color: var(--accent);
}

.expense-picker-card--selected .expense-picker-card__check::after {
  content: '';
  width: 0.35rem;
  height: 0.6rem;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.expense-picker-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.expense-picker-card__label {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.expense-picker-card__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .annual-expenses-premium { padding: 1.5rem 1.25rem; }
  .expense-picker { padding: 1.5rem 1.25rem; }
  .expense-picker__grid { grid-template-columns: 1fr; }
  .annual-expenses-premium__header { flex-direction: column; }
}
