:root {
  --p: #6337e8;
  --p2: #7b54f5;
  --nav: #101a3b;
  --bg: #f4f6fb;
  --card: #fff;
  --text: #1f2740;
  --muted: #7d8497;
  --line: #e6e9f1;
  --ok: #15945f;
  --red: #e84b55;
  --orange: #f59b23;
  --blue: #3478ef;
  --shadow: 0 5px 18px rgba(28, 38, 72, .06);
  --ink: var(--text);
  --paper: var(--bg);
  --burgundy: var(--p);
  --burgundy-deep: #5426c9;
  --gold: #f0b429;
  --gold-soft: #fff6df;
  --warn: #a26810;
  --danger: var(--red);
  --info: var(--blue);
  --sidebar: #111b3d;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --serif: var(--sans);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 13px; }
a { color: var(--p); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
h1 { font-size: 22px; margin: 0; }
h2, .panel h2, .card h2 { font-size: 13px; margin: 0 0 10px; }
h3 { font-size: 13px; margin: 0 0 8px; }
.eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: var(--p); margin: 0 0 6px; font-weight: 700; }
.lead, .subtxt, .page-head p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 228px; position: fixed; inset: 0 auto 0 0; background: linear-gradient(180deg, #111b3d, #0d2344); color: white; padding: 14px 10px; overflow: auto; z-index: 6; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 9px; padding: 8px 8px 16px; color: inherit; font-weight: 800; }
.brand-mark, .brand-logo { width: 34px; height: 34px; border: 1px solid #ffffff88; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 12px; object-fit: cover; background: #fff; }
.brand strong { display: block; font-size: 18px; line-height: 1; }
.brand small { display: block; font-size: 10px; font-weight: 400; color: #ccd2e5; margin-top: 3px; }
.sidebar nav { overflow: auto; flex: 1; }
.nav-label { margin: 14px 8px 6px; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; color: #9fabca; }
.nav-link { display: flex; gap: 9px; align-items: center; color: #e9edfa; padding: 8px 10px; border-radius: 8px; margin: 2px 0; font-size: 12px; }
.nav-link .ico { width: 18px; text-align: center; flex: 0 0 18px; font-size: 11px; }
.nav-link.active, .nav-link:hover { background: linear-gradient(90deg, #7040ef, #5e34dd); color: #fff; }
.main { margin-left: 228px; width: calc(100% - 228px); min-width: 0; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 22px; position: sticky; top: 0; z-index: 5; }
.topbar h2 { font-size: 15px; margin: 0; white-space: nowrap; }
.topright { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.search input, .field input, .field select, .field textarea, .filters input, .filters select, .mini input, .mini select { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; }
.search input { min-width: 180px; }
.field textarea { min-height: 70px; resize: vertical; }
.content { padding: 18px 22px 40px; }
.page-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.page-actions, .form-actions, .inline-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.kpi-grid, .split, .card-grid, .stats { display: grid; gap: 10px; }
.kpi-grid, .stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
.split { grid-template-columns: 1.25fr 1fr; }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .panel, .stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px; box-shadow: var(--shadow); }
.dash-gauges, .dash-charts, .dash-kpis, .dash-lists { display: grid; gap: 10px; margin-bottom: 12px; }
.dash-gauges, .dash-kpis { grid-template-columns: repeat(4, 1fr); }
.dash-kpis { grid-template-columns: repeat(6, 1fr); }
.dash-main { display: grid; grid-template-columns: .8fr 1.6fr; gap: 10px; margin-bottom: 12px; }
.dash-charts, .dash-lists { grid-template-columns: 1.2fr 1fr 1fr; }
.gauge-card { display: grid; grid-template-columns: 1fr 72px; gap: 2px 8px; align-items: center; color: inherit; text-decoration: none; }
.gauge-card:hover, a.card.kpi:hover { border-color: #6337e8; }
.gauge-top { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.gauge-ico { width: 28px; height: 28px; border-radius: 8px; background: #f4f1ff; color: var(--p); display: grid; place-items: center; font-weight: 800; }
.gauge { width: 72px; height: 72px; grid-row: 2 / span 2; grid-column: 2; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: #eef0f6; stroke-width: 4; }
.gauge-value { fill: none; stroke-width: 4; stroke-linecap: round; }
.gauge-card strong { font-size: 22px; line-height: 1.1; }
.gauge-card > span:last-child { color: var(--muted); font-size: 12px; }
.church-body { margin: 0; background: #f6f3ee; color: #171c28; font-family: Outfit, "Segoe UI", sans-serif; scroll-behavior: smooth; }
.church-site { --site: #6337e8; --site2: #111b3d; --paper: #f6f3ee; background: var(--paper); }
.church-wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.church-site h1, .church-site h2, .church-quote blockquote, .stage-poster strong, .contact-phone { font-family: Fraunces, Georgia, serif; font-weight: 560; }
.church-site .btn { border-radius: 999px; padding: 12px 18px; font-size: 14px; font-weight: 650; border-color: transparent; }
.church-site .btn-primary { background: var(--site); color: #fff; border-color: var(--site); }
.church-site .btn-ghost { background: transparent; }
.church-site .stack-form { grid-template-columns: 1fr; }
.church-site input, .church-site select, .church-site textarea { width: 100%; box-sizing: border-box; border: 1px solid #e6e1d8; background: #fff; border-radius: 12px; padding: 11px 12px; }
.church-site .field > span { letter-spacing: .08em; }
.church-topbar { display: flex; justify-content: flex-end; gap: 18px; margin: 0; padding: 8px 28px; background: #090d18; color: #f4efe6; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.church-topbar a { color: #fff; }
.church-sticky { position: sticky; top: 0; z-index: 6; }
.church-top { background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid #efeae3; }
.church-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.church-brand { display: flex; gap: 10px; align-items: center; color: inherit; font-weight: 750; }
.church-brand img, .church-mark { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; }
.church-mark { display: grid; place-items: center; background: var(--site); color: #fff; font-size: 13px; }
.church-brand small { display: block; font-weight: 560; color: #8a8176; letter-spacing: .12em; text-transform: uppercase; font-size: 10px; }
.church-top nav { display: flex; gap: 22px; }
.church-top nav a { color: #171c28; font-size: 14px; font-weight: 600; }
.church-top nav a:hover { color: var(--site); }
.church-hero { position: relative; min-height: calc(100vh - 74px); display: flex; align-items: flex-end; padding: 72px 0 88px; color: #fff; background: radial-gradient(900px 480px at 85% 10%, color-mix(in srgb, var(--site) 70%, transparent), transparent 60%), linear-gradient(160deg, #070b16 0%, var(--site2) 48%, color-mix(in srgb, var(--site) 55%, #12081f) 100%); overflow: hidden; }
.church-hero::after { content: ""; position: absolute; inset: auto -10% -20% 40%; height: 55%; background: radial-gradient(circle, color-mix(in srgb, var(--site) 45%, transparent), transparent 68%); pointer-events: none; }
.church-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .7fr; gap: 36px; align-items: end; }
.church-hero .eyebrow, .church-hero p { color: #f3eee6; }
.church-hero h1 { font-size: clamp(48px, 6.4vw, 86px); line-height: .96; letter-spacing: -.03em; margin: 10px 0 16px; max-width: 11ch; }
.church-hero-copy > p:last-of-type { max-width: 38ch; font-size: 18px; }
.church-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.church-hero .btn-primary { background: #fff; color: #141824; border-color: #fff; }
.church-hero .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); }
.church-next { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 28px; padding: 26px; backdrop-filter: blur(10px); }
.church-next p, .church-next span { color: #f4efe6; }
.church-next h2 { margin: 8px 0; font-size: 32px; line-height: 1.05; }
.church-next strong { display: block; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: #fff; }
.church-next a { color: #fff; display: inline-block; margin-top: 16px; border-bottom: 1px solid #fff; }
.church-quick { margin-top: -42px; position: relative; z-index: 2; }
.church-quick-row { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px; box-shadow: 0 18px 50px rgba(16, 18, 32, .08); overflow: hidden; }
.church-quick a { padding: 22px 20px 20px; color: inherit; border-right: 1px solid #efeae3; }
.church-quick a:last-child { border-right: 0; }
.church-quick a:hover { background: #fbfaf7; }
.church-quick small { display: block; color: var(--site); font-weight: 700; letter-spacing: .14em; }
.church-quick span { display: block; color: #8a8176; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }
.church-quick strong { display: block; font-size: 26px; margin-top: 2px; }
.church-block, .church-slides, .church-quote { padding: 84px 0; }
.church-head { max-width: 680px; margin-bottom: 28px; }
.church-head h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.03em; margin: 6px 0; }
.church-site .eyebrow { letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--site); }
.church-quote { background: #fff; }
.church-quote blockquote { font-size: clamp(30px, 4vw, 52px); line-height: 1.12; letter-spacing: -.03em; margin: 0; max-width: 16em; }
.quote-city { color: #8a8176; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.church-schedule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.church-schedule article, .media-card, .church-cards .panel, .about-lead, .about-side article { background: #fff; border-radius: 24px; padding: 22px; }
.church-schedule article p:first-child { margin: 0 0 12px; color: var(--site); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.church-schedule h3, .media-card h3 { margin: 0 0 8px; font-size: 22px; }
.church-stage { background: #090d18; color: #f6f3ee; padding: 88px 0; }
.church-stage .eyebrow, .church-stage h2, .church-stage .church-head p { color: #f6f3ee; }
.stage-grid { display: grid; grid-template-columns: 1.35fr .75fr; gap: 16px; }
.stage-feature { grid-row: span 3; display: grid; }
.stage-grid:has(> :only-child) { grid-template-columns: 1fr; }
.stage-poster { min-height: 280px; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(90% 80% at 0% 0%, color-mix(in srgb, var(--site) 75%, #fff), transparent 55%), linear-gradient(145deg, var(--site2), #1a1030); }
.stage-poster span { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.stage-poster strong { font-size: clamp(36px, 4vw, 64px); line-height: .98; letter-spacing: -.03em; max-width: 12ch; }
.stage-body { padding: 8px 4px 0; }
.stage-card { background: #141a2b; border-radius: 24px; overflow: hidden; }
.stage-card .stage-poster { min-height: 120px; border-radius: 0; }
.stage-card .stage-poster strong { font-size: 28px; }
.stage-card .stage-body { padding: 16px 18px 18px; }
.stage-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stage-actions form { margin: 0; }
.church-stage .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.church-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.church-bento article { position: relative; min-height: 210px; border-radius: 24px; padding: 20px; background: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.church-bento article:nth-child(1), .church-bento article:nth-child(2) { grid-column: span 2; min-height: 280px; color: #fff; background: linear-gradient(155deg, var(--site2), color-mix(in srgb, var(--site) 62%, #12081f)); }
.church-bento article:nth-child(1) .muted, .church-bento article:nth-child(2) .muted, .church-bento article:nth-child(1) p, .church-bento article:nth-child(2) p { color: #f4efe6; }
.church-bento span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; background: color-mix(in srgb, var(--site) 16%, #fff); color: var(--site); margin-bottom: auto; }
.church-bento article:nth-child(1) span, .church-bento article:nth-child(2) span { background: rgba(255,255,255,.16); color: #fff; }
.church-bento h3 { margin: 12px 0 4px; font-size: 26px; }
.church-bento img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.church-about { background: #fff; }
.church-about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.about-side { display: grid; gap: 12px; }
.about-side article { border-left: 3px solid var(--site); }
.church-pastors { margin-top: 48px; padding: 36px 0; background: #090d18; color: #fff; }
.church-pastors .eyebrow { color: #d9c7ff; }
.pastor-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pastor-card { display: flex; gap: 14px; align-items: center; }
.pastor-card span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--site) 70%, #000); font-family: Fraunces, Georgia, serif; font-size: 22px; }
.pastor-card strong { display: block; font-size: 20px; text-transform: capitalize; }
.pastor-card small { color: #c8c2b8; letter-spacing: .12em; text-transform: uppercase; }
.church-cards, .church-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.church-feature { grid-template-columns: 1.3fr .7fr; }
.church-feature .media-card:first-child { min-height: 280px; }
.media-card h3 { font-family: Fraunces, Georgia, serif; font-size: 30px; line-height: 1.05; }
.church-gallery img, .media-card img, .church-slide img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
.church-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.church-give { background: radial-gradient(700px 280px at 100% 0%, color-mix(in srgb, var(--site) 55%, transparent), transparent 60%), #090d18; color: #fff; padding: 88px 0; }
.church-give .eyebrow, .church-give h2, .church-give .church-head p { color: #fff; }
.church-give article { background: #fff; color: #171c28; border-radius: 24px; padding: 22px; }
.church-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.contact-phone { font-size: clamp(32px, 4vw, 48px); line-height: 1; margin: 8px 0 16px; }
.contact-phone a { color: inherit; }
.church-slides { background: #fff; }
.church-slide { display: grid; grid-template-columns: 180px 1fr; gap: 8px; align-items: center; background: var(--paper); border-radius: 28px; overflow: hidden; }
.slide-mark { height: 180px; display: grid; place-items: center; background: var(--site2); color: #fff; font-family: Fraunces, Georgia, serif; font-size: 42px; }
.church-slide div { padding: 24px; }
.church-foot { background: #090d18; color: #f6f3ee; padding: 48px 0 32px; }
.church-foot-grid { display: grid; grid-template-columns: 1.3fr .7fr 1.2fr; gap: 22px; }
.church-foot a { color: #fff; display: block; margin: 6px 0; }
.church-social { display: flex; gap: 14px; flex-wrap: wrap; grid-column: 1 / -1; }
.church-news { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.church-news input { width: auto; min-width: 140px; }
.church-ms { position: fixed; right: 18px; bottom: 74px; background: #0084ff; color: #fff; border-radius: 999px; padding: 10px 14px; z-index: 5; }
.church-wa { position: fixed; right: 16px; bottom: 16px; background: #128c7e; color: #fff; border-radius: 999px; padding: 12px 16px; z-index: 5; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.church-note { margin: 12px auto; width: min(1160px, calc(100% - 40px)); background: #fff6df; padding: 10px 12px; border-radius: 8px; }
.church-site.theme-light .church-hero { color: #20283a; background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--site) 18%, #fff)); }
.church-site.theme-light .church-hero .eyebrow, .church-site.theme-light .church-hero p, .church-site.theme-light .church-next, .church-site.theme-light .church-next p, .church-site.theme-light .church-next span, .church-site.theme-light .church-next a { color: #243049; }
.church-site.theme-light .church-hero .btn-ghost { color: #20283a; border-color: #20283a55; }
.church-site.theme-light .church-hero .btn-primary { background: var(--site); color: #fff; }
@media (max-width: 900px) {
  .church-bar { flex-wrap: wrap; padding: 12px 0; }
  .church-top nav { width: 100%; flex-wrap: wrap; gap: 12px 16px; }
  .church-hero-grid, .church-schedule, .stage-grid, .church-bento, .church-about-grid, .church-feature, .church-split, .church-contact, .church-foot-grid, .church-slide { grid-template-columns: 1fr; }
  .church-bento article:nth-child(1), .church-bento article:nth-child(2), .stage-feature { grid-column: auto; grid-row: auto; }
  .church-hero { min-height: 0; padding-top: 48px; }
  .church-hero h1 { font-size: 46px; }
  .church-site { padding-bottom: 72px; }
  .church-quick-row { grid-template-columns: 1fr 1fr; }
}
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.theme-card { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; background: #fff; }
.theme-card input { position: absolute; opacity: 0; }
.theme-card:has(input:checked) { border-color: var(--p); box-shadow: 0 0 0 2px #6337e833; }
.theme-swatch { display: block; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--swatch2), var(--swatch)); }
.theme-card small { color: var(--muted); }
fieldset.panel { margin: 12px 0; }
a.money-line, .money-line { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0; color: inherit; text-decoration: none; }
a.money-line:hover { color: var(--p); }
.dash-charts canvas, .dash-main canvas { cursor: pointer; }
.dash-money .money-line strong { font-size: 14px; }
a.card.kpi { color: inherit; text-decoration: none; }
a.card.kpi:hover { border-color: #6337e8; }
.kpi strong, .stat strong { display: block; font-size: 19px; margin-top: 4px; font-weight: 800; }
.kpi span, .muted, .stat small { color: var(--muted); font-size: 12px; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 7px; padding: 8px 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.btn-primary, .btn.primary { background: var(--p); color: #fff; border-color: var(--p); }
.btn-primary:hover { background: var(--burgundy-deep); }
.btn-ghost { background: #fff; color: var(--text); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.icon-btn, .pill { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; color: var(--text); cursor: pointer; }
.bell span { background: var(--p); color: #fff; border-radius: 99px; padding: 0 6px; margin-left: 6px; font-size: 11px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: inherit; }
.ua { width: 34px; height: 34px; border-radius: 50%; background: #ede9ff; color: var(--p); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta strong { font-size: 12px; }
.user-meta small { color: var(--muted); font-size: 10px; }
.table-wrap { overflow: auto; }
table.grid, table.table { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { text-align: left; padding: 8px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; font-size: 12px; }
table.grid th { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #9096a8; }
.badge, .tag { display: inline-block; border-radius: 20px; padding: 3px 7px; font-size: 11px; background: #eef0ff; color: var(--p); }
.badge-ok, .tag.ok { background: #e7f8ef; color: var(--ok); }
.badge-warn, .tag.warn { background: #fff2da; color: #a26810; }
.badge-danger, .tag.red { background: #ffebed; color: #cf3542; }
.badge-info { background: #e7f1ff; color: var(--blue); }
.badge-gold { background: var(--gold-soft); color: #6d4d16; }
.stack-form, .filters, .formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span, .mini { font-size: 10px; color: #777e91; text-transform: uppercase; letter-spacing: .04em; }
.field-wide, .form-actions, .check { grid-column: 1 / -1; }
.field i { color: var(--red); font-style: normal; }
.field small { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 11px; }
.check { display: flex; gap: 8px; align-items: center; }
.alert { border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 12px; }
.alert-error { background: #ffebed; color: #9d2430; }
.alert-success { background: #e7f8ef; color: #0f6b42; }
.alert ul { margin: 6px 0 0; }
.demo-note { background: #fff6df; border: 1px solid #f0ddaa; color: #6d4d16; border-radius: 8px; padding: 8px 12px; font-size: 12px; }
.empty { padding: 28px 8px; color: var(--muted); text-align: center; }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.auth-card { width: min(440px, calc(100% - 32px)); margin: 10vh auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.auth-card.wide { width: min(640px, calc(100% - 32px)); }
.guest-body { background: var(--bg); }
.guest-flash { width: min(640px, calc(100% - 32px)); margin: 20px auto 0; }
.offering-row, .line-row { display: grid; grid-template-columns: 1.2fr .7fr .55fr 1fr 1fr 1fr 1.1fr auto; gap: 8px; margin-bottom: 8px; align-items: end; }
.mini { display: flex; flex-direction: column; gap: 4px; }
.worker-list { display: flex; flex-wrap: wrap; gap: 8px; }
.worker-list label { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.report { display: grid; gap: 12px; }
.letterhead { display: flex; gap: 12px; align-items: center; }
.letterhead img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.letterhead p { margin: 0; color: var(--muted); }
.report-lead { margin: 0; font-size: 15px; line-height: 1.55; }
.signoff { border-top: 1px solid var(--line); padding-top: 12px; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.signs p { margin: 0; color: var(--muted); }
.signs strong { display: block; color: var(--text); margin-top: 28px; }
.logo-preview { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.notice.is-unread { border-color: #6337e8; background: #f7f4ff; }
.meter { height: 8px; background: #eef0f6; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.meter span { display: block; height: 100%; background: #6337e8; }
.who { display: flex; align-items: center; gap: 8px; }
.who img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; background: #f4f6fb; }
.report-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.report-gallery img { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.settings-now { margin-bottom: 12px; }
.report-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; background: linear-gradient(120deg, #6337e8, #111b3d); color: #fff; border-radius: 10px; padding: 16px 18px; }
.report-hero h2, .report-hero p, .report-hero .eyebrow { color: #fff; }
.report-hero .eyebrow { opacity: .8; }
.export-picks { display: inline-flex; gap: 6px; align-items: center; }
.report-counts, .role-grid, .preach-grid { display: grid; gap: 8px; }
.report-counts { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
.role-grid, .preach-grid { grid-template-columns: repeat(3, 1fr); }
.report-counts p, .role-grid p, .preach-grid p { margin: 0; background: #fbfcff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.report-hero .report-counts p { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.report-hero .report-counts span { color: rgba(255, 255, 255, .75); }
.report-counts span, .role-grid span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.report-total { display: flex; gap: 8px; flex-wrap: wrap; }
.report-total span { background: #eef0ff; color: var(--p); border-radius: 8px; padding: 6px 10px; }
.people-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.people-pills li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; }
#nav-toggle { display: none; }
.studio { display: grid; grid-template-columns: 240px 1fr 280px; gap: 12px; align-items: start; }
.stage-wrap { overflow: auto; background: #eef0f6; border-radius: 10px; padding: 18px; }
#card-canvas { background: white; box-shadow: var(--shadow); touch-action: none; }
.layer-btn { display: block; width: 100%; text-align: left; margin-bottom: 4px; border-radius: 8px; border: 1px solid transparent; background: transparent; padding: 6px 8px; cursor: pointer; }
.layer-btn.on { border-color: var(--p); background: #ede9ff; }
.worship-steps { position: sticky; top: 64px; z-index: 4; display: flex; gap: 6px; overflow: auto; padding: 8px 0; background: rgba(244, 246, 251, .94); }
.worship-steps a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--text); font-size: 12px; white-space: nowrap; }
.worship-steps a:hover { border-color: var(--p); color: var(--p); }
.worship-form { display: grid; gap: 12px; }
.worship-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.worship-grid .span-all, .worship-grid .field-wide { grid-column: 1 / -1; }
.worship-form .offering-row { grid-template-columns: 1.3fr .65fr .45fr 1fr 1fr 1fr 1.1fr auto; background: #fbfcff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.worship-form .offering-row [data-remove-offering] { align-self: end; }
.worker-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.worker-tools input { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; }
.worker-list label.is-on { border-color: var(--p); background: #ede9ff; }
.worship-bar { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 -8px 24px rgba(28, 38, 72, .06); }
#offering-live { color: var(--p); }
.share-preview { white-space: pre-wrap; font-family: var(--sans); font-size: 12px; background: #fbfcff; border-radius: 8px; padding: 10px; }
.channel-picks { display: flex; gap: 16px; margin: 8px 0; }
.channel-picks .check, .perm-grid .check { grid-column: auto; }
.perm-grid { display: flex; flex-wrap: wrap; gap: 8px 16px; }
#transfer-list label { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#transfer-list small { color: var(--muted); }
.transfer-ready { background: #eef0ff; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.transfer-ready ol { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.transfer-ready li { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: #fff; border-radius: 8px; padding: 8px 10px; }
.transfer-ready li.is-done { opacity: .55; }
.transfer-ready li.is-done span { text-decoration: line-through; }
.transfer-people { display: grid; gap: 6px; }
.transfer-people label { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.transfer-people label.is-on { border-color: var(--p); background: #f7f4ff; }
.transfer-people small { display: block; color: var(--muted); }
.transfer-log { margin: 8px 0 0; padding-left: 18px; font-size: 12px; }
details.panel summary { cursor: pointer; font-weight: 700; }
@media (max-width: 1050px) {
  .kpi-grid, .stats, .dash-gauges { grid-template-columns: 1fr 1fr; }
  .dash-kpis { grid-template-columns: 1fr 1fr 1fr; }
  .dash-charts, .dash-lists, .dash-main, .split { grid-template-columns: 1fr; }
  .user-meta { display: none; }
}
@media (max-width: 860px) {
  .kpi-grid, .split, .stack-form, .filters, .studio, .offering-row, .worship-grid, .role-grid, .preach-grid, .report-counts, .dash-gauges, .dash-kpis, .dash-charts, .dash-lists, .dash-main { grid-template-columns: 1fr; }
  .worship-bar { flex-direction: column; align-items: stretch; }
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; width: 100%; }
  #nav-toggle { display: inline-flex; }
  .page-head, .report-hero, .topbar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .search input { min-width: 0; width: 140px; }
}
@media print {
  .sidebar, .topbar, .page-actions, .demo-note, .no-print { display: none !important; }
  .main { margin: 0; width: 100%; }
  .content { padding: 0; }
  body { background: white; }
  .report-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
body.guest-body.is-login {
  min-height: 100vh;
  background: radial-gradient(1100px 640px at 50% 42%, #1a2d6b 0%, #0c1430 58%, #070d22 100%);
  color: #fff;
}
body.guest-body.is-login .guest-flash { position: relative; z-index: 2; }
.glass-stage { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; }
.orb-a { width: 280px; height: 280px; right: 8%; top: 8%; background: radial-gradient(circle at 32% 32%, #e7f0ff, #7eb0ff 34%, #3478ef 68%); }
.orb-b { width: 190px; height: 190px; left: 8%; top: 16%; background: radial-gradient(circle at 32% 32%, #f4edff, #b7a0ff 38%, #6337e8 70%); }
.orb-c { width: 320px; height: 320px; left: 6%; bottom: 4%; background: radial-gradient(circle at 32% 32%, #e4eeff, #6aa2ff 40%, #2456c9 72%); }
.orb-d { width: 210px; height: 210px; right: 10%; bottom: 8%; background: radial-gradient(circle at 32% 32%, #f7f1ff, #c3b0ff 40%, #7b54f5 72%); }
.glass-card.auth-card {
  position: relative; z-index: 1; width: min(420px, calc(100% - 32px)); margin: 24px;
  background: rgba(16, 26, 59, .5); color: #fff; text-align: center;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 28px; padding: 32px 28px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); backdrop-filter: blur(18px);
}
.glass-logo img { width: 72px; height: 72px; object-fit: cover; border-radius: 20px; background: #fff; border: 4px solid rgba(255, 255, 255, .85); }
.glass-mark { margin: 8px 0 0; letter-spacing: .12em; font-weight: 700; }
.glass-card h1 { margin: 6px 0 0; font-size: 28px; color: #fff; }
.glass-lead, .glass-note { color: rgba(255, 255, 255, .72); }
.glass-note a { color: #fff; }
.glass-card .stack { grid-template-columns: 1fr; text-align: left; margin-top: 16px; }
.glass-card .field > span { color: rgba(255, 255, 255, .78); text-transform: none; letter-spacing: 0; font-size: 13px; }
.glass-card .field input {
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; padding: 12px 14px;
}
.glass-card .field input:focus { outline: 3px solid rgba(52, 120, 239, .35); border-color: rgba(255, 255, 255, .4); }
.glass-card .btn-primary {
  width: 100%; margin-top: 6px; border-radius: 12px; padding: 12px;
  background: linear-gradient(180deg, rgba(155, 186, 255, .45), rgba(99, 55, 232, .35));
  border: 1px solid rgba(255, 255, 255, .24); color: #fff;
}
.glass-card .pin-input { text-align: center; letter-spacing: .4em; font-size: 22px; font-weight: 700; }
.glass-card .login-mail { margin-top: 14px; color: rgba(255,255,255,.75); }
.glass-card .login-mail summary { cursor: pointer; }
