:root {
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #232538;
  background: #f4f5f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --primary: #4c55b8;
  --primary-deep: #39417e;
  --primary-soft: #efeffd;
  --accent: #b9904d;
  --surface: #ffffff;
  --surface-soft: #fafaff;
  --border: #e5e7ef;
  --muted: #777b8d;
  --success: #2f8f70;
  --success-soft: #e8f6f0;
  --danger: #c45e6d;
  --danger-soft: #fdecef;
  --info: #4f7fc7;
  --info-soft: #edf4ff;
  --shadow: 0 12px 34px rgba(34, 38, 82, .07);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f4f5f9; font-size: 15px; line-height: 1.48; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
svg { display: block; }

.startup-placeholder { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 7px; color: #65697b; }
.startup-placeholder strong { font-size: 19px; font-weight: 650; color: #2d3046; }
.startup-placeholder small { font-size: 13px; }
.startup-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 18px; background: linear-gradient(145deg, #5660c8, #39417e); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.04em; box-shadow: 0 14px 26px rgba(58, 66, 136, .22); }

.app-shell { min-height: 100vh; }
.topbar { min-height: 74px; position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 10px 20px; color: #fff; background: linear-gradient(104deg, #39417e 0%, #4852a8 54%, #565fc1 100%); box-shadow: 0 4px 18px rgba(38, 43, 93, .22); }
.brand-button { display: flex; align-items: center; gap: 12px; min-width: 0; border: 0; padding: 0; color: inherit; background: transparent; text-align: left; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 13px; color: #424b99; background: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.045em; box-shadow: 0 8px 20px rgba(24, 28, 70, .19); }
.brand-copy { min-width: 0; }
.brand-copy strong, .brand-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy strong { font-size: 17px; font-weight: 650; letter-spacing: -.012em; }
.brand-copy small { margin-top: 1px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 450; }
.topbar-spacer { min-width: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.church-chip { max-width: 290px; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.20); border-radius: 12px; background: rgba(255,255,255,.09); }
.church-chip svg { flex: 0 0 auto; opacity: .88; }
.church-chip-copy { min-width: 0; }
.church-chip-copy strong, .church-chip-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.church-chip-copy strong { font-size: 12px; font-weight: 600; }
.church-chip-copy small { color: rgba(255,255,255,.68); font-size: 10px; }
.topbar-icon-button { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); }
.topbar-icon-button:hover, .topbar-icon-button:focus-visible { background: rgba(255,255,255,.16); }
.topbar-icon-button:focus-visible, .brand-button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(197, 157, 83, .32); outline-offset: 2px; }

.page-container { width: min(1480px, calc(100% - 34px)); margin: 25px auto 52px; }
.hero-card, .panel, .metric-card, .feature-card { border: 1px solid var(--border); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.hero-card { min-height: 156px; display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; padding: 28px 30px; background: linear-gradient(135deg, #fff 0%, #fbfbff 72%, #f2f2ff 100%); }
.hero-card.compact { min-height: auto; }
.hero-card h1 { margin: 7px 0 9px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; font-weight: 650; letter-spacing: -.032em; }
.hero-card p { max-width: 820px; margin: 0; color: #6f7385; line-height: 1.58; }
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.period-chip { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid #dedff1; border-radius: 999px; color: #54586c; background: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 7px 20px rgba(42,44,82,.045); }
.hero-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 17px 0; }
.metric-card { min-height: 129px; padding: 19px 20px; overflow: hidden; position: relative; color: #fff; border: 0; }
.metric-card::after { content: ""; width: 118px; height: 118px; position: absolute; right: -40px; bottom: -53px; border-radius: 50%; background: rgba(255,255,255,.11); }
.metric-card span, .metric-card small, .metric-card strong { position: relative; z-index: 1; display: block; }
.metric-card span { color: rgba(255,255,255,.82); font-size: 12px; }
.metric-card strong { margin: 8px 0 4px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 650; letter-spacing: -.03em; }
.metric-card small { color: rgba(255,255,255,.75); font-size: 11px; }
.metric-card.income { background: linear-gradient(135deg, #3b9574, #4fb695); }
.metric-card.expense { background: linear-gradient(135deg, #be6470, #d9818b); }
.metric-card.cash { background: linear-gradient(135deg, #4f76b6, #5e97cf); }
.metric-card.attendance { background: linear-gradient(135deg, #585fb9, #7773cb); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 17px; margin-bottom: 17px; }
.dashboard-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { padding: 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #eceef3; }
.panel-heading.no-border { padding-bottom: 0; border-bottom: 0; }
.panel-heading h2 { margin: 4px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -.018em; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.panel-heading > span { color: var(--muted); font-size: 11px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; padding-top: 17px; }
.quick-card { min-height: 142px; display: grid; justify-items: center; align-content: center; gap: 6px; border: 1px solid #e7e8f0; border-radius: 15px; padding: 14px 10px; color: #303247; text-align: center; background: #fbfbfe; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.quick-card:hover { transform: translateY(-2px); border-color: #cacbf0; box-shadow: 0 9px 20px rgba(67, 72, 157, .08); }
.quick-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: var(--primary-soft); }
.quick-card strong { font-size: 13px; font-weight: 650; }
.quick-card small { color: #85899a; font-size: 10px; line-height: 1.35; }

.setup-list { display: grid; gap: 10px; padding-top: 15px; }
.setup-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid #eaebf1; border-radius: 12px; background: #fcfcfe; }
.setup-index { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f0f1fa; color: #60658a; font-size: 11px; font-weight: 700; }
.setup-row.done .setup-index { color: var(--success); background: var(--success-soft); }
.setup-copy strong, .setup-copy small { display: block; }
.setup-copy strong { font-size: 12px; font-weight: 600; }
.setup-copy small { margin-top: 1px; color: #8a8d9c; font-size: 10px; }
.setup-state { color: #888c9c; font-size: 10px; }
.setup-row.done .setup-state { color: var(--success); font-weight: 600; }

.ministry-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding-top: 17px; }
.ministry-card { min-height: 116px; border: 1px solid #e7e8f0; border-radius: 14px; padding: 15px; background: #fcfcfe; }
.ministry-card header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.ministry-card header span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: var(--primary-soft); }
.ministry-card strong { display: block; margin-top: 12px; font-size: 17px; font-weight: 650; }
.ministry-card small { color: #8b8e9f; font-size: 10px; }

.empty-state { min-height: 186px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 28px; color: #828697; text-align: center; }
.empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--primary); background: var(--primary-soft); }
.empty-state strong { margin-top: 3px; color: #45485c; font-size: 14px; font-weight: 650; }
.empty-state p { max-width: 470px; margin: 0; font-size: 11px; line-height: 1.5; }

.primary-button, .secondary-button, .ghost-button, .danger-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 11px; padding: 9px 14px; font-weight: 600; font-size: 12px; }
.primary-button { border: 1px solid var(--primary); color: #fff; background: var(--primary); box-shadow: 0 8px 18px rgba(76, 85, 184, .17); }
.primary-button:hover { background: #434ca8; }
.secondary-button { border: 1px solid #dfe1e9; color: #4c5063; background: #fff; }
.secondary-button:hover { border-color: #c9cbe0; background: #fafaff; }
.ghost-button { border: 0; color: var(--primary); background: transparent; padding-left: 8px; padding-right: 8px; }
.danger-button { border: 1px solid #f0c9cf; color: #a64d5b; background: #fff4f6; }
.icon-only-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #dfe1e9; border-radius: 10px; color: #555a71; background: #fff; }

.page-panel { margin-top: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 17px; }
.feature-card { min-height: 178px; padding: 20px; }
.feature-card > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.feature-card h3 { margin: 14px 0 6px; font-size: 16px; font-weight: 650; }
.feature-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.feature-card footer { margin-top: 15px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.status-pill.neutral { color: #64687b; background: #f0f1f5; }
.status-pill.active { color: #277458; background: #e8f6f0; }

.form-card { max-width: 980px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding-top: 18px; }
.field-label { min-width: 0; display: grid; gap: 6px; color: #4d5165; font-size: 11px; font-weight: 600; }
.field-label.full { grid-column: 1 / -1; }
.field-label input, .field-label select, .field-label textarea { width: 100%; min-height: 42px; border: 1px solid #dfe1e9; border-radius: 10px; padding: 9px 11px; outline: 0; color: #2e3144; background: #fff; font-weight: 450; }
.field-label textarea { min-height: 80px; resize: vertical; }
.field-label input:focus, .field-label select:focus, .field-label textarea:focus { border-color: #a8ace0; box-shadow: 0 0 0 3px rgba(76,85,184,.08); }
.field-help { margin-top: -2px; color: #9295a4; font-size: 9px; font-weight: 450; line-height: 1.4; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.profile-summary { display: flex; align-items: center; gap: 13px; margin-top: 17px; padding: 14px; border: 1px solid #e7e8ef; border-radius: 13px; background: #fbfbfd; }
.profile-summary > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.profile-summary strong, .profile-summary small { display: block; }
.profile-summary strong { font-size: 13px; font-weight: 650; }
.profile-summary small { margin-top: 2px; color: #85899a; font-size: 10px; }

.launcher-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; background: rgba(19, 21, 44, .48); backdrop-filter: blur(2px); }
.launcher-panel { width: min(570px, 100%); height: 100%; display: flex; flex-direction: column; background: #f7f8fb; box-shadow: -18px 0 55px rgba(16, 18, 42, .24); animation: slideIn .18s ease-out; }
@keyframes slideIn { from { transform: translateX(30px); opacity: .84; } to { transform: translateX(0); opacity: 1; } }
.launcher-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 23px 23px 17px; background: #fff; border-bottom: 1px solid #e6e7ee; }
.launcher-header h2 { margin: 5px 0 3px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.launcher-header p { margin: 0; color: #86899a; font-size: 11px; }
.close-button { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border: 1px solid #e2e3eb; border-radius: 11px; color: #565a6f; background: #fff; }
.launcher-groups { overflow-y: auto; padding: 15px 16px 28px; }
.launcher-group { margin-bottom: 10px; border: 1px solid #e4e6ed; border-radius: 15px; overflow: hidden; background: #fff; }
.launcher-group-heading { width: 100%; min-height: 52px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; border: 0; padding: 9px 12px; color: #3e4258; background: #fff; text-align: left; }
.launcher-group-heading:hover { background: #fafaff; }
.launcher-count { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 700; }
.launcher-group-heading strong { font-size: 12px; font-weight: 650; }
.launcher-chevron { transition: transform .16s ease; color: #777b8d; }
.launcher-group.expanded .launcher-chevron { transform: rotate(180deg); }
.launcher-grid { display: grid; gap: 7px; padding: 0 9px 10px; }
.launcher-grid[hidden] { display: none; }
.launcher-item { width: 100%; min-height: 62px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; padding: 9px 10px; color: #3c4055; background: #fafafd; text-align: left; }
.launcher-item:hover { border-color: #d9daf0; background: #f7f7ff; }
.launcher-item.active { border-color: #cfd1ef; background: #f3f3ff; }
.launcher-item > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: #ededfb; }
.launcher-item strong, .launcher-item small { display: block; }
.launcher-item strong { font-size: 11px; font-weight: 650; }
.launcher-item small { margin-top: 2px; color: #8b8e9f; font-size: 9px; line-height: 1.35; }

.onboarding-backdrop { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(circle at 15% 10%, #eef0ff 0, transparent 36%), radial-gradient(circle at 90% 80%, #f6efe4 0, transparent 32%), #f5f6fa; }
.onboarding-card { width: min(850px, 100%); display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border: 1px solid #e1e3ec; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(33, 37, 81, .12); }
.onboarding-brand { padding: 36px 31px; color: #fff; background: linear-gradient(145deg, #39417e, #555fc0); }
.onboarding-brand .brand-mark { width: 56px; height: 56px; margin-bottom: 22px; color: #424b99; font-size: 18px; }
.onboarding-brand h1 { margin: 8px 0 10px; font-size: 30px; line-height: 1.15; font-weight: 650; letter-spacing: -.03em; }
.onboarding-brand p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.6; }
.onboarding-features { display: grid; gap: 10px; margin-top: 28px; }
.onboarding-features div { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; }
.onboarding-features span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.12); }
.onboarding-features strong { font-size: 10px; font-weight: 600; }
.onboarding-form { padding: 34px 34px 31px; }
.onboarding-form h2 { margin: 5px 0 7px; font-size: 23px; font-weight: 650; letter-spacing: -.02em; }
.onboarding-form > p { margin: 0 0 18px; color: #777b8d; font-size: 11px; line-height: 1.55; }
.onboarding-form .form-grid { grid-template-columns: 1fr 1fr; }
.onboarding-form .form-actions { justify-content: stretch; }
.onboarding-form .primary-button { width: 100%; min-height: 44px; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; width: min(390px, calc(100vw - 36px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; align-items: flex-start; padding: 12px 13px; border: 1px solid #dedfe8; border-radius: 13px; background: #fff; box-shadow: 0 16px 38px rgba(28, 32, 71, .16); animation: toastIn .16s ease-out; pointer-events: auto; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.toast strong, .toast small { display: block; }
.toast strong { color: #414559; font-size: 11px; font-weight: 650; }
.toast small { margin-top: 2px; color: #85899a; font-size: 9px; line-height: 1.4; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid, .dashboard-grid.equal { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 9px 12px; }
  .topbar-spacer { display: none; }
  .church-chip { display: none; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 10px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .page-container { width: min(100% - 20px, 1480px); margin-top: 15px; }
  .hero-card { display: grid; gap: 18px; padding: 22px 20px; }
  .period-chip { justify-self: start; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 112px; padding: 16px; }
  .panel { padding: 17px; }
  .quick-grid { gap: 9px; }
  .quick-card { min-height: 128px; }
  .ministry-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-label.full, .form-actions { grid-column: auto; }
  .form-actions { justify-content: stretch; }
  .form-actions .primary-button, .form-actions .secondary-button { flex: 1; }
  .onboarding-card { grid-template-columns: 1fr; }
  .onboarding-brand { padding: 28px 24px; }
  .onboarding-features { display: none; }
  .onboarding-form { padding: 27px 24px; }
}

@media (max-width: 520px) {
  .brand-copy small { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-card { min-height: 118px; }
  .quick-card small { display: none; }
  .hero-card h1 { font-size: 28px; }
  .panel-heading { display: grid; }
  .onboarding-form .form-grid { grid-template-columns: 1fr; }
}

/* F3 — Catálogos y configuración */
.catalog-panel { overflow: hidden; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 16px 0 13px; }
.catalog-search { min-width: min(360px, 100%); flex: 1 1 280px; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #dfe1e9; border-radius: 11px; color: #777b8d; background: #fff; }
.catalog-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #303348; font-weight: 450; }
.catalog-filter { min-height: 42px; border: 1px solid #dfe1e9; border-radius: 11px; padding: 0 11px; color: #4b4f63; background: #fff; font-weight: 500; }
.data-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e4e6ed; border-radius: 13px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid #e4e6ed; color: #777b8d; background: #f8f8fb; font-size: 9px; font-weight: 650; text-align: left; letter-spacing: .02em; text-transform: uppercase; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid #ececf2; color: #3f4358; font-size: 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr[hidden] { display: none; }
.table-primary { min-width: 190px; }
.table-primary strong, .table-primary small { display: block; }
.table-primary strong { color: #383c50; font-size: 11px; font-weight: 650; }
.table-primary small { margin-top: 3px; color: #8a8e9f; font-size: 9px; line-height: 1.4; max-width: 430px; }
.table-muted { color: #74788b; font-size: 10px; line-height: 1.45; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; min-width: 145px; }
.table-action { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #dfe1e9; border-radius: 9px; padding: 5px 9px; color: #4d5167; background: #fff; font-size: 9px; font-weight: 600; white-space: nowrap; }
.table-action:hover { border-color: #c9cce5; background: #f8f8ff; }
.table-action.subtle { color: #707487; background: #fafafd; }
.mini-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 4px 7px; border-radius: 999px; color: #4d579d; background: #efeffb; font-size: 8px; font-weight: 650; line-height: 1; }
.mini-tag.neutral { color: #707487; background: #f0f1f5; }
.mini-tag.income-tag { color: #277458; background: #e8f6f0; }
.mini-tag.expense-tag { color: #985463; background: #faedf0; }
.category-name-cell { padding-left: calc(var(--category-depth, 0) * 16px); }
.tree-mark { display: inline-block; margin-right: 6px; color: #9a9daf; font-weight: 500; }
.catalog-no-results { margin-top: 12px; padding: 14px; border: 1px dashed #dfe1e9; border-radius: 11px; color: #85899a; background: #fbfbfd; font-size: 10px; text-align: center; }
.empty-state.compact { min-height: 140px; }
.center-actions { display: flex; justify-content: center; margin-top: 12px; }
.ministry-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ministry-config-card { padding: 16px; border: 1px solid #e3e5ed; border-radius: 14px; background: #fff; }
.ministry-config-card[hidden] { display: none; }
.ministry-config-card header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ministry-config-card h3 { margin: 8px 0 3px; color: #393d52; font-size: 15px; font-weight: 650; }
.ministry-config-card p { margin: 0; color: #878b9c; font-size: 9px; }
.ministry-config-card footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.metric-chip-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; margin-top: 13px; }
.metric-chip { min-height: 28px; border: 1px solid #dadcec; border-radius: 999px; padding: 5px 9px; color: #555c9f; background: #f6f6ff; font-size: 9px; font-weight: 600; }
.metric-chip.inactive { color: #8a8d9c; background: #f5f5f7; text-decoration: line-through; }
.modal-backdrop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 18px; background: rgba(19,21,44,.52); backdrop-filter: blur(2px); }
.modal-card { width: min(720px, 100%); max-height: calc(100vh - 36px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e0e2ea; border-radius: 20px; background: #fff; box-shadow: 0 24px 72px rgba(23,26,61,.24); }
.modal-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 21px 15px; border-bottom: 1px solid #e8e9ef; }
.modal-header h2 { margin: 4px 0 4px; color: #34384d; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.modal-header p { margin: 0; color: #85899a; font-size: 10px; line-height: 1.5; }
.modal-form { min-height: 0; display: flex; flex-direction: column; }
.modal-form > .form-grid { overflow-y: auto; padding: 18px 21px 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 21px 18px; border-top: 1px solid #ececf2; background: #fbfbfd; }
.check-field { min-height: 54px; display: flex; align-items: flex-start; gap: 10px; padding: 10px 11px; border: 1px solid #e2e4eb; border-radius: 11px; color: #4c5064; background: #fbfbfd; }
.check-field.full { grid-column: 1 / -1; }
.check-field input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--primary); }
.check-field strong, .check-field small { display: block; }
.check-field strong { font-size: 10px; font-weight: 650; }
.check-field small { margin-top: 2px; color: #8b8e9e; font-size: 9px; line-height: 1.4; }

@media (max-width: 760px) {
  .catalog-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .catalog-search { grid-column: 1 / -1; min-width: 0; }
  .catalog-filter { width: 100%; }
  .ministry-config-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 8px; align-items: end; }
  .modal-card { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-header { padding: 18px 17px 13px; }
  .modal-form > .form-grid { padding: 16px 17px 5px; }
  .modal-actions { padding: 12px 17px 16px; }
}

@media (max-width: 520px) {
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-search { grid-column: auto; }
  .panel-heading .primary-button { width: 100%; margin-top: 8px; }
  .modal-actions .primary-button, .modal-actions .secondary-button { flex: 1; }
}

/* F5 — Ingresos, gastos y transferencias */
.financial-summary-row { display: grid; grid-template-columns: minmax(220px,.72fr) minmax(320px,1.28fr); gap: 12px; margin: 17px 0 0; }
.financial-summary-row > article { min-height: 96px; padding: 16px 18px; border: 1px solid #e3e5ed; border-radius: 15px; background: #fff; }
.financial-summary-row > article > span, .financial-summary-row > article > small { display: block; color: #828697; font-size: 9px; }
.financial-summary-row > article > strong { display: block; margin: 5px 0 4px; color: #35394e; font-size: 23px; font-weight: 650; letter-spacing: -.02em; }
.financial-summary-row .financial-tip { display: flex; align-items: center; gap: 12px; background: #f8f8ff; }
.financial-tip > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid !important; place-items: center; border-radius: 11px; color: #535ca0 !important; background: #ececfa; }
.financial-tip p { margin: 0; color: #656a7f; font-size: 10px; line-height: 1.55; }
.movement-balance-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 9px; margin-top: 11px; }
.movement-balance-strip > div { padding: 11px 13px; border: 1px solid #e5e6ee; border-radius: 12px; background: #fff; }
.movement-balance-strip span, .movement-balance-strip small { display: block; color: #8a8e9f; font-size: 8px; }
.movement-balance-strip strong { display: block; margin: 4px 0 2px; color: #3e4257; font-size: 13px; font-weight: 650; }
.movement-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 15px 0 13px; }
.movement-toolbar .catalog-search { min-width: min(460px,100%); }
.movement-table { min-width: 930px; }
.amount-cell { text-align: right; white-space: nowrap; }
.amount-cell strong { font-size: 11px; font-weight: 650; }
.amount-cell.income strong { color: #277458; }
.amount-cell.expense strong { color: #9a5262; }
.amount-cell.transfer strong { color: #51598f; }
.movement-modal-card { width: min(920px,100%); }
.movement-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.select-with-add { display: grid; grid-template-columns: minmax(0,1fr) 40px; gap: 7px; align-items: stretch; }
.inline-add-button { min-height: 40px; display: grid; place-items: center; border: 1px solid #d7d9e8; border-radius: 10px; color: #4f589c; background: #f7f7ff; }
.inline-add-button:hover { background: #eeeeff; }
.split-editor { padding: 12px; border: 1px solid #e2e4ec; border-radius: 13px; background: #fafafe; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 9px; }
.split-heading strong, .split-heading small { display: block; }
.split-heading strong { color: #3d4155; font-size: 11px; font-weight: 650; }
.split-heading small { margin-top: 2px; color: #898d9d; font-size: 8px; line-height: 1.4; }
.compact-button { min-height: 32px; padding: 6px 9px; font-size: 9px; white-space: nowrap; }
.split-line { position: relative; display: grid; grid-template-columns: minmax(170px,1.35fr) minmax(130px,.9fr) minmax(105px,.62fr) minmax(140px,1fr) 31px; gap: 8px; align-items: end; padding: 9px 0; border-top: 1px solid #e7e8ef; }
.split-line:first-child { border-top: 0; }
.split-line .field-label { gap: 4px; }
.split-line .field-label > span, .split-line .field-label { font-size: 8px; }
.split-remove { width: 31px; height: 40px; display: grid; place-items: center; border: 1px solid #eadde0; border-radius: 9px; color: #9d5d68; background: #fff7f8; }
.split-remove[hidden] { visibility: hidden; display: grid; }
.split-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; padding-top: 9px; border-top: 1px solid #e0e2e9; }
.split-total span { color: #7d8193; font-size: 9px; }
.split-total strong { color: #35394e; font-size: 14px; font-weight: 650; }
.nested-modal { z-index: 340; background: rgba(19,21,44,.62); }
.quick-modal-card { width: min(540px,100%); }
.void-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 16px 21px 0; padding: 11px 12px; border: 1px solid #e5e6ed; border-radius: 11px; background: #fafafd; }
.void-summary span { color: #85899a; font-size: 9px; }
.void-summary strong { color: #45495f; font-size: 10px; font-weight: 600; }
.void-summary b { color: #3d4156; font-size: 11px; font-weight: 650; }
.account-balance-list { display: grid; gap: 2px; margin-top: 7px; }
.account-balance-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #ececf2; }
.account-balance-row:last-child { border-bottom: 0; }
.account-balance-row span strong, .account-balance-row span small { display: block; }
.account-balance-row span strong { color: #44485d; font-size: 10px; font-weight: 600; }
.account-balance-row span small { margin-top: 2px; color: #9295a4; font-size: 8px; }
.account-balance-row > strong { color: #373b50; font-size: 11px; font-weight: 650; }
.recent-movement-list { display: grid; margin-top: 2px; }
.recent-movement { width: 100%; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 9px 3px; border: 0; border-bottom: 1px solid #ececf2; color: inherit; background: transparent; text-align: left; }
.recent-movement:last-child { border-bottom: 0; }
.recent-movement:hover { background: #fafafe; }
.recent-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #f0f1f5; }
.recent-icon.income { color: #2e765b; background: #ebf7f2; }
.recent-icon.expense { color: #9a5262; background: #fbf0f2; }
.recent-icon.transfer { color: #535c9c; background: #f0f0fb; }
.recent-copy strong, .recent-copy small { display: block; }
.recent-copy strong { color: #42465b; font-size: 9px; font-weight: 600; }
.recent-copy small { margin-top: 2px; color: #9093a2; font-size: 8px; }
.recent-amount { font-size: 9px; font-weight: 650; white-space: nowrap; }
.recent-amount.income { color: #2e765b; }
.recent-amount.expense { color: #9a5262; }
.recent-amount.transfer { color: #565e98; }

@media (max-width: 860px) {
  .financial-summary-row { grid-template-columns: 1fr; }
  .split-line { grid-template-columns: 1fr 1fr; padding-right: 38px; }
  .split-remove { position: absolute; right: 0; top: 26px; }
  .movement-modal-card { width: 100%; }
}
@media (max-width: 620px) {
  .movement-form-grid { grid-template-columns: 1fr; }
  .movement-form-grid > div:empty { display: none; }
  .split-heading { display: grid; }
  .split-line { grid-template-columns: 1fr; padding-right: 0; padding-top: 13px; }
  .split-remove { position: static; width: 100%; height: 32px; }
  .split-remove[hidden] { display: none; }
  .void-summary { grid-template-columns: 1fr; }
  .recent-movement { grid-template-columns: 30px minmax(0,1fr); }
  .recent-amount { grid-column: 2; }
}

/* F5 — Diezmos, ofrendas y donantes */
.giving-tag { margin-left: 6px; color: #66552d; background: #faf3df; border-color: #ead9aa; }
.giving-overview-grid { grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); }
.giving-guide-card { background: linear-gradient(145deg,#fff,#fbfbff); }
.giving-guide-list { display: grid; gap: 9px; padding-top: 15px; }
.giving-guide-list > div { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid #e9eaf1; border-radius: 12px; background: #fcfcff; }
.giving-guide-list > div > svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.giving-guide-list strong,.giving-guide-list small { display:block; }
.giving-guide-list strong { color:#44485d; font-size:11px; font-weight:650; }
.giving-guide-list small { margin-top:2px; color:#898d9d; font-size:9px; line-height:1.42; }
.giving-breakdown-row { display:grid; grid-template-columns:minmax(130px,1fr) minmax(100px,1.15fr) auto; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid #ececf2; }
.giving-breakdown-row:last-child { border-bottom:0; }
.giving-breakdown-row span strong,.giving-breakdown-row span small { display:block; }
.giving-breakdown-row span strong { color:#45495e; font-size:10px; font-weight:600; }
.giving-breakdown-row span small { margin-top:2px; color:#9295a4; font-size:8px; }
.giving-breakdown-row > strong { color:#35394f; font-size:10px; font-weight:650; white-space:nowrap; }
.giving-bar { height:7px; overflow:hidden; border-radius:999px; background:#eeeeF5; }
.giving-bar i { display:block; width:var(--giving-width,0%); height:100%; border-radius:inherit; background:linear-gradient(90deg,#5962c2,#8c84d3); }
.giving-line { grid-template-columns:minmax(185px,1.45fr) minmax(150px,1fr) minmax(115px,.65fr) 31px; }
.giving-split-editor { margin-top:2px; }
.giving-modal-card { width:min(920px,100%); }
.modal-action-spacer { flex:1; }
.donor-history-card { width:min(860px,100%); max-height:min(84vh,820px); overflow:auto; }
.donor-history-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:15px 21px; }
.donor-history-summary > div { padding:12px 13px; border:1px solid #e7e8ef; border-radius:12px; background:#fafafe; }
.donor-history-summary span,.donor-history-summary strong { display:block; }
.donor-history-summary span { color:#8b8f9f; font-size:9px; }
.donor-history-summary strong { margin-top:4px; color:#3f4358; font-size:13px; font-weight:650; }
.donor-history-table { margin:0 21px 21px; }
.giving-row .mini-tag + .mini-tag { margin-left:5px; }

@media (max-width: 920px) {
  .giving-overview-grid { grid-template-columns:1fr; }
  .giving-line { grid-template-columns:1fr 1fr; padding-right:38px; }
  .donor-history-summary { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .giving-line { grid-template-columns:1fr; padding-right:0; }
  .giving-line .split-remove { position:static; width:100%; height:32px; }
  .giving-breakdown-row { grid-template-columns:1fr auto; }
  .giving-bar { grid-column:1 / -1; grid-row:2; }
}

/* F6 — actividad ministerial */
.ministry-metric-grid{margin-top:18px}.ministry-activity-table th:nth-child(3){min-width:230px}.ministry-activity-table th:nth-child(4){min-width:170px}.ministry-metric-stack{display:flex;flex-wrap:wrap;gap:7px}.ministry-metric-stack span{display:inline-flex;align-items:baseline;gap:5px;padding:6px 9px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}.ministry-metric-stack small{font-size:11px;color:var(--muted)}.ministry-metric-stack strong{font-size:13px;font-weight:650;color:var(--text)}.ministry-groups-panel{margin-top:18px}.ministry-modal-card{max-width:940px}.ministry-metrics-section,.ministry-offering-section{padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft)}.ministry-offering-section{background:var(--surface)}.ministry-metric-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.compact-form-grid{margin-top:14px}.ministry-metric-input input{font-variant-numeric:tabular-nums}
@media (max-width:760px){.ministry-metric-input-grid{grid-template-columns:1fr}.ministry-activity-table{min-width:860px}.ministry-metrics-section,.ministry-offering-section{padding:14px}}


/* F7 — Caja, bancos y control de efectivo */
.cash-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.cash-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.cash-account-card{border:1px solid var(--border);border-radius:16px;padding:16px;background:var(--surface-soft);display:flex;flex-direction:column;gap:5px}.cash-account-card.selected{border-color:rgba(66,75,153,.42);box-shadow:0 0 0 3px rgba(66,75,153,.07)}.cash-account-card span,.cash-account-card small,.cash-count-summary span,.ledger-summary-strip span,.cash-count-comparison span{font-size:12px;color:var(--muted)}.cash-account-card strong{font-size:14px}.cash-account-card b{font-size:22px;font-weight:700;letter-spacing:-.02em}.cash-control-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:18px;align-items:start}.cash-count-summary,.ledger-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}.cash-count-summary>div,.ledger-summary-strip>div{padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft);display:flex;flex-direction:column;gap:4px}.ledger-summary-strip{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:4px}.cash-count-summary strong,.ledger-summary-strip strong{font-size:15px;font-weight:700}.cash-ledger-filters{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px;margin-bottom:12px}.ledger-link{appearance:none;border:0;background:transparent;padding:0;text-align:left;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:3px}.ledger-link strong{font-weight:650}.ledger-link small{color:var(--muted)}.ledger-link:hover strong{text-decoration:underline}.cash-difference{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:650;white-space:nowrap}.cash-difference.balanced{background:rgba(35,130,90,.10);color:#226b4e}.cash-difference.positive{background:rgba(35,130,90,.10);color:#226b4e}.cash-difference.negative{background:rgba(190,65,65,.10);color:#a43e3e}.cash-count-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cash-count-comparison>div{border:1px solid var(--border);border-radius:14px;padding:13px 14px;background:var(--surface-soft);display:flex;flex-direction:column;gap:5px}.cash-count-comparison strong{font-size:18px;font-weight:700}.cash-count-table td,.cash-ledger-table td{vertical-align:middle}.cash-ledger-table .amount-cell{white-space:nowrap}.cash-count-modal{max-width:650px}
@media(max-width:1050px){.cash-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-control-layout{grid-template-columns:1fr}.ledger-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.cash-overview-grid{grid-template-columns:1fr}.cash-ledger-filters,.cash-count-summary,.cash-count-comparison{grid-template-columns:1fr}.ledger-summary-strip{grid-template-columns:1fr 1fr}.cash-account-grid{grid-template-columns:1fr}.cash-control-layout{gap:14px}}


/* F8 - Reportes financieros y PDF */
.report-filter-panel{margin-bottom:18px}.report-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0 22px 22px}.report-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px}.report-metrics{margin-top:18px}.report-two-column{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:18px;margin-top:18px}.report-category-name{padding-left:calc(var(--depth,0)*14px)}.report-note{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:11px 14px;border:1px solid var(--border,#e5e7ef);border-radius:12px;background:#f8f9fc;color:var(--muted,#666b7b);font-size:13px}.report-top-actions{display:flex;justify-content:flex-end;margin:-4px 0 14px}.report-two-column .page-panel{margin-top:0}.report-two-column table{min-width:560px}@media(max-width:980px){.report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-two-column{grid-template-columns:1fr}}@media(max-width:620px){.report-filter-grid{grid-template-columns:1fr;padding:0 16px 18px}.report-filter-actions{flex-direction:column-reverse}.report-filter-actions button{width:100%}.report-top-actions .primary-button{width:100%}.report-two-column{gap:14px}}

/* F9 — reportes de iglesia y contribuciones */
.panel-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.report-stat-list{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.report-stat-chip{display:inline-flex;align-items:baseline;gap:5px;padding:5px 8px;border:1px solid var(--line,#e6e8ef);border-radius:9px;background:#fafbfe;font-size:.76rem}.report-stat-chip strong{font-weight:650}.report-stat-chip small{color:var(--muted,#6b7280);font-size:.69rem}.muted-text{color:var(--muted,#6b7280)}.comparison-cards{display:grid;gap:10px;padding:8px 0}.comparison-cards>div{padding:14px;border:1px solid var(--line,#e6e8ef);border-radius:12px;background:#fafbfe}.comparison-cards span{display:block;color:var(--muted,#6b7280);font-size:.78rem;margin-bottom:5px}.comparison-cards strong{font-size:1rem;font-weight:650}.empty-state.compact{min-height:auto;padding:24px 10px}@media(max-width:760px){.panel-actions{width:100%}.panel-actions button{flex:1}.report-stat-chip{white-space:normal}}


/* F10 — Dashboard y análisis */
.dashboard-filter-panel{margin:0 0 16px;padding:15px 17px}.dashboard-filter-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr 1.2fr auto;gap:10px;align-items:end}.dashboard-filter-grid .field-label{margin:0}.dashboard-apply{min-height:42px;white-space:nowrap}.dashboard-period-note{display:flex;align-items:center;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}
.analysis-metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:17px}.analysis-metric-card{border:1px solid var(--border);border-radius:18px;padding:15px;background:var(--surface);box-shadow:var(--shadow-sm);min-width:0}.analysis-metric-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.analysis-metric-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--surface-soft);color:var(--primary)}.analysis-metric-card>strong{display:block;font-size:24px;line-height:1.1;letter-spacing:-.025em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.analysis-metric-card>span:not(.analysis-metric-icon){display:block;margin-top:7px;font-size:13px;font-weight:650}.analysis-metric-card>small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.35}.analysis-change{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:650;white-space:nowrap;background:var(--surface-soft);color:var(--muted)}.analysis-change.up{background:rgba(35,130,90,.09);color:#226b4e}.analysis-change.down{background:rgba(190,65,65,.08);color:#9b4141}.analysis-change.neutral{background:var(--surface-soft);color:var(--muted)}
.analysis-panel{min-width:0}.analytics-main-grid{grid-template-columns:minmax(0,1.45fr) minmax(310px,.55fr)}.analysis-chart{height:270px;display:flex;flex-direction:column}.analysis-chart-legend{display:flex;justify-content:flex-end;gap:14px;font-size:11px;color:var(--muted);margin-bottom:8px}.analysis-chart-legend span{display:flex;align-items:center;gap:5px}.analysis-chart-legend i{width:8px;height:8px;border-radius:3px;display:inline-block}.analysis-chart-legend i.income{background:var(--primary)}.analysis-chart-legend i.expense{background:#b86565}.analysis-bar-groups{flex:1;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(36px,1fr);gap:8px;align-items:end;border-bottom:1px solid var(--border);padding:10px 2px 0;overflow-x:auto}.analysis-bar-group{height:100%;min-width:36px;display:flex;flex-direction:column;justify-content:flex-end;gap:7px}.analysis-bars{height:calc(100% - 26px);display:flex;align-items:flex-end;justify-content:center;gap:4px}.analysis-bar{display:block;width:min(15px,38%);min-height:3px;border-radius:5px 5px 2px 2px;transition:height .2s ease}.analysis-bar.income{background:var(--primary)}.analysis-bar.expense{background:#b86565}.analysis-bar-group small{text-align:center;color:var(--muted);font-size:9px;white-space:nowrap}
.balance-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:13px}.balance-summary-grid>div{border:1px solid var(--border);border-radius:13px;padding:11px 12px;background:var(--surface-soft);display:flex;flex-direction:column;gap:4px}.balance-summary-grid span{font-size:11px;color:var(--muted)}.balance-summary-grid strong{font-size:15px;font-weight:700}.compact-list .account-balance-row{padding:9px 0}.compact-list .account-balance-row strong{font-size:12px}
.giving-identity{margin-bottom:17px}.giving-identity-bar{height:12px;border-radius:999px;overflow:hidden;background:var(--surface-soft);display:flex}.giving-identity-bar span.identified{background:var(--primary)}.giving-identity-bar span.general{background:#a8adcc}.giving-identity-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}.giving-identity-legend>span{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.giving-identity-legend i{width:7px;height:7px;border-radius:999px}.giving-identity-legend i.identified{background:var(--primary)}.giving-identity-legend i.general{background:#a8adcc}.giving-identity-legend strong{font-weight:650;color:var(--text)}.analysis-distribution{display:flex;flex-direction:column;gap:11px}.analysis-distribution-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,1.3fr) auto;gap:10px;align-items:center}.analysis-distribution-row>div:first-child{display:flex;flex-direction:column;gap:2px}.analysis-distribution-row strong{font-size:12px}.analysis-distribution-row small{font-size:10px;color:var(--muted)}.analysis-distribution-row b{font-size:11px;font-weight:700}.analysis-progress{height:7px;border-radius:999px;overflow:hidden;background:var(--surface-soft)}.analysis-progress span{display:block;height:100%;border-radius:999px;background:var(--primary)}
.ministry-summary-line{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}.ministry-summary-line>span:not(.analysis-change){display:flex;align-items:baseline;gap:5px}.ministry-summary-line strong{font-size:16px}.ministry-summary-line small{font-size:10px;color:var(--muted)}.ministry-trend-chart{height:190px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(34px,1fr);gap:7px;align-items:end;border-bottom:1px solid var(--border);overflow-x:auto;padding:8px 1px 0}.ministry-trend-item{height:100%;display:grid;grid-template-rows:1fr auto auto;gap:3px;min-width:34px;text-align:center}.ministry-trend-track{display:flex;align-items:flex-end;justify-content:center}.ministry-trend-track span{display:block;width:min(24px,68%);min-height:4px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,var(--primary),rgba(66,75,153,.62))}.ministry-trend-item strong{font-size:10px;font-weight:650}.ministry-trend-item small{font-size:9px;color:var(--muted);white-space:nowrap}
.ministry-overview-panel{margin-bottom:17px}.ministry-analysis-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.ministry-analysis-card{border:1px solid var(--border);border-radius:16px;padding:14px;background:var(--surface-soft)}.ministry-analysis-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.ministry-analysis-card header>div{display:flex;align-items:center;gap:7px}.ministry-analysis-card header>div>span{color:var(--primary)}.ministry-analysis-card header strong{font-size:13px;font-weight:650}.ministry-analysis-main{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:5px;align-items:baseline;margin:13px 0}.ministry-analysis-main b,.ministry-analysis-main strong{font-size:16px;font-weight:700}.ministry-analysis-main small{font-size:10px;color:var(--muted)}.ministry-analysis-metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ministry-analysis-metrics>span{border:1px solid var(--border);background:var(--surface);border-radius:11px;padding:8px;display:flex;flex-direction:column;gap:2px}.ministry-analysis-metrics small{font-size:9px;color:var(--muted)}.ministry-analysis-metrics strong{font-size:13px;font-weight:700}.ministry-analysis-metrics em{font-style:normal;font-size:9px;color:var(--muted)}
.top-group-list{display:flex;flex-direction:column}.top-group-row{display:grid;grid-template-columns:28px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.top-group-row:last-child{border-bottom:0}.top-group-rank{width:25px;height:25px;border-radius:9px;background:var(--surface-soft);display:grid;place-items:center;font-size:10px;font-weight:700;color:var(--primary)}.top-group-row>div{display:flex;flex-direction:column;gap:2px}.top-group-row strong{font-size:12px}.top-group-row small{font-size:10px;color:var(--muted)}.top-group-row b{font-size:13px;font-weight:700}.compact-quick-grid{grid-template-columns:1fr 1fr}.recent-dashboard-block{border-top:1px solid var(--border);margin-top:15px;padding-top:14px}.recent-dashboard-block>header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:7px}.recent-dashboard-block>header strong{font-size:12px}.recent-dashboard-block>header small{font-size:10px;color:var(--muted)}
@media(max-width:1100px){.analysis-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-filter-grid{grid-template-columns:1fr 1fr 1fr}.dashboard-apply{width:100%}.analytics-main-grid{grid-template-columns:1fr}}
@media(max-width:760px){.analysis-metric-grid{grid-template-columns:1fr 1fr}.dashboard-filter-grid{grid-template-columns:1fr 1fr}.dashboard-filter-grid .field-label:first-child,.dashboard-filter-grid .field-label:nth-child(4),.dashboard-apply{grid-column:1/-1}.analysis-chart{height:220px}.analysis-distribution-row{grid-template-columns:1fr auto}.analysis-progress{grid-column:1/-1;grid-row:2}.ministry-analysis-grid{grid-template-columns:1fr}.compact-quick-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.analysis-metric-grid{grid-template-columns:1fr}.dashboard-filter-grid{grid-template-columns:1fr}.dashboard-filter-grid .field-label,.dashboard-apply{grid-column:auto}.analysis-metric-card>strong{font-size:22px}.balance-summary-grid{grid-template-columns:1fr}.compact-quick-grid{grid-template-columns:1fr}.giving-identity-legend{flex-direction:column;gap:5px}}


/* F11 — Protección, administración y acceso OFI */
.protection-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.protection-card{border:1px solid #e3e5ed;border-radius:16px;background:#fff;padding:17px;display:flex;flex-direction:column;gap:5px;min-width:0}.protection-card>span{width:35px;height:35px;border-radius:11px;background:#f0f1fb;color:#4b559c;display:grid;place-items:center;margin-bottom:5px}.protection-card small{color:#8a8e9f;font-size:10px}.protection-card strong{font-size:18px;font-weight:650;color:#34384d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.protection-card p{margin:0;color:#85899a;font-size:10px;line-height:1.5}.panel-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.protection-note{margin:0 20px 20px;border:1px solid #e4e6ef;border-radius:13px;background:#f8f8fc;padding:12px 14px;display:flex;gap:9px;align-items:flex-start;color:#676c82}.protection-note>span{color:#515b9f;flex:0 0 auto}.protection-note p{margin:0;font-size:11px;line-height:1.55}.protection-note.warning{background:#fffaf1;border-color:#f0dfba;color:#7a6540}.protection-event-list{padding:0 20px 20px;display:flex;flex-direction:column}.protection-event{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #eceef4}.protection-event:last-child{border-bottom:0}.protection-event>span{width:31px;height:31px;border-radius:10px;background:#f1f2fa;color:#535d9f;display:grid;place-items:center}.protection-event div{min-width:0}.protection-event strong{display:block;color:#3b3f54;font-size:12px;font-weight:650}.protection-event small{display:block;color:#8a8e9e;font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.protection-event b{font-size:10px;color:#666b7e;font-weight:600}.history-search{max-width:290px}.history-list{padding:0 20px 20px}.history-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #eceef4}.history-row:last-child{border-bottom:0}.history-dot{width:8px;height:8px;border-radius:50%;background:#7780bb;box-shadow:0 0 0 4px #f0f1f8}.history-row strong{display:block;color:#3b3f54;font-size:12px;font-weight:650}.history-row small{display:block;color:#8a8e9e;font-size:10px;margin-top:3px}.history-meta{text-align:right}.history-meta b{display:block;color:#64697d;font-size:10px;font-weight:600}.demo-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 20px 20px}.demo-feature-grid>div{border:1px solid #e7e8ef;border-radius:14px;padding:14px;background:#fcfcfe;display:grid;gap:5px}.demo-feature-grid span{color:#515b9f}.demo-feature-grid strong{font-size:11px;color:#3d4156;font-weight:650}.demo-feature-grid small{font-size:9.5px;line-height:1.5;color:#8b8f9f}.access-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 20px 20px}.access-status-grid>div{border:1px solid #e6e8ef;border-radius:14px;padding:14px;display:grid;gap:4px}.access-status-grid span{color:#515b9f}.access-status-grid small{font-size:9px;color:#9296a6}.access-status-grid strong{font-size:12px;color:#3b3f54;font-weight:650;overflow-wrap:anywhere}.restore-confirm-body{padding:18px 21px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.restore-confirm-body>div{border:1px solid #e6e8ef;border-radius:12px;padding:12px;display:grid;gap:4px}.restore-confirm-body small{color:#9296a6;font-size:9px}.restore-confirm-body strong{color:#3d4155;font-size:11px;font-weight:650;overflow-wrap:anywhere}.restore-confirm-body p{grid-column:1/-1;margin:0;color:#6e7387;font-size:10px;line-height:1.5;background:#f7f7fb;border-radius:12px;padding:11px 12px}
@media(max-width:900px){.protection-summary-grid,.demo-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-actions{justify-content:flex-start}.access-status-grid{grid-template-columns:1fr}}
@media(max-width:600px){.protection-summary-grid,.demo-feature-grid{grid-template-columns:1fr}.history-row{grid-template-columns:12px minmax(0,1fr)}.history-meta{grid-column:2;text-align:left}.restore-confirm-body{grid-template-columns:1fr}.panel-actions{width:100%}.panel-actions .primary-button,.panel-actions .secondary-button{flex:1}.history-search{max-width:none;width:100%}}

/* F12 — guía breve para primer uso */
.pilot-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin:0 0 18px;border:1px solid rgba(66,75,153,.18);background:linear-gradient(135deg,rgba(66,75,153,.07),rgba(255,255,255,.96));border-radius:18px;box-shadow:0 8px 24px rgba(25,34,74,.05)}
.pilot-banner>div:first-child{display:flex;align-items:center;gap:12px;min-width:0}.pilot-banner>div:first-child>span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:rgba(66,75,153,.1);color:#424b99;flex:0 0 auto}.pilot-banner strong{display:block;font-weight:700;color:#20284e}.pilot-banner small{display:block;margin-top:3px;color:#68708c;line-height:1.45}.pilot-banner-actions{display:flex;gap:8px;flex-wrap:wrap}.pilot-banner.demo-active{border-color:rgba(32,139,105,.2);background:linear-gradient(135deg,rgba(32,139,105,.08),rgba(255,255,255,.97))}.pilot-banner.demo-active>div:first-child>span{background:rgba(32,139,105,.11);color:#1f8064}@media(max-width:760px){.pilot-banner{align-items:stretch;flex-direction:column}.pilot-banner-actions,.pilot-banner>button{width:100%}.pilot-banner-actions button,.pilot-banner>button{flex:1}}

/* HF4 diagnostic panel — visible only on startup failure */
.diagnostic-details{margin-top:14px;border:1px solid #dfe2ee;border-radius:14px;padding:12px 14px;background:#fafbff}.diagnostic-details summary{cursor:pointer;font-weight:650}.diagnostic-details pre{white-space:pre-wrap;word-break:break-word;max-height:220px;overflow:auto;font-size:12px;line-height:1.5;background:#f3f5fb;border-radius:10px;padding:12px;margin:10px 0}.storage-error-card .status-pill{display:inline-flex;margin-top:14px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;font-weight:650}.secondary-button.compact{width:auto;padding:9px 12px;font-size:13px}


/* F12 RC1 HF7 — refinamiento de navegación y reportes */
.status-pill.movement-type{margin:0;white-space:nowrap}
.status-pill.movement-type.income{color:#277458;background:#e8f6f0}
.status-pill.movement-type.expense{color:#9f4343;background:#faecec}
.status-pill.movement-type.transfer{color:#4c5699;background:#eef0fb}
.status-pill.movement-type.neutral{color:#64687b;background:#f0f1f5}

.launcher-panel{width:min(540px,100%);background:#f7f8fb}
.launcher-header{padding:26px 28px 20px}
.launcher-header h2{font-size:24px}
.launcher-header p{font-size:12px;line-height:1.45}
.launcher-groups{padding:18px 20px 30px}
.launcher-group{margin-bottom:12px;border-radius:17px}
.launcher-group-heading{min-height:58px;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;padding:11px 14px}
.launcher-count{width:30px;height:30px;border-radius:10px;font-size:11px}
.launcher-group-heading strong{font-size:13px;line-height:1.25}
.launcher-grid{gap:8px;padding:0 10px 12px}
.launcher-item{min-height:70px;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:11px 13px;border-radius:13px;overflow:hidden}
.launcher-item>.launcher-item-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:var(--primary);background:#ededfb;align-self:start}
.launcher-item>.launcher-item-copy{display:block;min-width:0;width:auto;height:auto;background:transparent;color:inherit;border-radius:0;padding:1px 0 0}
.launcher-item-copy strong{display:block;font-size:13px;line-height:1.28;font-weight:650;color:#3c4055;overflow-wrap:normal;word-break:normal}
.launcher-item-copy small{display:-webkit-box;margin-top:4px;color:#85899a;font-size:10.5px;line-height:1.42;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.launcher-item:hover>.launcher-item-icon,.launcher-item.active>.launcher-item-icon{background:#e7e9fb}
.launcher-item.active{border-color:#cfd3f1;background:#f5f6ff;box-shadow:inset 3px 0 0 var(--primary)}

@media(max-width:620px){
  .launcher-panel{width:100%}
  .launcher-header{padding:22px 20px 17px}
  .launcher-groups{padding:14px 12px 24px}
  .launcher-item{grid-template-columns:40px minmax(0,1fr);padding:10px 11px;min-height:66px}
  .launcher-item>.launcher-item-icon{width:38px;height:38px}
  .launcher-item-copy strong{font-size:12.5px}
  .launcher-item-copy small{font-size:10px}
}


/* F12 RC1 HF8 — CxC-inspired visual refinement + fuller demo */
.hf8-topbar{min-height:64px;padding:7px 12px;background:linear-gradient(100deg,#4439d0 0%,#5146df 48%,#473bd2 100%);box-shadow:0 3px 12px rgba(50,43,135,.22)}
.hf8-topbar .brand-mark{width:38px;height:38px;flex-basis:38px;border-radius:10px;font-size:14px;box-shadow:none}
.hf8-topbar .brand-copy strong{font-size:15px;font-weight:650}.hf8-topbar .brand-copy small{font-size:10px;color:rgba(255,255,255,.76)}
.hf8-topbar-actions{gap:8px}.hf8-church-control{max-width:310px;min-width:240px;min-height:44px;padding:5px 9px;border:1px solid rgba(255,255,255,.55);border-radius:12px;background:#fff;color:#31344b;box-shadow:0 2px 7px rgba(24,21,75,.10)}
.hf8-church-control:hover{background:#fbfbff}.hf8-church-control .church-control-icon{width:28px;height:28px;display:grid;place-items:center;color:#5960a5}.hf8-church-control .church-chip-copy{flex:1;text-align:left}.hf8-church-control .church-chip-copy strong{font-size:12px;color:#34364b}.hf8-church-control .church-chip-copy small{font-size:9.5px;color:#8a8da0}.church-control-arrow{display:grid;place-items:center;color:#65697c;transform:rotate(90deg)}
.hf8-menu-button{width:44px;height:44px;border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.10)}
.hf8-workspace-strip{min-height:31px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 16px;border-bottom:1px solid #dce5f0;background:#f3f8fd;color:#34465f;font-size:10.5px}.hf8-workspace-strip strong{font-weight:650}.hf8-workspace-strip button{border:0;padding:2px 0;background:transparent;color:#3c4fcb;font:inherit;font-weight:600;cursor:pointer}
.hf8-shell .page-container{margin-top:14px}
.hf8-dashboard-hero{min-height:112px;align-items:center;padding:20px 22px;background:linear-gradient(135deg,#fff 0%,#fbfbff 70%,#f2f1ff 100%)}.hf8-dashboard-hero h1{margin:5px 0 5px;font-size:31px}.hf8-dashboard-hero p{font-size:11.5px}.hf8-dashboard-hero .hero-actions{justify-content:flex-end}
.hf8-filter-panel{padding:14px 16px;margin-top:12px}.hf8-filter-panel .dashboard-filter-grid{gap:9px}.hf8-filter-panel .field-label{font-size:9.5px}.hf8-filter-panel select,.hf8-filter-panel input{min-height:38px}.hf8-filter-panel .dashboard-period-note{margin-top:8px;font-size:9.5px}
.hf8-primary-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:12px 0 9px}.hf8-primary-kpi{position:relative;overflow:hidden;min-height:124px;padding:15px 16px;border-radius:15px;color:#fff;box-shadow:0 8px 20px rgba(44,42,101,.10)}.hf8-primary-kpi:after{content:"";position:absolute;width:105px;height:105px;right:-32px;bottom:-47px;border-radius:50%;background:rgba(255,255,255,.12)}.hf8-primary-kpi.violet{background:linear-gradient(135deg,#6551d9,#8268de)}.hf8-primary-kpi.rose{background:linear-gradient(135deg,#ca4d73,#d96688)}.hf8-primary-kpi.blue{background:linear-gradient(135deg,#3b8bd0,#39a9e8)}.hf8-primary-kpi.green{background:linear-gradient(135deg,#24ad7d,#38c89b)}.hf8-primary-kpi header{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:8px}.hf8-primary-kpi-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.17)}.hf8-primary-kpi>span,.hf8-primary-kpi>strong,.hf8-primary-kpi>small{position:relative;z-index:1;display:block}.hf8-primary-kpi>span{margin-top:10px;font-size:11px;color:rgba(255,255,255,.88)}.hf8-primary-kpi>strong{margin-top:2px;font-size:25px;line-height:1.1;font-weight:650;letter-spacing:-.025em}.hf8-primary-kpi>small{margin-top:4px;font-size:9.5px;color:rgba(255,255,255,.78)}.hf8-kpi-change{padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.15);font-size:8.5px;font-weight:600;white-space:nowrap}.hf8-kpi-change.up,.hf8-kpi-change.down,.hf8-kpi-change.neutral{color:#fff}
.hf8-mini-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:11px}.hf8-mini-kpi{min-height:70px;padding:11px 14px;border:1px solid #e4e6ed;border-radius:12px;background:#fff;box-shadow:0 5px 13px rgba(42,45,88,.04)}.hf8-mini-kpi span,.hf8-mini-kpi strong,.hf8-mini-kpi small{display:block}.hf8-mini-kpi span{font-size:9.5px;color:#606477}.hf8-mini-kpi strong{margin:3px 0 2px;font-size:17px;font-weight:650;color:#282b3f}.hf8-mini-kpi small{font-size:8.8px;color:#9295a5}
.hf8-dashboard-main{grid-template-columns:minmax(330px,.72fr) minmax(0,1.28fr);gap:11px;margin-bottom:11px}.hf8-dashboard-mid,.hf8-dashboard-lists,.hf8-dashboard-bottom{gap:11px;margin-bottom:11px}.hf8-shell .panel{border-radius:14px;box-shadow:0 5px 16px rgba(41,44,92,.045)}.hf8-shell .panel-heading{padding-bottom:10px}.hf8-shell .panel-heading h2{font-size:16px}.hf8-shell .panel-heading p{font-size:10px}.hf8-shell .eyebrow{font-size:8.5px}.hf8-shell .ghost-button{font-size:9.5px}
.hf8-donut-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:center;padding:18px 4px 12px}.hf8-donut{width:172px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center}.hf8-donut>div{width:116px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;align-content:center;background:#fff;box-shadow:0 0 0 1px #eef0f5;text-align:center}.hf8-donut span,.hf8-donut strong,.hf8-donut small{display:block}.hf8-donut span{font-size:8.5px;color:#9295a5}.hf8-donut strong{font-size:15px;font-weight:650}.hf8-donut small{font-size:8px;color:#8d90a0}.hf8-donut-legend{display:grid;gap:0}.hf8-donut-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eef0f4}.hf8-donut-legend>div:last-child{border-bottom:0}.hf8-donut-legend i{width:8px;height:8px;border-radius:50%}.hf8-donut-legend span{font-size:9.5px;color:#55596e}.hf8-donut-legend strong{font-size:9.5px;font-weight:650}.hf8-contribution-panel .giving-identity{padding-top:7px}
.hf8-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hf8-quick-grid .quick-card{min-height:88px;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;justify-items:start;align-content:center;text-align:left;padding:10px 12px}.hf8-quick-grid .quick-card>span{grid-row:1/3;width:36px;height:36px;border-radius:10px}.hf8-quick-grid .quick-card strong{font-size:11px}.hf8-quick-grid .quick-card small{font-size:9px}
.hf8-demo-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.launcher-panel{width:min(850px,100%);background:#f7f8fb}.launcher-header{padding:24px 28px 18px}.launcher-header h2{font-size:25px}.launcher-groups{padding:16px 24px 28px}.launcher-group{border-radius:15px;margin-bottom:12px}.launcher-group-heading{min-height:58px;grid-template-columns:34px minmax(0,1fr) 30px;padding:10px 14px}.launcher-count{width:30px;height:30px;border-radius:10px;font-size:11px}.launcher-group-heading strong{font-size:13px}.launcher-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:2px 10px 12px;background:#f1f2f8;border-radius:0 0 14px 14px}.launcher-item{min-height:84px;grid-template-columns:48px minmax(0,1fr) 20px;gap:12px;padding:12px 14px;border-radius:0;border:0;border-bottom:1px solid #e5e7ee;background:#fff}.launcher-item:nth-child(odd){border-right:1px solid #e5e7ee}.launcher-item:hover{background:#fbfaff}.launcher-item.active{background:#f5f4ff;box-shadow:inset 3px 0 0 #5146d8}.launcher-item>.launcher-item-icon{width:44px;height:44px;border-radius:13px;background:#efedff}.launcher-item-copy strong{font-size:13.5px}.launcher-item-copy small{font-size:10.5px;line-height:1.35}.launcher-item-arrow{display:grid;place-items:center;color:#777b8e}.launcher-item:hover .launcher-item-arrow{color:#5146d8}.launcher-group.expanded .launcher-group-heading{background:#fff;color:#4338ca;border-bottom:1px solid #e5e3fb}.launcher-group.expanded{border-color:#d8d4fb}
@media(max-width:900px){.hf8-primary-kpi-grid,.hf8-mini-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hf8-dashboard-main{grid-template-columns:1fr}.hf8-donut-layout{grid-template-columns:170px minmax(0,1fr)}.launcher-panel{width:min(680px,100%)}}
@media(max-width:720px){.hf8-topbar{min-height:58px;padding:7px 9px}.hf8-church-control{min-width:0;max-width:210px}.hf8-church-control .church-chip-copy small{display:none}.hf8-workspace-strip{padding:5px 10px}.hf8-dashboard-hero{display:grid}.hf8-dashboard-hero .hero-actions{justify-content:start}.hf8-primary-kpi-grid,.hf8-mini-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hf8-donut-layout{grid-template-columns:1fr;justify-items:center}.hf8-donut-legend{width:100%}.launcher-panel{width:100%}.launcher-groups{padding:14px 12px 24px}.launcher-grid{grid-template-columns:1fr}.launcher-item:nth-child(odd){border-right:0}.launcher-item{min-height:76px}}
@media(max-width:480px){.brand-copy small{display:none}.hf8-church-control{max-width:160px}.hf8-primary-kpi-grid,.hf8-mini-kpi-grid{grid-template-columns:1fr}.hf8-primary-kpi{min-height:110px}.hf8-dashboard-hero h1{font-size:26px}}
