.hero{background:linear-gradient(115deg,#122a4f,#235d9b);border-radius:16px;color:#e3edfc;padding:32px;display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:25px}.hero h2{color:#fff;font-size:28px;margin-bottom:12px}.hero .eyebrow{color:#a9caff}.hero p:last-child{margin-bottom:0}.period{min-width:260px;border:1px solid #ffffff35;background:#ffffff0c;padding:17px 20px;border-radius:10px}.period span,.period strong,.period small{display:block}.period span{font-size:11px;text-transform:uppercase;letter-spacing:1px}.period strong{font-size:17px;margin:7px 0}.period small{font-size:12px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.metric{margin:0;min-height:158px;border-top:3px solid #5585df}.metric:nth-child(3n){border-top-color:#ac77d6}.metric:nth-child(4n){border-top-color:#e8ad4d}.metric h3{font-size:13px;font-weight:600;color:var(--muted)}.metric>strong{display:block;font-size:27px;color:var(--ink);letter-spacing:-.5px;line-height:1.4;overflow-wrap:anywhere;margin:10px 0}.metric p{font-size:12px}.sales-chart{width:100%;max-height:300px;display:block}.sales-chart line{stroke:#e5ebf5;stroke-width:1}.sales-chart rect{fill:#477bdd}.sales-chart text{font:12px system-ui;fill:#667b94}.shop-card header{display:flex;align-items:center;gap:12px;margin-bottom:18px}.shop-icon{width:39px;height:39px;stroke:#2962c9;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5;background:#edf3ff;padding:7px;border-radius:9px;flex-shrink:0}.shop-card h3{margin:0}.shop-total{font-size:32px;display:inline-block;margin-right:14px}.motivation{background:#eef4ff;border-radius:10px;padding:20px}.motivation p{font-size:14px;margin-bottom:0}.motivation h3{margin-bottom:10px}.promo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}.promo-card{margin:0 0 22px}.promo-card>a:first-child{display:block;background:#fafbfd;border-radius:8px;margin-bottom:22px}.promo-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}.promo-card textarea{font-size:13px;line-height:1.6;resize:vertical}.promo-card .actions{align-items:center}.promo-card .actions a{font-size:13px}.promo-card h2{font-size:19px}.payment-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;list-style:none;margin:0 0 28px;padding:0}.payment-steps li{padding:16px 12px;border-top:3px solid #ccd7e7;text-align:center;color:#79879d;font-size:13px}.payment-steps b{display:block;width:34px;height:34px;line-height:34px;border-radius:50%;background:#e5ebf5;margin:0 auto 10px}.payment-steps .done{border-color:#49a978;color:#267248}.payment-steps .done b{background:#daf1e4}.payment-steps .current{border-color:var(--blue);color:var(--blue);font-weight:700}.payment-steps .current b{background:var(--blue);color:white}.period-picker{display:flex;align-items:end;gap:14px;padding:15px 20px}.period-picker label{white-space:nowrap;align-self:center;margin:0}.period-picker select{max-width:440px}.period-picker button{margin:0}.share-preview img{display:block;width:100%;max-width:680px;height:auto;margin-bottom:20px;border-radius:10px}.share-preview[hidden]{display:none}dt{font-weight:700;color:var(--muted);font-size:13px}dd{margin:0 0 20px}
.invoice-guide{padding-left:1.4rem}.invoice-guide li{padding-left:.25rem;margin-bottom:1rem}
@media(max-width:1250px){.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.promo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{align-items:start;flex-direction:column}.period{width:100%;min-width:0}}
@media(max-width:650px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric{padding:17px;min-height:0}.metric>strong{font-size:23px}.promo-grid{grid-template-columns:1fr}.hero{padding:24px}.hero h2{font-size:24px}.payment-steps{grid-template-columns:1fr;gap:2px}.payment-steps li{border-top:0;border-left:3px solid #ccd7e7;display:flex;align-items:center;gap:12px;text-align:left;padding:8px 14px}.payment-steps b{margin:0}.period-picker{display:grid;gap:10px}.period-picker select{max-width:none}}
@media print{.hero{background:#fff;color:#20314b;border:1px solid #ccd7e7}.hero h2{color:#102542}.hero .eyebrow{color:#2259db}.period-picker,.share-preview{display:none}.metric-grid{grid-template-columns:repeat(2,1fr)}}
.table-wrap .text-lines { white-space: pre-line; overflow-wrap: anywhere; min-width: 14rem; }
.table-wrap:focus-visible { outline: 3px solid #6da4ff; outline-offset: 3px; }
.sidebar { max-height: calc(100vh - 70px); overflow-y: auto; }
@media(max-width:850px) { .sidebar { max-height: none; } }
#payment-ledger td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }

.monthly-hero > div:first-child { min-width: 0; flex: 1; }
.monthly-hero h2, .monthly-highlight h2, .monthly-highlight small { overflow-wrap: anywhere; }
.promo-hero > div:first-child, .promo-card { min-width: 0; }
.promo-hero h2, .promo-card h2, .promo-card p, .promo-card .badge { overflow-wrap: anywhere; }
.promo-card .promo-image-fallback { display: flex; flex-direction: column; justify-content: center; min-height: 12rem; aspect-ratio: 1; padding: 1.25rem; text-align: center; overflow-wrap: anywhere; }
.promo-card [hidden] { display: none; }
