:root { font-family: system-ui, sans-serif; color:#172033; background:#f6f8fb; }
* { box-sizing:border-box; }
body { margin:0; }
.page { min-height: 100vh; }
h1[tabindex="-1"]:focus { outline:0; }
.topbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.75rem 1rem; padding:.75rem 1rem; border-bottom:1px solid #e5e7eb; background:#fff; max-width:100%; overflow:hidden; }
.content { padding: 1rem; }
.btn { min-height:38px; padding:.55rem .95rem; border:1px solid transparent; border-radius:7px; background:#1f6feb; color:#fff; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:.4rem; font:inherit; font-weight:800; line-height:1.1; box-shadow:0 1px 2px rgba(15,23,42,.08); transition:background .12s ease, border-color .12s ease, box-shadow .12s ease; }
.btn:hover { background:#155dcc; }
.btn:focus-visible,
.linkbtn:focus-visible,
.drawer-close:focus-visible { outline:3px solid rgba(31,111,235,.22); outline-offset:2px; }
.btn:disabled,
button:disabled { cursor:not-allowed; opacity:.58; }
.topbar a { text-decoration:none; color:#1f6feb; }
.topbar strong a { color:inherit; }
.nav { display:flex; flex-wrap:wrap; gap:.35rem 1rem; flex:1 1 14rem; min-width:0; margin:0 1rem; }
.topbar > strong { flex:0 0 auto; }
.topbar-account { display:flex; align-items:center; justify-content:flex-end; gap:.65rem; min-width:0; max-width:100%; }
.topbar-account .muted { display:block; min-width:0; max-width:min(42vw, 18rem); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar-account .inline-form,
.topbar-account .linkbtn { flex:0 0 auto; }
.home-shell { width:min(1120px, 100%); margin:0 auto; padding:clamp(1.5rem, 4vw, 3rem) 0; display:grid; gap:1.25rem; }
.home-heading { display:grid; gap:.35rem; }
.home-heading h1 { margin:0; font-size:clamp(2rem, 4vw, 3rem); line-height:1.05; }
.home-heading p { margin:0; max-width:70ch; }
.home-card-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:1rem; align-items:stretch; }
.home-card { min-width:0; display:flex; flex-direction:column; justify-content:space-between; gap:1rem; border:1px solid #dbe3ef; border-radius:8px; padding:1rem; background:#fff; box-shadow:0 12px 28px rgba(15,23,42,.055); }
.home-card h2 { margin:.6rem 0 .35rem; font-size:1.25rem; }
.home-card p { margin:0; }
.primary-home-card { border-color:#bfdbfe; background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.compact-home-card { width:min(420px, 100%); }
.home-card-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.marketing-site { margin:-1rem; background:#f4f7fb; color:#111827; overflow:hidden; }
.marketing-hero { min-height:min(720px, 72svh); display:grid; align-items:center; padding:clamp(3rem, 8vw, 6.5rem) clamp(1rem, 5vw, 5rem); background:
    linear-gradient(90deg, rgba(7,22,45,.94) 0%, rgba(7,22,45,.82) 42%, rgba(7,22,45,.32) 70%, rgba(7,22,45,.08) 100%),
    url('/images/marketing/acaboost-hero.png') center right / cover no-repeat; color:#fff; }
.marketing-hero-inner { width:min(760px, 100%); display:grid; gap:1rem; }
.marketing-brand-lockup { display:flex; align-items:center; gap:.65rem; color:#dbeafe; font-size:.95rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.marketing-mark { width:42px; height:42px; display:inline-grid; place-items:center; border:1px solid rgba(255,255,255,.34); border-radius:8px; background:#facc15; color:#07162d; font-weight:950; letter-spacing:-.02em; box-shadow:0 14px 35px rgba(0,0,0,.22); }
.marketing-kicker { margin:0; color:#1f6feb; font-size:.78rem; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }
.marketing-hero .marketing-kicker { color:#facc15; }
.marketing-hero h1 { margin:0; color:#fff; font-size:clamp(3.6rem, 10vw, 8rem); line-height:.9; letter-spacing:0; }
.marketing-hero-copy { margin:0; max-width:64ch; color:#e8f1ff; font-size:clamp(1.05rem, 2vw, 1.35rem); line-height:1.55; }
.marketing-hero-actions { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; }
.marketing-primary { background:#1f6feb; border-color:#1f6feb; color:#fff; }
.marketing-primary:hover { background:#155dcc; }
.marketing-secondary { background:rgba(255,255,255,.95); border-color:#dbeafe; color:#0f2b55; }
.marketing-secondary:hover { background:#f8fbff; border-color:#bfdbfe; color:#0f2b55; }
.marketing-proof { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:.75rem; margin:.9rem 0 0; }
.marketing-proof div { min-width:0; padding:.75rem .85rem; border:1px solid rgba(219,234,254,.28); border-radius:8px; background:rgba(8,24,48,.58); backdrop-filter:blur(6px); }
.marketing-proof dt { color:#bfdbfe; font-size:.72rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.marketing-proof dd { margin:.15rem 0 0; color:#fff; font-size:1rem; font-weight:900; }
.marketing-section { width:min(1180px, calc(100% - 2rem)); margin:0 auto; padding:clamp(2.75rem, 6vw, 5rem) 0; }
.marketing-section-heading { display:grid; gap:.55rem; max-width:780px; margin-bottom:1.25rem; }
.marketing-section-heading h2,
.marketing-section-heading h1,
.marketing-final-cta h2 { margin:0; color:#111827; font-size:clamp(2rem, 4.8vw, 3.5rem); line-height:1.02; letter-spacing:0; }
.marketing-section-heading p,
.marketing-final-cta p { margin:0; color:#5c6778; font-size:1.05rem; line-height:1.55; }
.marketing-product-section { display:grid; grid-template-columns:minmax(0, .82fr) minmax(420px, 1.18fr); gap:clamp(1.25rem, 4vw, 3rem); align-items:center; }
.marketing-product-visual { min-width:0; border:1px solid #dbe3ef; border-radius:8px; overflow:hidden; background:#fff; box-shadow:0 28px 70px rgba(15,23,42,.14); }
.marketing-window-bar { display:flex; gap:.4rem; padding:.7rem .85rem; border-bottom:1px solid #e5edf7; background:#f8fafc; }
.marketing-window-bar span { width:10px; height:10px; border-radius:50%; background:#94a3b8; }
.marketing-window-bar span:nth-child(1) { background:#f87171; }
.marketing-window-bar span:nth-child(2) { background:#facc15; }
.marketing-window-bar span:nth-child(3) { background:#22c55e; }
.marketing-dashboard-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:.85rem; padding:1rem; background:#eef4fb; }
.marketing-dashboard-panel { min-width:0; display:grid; gap:.75rem; padding:1rem; border:1px solid #d8e3f1; border-radius:8px; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.06); }
.marketing-dashboard-panel.wide { grid-row:span 2; }
.marketing-panel-top { display:flex; justify-content:space-between; gap:.75rem; align-items:center; color:#172033; font-weight:900; }
.marketing-panel-top span { padding:.2rem .45rem; border-radius:999px; background:#dcfce7; color:#166534; font-size:.7rem; font-weight:900; white-space:nowrap; }
.marketing-row { display:flex; justify-content:space-between; gap:1rem; padding:.65rem 0; border-bottom:1px solid #edf1f7; color:#334155; }
.marketing-row:last-child { border-bottom:0; }
.marketing-row b { color:#0f2b55; }
.marketing-meter { height:11px; overflow:hidden; border-radius:999px; background:#e5e7eb; }
.marketing-meter i { display:block; height:100%; border-radius:999px; background:#1f6feb; }
.marketing-dashboard-panel p { margin:0; color:#64748b; font-size:.92rem; line-height:1.45; }
.marketing-page-lines { display:grid; gap:.45rem; }
.marketing-page-lines i { height:11px; border-radius:999px; background:#cbd5e1; }
.marketing-page-lines i:nth-child(1) { width:70%; background:#0f2b55; }
.marketing-page-lines i:nth-child(2) { width:92%; }
.marketing-page-lines i:nth-child(3) { width:78%; }
.marketing-page-lines i:nth-child(4) { width:55%; background:#facc15; }
.marketing-file-strip { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:.55rem; }
.marketing-file-strip i { aspect-ratio:1; border:1px solid #dbe3ef; border-radius:8px; background:linear-gradient(180deg, #eff6ff, #fff); }
.marketing-file-strip i:nth-child(2) { background:#dcfce7; }
.marketing-file-strip i:nth-child(3) { background:#fef3c7; }
.marketing-file-strip i:nth-child(4) { background:#e0f2fe; }
.marketing-video-highlight { display:grid; gap:1.4rem; }
.marketing-video-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr); gap:1rem; align-items:stretch; }
.marketing-video-preview { min-width:0; position:relative; overflow:hidden; border:1px solid #bfdbfe; border-radius:12px; background:#0f2b55; box-shadow:0 18px 42px rgba(15,43,85,.16); isolation:isolate; }
.marketing-video-preview img { display:block; width:100%; aspect-ratio:16 / 9; object-fit:cover; }
.marketing-video-preview:after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(7,22,45,.16), transparent 54%, rgba(7,22,45,.08)); pointer-events:none; }
.marketing-video-play { position:absolute; left:1.3rem; bottom:1.3rem; z-index:1; width:58px; height:58px; display:grid; place-items:center; padding-left:.18rem; border:3px solid rgba(255,255,255,.9); border-radius:50%; background:#2563eb; color:#fff; font-size:1.35rem; line-height:1; box-shadow:0 8px 22px rgba(7,22,45,.3); }
.marketing-video-still-label { position:absolute; right:1rem; bottom:1rem; z-index:1; padding:.28rem .55rem; border-radius:999px; background:rgba(7,22,45,.72); color:#fff; font-size:.72rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.marketing-video-copy { display:flex; flex-direction:column; justify-content:space-between; gap:1rem; min-width:0; padding:1.25rem; border:1px solid #dbe3ef; border-radius:12px; background:#fff; box-shadow:0 14px 34px rgba(15,23,42,.06); }
.marketing-video-copy h3 { margin:.75rem 0 .45rem; color:#172033; font-size:1.35rem; }
.marketing-video-copy p { margin:0; color:#5c6778; line-height:1.55; }
.marketing-video-copy .btn { align-self:flex-start; }
.marketing-feature-grid,
.marketing-pricing-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:1rem; }
.marketing-feature-grid article,
.marketing-price-card,
.marketing-sample-card { min-width:0; border:1px solid #dbe3ef; border-radius:8px; background:#fff; box-shadow:0 14px 34px rgba(15,23,42,.06); }
.marketing-feature-grid article { display:grid; gap:.65rem; padding:1.1rem; }
.marketing-feature-icon { width:48px; height:38px; display:inline-grid; place-items:center; border-radius:8px; background:#eff6ff; color:#1d4ed8; font-size:.75rem; font-weight:950; }
.marketing-feature-grid article:nth-child(2n) .marketing-feature-icon { background:#ecfdf5; color:#15803d; }
.marketing-feature-grid article:nth-child(3n) .marketing-feature-icon { background:#fffbeb; color:#a16207; }
.marketing-feature-grid h3,
.marketing-price-card h3 { margin:0; color:#172033; font-size:1.15rem; }
.marketing-feature-grid p { margin:0; color:#5c6778; line-height:1.5; }
.marketing-samples { padding-top:1rem; }
.marketing-sample-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:1rem; }
.marketing-sample-card { display:grid; gap:.7rem; min-height:190px; align-content:end; padding:1.1rem; color:#fff; text-decoration:none; background:#0f2b55; position:relative; overflow:hidden; }
.marketing-sample-card:before { content:""; position:absolute; inset:0; background:linear-gradient(145deg, rgba(31,111,235,.9), rgba(15,43,85,.82)); }
.marketing-sample-card:nth-child(2):before { background:linear-gradient(145deg, rgba(21,128,61,.84), rgba(15,43,85,.9)); }
.marketing-sample-card:nth-child(3):before { background:linear-gradient(145deg, rgba(161,98,7,.82), rgba(15,43,85,.9)); }
.marketing-sample-card span,
.marketing-sample-card strong { position:relative; z-index:1; }
.marketing-sample-card span { color:#facc15; font-size:.78rem; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }
.marketing-sample-card strong { font-size:1.1rem; line-height:1.35; }
.marketing-price-card { display:flex; flex-direction:column; gap:.85rem; padding:1.2rem; }
.marketing-price-card.featured { border-color:#93c5fd; box-shadow:0 24px 60px rgba(31,111,235,.16); }
.marketing-price-card > span { width:max-content; padding:.25rem .55rem; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:.78rem; font-weight:950; }
.marketing-price-card.featured > span { background:#facc15; color:#111827; }
.marketing-price { margin:0; color:#0f2b55; font-size:clamp(2rem, 4vw, 3rem); font-weight:950; line-height:1; }
.marketing-price small { color:#64748b; font-size:1rem; font-weight:800; }
.marketing-savings { margin:0; color:#15803d; font-weight:900; }
.marketing-price-card ul { display:grid; gap:.55rem; margin:.2rem 0 0; padding-left:1.1rem; color:#4b5563; line-height:1.45; flex:1; }
.marketing-price-card .btn { width:100%; margin-top:auto; }
.marketing-final-cta { width:min(980px, calc(100% - 2rem)); margin:0 auto clamp(2rem, 5vw, 4rem); display:grid; justify-items:center; gap:1rem; padding:clamp(2rem, 5vw, 3.5rem); border:1px solid #bfdbfe; border-radius:8px; background:#fff; text-align:center; box-shadow:0 18px 44px rgba(15,23,42,.08); }
.marketing-page { min-height:calc(100vh - 150px); }
@media (max-width: 980px) {
    .marketing-product-section { grid-template-columns:1fr; }
    .marketing-video-layout { grid-template-columns:1fr; }
    .marketing-feature-grid,
    .marketing-pricing-grid,
    .marketing-sample-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .marketing-site { margin:-1rem; }
    .marketing-hero { min-height:auto; padding:2.4rem 1rem 2.1rem; background-position:center right 28%; }
    .marketing-hero h1 { font-size:clamp(3.25rem, 19vw, 4.7rem); }
    .marketing-hero-copy { font-size:1rem; }
    .marketing-proof,
    .marketing-feature-grid,
    .marketing-pricing-grid,
    .marketing-sample-grid,
    .marketing-dashboard-grid { grid-template-columns:1fr; }
    .marketing-dashboard-panel.wide { grid-row:auto; }
    .marketing-section { width:min(100% - 1.25rem, 1180px); padding:2.25rem 0; }
    .marketing-section-heading h2,
    .marketing-section-heading h1,
    .marketing-final-cta h2 { font-size:2rem; }
    .marketing-product-visual { box-shadow:0 16px 34px rgba(15,23,42,.12); }
    .marketing-video-copy .btn { width:100%; }
    .marketing-final-cta { width:calc(100% - 1.25rem); justify-items:stretch; text-align:left; }
    .marketing-final-cta .marketing-hero-actions,
    .marketing-hero-actions { align-items:stretch; }
    .marketing-hero-actions .btn { flex:1 1 100%; }
}
.auth-shell { min-height:calc(100vh - 74px); display:grid; place-items:start center; padding:clamp(2rem, 7vw, 5rem) 1rem; }
.auth-card { width:min(460px, 100%); display:grid; gap:1.1rem; border:1px solid #dbe3ef; border-radius:8px; padding:clamp(1.1rem, 3vw, 1.5rem); background:#fff; box-shadow:0 18px 44px rgba(15,23,42,.08); }
.auth-heading { display:grid; gap:.3rem; }
.auth-heading h1 { margin:0; font-size:clamp(1.85rem, 4vw, 2.4rem); line-height:1.08; }
.auth-heading p { margin:0; }
.auth-form { display:grid; gap:.85rem; }
.auth-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.75rem; }
.auth-field { display:grid; gap:.35rem; color:#334155; font-weight:800; }
.auth-field label { margin:0; }
.auth-field small { font-weight:500; }
.auth-input { width:100%; min-height:42px; padding:.55rem .7rem; border:1px solid #cbd5e1; border-radius:7px; background:#fff; }
.auth-input:focus { outline:3px solid rgba(31,111,235,.18); border-color:#1f6feb; }
.auth-input[aria-invalid="true"] { border-color:#dc2626; }
.auth-input-readonly { background:#f8fafc; color:#475569; cursor:not-allowed; }
.auth-invite-card { width:min(620px, 100%); }
.auth-complete-state { display:grid; gap:.75rem; }
.auth-complete-state h2,
.auth-complete-state p { margin:0; }
.invite-context { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:.65rem; padding:.85rem; border:1px solid #dbeafe; border-radius:8px; background:#f8fbff; }
.invite-context div { min-width:0; display:grid; gap:.18rem; }
.invite-context span { color:#64748b; font-size:.72rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.invite-context strong { overflow-wrap:anywhere; color:#172033; font-size:.92rem; }
.auth-password-control { position:relative; }
.auth-password-control .auth-input { padding-right:3rem; }
.auth-password-toggle { position:absolute; top:50%; right:.28rem; width:2.35rem; height:2.35rem; display:grid; place-items:center; padding:0; transform:translateY(-50%); border:0; border-radius:6px; background:transparent; color:#475569; cursor:pointer; }
.auth-password-toggle:hover { background:#eff6ff; color:#1d4ed8; }
.auth-password-toggle:focus-visible { outline:3px solid rgba(31,111,235,.22); outline-offset:1px; }
.auth-password-toggle svg { width:1.25rem; height:1.25rem; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.auth-password-toggle .password-eye-closed,
.auth-password-toggle[aria-pressed="true"] .password-eye-open { display:none; }
.auth-password-toggle[aria-pressed="true"] .password-eye-closed { display:block; }
.password-requirements { display:grid; gap:.45rem; padding:.85rem; border:1px solid #bfdbfe; border-radius:8px; background:#eff6ff; color:#334155; }
.password-requirements > strong { color:#1e3a8a; font-size:.9rem; }
.password-requirements ul { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.35rem .75rem; margin:0; padding:0; list-style:none; }
.password-requirements li { position:relative; min-width:0; padding-left:1.25rem; color:#52637b; font-size:.86rem; font-weight:650; }
.password-requirements li:before { content:""; position:absolute; left:0; top:.28rem; width:.62rem; height:.62rem; border:2px solid #94a3b8; border-radius:50%; background:#fff; }
.password-requirements li.is-met { color:#166534; }
.password-requirements li.is-met:before { content:"✓"; top:.02rem; width:.9rem; height:.9rem; display:grid; place-items:center; border-color:#16a34a; background:#16a34a; color:#fff; font-size:.64rem; line-height:1; }
.password-requirements li.is-unmet { color:#b91c1c; }
.password-requirements li.is-unmet:before { border-color:#dc2626; background:#fff; }
.password-match-status { min-height:1.1rem; color:#64748b; font-size:.84rem; font-weight:700; }
.password-match-status.is-match { color:#166534; }
.password-match-status.is-mismatch { color:#b91c1c; }
.auth-account-guidance { display:grid; gap:.18rem; padding:.75rem .85rem; border-left:4px solid #1f6feb; border-radius:6px; background:#eff6ff; color:#334155; }
.auth-account-guidance strong { color:#1e3a8a; }
.auth-account-guidance span { font-size:.9rem; }
.auth-error-summary,
.validation-summary-errors.auth-validation-summary { display:grid; gap:.35rem; padding:.85rem; border:2px solid #dc2626; border-radius:8px; background:#fef2f2; color:#991b1b; box-shadow:0 5px 16px rgba(185,28,28,.1); }
.auth-error-summary:focus,
.validation-summary-errors.auth-validation-summary:focus { outline:3px solid rgba(220,38,38,.22); outline-offset:2px; }
.auth-error-summary strong { font-size:1rem; }
.auth-error-summary p { margin:0; color:#991b1b; line-height:1.45; }
.validation-summary-errors.auth-validation-summary:before { content:"Please correct the highlighted information:"; font-weight:900; }
.validation-summary-errors.auth-validation-summary ul { display:grid; gap:.2rem; margin:0; padding-left:1.2rem; }
.validation-message { color:#b91c1c; font-size:.84rem; font-weight:750; }
.auth-submit { width:100%; min-height:44px; }
.auth-footnote { margin:0; font-size:.95rem; }
.auth-inline-link { margin:-.25rem 0 .1rem; text-align:right; font-size:.92rem; font-weight:750; }
@media (max-width: 560px) {
    .invite-context,
    .password-requirements ul { grid-template-columns:1fr; }
}
.muted { color:#6b7280; }
.error { color:#b91c1c; }
/* Paragraph-level errors are status banners, mirroring .notice so success/failure read consistently. */
p.error { background:#fee2e2; border:1px solid #fca5a5; padding:.75rem; border-radius:6px; }
.inline-form { display:inline; margin:0; }
.linkbtn { background:none; border:0; color:#1f6feb; cursor:pointer; padding:.15rem .05rem; font:inherit; font-weight:750; }
.linkbtn.danger-text { background:none; color:#b91c1c; }
.card { border:1px solid #dbe3ef; border-radius:8px; padding:1rem; margin:1rem 0; background:#fff; box-shadow:0 12px 28px rgba(15,23,42,.045); }
.grid { border-collapse:collapse; width:100%; }
.grid th, .grid td { text-align:left; padding:.62rem .7rem; border-bottom:1px solid #edf1f7; vertical-align:middle; }
.grid th { color:#4f627b; font-size:.78rem; font-weight:900; letter-spacing:.02em; text-transform:uppercase; background:#f8fafc; }
.grid tbody tr:hover { background:#f8fbff; }
.grid tbody tr:last-child td { border-bottom:0; }

/* Toolbar above operational tables: search + status filter chips */
.table-toolbar { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; justify-content:space-between; margin:0 0 .9rem; }
.table-wrap { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
.table-wrap > table { min-width:42rem; }
.table-search { flex:1 1 260px; max-width:340px; border:1px solid #d5dbe6; border-radius:8px; padding:.55rem .8rem; font:inherit; background:#fff; }
.table-search:focus { outline:2px solid #bfd7ff; border-color:#1f6feb; }
.table-toolbar select { min-height:40px; border:1px solid #cbd5e1; border-radius:7px; padding:.45rem .6rem; background:#fff; font:inherit; }
.bulk-action-bar { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; margin:.75rem 0 1rem; padding:.75rem .85rem; border:1px solid #bfdbfe; border-radius:8px; background:#eff6ff; }
.bulk-action-bar strong { margin-right:.25rem; color:#1e3a8a; white-space:nowrap; }
.bulk-action-bar select { min-height:38px; min-width:170px; border:1px solid #cbd5e1; border-radius:7px; padding:.4rem .55rem; background:#fff; font:inherit; }
.admin-pager { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.85rem 0 0; color:#334155; }
.admin-pager-controls { display:flex; align-items:center; justify-content:flex-end; gap:.45rem; flex-wrap:wrap; }
.admin-pager-page { color:#64748b; font-size:.9rem; font-weight:750; }
.admin-pager select { min-height:34px; padding:.35rem .55rem; }
.chip-row { display:flex; flex-wrap:wrap; gap:.4rem; }
.chip { display:inline-flex; align-items:center; gap:.4rem; border:1px solid #d5dbe6; border-radius:999px; background:#fff; color:#475569;
  padding:.32rem .8rem; font:inherit; font-size:.86rem; font-weight:700; cursor:pointer; }
.chip:hover { border-color:#9db4d8; color:#1f2f4d; }
.chip.active { background:#1f6feb; border-color:#1f6feb; color:#fff; }
.chip-count { font-weight:800; font-size:.76rem; opacity:.75; }

/* Polished operational table */
.pages-grid { background:#fff; border:1px solid #e3e9f2; border-radius:10px; overflow:hidden; box-shadow:0 1px 3px rgba(15,23,42,.05); }
.pages-grid th { background:#f7f9fc; color:#5a6b84; font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  padding:.6rem .9rem; border-bottom:1px solid #e3e9f2; }
.pages-grid td { padding:.7rem .9rem; border-bottom:1px solid #eef2f7; vertical-align:middle; }
.pages-grid tbody tr:last-child td { border-bottom:0; }
.pages-grid tbody tr:hover { background:#f8fbff; }
.cell-title { display:flex; flex-direction:column; gap:.15rem; }
.row-title { color:#172033; font-weight:750; text-decoration:none; }
.row-title:hover { color:#1f6feb; }
.cell-sub { display:flex; align-items:center; gap:.5rem; font-size:.84rem; }
.cell-sub a { color:#64748b; text-decoration:none; }
.cell-sub a:hover { color:#1f6feb; text-decoration:underline; }
.cell-when { color:#64748b; font-size:.88rem; white-space:nowrap; }
.pages-grid .row-actions { justify-content:flex-end; white-space:nowrap; }
.pages-grid .row-actions a, .pages-grid .row-actions .linkbtn { font-weight:700; font-size:.9rem; }
.pages-grid .row-actions a { color:#1f6feb; text-decoration:none; }
.pages-grid .row-actions a:hover, .pages-grid .row-actions .linkbtn:hover { text-decoration:underline; }
.confirm-inline { display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.35rem .55rem; color:#b91c1c; font-size:.9rem; font-weight:700; }

.empty-state { background:#fbfdff; border:1px dashed #cbd7e8; border-radius:10px; padding:1.8rem 1.5rem; margin:1rem 0; text-align:center; display:grid; gap:.5rem; justify-items:center; }
.empty-state h2, .empty-state h3 { margin:0; font-size:1.05rem; color:#334155; }
.empty-state p { margin:0; max-width:52ch; }
label { display:inline-block; margin:.15rem 0; }
input, select, textarea { padding:.4rem; border:1px solid #d1d5db; border-radius:6px; background:#fff; color:#172033; font:inherit; }
select { cursor:pointer; padding-right:1.6rem; }
.form-grid label small { display:block; margin-top:.3rem; font-weight:500; }
.secondary { background:#475569; }
.secondary:hover { background:#334155; }
.btn.ghost { background:#fff; color:#1f6feb; border-color:#cbd5e1; box-shadow:none; }
.btn.ghost:hover { background:#eef5ff; border-color:#93c5fd; }
.btn.ghost.danger-text { color:#b91c1c; border-color:#fecaca; }
.btn.ghost.danger-text:hover { background:#fee2e2; border-color:#fca5a5; }
.danger { background:#b91c1c; }
.danger:hover { background:#991b1b; }
.notice { color:#166534; background:#dcfce7; border:1px solid #86efac; padding:.75rem; border-radius:6px; }
.danger-text { color:#b91c1c; }
.blazor-reconnect-modal { position:fixed; z-index:5000; right:1rem; bottom:1rem; width:min(420px, calc(100vw - 2rem)); display:none; align-items:center; justify-content:space-between; gap:1rem; padding:1rem; border:1px solid #bfdbfe; border-radius:8px; background:#fff; color:#172033; box-shadow:0 18px 54px rgba(15,23,42,.22); }
.blazor-reconnect-modal div { display:grid; gap:.2rem; min-width:0; }
.blazor-reconnect-modal strong { font-size:1rem; }
.blazor-reconnect-modal span { color:#64748b; font-size:.92rem; line-height:1.35; }
.blazor-reconnect-modal.components-reconnect-show,
.blazor-reconnect-modal.components-reconnect-failed,
.blazor-reconnect-modal.components-reconnect-rejected { display:flex; }
.blazor-reconnect-modal.components-reconnect-failed,
.blazor-reconnect-modal.components-reconnect-rejected { border-color:#fca5a5; }
.blazor-reconnect-modal.components-reconnect-failed strong,
.blazor-reconnect-modal.components-reconnect-rejected strong { color:#b91c1c; }
.admin-tabs { display:flex; flex-wrap:wrap; align-items:flex-end; gap:.18rem; margin:1rem 0 0; padding:0 .4rem; border-bottom:1px solid #cbd5e1; }
.admin-tab { position:relative; top:1px; display:inline-flex; align-items:center; gap:.45rem; min-height:42px; padding:.58rem .9rem; border:1px solid transparent; border-bottom-color:#cbd5e1; border-radius:8px 8px 0 0; background:#f3f6fb; color:#475569; text-decoration:none; font-weight:850; line-height:1.1; box-shadow:inset 0 -1px 0 rgba(15,23,42,.04); }
.admin-tab:hover { border-color:#cbd5e1; background:#fff; color:#123f8c; text-decoration:none; }
.admin-tab.active { z-index:1; border-color:#cbd5e1; border-bottom-color:#fff; background:#fff; color:#123f8c; box-shadow:0 -2px 8px rgba(15,23,42,.035); }
.admin-tab small { display:inline-flex; align-items:center; min-height:20px; padding:.05rem .42rem; border-radius:999px; background:#e2e8f0; color:#475569; font-size:.72rem; font-weight:900; }
.admin-tab.active small { background:#dbeafe; color:#123f8c; }
.platform-operations-page > .admin-tabs,
.platform-tenants-page > .admin-tabs,
.analytics-page > .admin-tabs { margin-bottom:1rem; }
.operations-alert-list { display:grid; gap:.65rem; }
.operations-alert { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:1rem; padding:.85rem 0; border-bottom:1px solid #e2e8f0; }
.operations-alert:last-child { border-bottom:0; }
.operations-alert p { margin:.2rem 0 0; color:#64748b; }
.operations-alert.danger { border-left:4px solid #dc2626; padding-left:.8rem; }
.operations-alert.warning { border-left:4px solid #d97706; padding-left:.8rem; }
.runbook-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.runbook-item { padding:1rem 0; border-top:3px solid #1f6feb; }
.runbook-item h3 { margin-top:0; }
.runbook-item ol { margin-bottom:0; padding-left:1.2rem; }
.support-notice-list { display:grid; gap:.5rem; margin-bottom:1rem; }
.support-update { margin:0; padding:.8rem 1rem; border:1px solid #93c5fd; border-left:4px solid #2563eb; border-radius:7px; background:#eff6ff; color:#1e3a5f; }
.support-notice-list p { margin:.25rem 0; }
@media (max-width:720px) {
    .operations-alert { grid-template-columns:minmax(0,1fr) auto; }
    .operations-alert .btn { grid-column:1 / -1; width:100%; }
    .runbook-grid { grid-template-columns:1fr; }
}
.admin-tab-button { cursor:pointer; font:inherit; }
.admin-tab-button.active { border-color:#cbd5e1; border-bottom-color:#fff; background:#fff; color:#123f8c; }
.admin-tabs + .card { margin-top:0; border-top-left-radius:0; }
.admin-table-toolbar { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:.8rem; margin:0 0 .9rem; }
.admin-table-toolbar > div:first-child { display:grid; gap:.18rem; min-width:min(100%, 18rem); }
.admin-filter-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.55rem; }
.admin-filter-row-left { justify-content:flex-start; }
.admin-filter-row .table-search { max-width:320px; }
.admin-data-panel { padding:0; overflow:visible; }
.admin-data-panel.admin-table-contained { overflow:hidden; }
.admin-data-panel > .grid { margin:0; }
.admin-table-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
.admin-table-scroll > .grid { margin:0; min-width:100%; }
.admin-table-scroll:focus-visible { outline:2px solid #2563eb; outline-offset:-2px; }
.calendar-import-grid { min-width:1120px !important; }
.calendar-import-grid td { vertical-align:top; }
.calendar-import-grid td:nth-child(2) input { min-width:220px; }
.calendar-import-grid td:nth-child(3) { min-width:205px; }
.calendar-import-grid td:nth-child(3) > input { display:block; width:100%; margin-top:.35rem; }
.calendar-import-grid select, .calendar-import-grid input:not([type="checkbox"]) { min-height:36px; }
.calendar-feed-form input[type="url"] { width:100%; }
.admin-data-panel > .media-grid { padding:1rem; }
.admin-panel-command { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:.75rem 1rem; padding:.9rem 1rem .75rem; border-bottom:1px solid #edf1f7; }
.admin-panel-command h2 { margin:0; font-size:1.08rem; }
.admin-panel-command p { margin:.25rem 0 0; }
.admin-panel-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.5rem; padding:.85rem 1rem; border-top:1px solid #edf1f7; background:#fbfdff; }
.form-panel-body { padding:1rem; }
.form-panel-note { margin:.2rem 1rem 1rem; }
.admin-command-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.5rem; }
.admin-command-actions input { min-height:38px; }
.admin-chip-filter-row { align-items:center; }
.admin-data-panel > .admin-filter-row { padding:.75rem 1rem; border-bottom:1px solid #edf1f7; background:#fbfdff; }
.admin-data-panel > .empty-state { margin:1rem; }
.admin-data-panel > .admin-pager { padding:.75rem 1rem 1rem; }
.report-primary-metrics .metric-card small { color:#64748b; font-size:.82rem; font-weight:750; }
.report-summary-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:1rem; padding:1rem; }
.report-summary-card { min-width:0; padding:.9rem; border:1px solid #edf1f7; border-radius:8px; background:#fff; }
.report-summary-card h3 { margin:0 0 .35rem; font-size:1rem; }
.report-summary-card .grid { margin:0; }
.report-export-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:1rem; padding:1rem; }
.report-export-card { display:flex; flex-direction:column; justify-content:space-between; gap:1rem; min-height:156px; padding:1rem; border:1px solid #edf1f7; border-radius:8px; background:#fff; }
.report-export-card h3 { margin:0 0 .35rem; font-size:1rem; }
.report-export-card p { margin:0; }
.report-export-card .btn { align-self:flex-start; }
.analytics-page .metric-grid { grid-template-columns:repeat(6, minmax(0, 1fr)); }
.analytics-page .metric-card small { display:block; margin-top:.35rem; color:#64748b; font-size:.8rem; font-weight:750; line-height:1.25; }
.analytics-empty-state { padding:1rem; display:grid; gap:.85rem; }
.analytics-empty-state pre { max-width:100%; overflow:auto; margin:0; padding:.8rem .9rem; border:1px solid #dbe3ef; border-radius:8px; background:#0f172a; color:#e5edf7; font:500 .86rem/1.5 Consolas, "Liberation Mono", Menlo, monospace; }
.analytics-chart { min-height:170px; display:flex; align-items:flex-end; gap:.42rem; padding:1rem; overflow-x:auto; border-top:1px solid #edf1f7; background:linear-gradient(180deg, #fff 0%, #fbfdff 100%); }
.analytics-day { flex:1 0 28px; min-width:28px; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:minmax(124px, 1fr) auto; align-items:end; justify-items:center; gap:.25rem; color:#64748b; font-size:.72rem; font-weight:800; }
.analytics-day small { grid-column:1 / -1; white-space:nowrap; }
.analytics-bar { width:9px; min-height:2px; border-radius:999px 999px 2px 2px; }
.analytics-pageviews { background:#1f6feb; box-shadow:0 4px 10px rgba(31,111,235,.22); }
.analytics-visitors { background:#14b8a6; box-shadow:0 4px 10px rgba(20,184,166,.18); }
.analytics-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:1rem; align-items:start; }
.analytics-dimension-panel { min-width:0; margin:0; }
.analytics-dimension-panel .grid td:first-child { word-break:break-word; }
.analytics-pages-panel { margin:1rem 0; }
.analytics-panel-empty { margin:0; padding:1rem; }
.analytics-pages-table { min-width:820px !important; }
.analytics-pages-table th:not(:first-child),
.analytics-pages-table td:not(:first-child) { text-align:right; }
.analytics-page-path { min-width:220px; max-width:480px; overflow-wrap:anywhere; font-weight:800; color:#172033; }
.analytics-number-cell { white-space:nowrap; font-variant-numeric:tabular-nums; }
.analytics-sort-button { display:flex; align-items:center; gap:.3rem; width:100%; margin:0; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; font:inherit; font-weight:inherit; text-align:left; }
.analytics-sort-button-number { justify-content:flex-end; text-align:right; }
.analytics-sort-button span { min-width:.8rem; color:#64748b; font-size:.82em; }
.analytics-sort-button:hover { color:#1f6feb; }
.analytics-sort-button:focus-visible { outline:2px solid #2563eb; outline-offset:3px; border-radius:2px; }
.admin-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:.3rem; white-space:nowrap; }
.grid th.admin-actions-header,
.grid td.admin-actions-cell { width:1%; text-align:right; white-space:nowrap; }
.grid td.admin-actions-cell .admin-row-actions { justify-content:flex-end; }
.admin-icon-button { position:relative; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; min-width:34px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#334155; cursor:pointer; text-decoration:none; font:inherit; font-size:.72rem; font-weight:900; line-height:1; box-shadow:0 1px 2px rgba(15,23,42,.05); }
.admin-icon-button:hover { border-color:#1f6feb; background:#eff6ff; color:#1f6feb; text-decoration:none; }
.admin-help-button { border-radius:999px; color:#1f6feb; font-size:.9rem; }
.admin-icon-button:focus-visible,
.admin-action-menu-list a:focus-visible,
.admin-action-menu-list button:focus-visible,
.admin-tab:focus-visible,
.admin-tab-button:focus-visible { outline:3px solid rgba(31,111,235,.22); outline-offset:2px; }
.admin-icon-button.danger-text { border-color:#fecaca; color:#b91c1c; }
.admin-icon-button.danger-text:hover { background:#fee2e2; border-color:#fca5a5; color:#991b1b; }
.admin-copy-glyph { position:relative; width:15px; height:16px; display:inline-block; }
.admin-copy-glyph:before,
.admin-copy-glyph:after { content:""; position:absolute; border:2px solid currentColor; border-radius:3px; background:#fff; }
.admin-copy-glyph:before { width:9px; height:11px; left:1px; top:1px; opacity:.55; }
.admin-copy-glyph:after { width:9px; height:11px; left:5px; top:4px; }
.admin-copy-glyph.copied:before { display:none; }
.admin-copy-glyph.copied:after { width:12px; height:7px; left:1px; top:2px; border-top:0; border-right:0; border-radius:0; background:transparent; transform:rotate(-45deg); }
.admin-action-menu { position:relative; display:inline-flex; }
.admin-overflow-trigger-glyph { font-size:1.25rem; line-height:.8; transform:translateY(-1px); }
.admin-menu-text-button { gap:.3rem; }
.admin-menu-text-button .admin-overflow-trigger-glyph { font-size:1.05rem; transform:translateY(-1px); }
.admin-action-menu-list { position:absolute; z-index:1100; top:calc(100% + .35rem); right:0; min-width:180px; display:grid; gap:.15rem; padding:.35rem; border:1px solid #dbe3ef; border-radius:8px; background:#fff; box-shadow:0 18px 48px rgba(15,23,42,.18); }
.admin-action-menu-list a,
.admin-action-menu-list button { width:100%; min-height:34px; display:flex; align-items:center; justify-content:flex-start; gap:.45rem; padding:.4rem .55rem; border:0; border-radius:6px; background:transparent; color:#172033; text-decoration:none; text-align:left; font:inherit; font-weight:800; cursor:pointer; }
.admin-action-menu-list a:hover,
.admin-action-menu-list button:hover { background:#f1f5f9; color:#123f8c; text-decoration:none; }
.admin-action-menu-list .danger-text { color:#b91c1c; }
.admin-action-menu-list .danger-text:hover { background:#fee2e2; color:#991b1b; }
.copy-field { display:grid; grid-template-columns:minmax(180px, 1fr) auto; gap:.4rem; align-items:center; min-width:0; }
.copy-field .code-input { min-width:0; width:100%; }
.compact-copy-field { grid-template-columns:minmax(0, 1fr) auto; }
.compact-copy-field a { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.layout-template-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:1rem; padding:1rem; }
.layout-template-card { display:grid; gap:.85rem; align-content:start; min-width:0; border:1px solid #dbe3ef; border-radius:8px; padding:1rem; background:#fff; box-shadow:0 8px 20px rgba(15,23,42,.04); }
.layout-template-card h3 { margin:.1rem 0 .25rem; }
.layout-template-card p { margin:0; }
.layout-settings-list { display:grid; gap:.35rem; margin:0; }
.layout-settings-list div { display:flex; justify-content:space-between; gap:.75rem; border-bottom:1px solid #edf1f7; padding:.28rem 0; }
.layout-settings-list dt { color:#64748b; font-size:.78rem; font-weight:900; text-transform:uppercase; }
.layout-settings-list dd { margin:0; font-weight:800; text-align:right; }
.layout-editor-grid { display:grid; grid-template-columns:minmax(0, 1fr) minmax(280px, 420px); gap:1rem; align-items:start; }
.layout-live-preview { position:sticky; top:1rem; display:grid; gap:.65rem; min-width:0; }
.layout-live-preview h3 { margin:.1rem 0; }
.layout-visual-builder { display:grid; grid-template-columns:minmax(0, 1fr) minmax(300px, 430px); gap:1rem; align-items:start; }
.layout-visual-canvas { display:grid; gap:1rem; min-width:0; }
.layout-visual-heading { display:flex; align-items:start; justify-content:space-between; gap:1rem; }
.layout-visual-heading h3 { margin:0 0 .25rem; }
.layout-visual-heading p { margin:0; max-width:62ch; }
.layout-preset-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.75rem; }
.layout-preset-option { display:grid; gap:.7rem; min-height:196px; padding:.85rem; border:1px solid #dbe3ef; border-radius:8px; background:#fff; color:#172033; text-align:left; font:inherit; cursor:pointer; transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.layout-preset-option:hover { border-color:#94b7e7; box-shadow:0 10px 24px rgba(15,23,42,.08); transform:translateY(-1px); }
.layout-preset-option.selected { border-color:#1f6feb; box-shadow:0 0 0 3px rgba(31,111,235,.13); }
.layout-preset-option strong { font-size:.95rem; }
.layout-preset-option small { color:#64748b; line-height:1.45; }
.layout-preset-preview { position:relative; display:grid; align-content:start; gap:.3rem; min-height:72px; overflow:hidden; padding:.65rem; border:1px solid #dbe3ef; border-radius:6px; background:#f8fafc; }
.layout-preset-preview i { display:block; height:6px; border-radius:999px; background:#dbeafe; }
.layout-preset-preview i:nth-child(2) { width:76%; background:#cbd5e1; }
.layout-preset-preview i:nth-child(3) { width:90%; background:#e2e8f0; }
.layout-preset-preview i:nth-child(4) { width:62%; background:#e2e8f0; }
.layout-preset-heading:before { content:""; display:block; width:25%; height:5px; margin-bottom:.2rem; border-radius:999px; background:#1f6feb; }
.layout-preset-feature { padding:1rem .75rem; background:linear-gradient(135deg,#123f8c,#1f6feb); }
.layout-preset-feature:before { content:""; display:block; width:26%; height:5px; margin-bottom:.28rem; border-radius:999px; background:#bfdbfe; }
.layout-preset-feature i { background:#fff; opacity:.95; }
.layout-preset-feature i:nth-child(2), .layout-preset-feature i:nth-child(3), .layout-preset-feature i:nth-child(4) { background:#bfdbfe; }
.layout-preset-form { max-width:78%; margin-inline:auto; padding:1rem .7rem; background:#fff; box-shadow:0 5px 12px rgba(15,23,42,.08); }
.layout-preset-form:before { content:""; display:block; width:55%; height:7px; margin-bottom:.35rem; border-radius:999px; background:#334155; }
.layout-visual-options { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.75rem; padding:.9rem; border:1px solid #dbe3ef; border-radius:8px; background:#f8fafc; }
.layout-visual-options label { display:grid; gap:.35rem; color:#334155; font-size:.82rem; font-weight:850; }
.layout-visual-options select { width:100%; min-height:38px; border:1px solid #cbd5e1; border-radius:6px; padding:.35rem .5rem; background:#fff; color:#172033; font:inherit; }
.layout-visual-options .layout-visual-checkbox { grid-column:1 / -1; align-self:end; font-size:.88rem; }
.layout-visual-apply { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem; border:1px solid #bfdbfe; border-radius:8px; background:#f5f9ff; }
.layout-visual-apply div { display:grid; gap:.18rem; }
.layout-visual-apply strong { color:#123f8c; }
.layout-visual-apply span { font-size:.84rem; }
.layout-visual-preview-panel { position:sticky; top:1rem; display:grid; gap:.65rem; min-width:0; }
.layout-visual-preview-head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.layout-visual-preview-head h3 { margin:.1rem 0; }
.layout-device-toggle { display:inline-flex; padding:3px; border:1px solid #dbe3ef; border-radius:7px; background:#fff; }
.layout-device-toggle button { min-height:28px; border:0; border-radius:5px; padding:0 .55rem; background:transparent; color:#64748b; font:inherit; font-size:.76rem; font-weight:850; cursor:pointer; }
.layout-device-toggle button.active { background:#e7f0ff; color:#123f8c; }
.layout-visual-preview { overflow:hidden; border:1px solid #cbd5e1; border-radius:10px; background:#eef2f7; box-shadow:0 12px 26px rgba(15,23,42,.08); }
.layout-preview-sitebar { display:flex; align-items:center; justify-content:space-between; gap:.5rem; min-height:38px; padding:0 .75rem; border-bottom:1px solid #dbe3ef; background:#fff; color:#334155; font-size:.7rem; font-weight:900; }
.layout-preview-stage { display:grid; gap:.8rem; min-height:330px; padding:1rem; background:#f8fafc; }
.layout-preview-visual-heading { display:grid; gap:.35rem; padding:1rem 0; border-bottom:1px solid #dbe3ef; }
.layout-preview-visual-heading span { color:#1f6feb; font-size:.65rem; font-weight:900; text-transform:uppercase; }
.layout-preview-visual-heading strong { color:#172033; font-size:1.25rem; }
.layout-preview-visual-heading small { color:#64748b; line-height:1.4; }
.layout-preview-visual-heading.feature { margin:-1rem -1rem 0; padding:1.25rem 1rem; border:0; background:linear-gradient(135deg,#123f8c,#1f6feb); color:#fff; }
.layout-preview-visual-heading.feature span, .layout-preview-visual-heading.feature strong, .layout-preview-visual-heading.feature small { color:#fff; }
.layout-preview-content { display:grid; align-content:start; gap:.55rem; min-height:154px; padding:1rem; border:1px solid #dbe3ef; border-radius:7px; background:#fff; }
.layout-preview-content.form { width:82%; margin:auto; box-shadow:0 9px 20px rgba(15,23,42,.08); }
.layout-preview-content b { color:#334155; font-size:.85rem; }
.layout-preview-content i { display:block; height:9px; border-radius:999px; background:#dbeafe; }
.layout-preview-content i:nth-of-type(2) { width:84%; background:#e2e8f0; }
.layout-preview-content i:nth-of-type(3) { width:65%; background:#e2e8f0; }
.layout-visual-preview.layout-device-mobile { width:280px; justify-self:center; }
.layout-visual-preview.layout-device-mobile .layout-preview-sitebar span:last-child { display:none; }
.layout-visual-preview.layout-device-mobile .layout-preview-stage { min-height:410px; }
.layout-visual-preview.layout-device-mobile .layout-preview-content.form { width:100%; }
.layout-mini-preview,
.layout-preview-card { display:grid; gap:.75rem; min-width:0; border:1px solid #dbe3ef; border-radius:8px; background:#fbfdff; padding:1rem; }
.layout-preview-card.frame-mode-card,
.layout-mini-preview.frame-mode-card { background:#fff; box-shadow:0 12px 26px rgba(15,23,42,.08); }
.layout-mini-preview.layout-width-narrow,
.layout-preview-card.layout-width-narrow { max-width:78%; }
.layout-mini-preview.layout-width-standard,
.layout-preview-card.layout-width-standard { max-width:92%; }
.layout-mini-preview.layout-width-wide,
.layout-preview-card.layout-width-wide,
.layout-mini-preview.layout-width-full,
.layout-preview-card.layout-width-full { max-width:100%; }
.layout-mini-preview.layout-width-form,
.layout-preview-card.layout-width-form { max-width:76%; margin-inline:auto; }
.layout-mini-preview.layout-spacing-compact,
.layout-preview-card.layout-spacing-compact { gap:.45rem; padding:.75rem; }
.layout-mini-preview.layout-spacing-roomy,
.layout-preview-card.layout-spacing-roomy { gap:1.1rem; padding:1.25rem; }
.layout-preview-band { display:grid; gap:.22rem; padding-bottom:.65rem; border-bottom:1px solid #dbe3ef; }
.layout-preview-band span { color:#1f6feb; font-size:.72rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.layout-preview-band strong { color:#172033; font-size:1.05rem; }
.layout-preview-band small { color:#64748b; }
.layout-preview-form-head { display:grid; gap:.2rem; padding-bottom:.55rem; border-bottom:1px solid #edf1f7; }
.layout-preview-form-head strong { color:#172033; }
.layout-preview-form-head span { color:#64748b; font-size:.86rem; }
.layout-preview-lines { display:grid; gap:.4rem; }
.layout-preview-lines span { display:block; height:10px; border-radius:999px; background:#dbeafe; }
.layout-preview-lines span:nth-child(2) { width:86%; background:#e2e8f0; }
.layout-preview-lines span:nth-child(3) { width:72%; background:#e2e8f0; }
.layout-preview-lines span:nth-child(4) { width:94%; background:#edf2f7; }
.layout-code-panel { display:grid; gap:.9rem; min-width:0; }
.ai-layout-panel { display:grid; gap:.6rem; border:1px solid #dbeafe; background:#f5f9ff; border-radius:10px; padding:.8rem .9rem; }
.ai-layout-head { display:grid; gap:.15rem; }
.ai-layout-panel textarea, .ai-layout-row input { width:100%; border:1px solid #cbd5e1; border-radius:8px; padding:.55rem .7rem; font:inherit; resize:vertical; }
.ai-layout-row { display:flex; gap:.6rem; align-items:center; }
.ai-layout-row input { flex:1; min-width:0; }
.layout-code-panel .compact-command { padding:0 0 .6rem; border-bottom:1px solid #edf1f7; }
.layout-code-panel .compact-command h3 { margin:0; }
.layout-code-field { display:grid; gap:.35rem; min-width:0; color:#334155; font-weight:850; }
.layout-code-field br { display:none; }
.layout-code-editor { width:100%; min-height:320px; resize:vertical; border:1px solid #cbd5e1; border-radius:8px; padding:.8rem; background:#0f172a; color:#e5edf7; font:500 .9rem/1.5 Consolas, "Liberation Mono", Menlo, monospace; tab-size:2; white-space:pre; overflow:auto; }
.layout-code-editor:focus { outline:3px solid rgba(31,111,235,.22); border-color:#1f6feb; }
.layout-css-editor { min-height:150px; }
.layout-token-list { display:flex; flex-wrap:wrap; gap:.4rem; padding:.75rem; border:1px solid #dbe3ef; border-radius:8px; background:#f8fafc; }
.layout-token-list code { display:inline-flex; align-items:center; min-height:28px; padding:.15rem .45rem; border:1px solid #dbe3ef; border-radius:6px; background:#fff; color:#123f8c; font-size:.8rem; font-weight:800; }
.checkbox-label { display:flex; align-items:center; gap:.45rem; min-height:40px; font-weight:800; }
.checkbox-label input { width:auto; }
.eyebrow { text-transform:uppercase; font-weight:800; color:#1f6feb; margin:0 0 .25rem; letter-spacing:.04em; }
.admin-app { min-height:100vh; display:grid; grid-template-columns:260px minmax(0, 1fr); background:#f6f8fb; }
.admin-app-designer { grid-template-columns:minmax(0, 1fr); }
.admin-app-designer .admin-sidebar { display:none; }
.admin-app-designer .admin-content { padding:.75rem 1rem 1rem; }
.bh-nav-collapsed .admin-app { grid-template-columns:minmax(0, 1fr); }
.bh-nav-collapsed .admin-sidebar { display:none; }
.admin-topbar-left { display:flex; align-items:center; gap:.65rem; min-width:0; }
.admin-nav-toggle { display:inline-flex; align-items:center; justify-content:center; width:40px; height:38px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#334155; cursor:pointer; font-size:1.15rem; line-height:1; flex:none; }
.admin-nav-toggle:hover { border-color:#1f6feb; color:#1f6feb; }
.admin-sidebar { position:sticky; top:0; height:100vh; min-height:0; display:flex; flex-direction:column; gap:1rem; padding:1rem; border-right:1px solid #dbe3ef; background:#ffffff; overflow:hidden; }
.admin-brand { display:flex; align-items:center; gap:.75rem; color:#172033; text-decoration:none; padding:.3rem .25rem .9rem; border-bottom:1px solid #edf1f7; }
.admin-brand-mark { display:grid; place-items:center; width:40px; height:40px; border-radius:8px; background:#123f8c; color:#fff; font-weight:900; }
.admin-brand strong,
.admin-brand small { display:block; }
.admin-brand small { color:#64748b; margin-top:.1rem; }
.admin-nav { flex:1 1 auto; min-height:0; display:grid; align-content:start; gap:.25rem; overflow-y:auto; overscroll-behavior:contain; padding-right:.25rem; }
.admin-nav-label { grid-column:1 / -1; margin:.9rem 0 .15rem; padding:0 .75rem; color:#8194ac; font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.admin-nav a { color:#334155; text-decoration:none; padding:.65rem .75rem; border-radius:8px; font-weight:750; }
.admin-nav a:hover,
.admin-nav a.active { background:#eaf1ff; color:#123f8c; }
.admin-nav a.admin-nav-feature { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.admin-nav-state { flex:0 0 auto; padding:.12rem .38rem; border-radius:999px; background:#e2e8f0; color:#475569; font-size:.58rem; font-weight:850; letter-spacing:.02em; text-transform:uppercase; }
.admin-sidebar-actions { flex:0 0 auto; display:grid; gap:.5rem; padding-top:.75rem; border-top:1px solid #edf1f7; }
.admin-workspace { min-width:0; display:grid; grid-template-rows:auto 1fr; }
.admin-topbar { min-width:0; min-height:62px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:1rem; padding:.75rem 1.25rem; border-bottom:1px solid #dbe3ef; background:#fff; }
.admin-crumbs { display:flex; align-items:center; gap:.5rem; font-weight:800; }
.admin-crumbs a { color:#1f6feb; text-decoration:none; }
.admin-crumbs span:before { content:"/"; color:#94a3b8; margin-right:.5rem; }
.admin-topbar-utilities { min-width:0; display:flex; align-items:center; justify-content:flex-start; padding-left:clamp(.5rem, 4vw, 3rem); }
.admin-top-actions { display:flex; align-items:center; flex-wrap:nowrap; justify-content:flex-end; gap:.7rem; min-width:0; padding-left:1rem; border-left:1px solid #edf1f7; }
.admin-top-actions a { color:#1f6feb; text-decoration:none; font-weight:750; }
.ai-assist-topbar { display:flex; align-items:center; gap:.4rem; width:min(100%, 620px); min-width:0; height:42px; padding:.25rem .35rem .25rem .75rem; border:1px solid #bfdbfe; border-radius:999px; background:#f8fbff; box-shadow:0 2px 8px rgba(37,99,235,.08); }
.ai-assist-topbar:focus-within { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.14); }
.ai-assist-topbar.is-unavailable { border-color:#cbd5e1; background:#f8fafc; box-shadow:none; cursor:pointer; }
.ai-assist-topbar.is-unavailable:focus-within { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.14); }
.ai-assist-topbar-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; color:#1d4ed8; font-size:1.2rem; font-weight:900; line-height:1; }
.ai-assist-topbar input { flex:1 1 auto; min-width:0; height:34px; padding:0 .3rem; border:0; outline:0; background:transparent; color:#172033; font:600 .9rem/1 system-ui,sans-serif; }
.ai-assist-topbar.is-unavailable input { cursor:pointer; }
.ai-assist-topbar input::placeholder { color:#53657d; font-weight:550; }
.ai-assist-topbar-submit { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:34px; height:34px; border:0; border-radius:50%; background:#2563eb; color:#fff; font:900 1.1rem/1 system-ui,sans-serif; cursor:pointer; }
.ai-assist-topbar-submit:hover { background:#1d4ed8; }
.ai-assist-topbar-submit:disabled { background:#93c5fd; cursor:not-allowed; }
.ai-assist-topbar.is-unavailable .ai-assist-topbar-submit { background:#1d4ed8; }
.feature-unavailable { min-height:100%; display:grid; align-content:center; justify-items:start; gap:.75rem; padding:clamp(1.25rem,4vw,2rem); border:1px solid #dbeafe; border-radius:12px; background:#f8fbff; }
.feature-unavailable.compact { min-height:0; padding:1rem; }
.feature-unavailable h3, .feature-unavailable p { margin:0; }
.feature-unavailable-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:#dbeafe; color:#1d4ed8; font-size:1.05rem; }
.support-activity { display:flex; min-width:0; }
.support-activity-link { position:relative; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding:0; border:1px solid #dbe3ef; border-radius:50%; background:#fff; color:#334155 !important; text-decoration:none; box-shadow:0 2px 8px rgba(15,23,42,.04); }
.support-activity-link:hover { border-color:#93c5fd; background:#f8fbff; }
.support-activity-link.has-open { border-color:#bfdbfe; background:#eff6ff; color:#1e3a8a !important; }
.support-activity-link.has-unread { border-color:#fca5a5; background:#fff7f7; color:#991b1b !important; box-shadow:0 0 0 3px rgba(239,68,68,.08); }
.support-activity-icon { display:inline-flex; align-items:center; justify-content:center; color:inherit; }
.support-activity-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.support-activity-count { position:absolute; top:-6px; right:-7px; display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:#2563eb; color:#fff; font-size:.68rem; font-weight:900; box-shadow:0 0 0 2px #fff; }
.has-unread .support-activity-count { background:#dc2626; }
.support-icon-launcher { position:relative; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding:0; border:1px solid #dbe3ef; border-radius:50%; background:#fff; color:#334155; font:800 1.1rem/1 system-ui,sans-serif; cursor:pointer; box-shadow:0 2px 8px rgba(15,23,42,.04); }
.support-icon-launcher:hover { border-color:#93c5fd; background:#f8fbff; color:#1d4ed8; }
.support-icon-launcher:focus-visible { outline:3px solid rgba(37,99,235,.25); outline-offset:2px; }
.support-text-launcher { position:relative; display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:.35rem .8rem; border:1px solid transparent; border-radius:8px; background:transparent; color:#1d4ed8; font:800 .88rem/1 system-ui,sans-serif; white-space:nowrap; cursor:pointer; }
.support-launcher-badge { position:absolute; top:-6px; right:-7px; min-width:18px; height:18px; padding:0 4px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:#dc2626; color:#fff; font-size:.68rem; box-shadow:0 0 0 2px #fff; }
.support-text-launcher:hover { border-color:#bfdbfe; background:#eff6ff; }
.support-text-launcher:focus-visible { outline:3px solid rgba(37,99,235,.25); outline-offset:2px; }
.support-text-launcher:disabled { border-color:transparent; background:transparent; color:#94a3b8; cursor:not-allowed; }
.support-launcher-group { display:flex; align-items:center; gap:.2rem; }
.ai-assist-launcher { letter-spacing:.01em; }
.help-launcher { color:#334155; }
.support-drawer-backdrop { position:fixed; inset:0; z-index:1100; display:flex; justify-content:flex-end; background:rgba(15,23,42,.28); backdrop-filter:blur(1px); }
.support-drawer { width:min(470px,100vw); height:100vh; display:grid; grid-template-rows:auto minmax(0,1fr); background:#fff; box-shadow:-18px 0 60px rgba(15,23,42,.2); }
.support-drawer-body { display:flex; flex-direction:column; gap:1rem; }
.support-search-label { font-weight:750; }
.support-search-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.55rem; }
.support-search-row input,.help-search-card input { width:100%; min-width:0; padding:.72rem .8rem; border:1px solid #cbd5e1; border-radius:7px; font:inherit; }
.support-drawer-section { border-top:1px solid #e5e7eb; padding-top:.75rem; }
.support-section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.support-result-list { display:grid; gap:.55rem; }
.support-result { display:grid; gap:.2rem; width:100%; padding:.75rem; text-align:left; border:1px solid #dbe3ef; border-radius:8px; background:#fff; color:#0f172a; cursor:pointer; }
.support-result:hover { border-color:#93c5fd; background:#f8fbff; }
.support-result span { color:#64748b; font-size:.9rem; }
.help-article { line-height:1.62; }
.help-article h1 { font-size:1.55rem; margin:.2rem 0 1rem; }
.help-article h2 { font-size:1.13rem; margin:1.3rem 0 .45rem; }
.help-article p { margin:.55rem 0; }
.help-full-link { display:inline-block; margin-top:1rem; }
.support-actions-panel { margin-top:auto; padding:1rem; border:1px solid #bfdbfe; border-radius:10px; background:#eff6ff; }
.support-actions-panel p { margin:.25rem 0 .75rem; }
.support-action-buttons { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; }
.help-center-page,.help-article-page { max-width:1050px; margin:0 auto; }
.help-search-card { margin-bottom:1rem; }
.help-search-card label { display:block; font-weight:750; margin-bottom:.4rem; }
.help-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1rem; }
.help-card { display:block; color:inherit; text-decoration:none; }
.help-card:hover { border-color:#93c5fd; box-shadow:0 8px 22px rgba(15,23,42,.07); text-decoration:none; }
.help-card h2 { margin:.35rem 0; font-size:1.1rem; }
.help-article-page .help-article { max-width:780px; margin:1rem auto; padding:1.4rem; }
@media (max-width:600px) { .support-drawer { width:100vw; } .support-search-row { grid-template-columns:1fr; } }
.support-page { max-width:1150px; margin:0 auto; }
.support-form-page .admin-heading { align-items:center; }
.support-form-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr); gap:1rem; align-items:start; }
.support-ticket-form { display:grid; gap:1rem; padding:1.25rem; }
.support-ticket-form > .validation-errors { margin:0; }
.support-ticket-form-grid { display:grid; grid-template-columns:minmax(170px,.42fr) minmax(0,1.58fr); gap:1rem; }
.support-ticket-form-grid label { display:grid; align-content:start; gap:.4rem; min-width:0; margin:0; color:#172033; font-weight:800; }
.support-ticket-form-grid input,
.support-ticket-form-grid select,
.support-ticket-form-grid textarea { width:100%; min-width:0; padding:.72rem .8rem; border-color:#cbd5e1; }
.support-ticket-form-grid textarea { min-height:220px; resize:vertical; line-height:1.45; }
.support-ticket-description { grid-column:1 / -1; }
.support-ticket-form .admin-actions { padding-top:.15rem; }
.support-context-card { padding:1.15rem; }
.support-context-card h2 { margin:.3rem 0; }
.support-context-card h3 { margin:1.15rem 0 .35rem; font-size:1rem; }
.support-context-card a { display:inline-block; font-weight:800; line-height:1.4; }
.support-ticket-list-panel { padding:0; overflow:hidden; border-radius:12px; box-shadow:0 14px 34px rgba(15,23,42,.06); }
.support-ticket-list-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; border-bottom:1px solid #e5eaf2; background:#fbfdff; }
.support-ticket-list-heading h2 { margin:0; color:#172033; font-size:1.05rem; }
.support-ticket-list-heading p { margin:.18rem 0 0; color:#64748b; font-size:.88rem; }
.support-ticket-new-replies { display:inline-flex; align-items:center; gap:.42rem; color:#1d4ed8; font-size:.82rem; font-weight:850; }
.support-ticket-new-replies > span { width:8px; height:8px; border-radius:50%; background:#2563eb; box-shadow:0 0 0 4px #dbeafe; }
.support-ticket-list { display:grid; }
.support-ticket-card { position:relative; margin:0; background:#fff; }
.support-ticket-card + .support-ticket-card { border-top:1px solid #edf1f7; }
.support-ticket-card.unread { box-shadow:inset 4px 0 #2563eb; background:linear-gradient(90deg,#f5f9ff 0,#fff 32%); }
.support-ticket-card-link { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1.5rem; min-height:118px; padding:1.15rem 1.25rem; color:inherit; text-decoration:none; }
.support-ticket-card-link:hover { background:rgba(239,246,255,.7); text-decoration:none; }
.support-ticket-card-link:focus-visible { position:relative; z-index:1; outline:3px solid rgba(37,99,235,.28); outline-offset:-3px; }
.support-ticket-card-main { min-width:0; }
.support-ticket-card-kicker { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem .75rem; color:#2563eb; font-size:.78rem; font-weight:900; letter-spacing:.045em; text-transform:uppercase; }
.support-ticket-card-kicker strong { display:inline-flex; align-items:center; gap:.32rem; color:#1d4ed8; font-size:.74rem; letter-spacing:0; text-transform:none; }
.support-ticket-card h3 { margin:.35rem 0 .5rem; color:#172033; font-size:1.15rem; line-height:1.25; }
.support-ticket-card-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem 1.1rem; color:#64748b; font-size:.86rem; }
.support-ticket-card-meta > span { display:inline-flex; align-items:center; gap:.3rem; }
.support-ticket-card-meta > span + span::before { content:""; width:4px; height:4px; margin-right:.75rem; border-radius:50%; background:#cbd5e1; }
.support-ticket-card-action { display:grid; justify-items:end; gap:.85rem; min-width:150px; }
.support-ticket-view { display:inline-flex; align-items:center; gap:.4rem; color:#1d4ed8; font-size:.88rem; font-weight:850; }
.support-ticket-view span { font-size:1.05rem; transition:transform .15s ease; }
.support-ticket-card-link:hover .support-ticket-view span { transform:translateX(3px); }
.support-unread-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#2563eb; }
.support-thread { display:grid; gap:.8rem; padding:1rem; }
.support-message { max-width:84%; padding:.85rem 1rem; border:1px solid #dbe3ef; border-radius:10px; background:#f8fafc; }
.support-message header { display:flex; justify-content:space-between; gap:1rem; margin-bottom:.35rem; color:#475569; font-size:.82rem; }
.support-message > div { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; }
.support-message.customer { justify-self:start; border-left:4px solid #64748b; }
.support-message.operator { justify-self:end; background:#eff6ff; border-color:#bfdbfe; border-right:4px solid #2563eb; }
.support-message.system { justify-self:center; max-width:94%; background:#f8fafc; color:#475569; }
.support-message.internal { justify-self:stretch; max-width:100%; background:#fff7ed; border-color:#fed7aa; border-left:4px solid #f97316; }
.support-reply-card { margin-top:1rem; padding:1rem; }
.support-reply-card textarea { width:100%; resize:vertical; padding:.75rem; border:1px solid #cbd5e1; border-radius:7px; font:inherit; }
.support-nav-badge { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; margin-left:.4rem; padding:0 5px; border-radius:999px; background:#dc2626; color:#fff; font-size:.72rem; }
.platform-support-filters { display:flex; gap:.65rem; align-items:center; margin:1rem 0; padding:.75rem; }
.platform-support-filters input { flex:1; }
.platform-support-filters select { min-width:190px; }
.platform-support-layout { display:grid; grid-template-columns:minmax(260px,.75fr) minmax(420px,1.5fr) minmax(260px,.75fr); gap:1rem; align-items:start; }
.support-queue { overflow:hidden; padding:0; }
.support-queue > header { display:flex; justify-content:space-between; align-items:center; padding:.8rem 1rem; border-bottom:1px solid #e5e7eb; }
.support-queue > header h2 { margin:0; font-size:1.05rem; }
.support-queue-item { display:grid; gap:.35rem; padding:.8rem 1rem; border-bottom:1px solid #edf1f7; color:inherit; text-decoration:none; }
.support-queue-item:hover,.support-queue-item.active { background:#eff6ff; text-decoration:none; }
.support-queue-item.active { box-shadow:inset 4px 0 #2563eb; }
.support-queue-item > div { display:grid; gap:.18rem; }
.support-queue-item > div span,.support-queue-item small { color:#64748b; font-size:.8rem; }
.support-queue-item > .status-pill { justify-self:start; }
.support-operator-detail { min-width:0; }
.support-ticket-header { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; padding:1rem; margin-bottom:1rem; }
.support-ticket-header h2 { margin:.25rem 0; }
.operator-thread { max-height:52vh; overflow:auto; }
.support-operator-context { padding:1rem; }
.support-operator-context label { display:grid; gap:.3rem; margin-bottom:.65rem; font-weight:700; }
.support-operator-context input,.support-operator-context select { width:100%; padding:.55rem; border:1px solid #cbd5e1; border-radius:6px; font:inherit; }
.support-context-list { display:grid; grid-template-columns:minmax(80px,.7fr) minmax(0,1.3fr); gap:.35rem .7rem; font-size:.88rem; }
.support-context-list dt { color:#64748b; }
.support-context-list dd { margin:0; overflow-wrap:anywhere; }
@media (max-width:1100px) { .platform-support-layout { grid-template-columns:280px minmax(0,1fr); } .support-operator-context { grid-column:2; } }
@media (max-width:760px) { .support-form-layout,.platform-support-layout { grid-template-columns:1fr; } .support-ticket-form-grid { grid-template-columns:1fr; } .support-ticket-description { grid-column:auto; } .support-operator-context { grid-column:auto; } .platform-support-filters { align-items:stretch; flex-direction:column; } .platform-support-filters input,.platform-support-filters select { width:100%; } .support-ticket-card-link { grid-template-columns:1fr; gap:.9rem; padding:1rem; } .support-ticket-card-action { display:flex; align-items:center; justify-content:space-between; justify-items:stretch; min-width:0; } .support-ticket-card-meta { display:grid; gap:.25rem; } .support-ticket-card-meta > span + span::before { display:none; } }
.support-chat { display:grid; gap:.8rem; min-height:0; }
.support-chat.compact { height:100%; grid-template-rows:auto auto minmax(180px,1fr) auto; }
.support-chat-back { justify-self:start; }
.support-chat-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.support-chat-heading h2 { margin:.2rem 0; font-size:1.2rem; }
.support-chat-thread { min-height:220px; max-height:52vh; overflow:auto; display:flex; flex-direction:column; gap:.65rem; padding:.8rem; border:1px solid #e2e8f0; border-radius:9px; background:#f8fafc; }
.support-chat.compact .support-chat-thread { max-height:none; }
.support-chat-bubble { max-width:88%; padding:.7rem .85rem; border-radius:10px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.45; }
.support-chat-bubble.user { align-self:flex-end; background:#1d4ed8; color:#fff; }
.support-chat-bubble.assistant { align-self:flex-start; background:#fff; border:1px solid #dbe3ef; }
.support-chat-answer { white-space:normal; }
.support-chat-answer > :first-child { margin-top:0; }
.support-chat-answer > :last-child { margin-bottom:0; }
.support-chat-answer h1,.support-chat-answer h2,.support-chat-answer h3 { margin:.75rem 0 .35rem; font-size:1rem; }
.support-chat-answer p,.support-chat-answer ul,.support-chat-answer ol { margin:.45rem 0; }
.support-chat-answer ul,.support-chat-answer ol { padding-left:1.25rem; }
.support-chat-bubble footer { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.55rem; padding-top:.45rem; border-top:1px solid #dbe3ef; font-size:.78rem; }
.support-chat-bubble.user footer a { color:#fff; }
.support-chat-navigation { display:grid; gap:.55rem; margin-top:.7rem; padding-top:.7rem; border-top:1px solid #dbe3ef; white-space:normal; }
.support-chat-navigation p { margin:0; }
.support-chat-navigation .btn { justify-self:start; max-width:100%; white-space:normal; text-align:left; }
.support-chat-composer textarea,.support-escalation textarea,.support-escalation input { width:100%; padding:.7rem; border:1px solid #cbd5e1; border-radius:7px; font:inherit; resize:vertical; }
.support-escalation { padding:.9rem; }
.support-escalation h3 { margin-top:0; }
.support-escalation label { display:grid; gap:.3rem; margin:.55rem 0; font-weight:700; }
.support-escalation details { margin:.75rem 0; }
.support-escalation pre { max-height:220px; overflow:auto; white-space:pre-wrap; padding:.65rem; background:#f8fafc; border-radius:6px; font:inherit; font-size:.82rem; }
.support-chat-card { padding:1rem; max-width:850px; margin:0 auto; }
.support-draft-sources { display:flex; flex-wrap:wrap; gap:.4rem; color:#64748b; font-size:.82rem; }
.readonly-banner { margin:1rem 1.25rem 0; border:1px solid #bfdbfe; border-radius:8px; padding:.75rem .9rem; background:#eff6ff; color:#1e3a8a; font-weight:800; }
.admin-content { padding:1.25rem; min-width:0; background:#f6f8fb; }
.admin-shell { max-width:1180px; margin:0 auto; }
.wide-admin-shell { max-width:none; }
.admin-heading { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; margin-bottom:1rem; }
.admin-heading h1 { margin:.1rem 0; }
.admin-content h1[tabindex="-1"]:focus,
.tenant-site h1[tabindex="-1"]:focus { outline:0; }
.admin-actions { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:flex-end; }
.admin-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:1rem; margin:1rem 0; }
.tool-card { display:grid; gap:.35rem; align-content:start; min-height:96px; border:1px solid #dbe3ef; border-radius:8px; padding:1rem; color:inherit; text-decoration:none; background:#fff; }
.tool-card:hover { border-color:#1f6feb; }
.tool-card span { color:#64748b; font-size:.92rem; }
.action-panel { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:1rem; margin:1rem 0; }
.action-panel.three-up { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.action-panel.five-up { grid-template-columns:repeat(5, minmax(0, 1fr)); }
.action-tile { display:grid; gap:.3rem; min-height:132px; align-content:start; border:1px solid #dbe3ef; border-radius:8px; padding:1rem; color:#172033; text-decoration:none; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.04); text-align:left; font:inherit; cursor:pointer; }
.action-tile:hover { border-color:#1f6feb; transform:translateY(-1px); }
.action-tile span { color:#1f6feb; font-size:.78rem; font-weight:900; text-transform:uppercase; }
.action-tile strong { font-size:1.12rem; }
.action-tile small { color:#64748b; line-height:1.35; }
.dashboard-feature-card { grid-template-rows:auto auto minmax(2.7rem, 1fr) auto; cursor:default; }
.dashboard-card-actions { display:flex; flex-wrap:wrap; gap:.55rem 1rem; align-items:center; margin-top:.45rem; }
.dashboard-card-link { display:inline-flex; align-items:center; gap:.3rem; min-height:30px; padding:.1rem 0; border:0; background:none; color:#1f6feb; font:inherit; font-size:.9rem; font-weight:800; line-height:1.25; text-decoration:none; cursor:pointer; }
.dashboard-card-link:hover { text-decoration:underline; text-underline-offset:3px; }
.dashboard-card-link:focus-visible { border-radius:4px; outline:3px solid rgba(31,111,235,.2); outline-offset:2px; }
.dashboard-card-open { color:#1659bd; }
.dashboard-card-learn { color:#526176; font-weight:700; }
.dashboard-guide-actions { display:flex; flex-wrap:wrap; gap:.6rem 1rem; align-items:center; margin-top:1.15rem; padding-top:.85rem; border-top:1px solid #e5eaf2; }
.dashboard-guide-back { display:inline-flex; margin-bottom:.8rem; color:#1f6feb; font-size:.9rem; font-weight:800; text-decoration:none; }
.dashboard-guide-back:hover { text-decoration:underline; text-underline-offset:3px; }
.dashboard-guide-article > :first-child { margin-top:0; }
.primary-action { border-color:#93c5fd; background:#f8fbff; }
.launch-readiness { margin-bottom:1rem; }
.readiness-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.75rem; }
.readiness-item { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; min-width:0; padding:.85rem .9rem; border:1px solid #dbe3ef; border-radius:8px; background:#fff; }
.readiness-item.ready { background:#fbfefc; }
.readiness-item.warning { border-color:#fde68a; background:#fffbeb; }
.readiness-item.blocked { border-color:#fecaca; background:#fff7f7; }
.readiness-item div { display:grid; gap:.28rem; min-width:0; }
.readiness-item strong { color:#172033; font-size:1rem; line-height:1.2; }
.readiness-item small { color:#64748b; line-height:1.35; }
.readiness-item .linkbtn { flex:0 0 auto; white-space:nowrap; }
.module-strip,
.quick-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.module-strip { padding:1rem; border:1px solid #dbe3ef; border-radius:8px; background:#fff; }
.module-strip a,
.module-strip button,
.quick-actions a { display:inline-flex; align-items:center; min-height:36px; padding:.45rem .7rem; border:1px solid #cbd5e1; border-radius:999px; color:#172033; background:#fff; text-decoration:none; font-weight:800; }
.module-strip a:hover,
.module-strip button:hover,
.quick-actions a:hover { border-color:#1f6feb; color:#1f6feb; }
.section-band { display:flex; justify-content:space-between; gap:1rem; align-items:center; margin:1rem 0; padding:1rem; border:1px solid #dbe3ef; border-radius:8px; background:#fff; }
.section-band h2 { margin:.1rem 0; }
.section-title-row { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:.75rem; }
.section-title-row h2 { margin:.1rem 0; }
.drawer-backdrop { position:fixed; inset:0; z-index:900; display:flex; justify-content:flex-end; overflow:hidden; background:rgba(15,23,42,.28); backdrop-filter:blur(1px); }
.admin-drawer { width:min(560px, calc(100vw - 1rem)); height:100vh; display:grid; grid-template-rows:auto minmax(0, 1fr); background:#fff; box-shadow:-18px 0 60px rgba(15,23,42,.18); border-left:1px solid #dbe3ef; }
.admin-drawer-wide { width:min(760px, calc(100vw - 1rem)); }
.admin-drawer-xl { width:min(960px, calc(100vw - 1rem)); }
.drawer-header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1rem 1.1rem; border-bottom:1px solid #dbe3ef; background:#fbfdff; }
.drawer-header h2 { margin:.1rem 0; font-size:1.25rem; }
.drawer-header p { margin:.25rem 0 0; }
.drawer-close { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#334155; cursor:pointer; font:inherit; font-weight:900; line-height:1; text-decoration:none; }
.drawer-close:hover { border-color:#1f6feb; color:#1f6feb; background:#eff6ff; }
.drawer-body { min-width:0; overflow:auto; padding:1rem 1.1rem 1.35rem; }
.drawer-body h3 { margin:1.1rem 0 .55rem; }
.drawer-body .form-grid { margin-bottom:1rem; }
.drawer-body .admin-actions { justify-content:flex-start; }
.dashboard-getting-started-steps { display:grid; gap:.75rem; margin:.5rem 0 0; padding-left:1.35rem; }
.dashboard-getting-started-steps li { padding-left:.25rem; color:#334155; line-height:1.5; }
.drawer-section { border-top:1px solid #e5eaf2; margin-top:1.15rem; padding-top:1.05rem; }
.drawer-summary-grid { width:100%; border-collapse:collapse; margin:.5rem 0 1rem; }
.drawer-summary-grid th,
.drawer-summary-grid td { text-align:left; padding:.45rem .25rem; border-bottom:1px solid #edf1f7; vertical-align:top; }
.drawer-summary-grid th { color:#64748b; font-size:.82rem; text-transform:uppercase; width:120px; }
.volunteer-event-detail-route .drawer-backdrop { position:static; z-index:auto; display:block; overflow:visible; background:transparent; backdrop-filter:none; }
.volunteer-event-detail-route .admin-drawer,
.volunteer-event-detail-route .admin-drawer-xl { width:100%; height:auto; min-height:0; border:1px solid #dbe3ef; border-radius:8px; box-shadow:0 12px 28px rgba(15,23,42,.045); }
.volunteer-event-detail-route .drawer-header { border-radius:8px 8px 0 0; }
.volunteer-event-detail-route .drawer-body { overflow:visible; }
.inline-search { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.5rem; }
.inline-search input { min-width:240px; }
.metric-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:1rem; margin:1rem 0; }
.metric-card { border:1px solid #dbe3ef; border-radius:8px; padding:1rem; background:linear-gradient(180deg, #fff, #fbfdff); box-shadow:0 10px 22px rgba(15,23,42,.04); }
.metric-card span { display:block; color:#64748b; font-size:.85rem; font-weight:800; text-transform:uppercase; }
.metric-card strong { display:block; margin-top:.25rem; font-size:1.7rem; line-height:1.1; }
.project-schedule-card { display:grid; gap:1rem; }
.project-calendar-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:1rem; }
.project-month { min-width:0; border:1px solid #dbe3ef; border-radius:8px; background:#fbfdff; overflow:hidden; }
.project-month header { display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; padding:.85rem .9rem; border-bottom:1px solid #e5eaf2; background:#fff; }
.project-month h3 { margin:0; font-size:1rem; }
.project-month header span { color:#64748b; font-size:.82rem; font-weight:800; white-space:nowrap; }
.project-month-scale { display:grid; grid-template-columns:repeat(3, 1fr); padding:.45rem .9rem .3rem; color:#64748b; font-size:.72rem; font-weight:800; }
.project-month-scale span:nth-child(2) { text-align:center; }
.project-month-scale span:last-child { text-align:right; }
.project-month-empty { padding:.25rem .9rem 1rem; margin:0; }
.project-timeline-list { display:grid; gap:.55rem; padding:.25rem .75rem .9rem; }
.project-timeline-row { display:grid; gap:.35rem; min-width:0; padding:.62rem .7rem; border:1px solid #e3e9f2; border-radius:8px; background:#fff; color:#172033; text-decoration:none; }
.project-timeline-row:hover { border-color:#9db4d8; box-shadow:0 8px 18px rgba(15,23,42,.06); }
.project-timeline-head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; min-width:0; }
.project-timeline-head strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.project-timeline-dates { color:#64748b; font-size:.82rem; font-weight:700; }
.project-timeline-bar { position:relative; height:9px; border-radius:999px; background:#edf2f7; overflow:hidden; }
.project-timeline-bar span { position:absolute; top:0; bottom:0; border-radius:999px; background:linear-gradient(90deg, #1f6feb, #14b8a6); }
.project-update-list { list-style:none; margin:1rem 0 0; padding:0; display:grid; gap:.75rem; }
.project-update-list li { border:1px solid #edf1f7; border-radius:8px; background:#fbfdff; padding:.8rem .9rem; }
.project-update-list p { margin:.1rem 0 .4rem; white-space:pre-wrap; }
.project-file-picker { display:grid; grid-template-columns:minmax(220px, 1fr) minmax(280px, 1.4fr) auto; gap:.75rem; align-items:end; margin-bottom:1rem; }
.project-file-picker label { min-width:0; font-weight:750; }
.project-file-picker input,
.project-file-picker select { width:100%; min-height:40px; box-sizing:border-box; margin-top:.3rem; padding:.5rem .6rem; border:1px solid #cbd5e1; border-radius:7px; background:#fff; font:inherit; }
.project-file-picker-actions { display:flex; align-items:end; justify-content:flex-end; min-width:130px; }
.project-file-grid td:first-child { min-width:220px; }
.unscheduled-projects { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .55rem; padding:.75rem .9rem; border:1px solid #fde68a; border-radius:8px; background:#fffbeb; }
.unscheduled-projects span { color:#854d0e; font-size:.78rem; font-weight:900; text-transform:uppercase; }
.unscheduled-projects a { color:#172033; font-weight:800; }
.registrations-admin { max-width:1260px; }
.registration-overview {
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    margin:1.15rem 0 1.25rem;
    border:1px solid #dbe3ef;
    border-radius:8px;
    background:#fff;
    box-shadow:0 12px 28px rgba(15,23,42,.045);
    overflow:hidden;
}
.registration-overview div { padding:.8rem 1rem; border-right:1px solid #edf1f7; }
.registration-overview div:last-child { border-right:0; }
.registration-overview span { display:block; color:#64748b; font-size:.72rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.registration-overview strong { display:block; margin-top:.15rem; font-size:1.35rem; line-height:1.05; }
.registration-list-panel {
    border:1px solid #dbe3ef;
    border-radius:8px;
    background:#fff;
    box-shadow:0 12px 28px rgba(15,23,42,.045);
    overflow:hidden;
}
.registration-panel-header {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:1rem;
    padding:1rem 1.1rem .85rem;
    border-bottom:1px solid #edf1f7;
    background:#fbfdff;
}
.registration-panel-header h2 { margin:.05rem 0 .25rem; font-size:1.08rem; }
.registration-panel-header p { margin:0; }
.registration-toolbar { padding:.9rem 1.1rem; margin:0; border-bottom:1px solid #edf1f7; background:#fff; }
.registration-panel-footer { padding:0 1.1rem 1rem; border-top:1px solid #edf1f7; background:#fff; }
.registration-list-header,
.registration-form-row {
    display:grid;
    grid-template-columns:minmax(320px, 1.35fr) minmax(150px, .48fr) minmax(160px, .55fr) minmax(190px, .65fr) minmax(170px, auto);
    column-gap:1rem;
    align-items:center;
}
.registration-list-header {
    padding:.55rem 1.1rem;
    color:#64748b;
    background:#f8fafc;
    border-bottom:1px solid #edf1f7;
    font-size:.72rem;
    font-weight:900;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.registration-form-list { display:grid; }
.registration-form-row {
    min-height:74px;
    padding:.8rem 1.1rem;
    border-bottom:1px solid #edf1f7;
    background:#fff;
}
.registration-form-row:last-child { border-bottom:0; }
.registration-form-row:hover { background:#fbfdff; }
.registration-form-row.needs-setup { box-shadow:inset 4px 0 0 #facc15; }
.registration-form-main { min-width:0; display:grid; gap:.3rem; }
.registration-form-title-row { display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; }
.registration-form-title { color:#172033; font-weight:850; font-size:.98rem; text-align:left; }
.registration-form-title:hover { color:#1f6feb; }
.registration-meta-row { display:flex; flex-wrap:wrap; gap:.28rem .65rem; align-items:center; color:#64748b; font-size:.82rem; }
.registration-meta-row span { white-space:nowrap; }
.registration-public-link {
    max-width:260px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#1f6feb;
    font-weight:750;
}
.registration-volume {
    display:grid;
    gap:.1rem;
    color:#172033;
    text-decoration:none;
}
.registration-volume strong { font-size:1.3rem; line-height:1; }
.registration-volume span,
.registration-volume small,
.registration-setup,
.registration-activity { color:#64748b; font-size:.82rem; line-height:1.35; }
.registration-volume:hover strong { color:#1f6feb; }
.registration-setup { display:grid; gap:.12rem; }
.registration-setup strong { color:#172033; }
.registration-activity { min-width:0; }
.registration-form-actions { display:flex; justify-content:flex-end; gap:.45rem; }
.registration-form-actions .btn { min-height:34px; padding:.45rem .7rem; }
.registration-field-list { display:grid; gap:.85rem; margin:0 0 1rem; }
.registration-field-card { display:grid; gap:.85rem; border:1px solid #dbe3ef; border-radius:8px; padding:1rem; background:#fff; box-shadow:0 8px 20px rgba(15,23,42,.035); }
.registration-field-header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding-bottom:.7rem; border-bottom:1px solid #edf1f7; }
.registration-field-header > div:first-child { display:grid; gap:.18rem; min-width:0; }
.registration-field-header strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#172033; }
.registration-field-number { color:#64748b; font-size:.72rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.registration-field-actions { display:flex; flex-wrap:wrap; gap:.45rem; justify-content:flex-end; }
.registration-field-grid { display:grid; grid-template-columns:minmax(220px, 1.1fr) minmax(180px, .8fr) minmax(160px, .65fr) auto; gap:.8rem; align-items:end; }
.registration-field-grid label { display:grid; gap:.3rem; min-width:0; color:#172033; font-weight:800; }
.registration-field-grid input,
.registration-field-grid select,
.registration-field-grid textarea { width:100%; box-sizing:border-box; min-height:40px; padding:.55rem .65rem; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#172033; font:inherit; box-shadow:inset 0 1px 1px rgba(15,23,42,.03); }
.registration-field-grid textarea { resize:vertical; min-height:86px; }
.registration-field-grid small { font-weight:500; }
.registration-field-required { grid-template-columns:auto 1fr; align-items:center; align-self:center; gap:.45rem; min-height:40px; padding:.55rem .65rem; border:1px solid #edf1f7; border-radius:7px; background:#f8fafc; }
.registration-field-required input { width:16px; height:16px; min-height:0; padding:0; margin:0; box-shadow:none; }
.registration-field-placeholder { grid-column:span 2; }
.registration-field-options,
.registration-field-validation { grid-column:1 / -1; }
.registration-version-list { display:grid; gap:.6rem; margin-top:.75rem; }
.registration-version-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:.65rem; align-items:center; padding:.7rem .75rem; border:1px solid #edf1f7; border-radius:8px; background:#fbfdff; }
.registration-version-row div { display:grid; gap:.12rem; min-width:0; }
.registration-version-row strong { color:#172033; }
.registration-version-row span { color:#475569; font-size:.86rem; }
.registration-version-row small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.answer-chip-list { display:flex; flex-wrap:wrap; gap:.3rem; max-width:360px; }
.answer-chip { display:inline-flex; max-width:100%; align-items:center; min-height:24px; padding:.12rem .45rem; border:1px solid #dbe3ef; border-radius:999px; background:#f8fafc; color:#334155; font-size:.78rem; font-weight:750; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.muted-chip { color:#64748b; background:#fff; }
.compact-list { margin:.5rem 0 0; padding-left:1.1rem; display:grid; gap:.35rem; }
.drawer-action-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.5rem; }
.drawer-action-grid .btn { width:100%; }
.danger-zone { color:#7f1d1d; }
.danger-zone h3 { color:#7f1d1d; }
.split-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1rem; align-items:start; }
.workflow-steps { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0; }
.workflow-steps span { display:inline-flex; align-items:center; min-height:34px; padding:.35rem .7rem; border:1px solid #cbd5e1; border-radius:999px; background:#fff; color:#64748b; font-weight:900; }
.workflow-steps span.active { border-color:#93c5fd; background:#eff6ff; color:#123f8c; }
.empty-workflow { display:grid; gap:.75rem; justify-items:start; }
.compact-check { margin:0; padding:.2rem 0; border:0; white-space:nowrap; }
.code-input { width:100%; min-width:220px; font-family:ui-monospace, SFMono-Regular, Consolas, monospace; background:#f8fafc; }
.compact-grid { margin-top:1rem; }
.compact-grid th,
.compact-grid td { padding:.5rem .55rem; }
.provider-choice { border:1px solid #dbe3ef; border-radius:8px; padding:.75rem 1rem; margin:1rem 0; }
.provider-choice legend { font-weight:800; padding:0 .35rem; }
.provider-choice label { margin-right:1rem; }
.editor-shell { border:1px solid #dbe3ef; border-radius:8px; overflow:hidden; margin:1rem 0; background:#fff; }
.editor-toolbar { display:flex; flex-wrap:wrap; gap:.35rem; align-items:center; padding:.5rem; border-bottom:1px solid #dbe3ef; background:#f8fafc; }
.editor-toolbar button { min-width:38px; min-height:34px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; cursor:pointer; font:inherit; }
.editor-toolbar button:hover,
.editor-toolbar button.active { border-color:#1f6feb; color:#1f6feb; }
.easy-email-host { min-height:640px; overflow:auto; background:#fff; }
.easy-email-host > div { min-width:980px; }
.email-template-editor .admin-heading { margin-bottom:.75rem; }
.email-template-editor .module-strip { margin-bottom:1rem; }
.email-template-editor .email-template-meta { margin:.75rem 0; }
.email-editor-shell { min-height:calc(100vh - 270px); }
.email-editor-shell .easy-email-host { height:calc(100vh - 340px); min-height:680px; overflow:auto; }
.email-editor-shell .easy-email-host > div { min-width:1120px; }
.email-editor-shell .mjml-details { max-height:42vh; overflow:auto; }
.admin-app-designer .email-template-editor { max-width:100%; }
.email-editor-shell .easy-email-host > .email-island-shell { min-width:0; }
.email-island-shell { min-height:680px; display:grid; grid-template-rows:auto minmax(0, 1fr); }
.email-mode-switch { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; padding:.65rem; border-bottom:1px solid #dbe3ef; background:#fff; }
.email-mode-switch button { min-height:38px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#172033; cursor:pointer; font:inherit; font-weight:900; padding:.45rem .8rem; }
.email-mode-switch button:hover,
.email-mode-switch button.active { border-color:#1f6feb; background:#eff6ff; color:#1f6feb; }
.email-designer-layout,
.email-designer-site { height:100vh; min-height:720px; overflow:hidden; background:#eef2f7; }
.email-designer-site { position:relative; display:grid; grid-template-rows:auto minmax(0, 1fr); }
.email-designer-topbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:54px; padding:.5rem .8rem; border-bottom:1px solid #dbe3ef; background:#fff; }
.email-designer-title { display:flex; align-items:center; gap:.45rem; min-width:0; }
.email-designer-title a { color:#1f6feb; text-decoration:none; font-weight:900; }
.email-designer-title h1 { margin:0; font-size:1.05rem; line-height:1.1; }
.email-designer-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem; justify-content:flex-end; }
.email-designer-message { position:absolute; top:64px; right:1rem; z-index:20; max-width:min(520px, calc(100vw - 2rem)); margin:0; }
.easy-email-standalone-host { min-height:0; overflow:hidden; background:#fff; }
.easy-email-frame { display:block; width:100%; height:100%; border:0; background:#fff; }
.standalone-easy-email-editor { height:100%; min-width:1180px; background:#fff; }
.standalone-easy-email-editor .arco-card { border:0; border-radius:0; }
.standalone-easy-email-editor .arco-card-body { border-radius:0; }
.standalone-easy-email-editor [draggable="true"] { cursor:grab; }
.standalone-easy-email-editor [draggable="true"]:active { cursor:grabbing; }
.email-designer-preview { position:fixed; inset:72px 4vw 4vh; z-index:500; display:grid; grid-template-rows:auto minmax(0, 1fr); border:1px solid #dbe3ef; border-radius:8px; background:#fff; box-shadow:0 24px 80px rgba(15,23,42,.22); }
.email-designer-preview-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem .85rem; border-bottom:1px solid #dbe3ef; }
.email-designer-preview iframe { width:100%; height:100%; border:0; }
.email-simple-shell { max-width:1320px; }
.email-simple-grid { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(360px, .8fr); gap:1rem; align-items:start; }
.email-simple-editor { display:grid; gap:1rem; }
.email-simple-editor h2,
.email-simple-preview-panel h2 { margin:.1rem 0 .35rem; font-size:1.15rem; }
.email-block-builder { display:grid; gap:.85rem; }
.email-block-toolbar,
.merge-row { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; margin:.15rem 0; }
.email-block-toolbar button,
.merge-row button { min-height:34px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#172033; cursor:pointer; font:inherit; font-weight:800; padding:.35rem .6rem; }
.email-block-toolbar button:hover,
.merge-row button:hover { border-color:#1f6feb; color:#1f6feb; background:#eff6ff; }
.email-block-list { display:grid; gap:.75rem; }
.email-block-card { border:1px solid #dbe3ef; border-radius:8px; background:#fff; overflow:hidden; box-shadow:0 10px 24px rgba(15,23,42,.05); }
.email-block-card.is-selected { border-color:#1f6feb; box-shadow:0 0 0 2px rgba(31,111,235,.16), 0 12px 28px rgba(15,23,42,.08); }
.email-block-card.is-drop-target { border-color:#1f6feb; background:#f8fbff; }
.email-block-card-header { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.65rem .75rem; border-bottom:1px solid #edf1f7; background:#f8fafc; }
.email-block-card-header > div:first-child { display:flex; align-items:center; gap:.5rem; min-width:0; }
.drag-handle { display:inline-flex; min-height:28px; align-items:center; padding:.2rem .45rem; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#46556a; font-size:.8rem; font-weight:900; cursor:grab; }
.email-block-card:active .drag-handle { cursor:grabbing; }
.selected-pill { display:inline-flex; min-height:24px; align-items:center; padding:.15rem .45rem; border-radius:999px; background:#eff6ff; color:#1f6feb; font-size:.78rem; font-weight:900; }
.email-block-actions { display:flex; align-items:center; justify-content:flex-end; gap:.35rem; flex-wrap:wrap; }
.email-block-actions button { min-height:30px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#172033; cursor:pointer; font:inherit; font-weight:800; padding:.25rem .5rem; }
.email-block-actions button:disabled { cursor:not-allowed; opacity:.45; }
.email-block-actions button:hover:not(:disabled) { border-color:#1f6feb; color:#1f6feb; background:#eff6ff; }
.email-block-fields { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.75rem; padding:.75rem; align-items:end; }
.email-block-fields label { display:block; font-weight:700; }
.email-block-fields input,
.email-block-fields select,
.email-block-fields textarea { width:100%; box-sizing:border-box; margin-top:.25rem; padding:.5rem; border:1px solid #cbd5e1; border-radius:6px; font:inherit; }
.email-block-fields textarea { resize:vertical; line-height:1.5; }
.email-block-empty { border:1px dashed #cbd5e1; border-radius:8px; padding:1rem; background:#f8fafc; }
.uploaded-image-preview { display:grid; gap:.5rem; justify-items:start; margin-top:1rem; }
.uploaded-image-preview img { max-width:min(360px, 100%); max-height:220px; border:1px solid #dbe3ef; border-radius:6px; object-fit:contain; background:#fff; }
.email-simple-preview-panel { position:sticky; top:82px; }
.email-simple-preview-card { overflow:hidden; border:1px solid #dbe3ef; border-radius:8px; background:#fff; box-shadow:0 14px 34px rgba(15,23,42,.08); }
.email-simple-preview-card header { display:grid; gap:.3rem; padding:1.25rem; background:#082247; color:#fff; }
.email-simple-preview-card header strong { font-size:1.25rem; line-height:1.1; }
.email-simple-preview-card header span { color:#facc15; }
.email-simple-preview-body { display:grid; gap:.8rem; padding:1.25rem; }
.email-simple-preview-body h3 { margin:0; font-size:1.25rem; }
.email-simple-preview-body p { margin:0; line-height:1.5; color:#172033; }
.email-simple-preview-body img { width:100%; max-height:260px; object-fit:contain; border-radius:6px; background:#f8fafc; }
.email-simple-preview-body a { justify-self:center; display:inline-flex; min-height:40px; align-items:center; padding:.55rem 1rem; border-radius:6px; background:#1f6feb; color:#fff; text-decoration:none; font-weight:900; }
.email-simple-preview-body small { justify-self:center; color:#64748b; }
.email-simple-preview-body hr { width:100%; border:0; border-top:1px solid #dbe3ef; margin:.25rem 0; }
.preview-placeholder { display:grid; place-items:center; min-height:130px; border:1px dashed #cbd5e1; border-radius:6px; background:#f8fafc; color:#64748b; font-weight:800; }
.preview-spacer { min-height:8px; }
.preserve-lines { white-space:pre-line; }
.text-left { text-align:left; }
.text-center { text-align:center; }
.text-right { text-align:right; }
.full-easy-email-editor { position:relative; width:100%; min-width:1180px; min-height:720px; background:#fff; }
.full-easy-email-workspace { height:720px; display:grid; grid-template-columns:260px minmax(620px, 1fr) 420px; overflow:hidden; border-top:1px solid #dbe3ef; background:#edf2f7; }
.full-easy-email-palette,
.full-easy-email-side-panel { min-width:0; overflow:auto; background:#fff; }
.full-easy-email-palette { border-right:1px solid #dbe3ef; padding:.8rem; }
.full-easy-email-side-panel { border-left:1px solid #dbe3ef; display:grid; grid-template-rows:auto minmax(0, 1fr); }
.full-easy-email-canvas { min-width:0; overflow:hidden; background:#f1f5f9; }
.full-easy-email-canvas > div { height:100%; }
.full-easy-email-panel-title { display:flex; align-items:center; min-height:34px; color:#172033; }
.full-easy-email-panel-title.with-divider { margin-top:.9rem; padding-top:.9rem; border-top:1px solid #edf1f7; }
.full-easy-email-block-list,
.full-easy-email-layout-list { display:grid; gap:.55rem; }
.full-easy-email-palette-item {
    width:100%;
    min-height:54px;
    display:grid;
    grid-template-columns:42px minmax(0, 1fr);
    align-items:center;
    gap:.6rem;
    border:1px solid #dbe3ef;
    border-radius:8px;
    background:#fff;
    color:#172033;
    cursor:grab;
    font:inherit;
    font-weight:800;
    text-align:left;
    padding:.5rem .65rem;
}
.full-easy-email-palette-item:hover,
.full-easy-email-layout-item:hover { border-color:#1f6feb; background:#eff6ff; color:#1f6feb; }
.full-easy-email-palette-icon { display:grid; place-items:center; min-width:0; height:34px; border-radius:6px; background:#f1f5f9; color:#334155; font-size:.82rem; font-weight:900; }
.full-easy-email-layout-group { display:grid; gap:.45rem; }
.full-easy-email-layout-group strong { font-size:.9rem; }
.full-easy-email-layout-item {
    width:100%;
    height:42px;
    display:flex;
    border:1px solid #dbe3ef;
    border-radius:6px;
    background:#fff;
    cursor:grab;
    padding:.5rem;
}
.full-easy-email-layout-item span { display:block; height:100%; border:1px solid #64748b; border-right:0; background:#f8fafc; }
.full-easy-email-layout-item span:last-child { border-right:1px solid #64748b; }
.full-easy-email-side-tabs { display:grid; grid-template-columns:repeat(3, 1fr); gap:.35rem; padding:.65rem; border-bottom:1px solid #dbe3ef; background:#f8fafc; }
.full-easy-email-side-tabs button { min-width:0; min-height:36px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#172033; cursor:pointer; font:inherit; font-weight:900; }
.full-easy-email-side-tabs button.active,
.full-easy-email-side-tabs button:hover { border-color:#1f6feb; background:#eff6ff; color:#1f6feb; }
.full-easy-email-side-content { min-height:0; overflow:auto; padding:.75rem; }
.full-easy-email-selected-block {
    position:absolute;
    pointer-events:none;
    z-index:20;
    border:3px solid #1f6feb;
    border-radius:4px;
    box-shadow:0 0 0 4px rgba(31,111,235,.18);
}
.full-easy-email-editor .arco-tabs-header-title { font-weight:800; }
.full-easy-email-editor [draggable="true"] { cursor:grab; }
.full-easy-email-editor [draggable="true"]:active { cursor:grabbing; }
.full-easy-email-side-panel .arco-row { row-gap:.55rem; }
.full-easy-email-side-panel .arco-col-11,
.full-easy-email-side-panel .arco-col-12 {
    flex:0 0 100%;
    max-width:100%;
}
.full-easy-email-side-panel .arco-col-offset-1 { margin-left:0; }
.full-easy-email-side-panel .arco-input,
.full-easy-email-side-panel .arco-input-inner-wrapper,
.full-easy-email-side-panel .arco-select,
.full-easy-email-side-panel textarea { max-width:100%; }
.email-editor-shell .easy-email-host > .booster-email-composer { min-width:0; }
.booster-email-composer { min-height:680px; display:grid; grid-template-columns:250px minmax(520px, 1fr) 320px; background:#f1f5f9; color:#172033; }
.composer-palette,
.composer-settings { min-width:0; padding:1rem; background:#fff; overflow:auto; }
.composer-palette { border-right:1px solid #dbe3ef; }
.composer-settings { border-left:1px solid #dbe3ef; }
.composer-panel-heading { display:grid; gap:.12rem; margin-bottom:.75rem; }
.composer-panel-heading strong { font-size:1rem; }
.composer-panel-heading span,
.composer-preview-toolbar span,
.composer-empty-copy { color:#64748b; font-size:.9rem; }
.composer-block-buttons,
.composer-template-buttons { display:grid; gap:.45rem; }
.composer-block-buttons button,
.composer-template-buttons button,
.composer-toolbar-actions button,
.segmented-control button { min-height:38px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#172033; cursor:pointer; font:inherit; font-weight:800; }
.composer-block-buttons button:hover,
.composer-template-buttons button:hover,
.composer-toolbar-actions button:hover,
.segmented-control button:hover,
.segmented-control button.active { border-color:#1f6feb; color:#1f6feb; background:#eff6ff; }
.template-heading { margin-top:1.25rem; padding-top:1rem; border-top:1px solid #edf1f7; }
.composer-preview { min-width:0; display:grid; grid-template-rows:auto minmax(0, 1fr) auto; }
.composer-preview-toolbar { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1rem; border-bottom:1px solid #dbe3ef; background:#fff; }
.composer-toolbar-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.4rem; }
.composer-toolbar-actions button { min-width:58px; padding:.35rem .65rem; }
.composer-toolbar-actions button:disabled { opacity:.5; cursor:not-allowed; }
.composer-toolbar-actions .danger-button { border-color:#fecaca; color:#b91c1c; }
.email-preview-frame { overflow:auto; padding:1.5rem; }
.email-preview-message { margin:0 auto; border:1px solid #dbe3ef; border-radius:8px; overflow:hidden; background:#fff; box-shadow:0 20px 50px rgba(15,23,42,.1); }
.email-preview-header { display:grid; gap:.3rem; padding:1.5rem; color:#fff; }
.email-preview-header strong { font-size:1.45rem; line-height:1.1; }
.email-preview-body { padding:1rem; }
.composer-preview-block { display:block; width:100%; margin:0 0 .5rem; padding:.45rem; border:1px solid transparent; border-radius:6px; background:transparent; text-align:inherit; cursor:grab; font:inherit; color:inherit; }
.composer-preview-block:active { cursor:grabbing; }
.composer-preview-block:hover { border-color:#93c5fd; background:#f8fbff; }
.composer-preview-block.is-selected { border-color:#1f6feb; background:#eff6ff; box-shadow:0 0 0 2px rgba(31,111,235,.12); }
.composer-preview-block.is-drop-target { border-color:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,.18); }
.composer-preview-block h2,
.composer-preview-block p { margin:.15rem 0; white-space:pre-wrap; line-height:1.45; }
.composer-preview-block img { display:block; max-width:100%; height:auto; margin:0 auto; border-radius:4px; }
.composer-preview-block small { display:block; margin-top:.35rem; color:#64748b; text-align:center; }
.newsletter-archive-preview { display:grid; gap:.25rem; padding:.75rem; border:1px solid #dbe3ef; border-radius:6px; background:#f8fafc; text-align:left; }
.newsletter-archive-preview small { margin:0; text-align:left; }
.email-button-preview { display:inline-block; min-width:132px; padding:.7rem 1.1rem; border-radius:4px; font-weight:900; text-align:center; }
.image-placeholder,
.spacer-preview,
.empty-canvas { display:grid; place-items:center; min-height:96px; border:1px dashed #94a3b8; border-radius:6px; color:#64748b; background:#f8fafc; }
.spacer-preview { min-height:0; font-size:.82rem; }

/* CMS image carousel: plain saved HTML plus a small platform runtime. */
.bh-carousel { position:relative; width:100%; margin:1rem 0; padding:0 3rem; box-sizing:border-box; }
.bh-carousel-viewport { width:100%; overflow:hidden; scroll-behavior:smooth; }
.bh-carousel-track { display:flex; align-items:stretch; gap:1rem; }
.bh-carousel-slide { flex:0 0 calc((100% - 2rem)/3); min-width:0; margin:0; overflow:hidden; border:1px solid #dbe3ef; border-radius:8px; background:#fff; }
.bh-carousel-slide img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.bh-carousel-slide figcaption { padding:.65rem .75rem; color:#475569; font-size:.9rem; line-height:1.4; }
.bh-carousel-empty { display:grid; min-height:220px; place-items:center; padding:1.5rem; border:2px dashed #94a3b8; color:#64748b; text-align:center; }
.bh-carousel-arrow { position:absolute; top:50%; z-index:2; display:grid; width:2.5rem; height:2.5rem; margin:0; padding:0; place-items:center; transform:translateY(-50%); border:1px solid #cbd5e1; border-radius:50%; background:#fff; color:#172033; box-shadow:0 6px 18px rgba(15,23,42,.12); cursor:pointer; font:700 1.8rem/1 Arial,sans-serif; }
.bh-carousel-arrow:hover,
.bh-carousel-arrow:focus-visible { border-color:#1f6feb; color:#1f6feb; outline:2px solid rgba(31,111,235,.22); outline-offset:2px; }
.bh-carousel-prev { left:.15rem; }
.bh-carousel-next { right:.15rem; }
.bh-carousel[data-arrows="false"] .bh-carousel-arrow { display:none; }
.bh-carousel-dots { display:flex; justify-content:center; gap:.4rem; min-height:1.5rem; padding-top:.75rem; }
.bh-carousel-dot { width:.65rem; height:.65rem; padding:0; border:0; border-radius:50%; background:#cbd5e1; cursor:pointer; }
.bh-carousel-dot[aria-current="true"] { background:#1f6feb; }
.bh-video-block { position:relative; width:100%; max-width:100%; min-width:0; height:auto !important; margin:1rem 0; align-self:start; }
.bh-video-block > video { display:block !important; width:auto !important; height:auto !important; max-width:100%; max-height:min(75svh, 760px); margin-inline:auto; object-fit:contain !important; border-radius:8px; background:#0f172a; }
.bh-video-host { min-width:0; max-width:100%; align-self:start !important; aspect-ratio:auto !important; }
@supports selector(:has(> .bh-video-block)) {
  *:has(> .bh-video-block) { align-self:start !important; aspect-ratio:auto !important; }
}
.bh-video-play-prompt { position:absolute; z-index:4; top:50%; left:50%; translate:-50% -50%; min-width:min(240px, calc(100% - 2rem)); min-height:48px; padding:.75rem 1rem; border:2px solid #fff; border-radius:999px; background:rgba(15,23,42,.9); color:#fff; box-shadow:0 8px 24px rgba(15,23,42,.3); cursor:pointer; font:800 1rem/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align:center; }
.bh-video-play-prompt:hover,
.bh-video-play-prompt:focus-visible { background:#1f6feb; outline:3px solid rgba(31,111,235,.3); outline-offset:3px; }
.bh-video-block figcaption { padding:.6rem .2rem; color:#475569; font-size:.9rem; line-height:1.4; }
.bh-video-empty { display:grid; min-height:220px; place-items:center; padding:1.5rem; border:2px dashed #94a3b8; border-radius:8px; color:#64748b; text-align:center; }

@media (max-width: 980px) {
  .bh-carousel-slide { flex-basis:calc((100% - 1rem)/2); }
}

@media (max-width: 680px) {
  .bh-carousel { padding:0 2.6rem; }
  .bh-carousel-slide { flex-basis:100%; }
  @supports selector(:has(> * > .bh-video-block)) {
    *:has(> * > .bh-video-block) { grid-template-columns:minmax(0, 1fr) !important; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-carousel-viewport { scroll-behavior:auto; }
}
.composer-source { border-top:1px solid #dbe3ef; background:#fff; padding:.75rem 1rem; }
.composer-source summary,
.composer-advanced summary { cursor:pointer; font-weight:900; }
.composer-source textarea { width:100%; margin-top:.55rem; font-family:ui-monospace, SFMono-Regular, Consolas, monospace; font-size:.82rem; border:1px solid #cbd5e1; border-radius:6px; padding:.65rem; }
.composer-form { display:grid; gap:.8rem; }
.composer-field { display:grid; gap:.35rem; margin:0 0 .75rem; font-weight:800; }
.composer-field input,
.composer-field textarea { width:100%; min-width:0; border:1px solid #cbd5e1; border-radius:6px; padding:.55rem; font:inherit; font-weight:500; }
.composer-field input[type="color"] { min-height:42px; padding:.18rem; }
.composer-inline-fields { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.6rem; }
.segmented-control { display:grid; grid-template-columns:repeat(3, 1fr); gap:.35rem; }
.segmented-control button { min-width:0; text-transform:capitalize; }
.composer-advanced { margin-top:1rem; padding-top:1rem; border-top:1px solid #edf1f7; }
.easy-email-host .arco-icon { width:1em; height:1em; display:inline-block; vertical-align:-.125em; flex:none; }
.easy-email-host .arco-collapse-item-header { min-height:44px; display:flex; align-items:center; gap:.4rem; padding:.65rem .9rem; }
.easy-email-host .arco-collapse-item-header-icon,
.easy-email-host .arco-icon-hover { display:inline-flex; align-items:center; justify-content:center; width:1.25rem; height:1.25rem; flex:0 0 auto; }
.easy-email-host .arco-collapse-item-header-title { min-width:0; font-weight:800; }
.mjml-details { padding:.75rem; border-top:1px solid #dbe3ef; background:#f8fafc; }
.mjml-details summary { cursor:pointer; font-weight:800; }
.visual-editor { min-height:520px; max-width:none; margin:0; padding:1rem; outline:0; overflow:auto; }
.visual-editor:focus { box-shadow: inset 0 0 0 2px #1f6feb; }
.html-editor-label { display:block; padding:.75rem; border-top:1px solid #dbe3ef; background:#f8fafc; font-weight:700; }
.html-editor { display:block; width:100%; margin-top:.4rem; font-family:ui-monospace, SFMono-Regular, Consolas, monospace; font-size:.92rem; }
.visual-email-builder { min-height:260px; background:#f8fafc; }
.visual-email-toolbar { display:flex; flex-wrap:wrap; gap:.4rem; padding:.75rem; border-bottom:1px solid #dbe3ef; }
.visual-email-toolbar button,
.email-block-controls button { border:1px solid #cbd5e1; border-radius:6px; background:#fff; padding:.4rem .6rem; cursor:pointer; }
.visual-email-canvas { max-width:760px; margin:0 auto; padding:1rem; }
.email-block { border:1px solid #dbe3ef; border-radius:8px; background:#fff; margin-bottom:.75rem; padding:.75rem; }
.email-block-controls { display:flex; gap:.35rem; justify-content:flex-end; margin-bottom:.5rem; }
.email-block input,
.email-block textarea { width:100%; box-sizing:border-box; margin:.25rem 0; padding:.55rem; border:1px solid #cbd5e1; border-radius:6px; font:inherit; }
.form-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1rem; align-items:end; }
.form-grid .form-field,
.form-grid label { display:block; min-width:0; font-weight:750; color:#172033; }
.form-grid .form-field > label { margin:0; }
.form-grid .form-field > small { display:block; margin-top:.3rem; font-weight:500; }
.form-grid input,
.form-grid select,
.form-grid textarea { width:100%; box-sizing:border-box; min-height:40px; margin-top:.3rem; padding:.58rem .65rem; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#172033; font:inherit; box-shadow:inset 0 1px 1px rgba(15,23,42,.03); }
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.table-search:focus,
input:focus,
select:focus,
textarea:focus { outline:3px solid rgba(31,111,235,.18); border-color:#1f6feb; }

.ai-progress-active { display:inline-flex; align-items:center; gap:.55rem; font-style:normal !important; }
.ai-working-indicator { display:inline-flex; align-items:center; gap:3px; min-width:25px; }
.ai-working-indicator i { width:6px; height:6px; border-radius:50%; background:#1f6feb; animation:ai-working-pulse 1.15s ease-in-out infinite; }
.ai-working-indicator i:nth-child(2) { animation-delay:.16s; }
.ai-working-indicator i:nth-child(3) { animation-delay:.32s; }
.ai-working-label { font-weight:700; color:#334155; }
.ai-working-elapsed { color:#64748b; font-size:.85em; font-variant-numeric:tabular-nums; }
.ai-retry-button { display:block; margin-top:.55rem; border:1px solid #fecaca; border-radius:7px; padding:.35rem .65rem; background:#fff; color:#b91c1c; font:inherit; font-weight:800; cursor:pointer; }
.ai-retry-button:hover, .ai-retry-button:focus-visible { border-color:#ef4444; outline:2px solid rgba(239,68,68,.18); }
@keyframes ai-working-pulse { 0%, 70%, 100% { opacity:.3; transform:translateY(0); } 35% { opacity:1; transform:translateY(-3px); } }
@media (prefers-reduced-motion:reduce) { .ai-working-indicator i { animation:none; opacity:.8; } }
.form-grid input[type="file"] { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
/* Checkboxes/radios must not inherit the 100%-wide 40px text-input treatment. */
.form-grid input[type="checkbox"],
.form-grid input[type="radio"] { width:16px; min-height:0; height:16px; margin:0 .45rem 0 0; box-shadow:none; vertical-align:-2px; }
.full-row { grid-column:1 / -1; }
.check-row { display:grid; grid-template-columns:auto 1fr; gap:.5rem .75rem; align-items:start; padding:.55rem 0; border-bottom:1px solid #edf1f7; }
.check-row small { grid-column:2; color:#64748b; }
.role-chip-list { display:flex; flex-wrap:wrap; gap:.35rem; max-width:420px; }
.role-editor-summary { display:grid; gap:.15rem; margin:0 0 1rem; padding:1rem; border:1px solid #dbe3ef; border-radius:8px; background:#f8fafc; }
.role-picker-list { display:grid; gap:.35rem; padding:0 1rem 1rem; }
.role-picker-list .check-row { margin:0; padding:.7rem .75rem; border:1px solid #e2e8f0; border-radius:8px; background:#fff; }
.role-picker-list .check-row:has(input:checked) { border-color:#93c5fd; background:#eff6ff; }
.role-picker-list .check-row input { margin-top:.15rem; }
.status-pill { display:inline-flex; align-items:center; border:1px solid #cbd5e1; border-radius:999px; padding:.12rem .5rem; font-size:.82rem; font-weight:800; background:#f8fafc; color:#475569; }
.status-pill.success { border-color:#86efac; background:#dcfce7; color:#166534; }
.status-pill.warning { border-color:#facc15; background:#fef9c3; color:#854d0e; }
.status-pill.info { border-color:#93c5fd; background:#dbeafe; color:#1d4ed8; }
.status-pill.danger-text { border-color:#fecaca; background:#fee2e2; color:#b91c1c; }
.audit-timeline ol { list-style:none; margin:.75rem 0 0; padding:0; display:grid; gap:.65rem; }
.audit-timeline li { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:.75rem; align-items:start; padding:.7rem .8rem; border:1px solid #edf1f7; border-radius:8px; background:#fbfdff; }
.audit-timeline li div { display:grid; gap:.15rem; min-width:0; }
.audit-timeline time { color:#64748b; font-size:.82rem; font-weight:800; white-space:nowrap; }
/* Two-pane composer: fluid editing column + sticky review/send rail (campaign editor & friends) */
.editor-split { display:grid; grid-template-columns:minmax(0, 1fr) 330px; gap:1rem; align-items:start; }
.editor-main { display:grid; gap:1rem; min-width:0; }
.editor-main > .card, .side-rail > .card { margin:0; }
.side-rail { position:sticky; top:1rem; display:grid; gap:1rem; min-width:0; }
.side-rail h2 { margin:.1rem 0 .6rem; font-size:1.05rem; }
.side-rail h3 { margin:.1rem 0 .5rem; font-size:.98rem; }
.rail-stat { display:flex; align-items:baseline; gap:.5rem; }
.rail-stat strong { font-size:1.9rem; line-height:1; }
.rail-divider { border:0; border-top:1px solid #edf1f7; margin:.85rem 0; }
.rail-field { display:block; font-weight:750; }
.rail-field input { width:100%; box-sizing:border-box; min-height:40px; margin-top:.3rem; padding:.5rem .6rem; border:1px solid #cbd5e1; border-radius:7px; font:inherit; }
.rail-field small { display:block; margin-top:.3rem; font-weight:500; }
.rail-actions { display:grid; gap:.5rem; }
.rail-actions .btn { width:100%; }
.rail-actions .confirm-inline { justify-content:flex-start; }
.audience-rows { display:grid; gap:.4rem; }
.audience-row { display:flex; align-items:center; gap:.6rem; margin:0; padding:.6rem .75rem; border:1px solid #e3e9f2; border-radius:8px; background:#fff; cursor:pointer; font-weight:700; color:#172033; }
.audience-row:hover { border-color:#9db4d8; background:#f8fbff; }
.audience-row.selected { border-color:#93c5fd; background:#f4f8ff; }
.audience-row input { width:16px; height:16px; flex:none; margin:0; }
.count-pill { display:inline-flex; align-items:center; margin-left:auto; border-radius:999px; padding:.14rem .6rem; background:#eef2f7; color:#475569; font-size:.8rem; font-weight:800; white-space:nowrap; }
.audience-row.selected .count-pill { background:#dbeafe; color:#1d4ed8; }
@media (max-width:1100px) {
    .editor-split { grid-template-columns:1fr; }
    .analytics-page .metric-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); }
    .analytics-grid { grid-template-columns:1fr; }
    .side-rail { position:static; }
    .project-calendar-grid { grid-template-columns:1fr; }
    .project-file-picker { grid-template-columns:1fr; }
    .project-file-picker-actions { justify-content:flex-start; }
    .registration-list-header { display:none; }
    .registration-form-row {
        grid-template-columns:1fr 1fr;
        gap:.75rem 1rem;
        align-items:start;
    }
    .registration-form-main,
    .registration-form-actions { grid-column:1 / -1; }
    .registration-volume,
    .registration-setup,
    .registration-activity {
        padding:.65rem .7rem;
        border:1px solid #edf1f7;
        border-radius:8px;
        background:#f8fafc;
    }
    .registration-volume::before,
    .registration-setup::before,
    .registration-activity::before {
        content:attr(data-label);
        display:block;
        margin-bottom:.2rem;
        color:#64748b;
        font-size:.68rem;
        font-weight:900;
        letter-spacing:.04em;
        text-transform:uppercase;
    }
    .registration-form-actions { justify-content:flex-start; }
    .registration-field-grid { grid-template-columns:1fr 1fr; }
    .registration-field-required,
    .registration-field-placeholder,
    .registration-field-options,
    .registration-field-validation { grid-column:1 / -1; }
}

@media (max-width:640px) {
    .admin-heading { display:grid; }
    .admin-actions { justify-content:flex-start; }
    .analytics-page .metric-grid { grid-template-columns:1fr 1fr; }
    .analytics-chart { padding:.8rem; }
    .analytics-day { flex-basis:24px; min-width:24px; }
    .metric-grid { grid-template-columns:1fr 1fr; }
    .project-timeline-head { align-items:flex-start; flex-direction:column; }
    .project-timeline-head strong { white-space:normal; }
    .registration-overview { grid-template-columns:1fr 1fr; }
    .registration-overview div:nth-child(2) { border-right:0; }
    .registration-overview div:nth-child(-n+2) { border-bottom:1px solid #edf1f7; }
    .registration-form-row { grid-template-columns:1fr; }
    .registration-volume,
    .registration-setup,
    .registration-activity,
    .registration-form-actions { grid-column:1; }
    .registration-form-actions { display:grid; grid-template-columns:1fr 1fr; }
    .registration-field-header { display:grid; }
    .registration-field-actions { justify-content:flex-start; }
    .registration-field-grid { grid-template-columns:1fr; }
    .registration-version-row { grid-template-columns:1fr; }
    .drawer-action-grid { grid-template-columns:1fr; }
    .registration-public-link { max-width:100%; }
}

.public-form-shell { min-height:calc(100vh - 90px); display:grid; place-items:start center; padding:4rem 1rem; background:#f4f6f9; }
.public-form-card { width:min(720px, 100%); background:#fff; border:1px solid #dbe3ef; border-radius:8px; padding:2rem; box-shadow:0 14px 40px rgba(15,23,42,.08); }
.public-consent-option { display:flex; gap:.65rem; align-items:flex-start; margin:.85rem 0; color:#334155; font-weight:800; }
.public-consent-option input { width:auto; margin-top:.25rem; }
.public-manage-card { display:grid; gap:1rem; }
.public-status-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:.75rem; }
.public-status-grid div { border:1px solid #dbe3ef; border-radius:8px; padding:.75rem; background:#fbfdff; }
.public-status-grid span { display:block; color:#64748b; font-size:.72rem; font-weight:900; text-transform:uppercase; }
.public-status-grid strong { display:block; margin-top:.2rem; font-size:1rem; }
.public-manage-card form,
.public-cancel-panel { display:grid; gap:.75rem; }
.public-manage-card label { display:grid; gap:.3rem; font-weight:800; color:#334155; }
.public-manage-card input,
.public-manage-card select,
.public-manage-card textarea { width:100%; border:1px solid #d5dbe6; border-radius:6px; padding:.58rem .7rem; font:inherit; }
.public-manage-card input[type="radio"],
.public-manage-card input[type="checkbox"] { width:auto; }
.public-action-row { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; margin-top:.35rem; }
.btn.danger { border-color:#fecaca; background:#fff; color:#b91c1c; }
@media (max-width:640px) {
    .public-status-grid { grid-template-columns:1fr; }
    .public-action-row { display:grid; grid-template-columns:1fr; }
}
.block-text { display:block; margin-top:.2rem; }
.mini-progress { width:120px; height:8px; overflow:hidden; border-radius:999px; background:#e8edf5; }
.mini-progress span { display:block; height:100%; border-radius:999px; background:#1f6feb; }
.commerce-store-shell { min-height:calc(100vh - 90px); padding:2rem max(1rem, calc((100vw - 1220px) / 2)); background:#f4f6f9; }
.commerce-store-heading { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; margin-bottom:1.25rem; }
.commerce-store-heading h1 { margin:.15rem 0 .35rem; font-size:2rem; }
.commerce-store-layout { display:grid; grid-template-columns:minmax(0, 1fr) 360px; gap:1rem; align-items:start; }
.store-filter-bar { display:grid; grid-template-columns:minmax(220px, 1fr) 190px 160px auto auto; gap:.65rem; align-items:center; margin:0 0 1rem; padding:.8rem; border:1px solid #dbe3ef; border-radius:8px; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.04); }
.store-filter-bar input,
.store-filter-bar select { min-height:42px; border:1px solid #d5dbe6; border-radius:6px; padding:.55rem .7rem; font:inherit; }
.store-catalog { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:.85rem; }
.store-detail-catalog { grid-template-columns:minmax(0, 1fr); }
.store-detail-catalog .store-product-card { grid-template-columns:minmax(280px, 420px) minmax(0, 1fr); grid-template-rows:auto; }
.store-detail-catalog .store-product-image,
.store-detail-catalog .store-product-initial { height:100%; min-height:360px; }
.store-product-card { display:grid; grid-template-rows:160px auto; overflow:hidden; border:1px solid #dbe3ef; border-radius:8px; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.055); }
.store-product-image { width:100%; height:160px; object-fit:cover; background:#e8edf5; }
.store-product-initial { display:grid; place-items:center; height:160px; background:#e8f2ff; color:#123f8c; font-size:3rem; font-weight:900; }
.store-product-body { display:grid; gap:.65rem; padding:1rem; }
.store-product-body h2 { margin:0; font-size:1.15rem; }
.store-product-body p { margin:0; color:#475569; }
.store-product-meta { display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; color:#64748b; font-size:.82rem; font-weight:800; text-transform:uppercase; }
.store-product-actions { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-top:.2rem; }
.store-product-action-group { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.45rem; }
.store-product-option { display:grid; gap:.35rem; color:#334155; font-weight:800; }
.store-product-option select { min-height:40px; border:1px solid #d5dbe6; border-radius:6px; padding:.5rem .65rem; font:inherit; }
.store-product-instructions { padding:.7rem; border:1px solid #dbe3ef; border-radius:6px; background:#f8fafc; }
.store-cart-panel { position:sticky; top:1rem; display:grid; gap:.85rem; border:1px solid #dbe3ef; border-radius:8px; padding:1rem; background:#fff; box-shadow:0 14px 34px rgba(15,23,42,.07); }
.store-cart-head { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.store-cart-head h2 { margin:.1rem 0 0; }
.store-cart-lines { display:grid; gap:.65rem; }
.store-cart-line { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:.65rem; align-items:center; padding:.65rem 0; border-bottom:1px solid #edf1f7; }
.store-cart-line div:first-child { display:grid; gap:.15rem; min-width:0; }
.store-cart-line span { color:#64748b; font-size:.9rem; }
.store-qty-controls { display:inline-grid; grid-template-columns:34px 32px 34px; align-items:center; justify-items:center; gap:.25rem; }
.store-qty-controls .btn { width:34px; height:32px; min-height:32px; padding:0; }
.store-cart-total { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding:.75rem 0; border-top:1px solid #dbe3ef; border-bottom:1px solid #dbe3ef; font-size:1.05rem; }
.store-cart-panel label { display:grid; gap:.35rem; font-weight:800; color:#334155; }
.store-cart-panel input { border:1px solid #d5dbe6; border-radius:6px; padding:.6rem .7rem; font:inherit; }
.store-provider-choice { display:grid; grid-template-columns:1fr 1fr; gap:.55rem; }
.commerce-thank-you { width:min(720px, 100%); margin:2rem auto; padding:2rem; border:1px solid #dbe3ef; border-radius:8px; background:#fff; box-shadow:0 14px 34px rgba(15,23,42,.07); }
.workflow-cta { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; margin:1.5rem 0; padding:1.25rem; border:1px solid #dbe3ef; border-radius:8px; background:#ffffff; box-shadow:0 10px 28px rgba(15,23,42,.08); }
.workflow-cta h2 { margin:.1rem 0 .35rem; }
.workflow-cta p { margin:.2rem 0; }
.workflow-cta-eyebrow { color:#1f6feb; font-size:.78rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.workflow-cta-button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:.55rem 1rem; border-radius:6px; background:#1f6feb; color:#fff; text-decoration:none; font-weight:900; white-space:nowrap; }
.workflow-cta-missing { border-color:#fecaca; background:#fff7f7; }
/* Embeds are self-contained cards: explicit background AND text color, so they render
   identically inside any author-styled section (including dark backgrounds). */
.workflow-embed { margin:1.5rem 0; padding:1.5rem; border:1px solid #dbe3ef; border-radius:8px; background:#ffffff; color:#172033; box-shadow:0 10px 28px rgba(15,23,42,.08); }
.workflow-embed h2 { margin:.1rem 0 .5rem; }
.workflow-embed h3 { margin:.75rem 0 .35rem; }
.workflow-embed form { display:grid; gap:.75rem; max-width:560px; }
.workflow-embed .field { display:grid; gap:.3rem; }
.workflow-embed .field label { font-weight:700; }
.workflow-embed input, .workflow-embed select, .workflow-embed textarea { border:1px solid #d5dbe6; border-radius:6px; padding:.55rem .65rem; font:inherit; max-width:100%; }
.workflow-embed input[type="radio"], .workflow-embed input[type="checkbox"] { width:auto; }
.workflow-embed .form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:.75rem; }
.workflow-embed .provider-choice { border:1px solid #dbe3ef; border-radius:6px; padding:.6rem .8rem; display:flex; gap:1rem; flex-wrap:wrap; }
.workflow-embed .wf-status { margin:.25rem 0 0; font-weight:700; }
.workflow-embed .wf-presets,
#preset-buttons { display:flex; flex-wrap:wrap; align-items:stretch; gap:.5rem; margin:.5rem 0; }
.workflow-embed .wf-provider-choice { display:flex; gap:.5rem; margin:.6rem 0; flex-wrap:wrap; }
.workflow-embed .wf-presets .preset,
#preset-buttons .preset,
.workflow-embed .wf-provider-choice [data-provider],
#provider-choice [data-provider] { border:2px solid #93c5fd; background:#fff; color:#155dcc; box-shadow:none; }
.workflow-embed .wf-presets .preset:hover,
#preset-buttons .preset:hover,
.workflow-embed .wf-provider-choice [data-provider]:hover,
#provider-choice [data-provider]:hover { border-color:#1f6feb; background:#eff6ff; color:#174a8b; }
.workflow-embed .wf-presets .preset[aria-pressed="true"],
#preset-buttons .preset[aria-pressed="true"],
.workflow-embed .wf-provider-choice [data-provider][aria-pressed="true"],
#provider-choice [data-provider][aria-pressed="true"] { border-color:#1f6feb; background:#1f6feb; color:#fff; box-shadow:0 0 0 3px rgba(31,111,235,.18); }
.workflow-embed .wf-presets .preset[aria-pressed="true"]:after,
#preset-buttons .preset[aria-pressed="true"]:after { content:"Selected"; margin-left:.2rem; font-size:.65rem; font-weight:900; letter-spacing:.02em; text-transform:uppercase; }
.workflow-embed .wf-presets .preset,
#preset-buttons .preset { min-height:40px; padding:.5rem .75rem; }
.workflow-embed .wf-presets .wf-custom-amount,
#preset-buttons #custom-amount { flex:1 1 160px; width:160px; min-width:150px; max-width:190px; min-height:40px; margin:0; border:2px solid #93c5fd; padding:.5rem .65rem; }
.workflow-embed .wf-presets .wf-custom-amount:focus,
#preset-buttons #custom-amount:focus { border-color:#1f6feb; outline:3px solid rgba(31,111,235,.18); }
.wf-selection-summary { margin:.1rem 0 .35rem; color:#174a8b; font-size:.9rem; font-weight:800; }
.workflow-embed .wf-donation-widget { display:grid; gap:.5rem; max-width:560px; }
/* One-click wallet buttons (Apple Pay / Google Pay / Link). JS unhides the container only when
   the device can actually pay with at least one wallet. */
.workflow-embed .wf-express-checkout-element,
#express-checkout-element,
#store-express-checkout-element { max-width:560px; margin:.35rem 0 .15rem; }
/* Reserve space while the wallet probe runs so resolved buttons don't shove the form down. */
.checkout-express-reserving { min-height:52px; }
.checkout-express-divider { display:flex; align-items:center; gap:.75rem; max-width:560px; margin:.5rem 0 .65rem; color:#64748b; font-size:.85rem; font-weight:700; }
.checkout-express-divider::before,
.checkout-express-divider::after { content:""; flex:1; height:1px; background:#dbe3ef; }
.checkout-payment-options { margin-top:.75rem; padding-top:.75rem; border-top:1px solid #dbe3ef; }
.checkout-payment-options [hidden] { display:none !important; }
.checkout-payment-options h3 { margin:0 0 .25rem; color:#172033; font-size:1.05rem; }
.checkout-payment-options .payment-options-guidance { margin:.2rem 0 .7rem; }
.checkout-payment-options > [id$="payment-element"],
.checkout-payment-options > .wf-payment-element { width:100%; max-width:560px; }
/* The Donate/Pay button had no rule of its own, so it sat flush against the method list. Give it
   clear separation and let it size to the payment column on narrow layouts. */
.checkout-payment-options .wf-pay,
.checkout-payment-options #pay-button { margin-top:1.1rem; min-height:44px; }
.checkout-express-checkout-element,
.checkout-payment-options > .wf-express-checkout-element { width:100%; max-width:560px; }
.checkout-payment-loading { display:inline-flex; align-items:center; gap:.55rem; margin:.35rem 0; padding:.55rem .75rem; border:1px solid #bfdbfe; border-radius:8px; background:#eff6ff; color:#174a8b; font-size:.9rem; font-weight:800; }
.checkout-payment-loading::before { content:""; width:.85rem; height:.85rem; flex:none; border:2px solid #93c5fd; border-top-color:#1f6feb; border-radius:50%; animation:checkout-loading-spin .8s linear infinite; }
.checkout-payment-pending { position:relative; min-height:52px; }
.checkout-payment-pending::before { content:"Loading secure payment options..."; display:block; margin:.35rem 0; padding:.55rem .75rem .55rem 2.15rem; border:1px solid #bfdbfe; border-radius:8px; background:#eff6ff; color:#174a8b; font-size:.9rem; font-weight:800; }
.checkout-payment-pending::after { content:""; position:absolute; top:1rem; left:.78rem; width:.85rem; height:.85rem; border:2px solid #93c5fd; border-top-color:#1f6feb; border-radius:50%; animation:checkout-loading-spin .8s linear infinite; }
@keyframes checkout-loading-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .checkout-payment-loading::before, .checkout-payment-pending::after { animation:none; } }
.workflow-embed .wf-payment { margin-top:1rem; max-width:560px; }
.workflow-embed .wf-intro { margin:.25rem 0 .75rem; }
.workflow-embed .wf-intro img { max-width:100%; height:auto; }

/* Checkout needs a genuinely phone-sized payment surface. On mobile the surrounding CMS layout
   already provides the visual container, while Stripe provides the secure form surface. Flatten
   the redundant workflow card so its border, shadow, and padding do not create a stack of nested
   boxes or steal width from the card fields. */
@media (max-width:640px) {
    .public-form-shell { padding:1rem .5rem; }
    .public-form-card { padding:1rem .75rem; }

    /* A CMS donation can sit inside an authored feature card and another donation card. Collapse
       only that checkout ancestry, leaving the rest of the tenant's authored page design intact. */
    .tenant-site .ts-main:has(.workflow-embed[data-wf="donation"]) {
        padding-left:.5rem;
        padding-right:.5rem;
    }

    .tenant-site .ab-feature:has(.workflow-embed[data-wf="donation"]) {
        padding-left:.5rem;
        padding-right:.5rem;
    }

    .tenant-site .ab-donation-card:has(.workflow-embed[data-wf="donation"]) {
        width:100%;
        max-width:none;
        margin-left:0;
        margin-right:0;
        padding:1rem .5rem;
        border-radius:12px;
        box-sizing:border-box;
    }

    .workflow-embed[data-wf="donation"] {
        position:static;
        left:auto;
        width:100%;
        max-width:100%;
        margin:1rem 0;
        padding:.75rem 0;
        box-sizing:border-box;
        border:0;
        border-radius:0;
        background:transparent;
        box-shadow:none;
    }

    .workflow-embed[data-wf="donation"] .wf-donation-widget,
    .workflow-embed[data-wf="donation"] .checkout-payment-options,
    .workflow-embed[data-wf="donation"] .wf-payment-element,
    #donation-widget,
    #donation-widget .checkout-payment-options,
    #donation-widget #payment-element {
        width:100%;
        max-width:none;
        min-width:0;
        margin-left:0;
        margin-right:0;
        box-sizing:border-box;
    }

    .workflow-embed[data-wf="donation"] .checkout-payment-options,
    #donation-widget .checkout-payment-options {
        padding-left:0;
        padding-right:0;
    }
}

/* Live CMS calendar block */
.bh-calendar { margin:1.5rem 0; color:#172033; }
.bh-cal-shell { overflow:hidden; border:1px solid #dbe3ef; border-radius:14px; background:#fff; box-shadow:0 10px 28px rgba(15,23,42,.07); }
.bh-cal-toolbar { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:1rem; padding:1rem 1.1rem; border-bottom:1px solid #e7ecf3; background:#f8fafc; }
.bh-cal-title { margin:0; text-align:center; font-size:1.25rem; }
.bh-cal-navigation,.bh-cal-actions { display:flex; align-items:center; gap:.45rem; }
.bh-cal-toolbar button,.bh-cal-toolbar select,.bh-cal-category-filters button { min-height:36px; padding:.4rem .7rem; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#172033; font:inherit; cursor:pointer; }
.bh-cal-actions label { display:flex; align-items:center; gap:.4rem; font-size:.85rem; font-weight:700; }
.bh-cal-actions [data-cal-subscribe] { border-color:#1f6feb; background:#1f6feb; color:#fff; font-weight:800; }
.bh-cal-audience { padding:.4rem 1.1rem; background:#eff6ff; color:#174a8b; font-size:.78rem; font-weight:800; text-align:right; }
.bh-cal-subscription { margin:.75rem 0 1rem; padding:.85rem 1rem; border:1px solid #bfdbfe; border-radius:10px; background:#eff6ff; }
.bh-cal-subscription p { margin:.3rem 0 .65rem; color:#475569; font-size:.9rem; }
.bh-cal-subscription div { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.bh-cal-subscription input { min-width:min(100%,28rem); flex:1; }
.bh-cal-subscription a { font-weight:700; }
.bh-cal-status,.bh-cal-empty { padding:2rem; text-align:center; color:#64748b; }
.bh-cal-category-filters { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; padding:.7rem 1rem; border-bottom:1px solid #e7ecf3; }
.bh-cal-filter-label { margin-right:.15rem; color:#475569; font-size:.8rem; font-weight:800; }
.bh-cal-category-filters button { min-height:30px; padding:.25rem .65rem; font-size:.8rem; }
.bh-cal-category-filters button:hover { border-color:#1f6feb; }
.bh-cal-category-filters button[aria-pressed="true"] { border-color:#1f6feb; background:#1f6feb; color:#fff; font-weight:800; }
.bh-cal-body { min-height:180px; }
.bh-cal-agenda-day { display:grid; grid-template-columns:minmax(95px, 145px) 1fr; border-top:1px solid #edf1f6; }
.bh-cal-agenda-day>h4 { margin:0; padding:1rem; background:#f8fafc; font-size:.9rem; }
.bh-cal-item { display:grid; grid-template-columns:minmax(100px,130px) 1fr; gap:.75rem; padding:.8rem 1rem; border-bottom:1px solid #edf1f6; border-left:4px solid #64748b; }
.bh-cal-item:last-child { border-bottom:0; }
.bh-cal-item.category-game { border-left-color:#1f6feb; }.bh-cal-item.category-practice { border-left-color:#16a34a; }.bh-cal-item.category-fundraiser { border-left-color:#ca8a04; }.bh-cal-item.category-meeting { border-left-color:#7c3aed; }.bh-cal-item.category-deadline { border-left-color:#dc2626; }.bh-cal-item.category-registration { border-left-color:#0891b2; }.bh-cal-item.category-volunteer { border-left-color:#ea580c; }
.bh-cal-item.canceled { opacity:.6; text-decoration:line-through; }
.bh-cal-item-time { color:#475569; font-size:.82rem; font-weight:700; }
.bh-cal-item-main { display:grid; gap:.25rem; min-width:0; }.bh-cal-item-main a { color:inherit; }.bh-cal-location { color:#64748b; font-size:.85rem; }
.bh-cal-tags { display:flex; flex-wrap:wrap; gap:.3rem; }.bh-cal-tag { padding:.1rem .4rem; border-left:3px solid var(--tag,#94a3b8); border-radius:3px; background:#f1f5f9; font-size:.72rem; font-weight:700; }
.bh-cal-month-heading { margin:0; padding:1rem; border-top:1px solid #dbe3ef; background:#eef2f7; }
.bh-cal-weekdays,.bh-cal-month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.bh-cal-weekdays span { padding:.55rem; border-bottom:1px solid #dbe3ef; background:#f8fafc; text-align:center; font-size:.75rem; font-weight:800; }
.bh-cal-month-day { min-height:125px; padding:.45rem; border-right:1px solid #e7ecf3; border-bottom:1px solid #e7ecf3; }.bh-cal-month-day:nth-child(7n){border-right:0}.bh-cal-month-day.outside{background:#f8fafc;color:#94a3b8}.bh-cal-month-day.today>h4 time{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#1f6feb;color:#fff}.bh-cal-month-day h4{margin:0 0 .35rem}.bh-cal-month-day .bh-cal-item{display:block;margin:.2rem 0;padding:.28rem .35rem;border:0;border-left:3px solid #64748b;border-radius:4px;background:#f1f5f9;font-size:.75rem}.bh-cal-month-day .bh-cal-item-time{font-size:.7rem}.bh-cal-month-day small{color:#64748b}
.bh-cal-week-grid { display:grid; grid-template-columns:repeat(7,minmax(145px,1fr)); overflow-x:auto; }.bh-cal-week-grid>section,.bh-cal-day-grid>section{min-height:190px;border-right:1px solid #e7ecf3}.bh-cal-week-grid h3,.bh-cal-day-grid h3{margin:0;padding:.7rem;background:#f8fafc;font-size:.85rem;text-align:center}.bh-cal-week-grid .bh-cal-item{display:block;padding:.65rem}.bh-cal-day-grid{max-width:760px;margin:auto}.bh-cal-no-items{display:block;padding:1rem;color:#94a3b8;text-align:center}
@media(max-width:680px){.bh-cal-toolbar{grid-template-columns:1fr;gap:.65rem}.bh-cal-title{grid-row:1;text-align:left}.bh-cal-actions{justify-content:space-between}.bh-cal-navigation{order:3}.bh-cal-agenda-day{grid-template-columns:1fr}.bh-cal-agenda-day>h4{padding:.6rem 1rem}.bh-cal-item{grid-template-columns:85px 1fr;padding:.75rem}.bh-cal-month-grid,.bh-cal-weekdays{min-width:700px}.bh-cal-body:has(.bh-cal-month-grid){overflow-x:auto}.bh-cal-audience{text-align:left}}
.calendar-tag-create { align-items:end; margin-bottom:1.25rem; }.calendar-tag-picker { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:.55rem; padding:1rem; border:1px solid #dbe3ef; border-radius:8px; }.calendar-tag-picker label { display:flex; gap:.45rem; align-items:center; }.calendar-tag-picker small { color:#64748b; }.calendar-color-swatch { display:inline-block; width:16px; height:16px; margin-right:.4rem; border-radius:4px; vertical-align:middle; }
.form-intro { margin:.25rem 0 1rem; }
.form-intro img { max-width:100%; height:auto; }
.check-tiles { display:flex; flex-wrap:wrap; gap:1.25rem; align-items:center; margin:.9rem 0; }
.check-tile { display:inline-flex; align-items:center; gap:.5rem; font-weight:700; color:#334155; cursor:pointer; }
.check-tile input { width:16px; height:16px; }
.fee-inline { display:inline-flex; align-items:center; gap:.5rem; font-weight:700; color:#334155; }
.fee-inline input { width:120px; border:1px solid #d5dbe6; border-radius:8px; padding:.45rem .6rem; font:inherit; }

.intro-block { display:grid; gap:.3rem; margin-top:.5rem; }
.intro-label { font-weight:700; }

/* Lightweight rich text editor (RichTextEditor component + js/rich-text.js) */
.rte { border:1px solid #d5dbe6; border-radius:8px; background:#fff; overflow:hidden; }
.rte:focus-within { outline:2px solid #bfd7ff; border-color:#1f6feb; }
.rte-toolbar { display:flex; flex-wrap:wrap; gap:.25rem; align-items:center; padding:.4rem .5rem; background:#f7f9fc; border-bottom:1px solid #e3e9f2; }
.rte-toolbar button { min-width:34px; min-height:30px; padding:0 .55rem; border:1px solid transparent; border-radius:6px;
  background:none; color:#334155; font:inherit; font-size:.88rem; font-weight:700; cursor:pointer; }
.rte-toolbar button:hover { background:#eaf1ff; color:#1f6feb; }
.rte-sep { width:1px; height:20px; background:#dbe3ef; margin:0 .3rem; }
.rte-surface { min-height:160px; max-height:420px; overflow-y:auto; padding:.8rem 1rem; outline:none; }
.rte-surface:empty:before { content:"Tell families what this registration is for, dates, what to bring…"; color:#94a3b8; }
.rte-surface h2 { margin:.4rem 0; } .rte-surface h3 { margin:.35rem 0; } .rte-surface p { margin:.35rem 0; }
.rte-surface img { max-width:100%; height:auto; }
.document-manager { display:grid; grid-template-columns:280px minmax(0, 1fr); gap:1rem; align-items:start; }
.folder-sidebar { position:sticky; top:1rem; max-height:calc(100vh - 2rem); overflow:auto; }
.folder-tree { display:grid; gap:.15rem; }
.folder-tree a { display:flex; gap:.45rem; align-items:center; min-height:34px; border-radius:6px; color:#172033; text-decoration:none; font-weight:750; }
.folder-tree a:hover,
.folder-tree a.active { background:#eaf1ff; color:#123f8c; }
.document-workspace { min-width:0; }
.breadcrumb-row { display:flex; flex-wrap:wrap; gap:.35rem; align-items:center; margin-bottom:.3rem; font-size:.92rem; }
.breadcrumb-row a { color:#1f6feb; font-weight:800; text-decoration:none; }
.quiet-panel { border:1px solid #dbe3ef; border-radius:8px; padding:1rem; background:#fbfdff; }
.quiet-panel h3 { margin:.1rem 0 .75rem; }
.compact-empty { display:flex; align-items:center; justify-content:space-between; gap:1rem; text-align:left; justify-items:stretch; }
.compact-empty p { margin:0; }
.volunteer-workspace { display:grid; gap:1rem; }
.role-card-grid { display:grid; gap:1rem; }
.role-card { border:1px solid #dbe3ef; border-radius:8px; padding:1rem; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.04); }
.role-card h3 { margin:.1rem 0 .35rem; }
.inline-editor { margin:.75rem 0; }
.file-grid .file-name { font-weight:800; min-width:220px; }
.file-icon { display:inline-flex; align-items:center; justify-content:center; width:2.55rem; min-height:22px; margin-right:.4rem; border:1px solid #dbe3ef; border-radius:5px; color:#475569; background:#f8fafc; font-size:.68rem; font-weight:900; }
.row-muted td { opacity:.6; }
.row-actions { display:flex; flex-wrap:wrap; gap:.55rem; align-items:center; justify-content:flex-end; }
.row-actions .linkbtn,
.row-actions a { white-space:nowrap; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Generic tenant public site (/site) — branded per tenant via --ts-accent (Tenant.BrandColor). */
.tenant-site { --ts-accent:#1f6feb; min-height:100vh; display:flex; flex-direction:column; background:#fff; color:#172033; }
.ts-masthead { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem 1.5rem; padding:1rem clamp(1rem, 4vw, 3rem); border-bottom:4px solid var(--ts-accent); }
.ts-brand { color:#172033; text-decoration:none; font-size:1.45rem; font-weight:900; letter-spacing:-.01em; }
.ts-nav { display:flex; flex-wrap:wrap; gap:.25rem; }
.ts-nav a { padding:.5rem .75rem; border-radius:6px; color:#334155; text-decoration:none; font-weight:750; }
.ts-nav a:hover, .ts-nav a.active { background:color-mix(in srgb, var(--ts-accent) 12%, #fff); color:var(--ts-accent); }
.ts-main { flex:1; width:min(1080px, 100%); margin:0 auto; padding:clamp(1.25rem, 4vw, 3rem) 1rem 3rem; }
.ts-page-shell { min-width:0; }
.ts-main.layout-width-narrow { width:min(920px, 100%); }
.ts-main.layout-width-standard { width:min(1080px, 100%); }
.ts-main.layout-width-wide { width:min(1180px, 100%); }
.ts-main.layout-width-full { width:100%; padding-left:clamp(1rem, 3vw, 2.5rem); padding-right:clamp(1rem, 3vw, 2.5rem); }
.ts-main.layout-width-form { width:min(780px, 100%); display:grid; place-items:start center; }
.ts-main.layout-spacing-compact { padding-top:clamp(.8rem, 2vw, 1.4rem); }
.ts-main.layout-spacing-roomy { padding-top:clamp(1.5rem, 5vw, 4rem); padding-bottom:clamp(3rem, 6vw, 5rem); }
.ts-page-shell.title-mode-band { display:grid; gap:1.5rem; }
.ts-page-shell.frame-mode-card { width:100%; display:grid; gap:1rem; border:1px solid #dbe3ef; border-radius:8px; padding:clamp(1rem, 3vw, 2rem); background:#fff; box-shadow:0 14px 34px rgba(15,23,42,.07); }
.ts-main.page-layout-inner { width:min(920px, 100%); }
.ts-page-inner { display:grid; gap:1.5rem; }
.ts-page-title-band { display:grid; gap:.35rem; padding:clamp(1.25rem, 4vw, 2.5rem) 0 1.25rem; border-bottom:1px solid #e3e9f2; }
.ts-page-title-band p { margin:0; color:var(--ts-accent); font-size:.82rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.ts-page-title-band h1 { margin:0; font-size:clamp(2rem, 4vw, 3.2rem); line-height:1.08; }
.ts-page-title-band span { max-width:64ch; color:#64748b; font-size:1.05rem; line-height:1.55; }
.ts-page-body { width:100%; }
.ts-managed-layout-header { display:grid; gap:.6rem; max-width:760px; margin:0 auto clamp(1.5rem, 4vw, 3rem); padding:clamp(1.4rem, 3vw, 2.5rem); border:1px solid color-mix(in srgb, var(--ts-accent) 18%, #dbe3ef); border-radius:8px; background:linear-gradient(135deg, color-mix(in srgb, var(--ts-accent) 10%, #fff), #fff); box-shadow:0 14px 34px rgba(15,23,42,.07); }
.ts-managed-layout-header h1 { margin:0; color:color-mix(in srgb, var(--ts-accent) 76%, #0f172a); font-size:clamp(2rem, 4.5vw, 3.4rem); line-height:1.04; }
.ts-managed-layout-eyebrow { margin:0; color:var(--ts-accent); font-size:.78rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.ts-managed-layout-description { max-width:62ch; margin:0; color:#526176; font-size:1.05rem; line-height:1.55; }
.ts-visual-feature { display:grid; gap:clamp(1rem, 3vw, 2rem); }
.ts-page-visual-hero { display:grid; gap:.55rem; padding:clamp(1.5rem, 5vw, 4rem); border-radius:8px; background:linear-gradient(135deg, color-mix(in srgb, var(--ts-accent) 88%, #0f172a), var(--ts-accent)); color:#fff; }
.ts-page-visual-hero p { margin:0; color:color-mix(in srgb, #fff 86%, var(--ts-accent)); font-size:.82rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.ts-page-visual-hero h1 { max-width:16ch; margin:0; color:#fff; font-size:clamp(2.2rem, 5vw, 4.3rem); line-height:1.02; }
.ts-page-visual-hero .muted { max-width:62ch; color:rgba(255,255,255,.86); font-size:1.04rem; font-weight:500; letter-spacing:0; line-height:1.6; text-transform:none; }
.ts-main.page-layout-landing { width:min(1180px, 100%); padding-top:clamp(1rem, 3vw, 2.25rem); }
.ts-page-landing { display:grid; gap:2rem; }
.ts-main.page-layout-full-width { width:100%; padding-left:clamp(1rem, 3vw, 2.5rem); padding-right:clamp(1rem, 3vw, 2.5rem); }
.ts-page-full-width { width:100%; }
.ts-main.page-layout-form { width:min(780px, 100%); display:grid; place-items:start center; }
.ts-page-form { width:100%; display:grid; gap:1rem; border:1px solid #dbe3ef; border-radius:8px; padding:clamp(1rem, 3vw, 2rem); background:#fff; box-shadow:0 14px 34px rgba(15,23,42,.07); }
.ts-page-form-head { display:grid; gap:.35rem; padding-bottom:.75rem; border-bottom:1px solid #edf1f7; }
.ts-page-form-head h1 { margin:0; font-size:clamp(1.75rem, 3vw, 2.4rem); }
.ts-page-form-head p { margin:0; }
.ts-hero { text-align:center; padding:clamp(1.5rem, 5vw, 4rem) 0 2rem; }
.ts-starter-mark { display:block; width:min(100%, 30rem); height:auto; margin:0 auto 1.5rem; border-radius:8px; }
.ts-hero h1 { margin:.2rem 0 .6rem; font-size:clamp(1.9rem, 4.5vw, 3rem); line-height:1.08; }
.ts-hero .lead, .ts-prose .lead { font-size:1.12rem; line-height:1.6; color:#475569; max-width:58ch; margin:0 auto 1rem; }
.ts-cta-row { display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; margin-top:1.2rem; }
.ts-cta { display:inline-flex; align-items:center; min-height:44px; padding:.6rem 1.15rem; border-radius:8px; background:var(--ts-accent); color:#fff; text-decoration:none; font-weight:800; }
.ts-cta:hover { filter:brightness(.92); }
.ts-cta-alt { background:#fff; color:var(--ts-accent); border:2px solid var(--ts-accent); }
.ts-cols { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:1.25rem; margin:2rem 0; }
.ts-cols > div { border:1px solid #e3e9f2; border-radius:10px; padding:1.25rem; background:#fbfdff; }
.ts-cols h2 { margin:.1rem 0 .5rem; font-size:1.15rem; }
.ts-cols p { margin:.35rem 0; line-height:1.55; color:#475569; }
.ts-cols a, .ts-prose a { color:var(--ts-accent); font-weight:750; }
.ts-prose { max-width:70ch; margin:0 auto; }
.ts-prose h1 { margin:.2rem 0 .6rem; }
.ts-prose h2 { margin:1.4rem 0 .45rem; }
.ts-prose p { line-height:1.65; margin:.55rem 0; }
.ts-prose .lead { margin:0 0 1rem; }
.ts-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem 1.5rem; padding:1.1rem clamp(1rem, 4vw, 3rem); border-top:1px solid #e3e9f2; background:#f8fafc; }
.ts-footer strong { display:block; }
.ts-footer nav { display:flex; flex-wrap:wrap; gap:1rem; }
.ts-footer a { color:var(--ts-accent); text-decoration:none; font-weight:750; }
/* Media library grid (/manage/media) */
.media-filters { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; justify-content:flex-end; }
.media-filter { display:inline-flex; align-items:center; gap:.35rem; margin:0; font-size:.88rem; font-weight:700; color:#475569; white-space:nowrap; }
.media-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:1rem; }
.media-tile { position:relative; border:1px solid #e3e9f2; border-radius:10px; background:#fff; overflow:visible; display:flex; flex-direction:column; box-shadow:0 1px 3px rgba(15,23,42,.05); }
.media-tile:focus-within { z-index:2; }
.media-tile img { width:100%; height:120px; object-fit:cover; background:#f1f5f9; border-radius:9px 9px 0 0; }
.media-tile > video { display:block; width:100%; height:160px; object-fit:contain; background:#0f172a; border-radius:9px 9px 0 0; }
.media-tile-body { padding:.6rem .7rem; display:grid; gap:.3rem; }
.media-tile-name { font-weight:750; font-size:.9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.media-tile .code-input { font-size:.72rem; padding:.3rem .4rem; min-width:0; }
.media-tile .row-actions,
.media-tile .admin-row-actions { justify-content:flex-start; }
.media-tile .confirm-inline { justify-content:flex-start; font-size:.82rem; }
.media-tile-actions { padding-top:.2rem; }
.product-image-field { min-width:0; margin:0; padding:.8rem; border:1px solid #dbe3ef; border-radius:8px; }
.product-image-field legend { padding:0 .3rem; font-weight:800; }
.product-image-field .admin-actions { margin:.65rem 0 .35rem; }
.product-image-selection { display:grid; grid-template-columns:72px minmax(0,1fr); gap:.7rem; align-items:center; min-width:0; }
.product-image-selection img { width:72px; height:72px; border:1px solid #dbe3ef; border-radius:8px; background:#f8fafc; object-fit:cover; }
.product-image-selection span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.media-picker-default-note { margin:0 0 1rem; }
.media-image-picker-filters { display:grid; grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(150px,1fr)); gap:.75rem; align-items:end; }
.media-image-picker-filters label { min-width:0; font-weight:800; }
.media-image-picker-filters input,
.media-image-picker-filters select { width:100%; min-height:40px; box-sizing:border-box; margin-top:.3rem; }
.media-image-picker-filter-actions { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin:.8rem 0; }
.media-image-picker-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:.8rem; margin-top:1rem; }
.media-image-picker-grid > div { min-width:0; }
.media-image-picker-card { width:100%; height:100%; padding:0; overflow:hidden; display:grid; grid-template-rows:130px minmax(0,1fr); text-align:left; color:#172033; background:#fff; border:1px solid #dbe3ef; border-radius:10px; cursor:pointer; box-shadow:0 1px 3px rgba(15,23,42,.05); }
.media-image-picker-card:hover { border-color:#6b9de3; box-shadow:0 8px 20px rgba(15,23,42,.1); }
.media-image-picker-card.selected { border-color:#1f6feb; box-shadow:0 0 0 2px rgba(31,111,235,.18); }
.media-image-picker-card > img { display:block; width:100%; height:130px; object-fit:cover; background:#f1f5f9; }
.media-image-picker-card-body { min-width:0; padding:.65rem; display:grid; align-content:start; gap:.25rem; }
.media-image-picker-card-body strong,
.media-image-picker-card-body small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.media-image-picker-card-body small { color:#64748b; }
.media-image-picker-tags { color:#475569 !important; }
.media-image-picker-use { margin-top:.35rem; color:#1f6feb; font-size:.82rem; font-weight:900; }
@media (max-width:900px) {
    .media-image-picker-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
    .media-image-picker-filters { grid-template-columns:1fr; }
    .media-image-picker-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
    .media-image-picker-card { grid-template-rows:105px minmax(0,1fr); }
    .media-image-picker-card > img { height:105px; }
}
.storage-limit-editor { display:flex; gap:.45rem; align-items:center; }
.storage-limit-editor input { min-width:0; flex:1; }
.storage-limit-editor select { width:auto; min-width:4.5rem; }
.media-library-page > .admin-heading .admin-actions,
.document-library-page > .admin-heading .admin-actions { display:none; }

/* Layout variants (Tenant.SiteLayout). Classic = the base styles above. */
.tenant-site.layout-bold .ts-masthead { background:color-mix(in srgb, var(--ts-accent) 82%, #000); border-bottom-color:color-mix(in srgb, var(--ts-accent) 40%, #fff); }
.tenant-site.layout-bold .ts-brand { color:#fff; text-transform:uppercase; letter-spacing:.02em; }
.tenant-site.layout-bold .ts-nav a { color:rgba(255,255,255,.88); }
.tenant-site.layout-bold .ts-nav a:hover, .tenant-site.layout-bold .ts-nav a.active { background:rgba(255,255,255,.16); color:#fff; }
.tenant-site.layout-minimal .ts-masthead { flex-direction:column; justify-content:center; gap:.3rem; border-bottom:1px solid #e9eef5; padding-bottom:.8rem; }
.tenant-site.layout-minimal .ts-brand { font-size:1.7rem; }
.tenant-site.layout-minimal .ts-nav { justify-content:center; }
.tenant-site.layout-marketing { background:#f4f7fb; }
.tenant-site.layout-marketing .ts-masthead { width:min(1180px, 100%); margin-inline:auto; position:sticky; top:0; z-index:750; border-bottom:1px solid #dbe3ef; background:rgba(255,255,255,.94); backdrop-filter:blur(10px); padding:.75rem clamp(1rem, 4vw, 2rem); }
.tenant-site.layout-marketing .ts-brand { color:#111827; font-size:1.15rem; letter-spacing:0; }
.tenant-site.layout-marketing .ts-nav { align-items:center; }
.tenant-site.layout-marketing .ts-nav a { color:#334155; font-size:.95rem; font-weight:850; }
.tenant-site.layout-marketing .ts-nav a:hover,
.tenant-site.layout-marketing .ts-nav a.active { background:#eff6ff; color:#1f6feb; }
.tenant-site.layout-marketing .ts-main { width:100%; padding:0; }
.tenant-site.layout-marketing .marketing-site { width:min(1180px, 100%); margin:0 auto; }
.tenant-site.layout-marketing .ts-footer { width:min(1180px, 100%); margin-inline:auto; background:#0f2b55; color:#dbeafe; border-top:0; }
.tenant-site.layout-marketing .ts-footer .muted { color:#bfdbfe; }
.tenant-site.layout-marketing .ts-footer a { color:#fff; }
@media (max-width:820px) { .ts-cols { grid-template-columns:1fr; } }

.dons-site {
    --dons-blue: #123f8c;
    --dons-navy: #071d3c;
    --dons-gold: #f2c230;
    --dons-ink: #172033;
    --dons-line: #d7deea;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--dons-ink);
    background: #fff;
}

.dons-site a { color: inherit; }

.dons-masthead {
    border-bottom: 4px solid var(--dons-gold);
    background: var(--dons-navy);
    color: #fff;
}

.dons-sponsor-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(70px, 1fr));
    gap: 0.5rem;
    align-items: center;
    padding: 0.65rem;
    background: #fff;
}

.dons-sponsor-strip img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    margin: 0 auto;
}

.dons-brand {
    display: grid;
    grid-template-columns: minmax(210px, 300px) 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.dons-mark {
    text-decoration: none;
    text-transform: uppercase;
}

.dons-mark-main {
    display: block;
    font-size: 2.8rem;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: 0;
    color: #fff;
}

.dons-mark-sub {
    display: block;
    margin-top: 0.2rem;
    color: var(--dons-gold);
    font-weight: 800;
}

.dons-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.dons-nav a,
.dons-sidebar a {
    text-decoration: none;
    font-weight: 700;
}

.dons-nav a {
    padding: 0.5rem 0.65rem;
    border-radius: 4px;
    color: #fff;
}

.dons-nav a.active,
.dons-nav a:hover {
    background: var(--dons-gold);
    color: var(--dons-navy);
}

.dons-mobile-nav {
    display: none;
    position: relative;
    justify-self: end;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

.dons-mobile-nav summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 900;
}

.dons-mobile-nav summary span[aria-hidden="true"] {
    font-size: 1.1rem;
    line-height: 1;
}

.dons-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.dons-mobile-nav nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 25;
    display: grid;
    gap: 0;
    min-width: min(86vw, 360px);
    max-height: min(72vh, 520px);
    overflow: auto;
    padding: 0.45rem 0;
    border: 1px solid var(--dons-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7, 29, 60, 0.22);
}

.dons-mobile-nav-group,
.dons-mobile-nav .dons-sidebar-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.dons-mobile-nav-group + .dons-sidebar-section,
.dons-mobile-nav .dons-sidebar-section + .dons-sidebar-section {
    border-top: 1px solid #edf1f7;
}

.dons-mobile-nav h2 {
    margin: 0;
    padding: 0.58rem 0.85rem 0.26rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
}

.dons-mobile-nav nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.48rem 0.85rem;
    border-radius: 6px;
    color: var(--dons-navy);
    font-size: 0.96rem;
    line-height: 1.2;
    text-decoration: none;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.dons-mobile-nav nav a.active,
.dons-mobile-nav nav a:hover {
    background: #eaf1ff;
    color: var(--dons-blue);
}

.dons-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.dons-action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.dons-action-row a {
    display: grid;
    place-items: center;
    border: 1px solid var(--dons-line);
    min-height: 92px;
    background: #f8fafc;
}

.dons-action-row img {
    max-width: min(100%, 257px);
    height: auto;
}

.dons-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.dons-home-main,
.dons-home-rail {
    display: grid;
    gap: 1rem;
}

.dons-panel {
    border: 1px solid var(--dons-line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.dons-panel-title {
    padding: 0.75rem 0.9rem;
    background: var(--dons-blue);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
}

.dons-panel-subtitle {
    margin: 0.75rem 0.9rem 0.25rem;
    color: #64748b;
    font-weight: 800;
}

.dons-schedule-list {
    display: grid;
}

.dons-schedule-item {
    display: grid;
    grid-template-columns: 76px 92px 1fr;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid #edf1f7;
    text-decoration: none;
}

.dons-schedule-item .event {
    font-weight: 800;
}

.dons-schedule-item .place {
    grid-column: 3;
    color: #64748b;
}

.dons-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 0.9rem 1rem;
}

.dons-link-row .dons-text-link {
    margin: 0;
}

.dons-text-link {
    display: inline-block;
    margin: 0.8rem 0.9rem 1rem;
    font-weight: 800;
    color: var(--dons-blue);
}

.dons-records,
.dons-news,
.dons-support p {
    padding: 0.9rem;
    margin: 0;
}

.dons-records {
    display: grid;
    gap: 0.55rem;
}

.dons-records a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    border-bottom: 1px solid #edf1f7;
    padding-bottom: 0.45rem;
}

.dons-news {
    padding-left: 1.8rem;
}

.dons-news li {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.45rem;
}

.dons-news span {
    color: #64748b;
    font-size: 0.9rem;
}

.dons-home-rail .dons-text-link {
    margin-top: 0.25rem;
}

.dons-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0 0.9rem 1rem;
}

.dons-button-row a,
.dons-primary,
.dons-signup button {
    display: inline-block;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    padding: 0.65rem 0.85rem;
    background: var(--dons-gold);
    color: var(--dons-navy);
    font: inherit;
    font-weight: 900;
    line-height: 1.1;
    cursor: pointer;
}

.dons-primary:focus-visible,
.dons-secondary:focus-visible {
    outline: 3px solid rgba(30, 95, 175, 0.35);
    outline-offset: 2px;
}

.dons-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.2rem;
    padding: 1rem;
}

.dons-content-full {
    grid-column: 1 / -1;
}

.dons-sidebar {
    border: 1px solid var(--dons-line);
    align-self: start;
    position: sticky;
    top: 1rem;
    background: #fff;
}

.dons-sidebar-mobile {
    display: none;
}

.dons-sidebar a {
    display: block;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #edf1f7;
}

.dons-sidebar-section + .dons-sidebar-section {
    border-top: 1px solid #edf1f7;
}

.dons-sidebar h2 {
    margin: 0;
    padding: 0.75rem 0.8rem 0.35rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dons-sidebar a.active,
.dons-sidebar a:hover {
    background: #eaf1ff;
    color: var(--dons-blue);
}

.dons-content {
    min-width: 0;
    border-top: 3px solid var(--dons-blue);
    padding-top: 0.9rem;
}

.dons-content h1 {
    margin: 0 0 0.75rem;
    color: var(--dons-navy);
}

.dons-kicker {
    margin: 0 0 0.3rem;
    color: var(--dons-blue);
    font-weight: 900;
    text-transform: uppercase;
}

.dons-content .lead {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #475569;
}

.dons-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.dons-table th,
.dons-table td {
    text-align: left;
    padding: 0.65rem;
    border-bottom: 1px solid #e5eaf2;
}

.dons-table th {
    background: #eef4ff;
    color: var(--dons-navy);
}

.dons-team-summary {
    display: grid;
    grid-template-columns: minmax(120px, 220px) 1fr;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--dons-line);
    background: #f8fafc;
}

.dons-team-summary img {
    max-width: 100%;
    height: auto;
}

.dons-record-pill {
    display: inline-flex;
    margin: 0.2rem 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--dons-blue);
    font-weight: 900;
}

.dons-clean-schedule td,
.dons-clean-schedule th {
    white-space: nowrap;
}

.dons-clean-schedule td:nth-child(2) {
    white-space: normal;
    font-weight: 800;
}

.dons-imported-content {
    line-height: 1.55;
}

.dons-imported-content p {
    margin: 0.65rem 0;
}

.dons-imported-content img,
.dons-camp-teaser img {
    max-width: 100%;
    height: auto !important;
}

.dons-camp-teaser {
    padding: 0.9rem;
}

.dons-camp-teaser img {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--dons-line);
}

.dons-imported-content iframe {
    max-width: 100%;
    border: 0;
}

.dons-external-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--dons-line);
    border-radius: 0.5rem;
    background: #f8fafc;
    color: var(--dons-blue);
    font-weight: 900;
    text-decoration: none;
}

.dons-import-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
}

.dons-imported-content table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

.dons-imported-content th,
.dons-imported-content td {
    border: 1px solid #dfe6f2;
    padding: 0.55rem 0.65rem !important;
    vertical-align: top;
}

.dons-imported-content th,
.dons-imported-content .thead td,
.dons-imported-content .modGroupHeading,
.dons-imported-content .byTeamTeamRow {
    background: #eef4ff;
    color: var(--dons-navy);
    font-weight: 900;
}

.dons-imported-content .modGroupHeading,
.dons-imported-content .byTeamTeamRow {
    display: block;
    margin-top: 1rem;
    padding: 0.65rem 0.8rem;
    text-decoration: none;
}

.dons-imported-content .modGroupDetailsWrapper,
.dons-imported-content .list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.dons-imported-content .modGroupItem {
    display: grid;
    gap: 0.25rem;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid #e5eaf2;
}

.dons-imported-content .modGroupItem:nth-child(even) {
    background: #f8fafc;
}

.dons-imported-content .nameWrapper {
    font-weight: 800;
}

.dons-imported-content .staffTitle,
.dons-imported-content .newsAuthor,
.dons-imported-content .newsDate {
    color: #64748b;
}

.dons-imported-content .newsHeading a {
    color: var(--dons-blue);
    font-weight: 900;
}

.dons-imported-content .pageModCol,
.dons-imported-content .modGroupBigWrapper {
    min-width: 0;
}

.dons-imported-content .modGroupBigWrapper {
    display: grid;
    grid-template-columns: minmax(120px, 240px) 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid #e5eaf2;
}

.dons-imported-content .pageBigTextContentHeading {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--dons-navy);
}

.dons-imported-content .dons-primary {
    margin-top: 0.6rem;
}

.dons-roster-grid,
.dons-donation-levels,
.dons-sponsor-page,
.dons-coaches {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.dons-roster-grid div,
.dons-donation-levels div,
.dons-coaches section,
.dons-story {
    border: 1px solid var(--dons-line);
    border-radius: 6px;
    padding: 0.8rem;
}

.dons-roster-grid strong {
    display: block;
    font-size: 1.6rem;
    color: var(--dons-blue);
}

.dons-roster-grid span,
.dons-donation-levels span {
    display: block;
    font-weight: 800;
}

.dons-feature-image {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--dons-line);
}

.dons-camp-page {
    display: grid;
    gap: 1.1rem;
}

.dons-camp-intro {
    display: grid;
    grid-template-columns: minmax(180px, 360px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.dons-detail-grid,
.dons-activity-grid,
.dons-photo-grid {
    display: grid;
    gap: 0.75rem;
}

.dons-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dons-detail-grid div {
    border: 1px solid var(--dons-line);
    border-radius: 6px;
    padding: 0.8rem;
    background: #f8fafc;
}

.dons-detail-grid span {
    display: block;
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dons-activity-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dons-activity-grid span {
    border: 1px solid #dbe6f5;
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
    background: #f8fbff;
    color: var(--dons-navy);
    font-weight: 800;
    text-align: center;
}

.dons-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dons-photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--dons-line);
}

.dons-sponsor-page img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    margin: auto;
}

.dons-secondary {
    display: inline-block;
    padding: 0.65rem 0.85rem;
    border: 1px solid #b9c8dd;
    border-radius: 4px;
    background: #fff;
    color: var(--dons-navy);
    font: inherit;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
}

.dons-schedule-board,
.dons-staff-board,
.dons-news-board,
.dons-impact-grid,
.dons-giving-grid,
.dons-awards-feature,
.dons-awards-archive,
.dons-step-list {
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0;
}

.dons-schedule-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.dons-schedule-board article,
.dons-staff-board article,
.dons-news-board article,
.dons-giving-grid article,
.dons-awards-feature article,
.dons-awards-archive details,
.dons-card-section,
.dons-join-card,
.dons-step-list article {
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(7, 29, 60, 0.05);
}

.dons-schedule-board article > div {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem;
    border-bottom: 1px solid #dce5f2;
    background: #f8fbff;
}

.dons-schedule-board article > div span,
.dons-fundraising-hero span,
.dons-giving-grid article > span,
.dons-event-hero span,
.dons-awards-hero span {
    color: var(--dons-blue);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dons-schedule-board article > div strong {
    color: var(--dons-navy);
    font-size: 1.15rem;
}

.dons-schedule-board article > div a,
.dons-news-board a,
.dons-step-list a {
    color: var(--dons-blue);
    font-weight: 900;
    text-decoration: none;
}

.dons-schedule-board ul,
.dons-awards-archive ul,
.dons-step-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dons-schedule-board li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.2rem 0.7rem;
    padding: 0.72rem 0.9rem;
    border-bottom: 1px solid #edf2f8;
}

.dons-schedule-board li:last-child {
    border-bottom: 0;
}

.dons-schedule-board time {
    grid-row: span 2;
    color: var(--dons-blue);
    font-weight: 900;
}

.dons-schedule-board li strong {
    color: var(--dons-navy);
}

.dons-schedule-board li span,
.dons-staff-board span,
.dons-news-board span,
.dons-impact-grid span,
.dons-giving-grid p,
.dons-club-hero p,
.dons-event-hero p,
.dons-card-section p,
.dons-step-list p,
.dons-join-card li {
    color: #475569;
    line-height: 1.45;
}

.dons-staff-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dons-staff-board h2,
.dons-card-section h2,
.dons-awards-feature h2 {
    margin: 0;
    color: var(--dons-navy);
}

.dons-staff-board article,
.dons-news-board article,
.dons-giving-grid article,
.dons-awards-feature article,
.dons-card-section,
.dons-join-card,
.dons-step-list article {
    padding: 1rem;
}

.dons-staff-board article div {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #edf2f8;
}

.dons-staff-board article div:last-child {
    border-bottom: 0;
}

.dons-staff-board strong,
.dons-impact-grid strong,
.dons-giving-grid h2,
.dons-giving-grid strong,
.dons-news-board h2 {
    color: var(--dons-navy);
}

.dons-news-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dons-news-board article {
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.dons-news-board h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.15;
}

.dons-fundraising-hero,
.dons-club-hero,
.dons-event-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: stretch;
    margin: 1rem 0;
    overflow: hidden;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(7, 29, 60, 0.06);
}

.dons-event-hero {
    grid-template-columns: minmax(280px, 1.15fr) minmax(0, 0.85fr);
}

.dons-club-hero {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
}

.dons-fundraising-hero > div,
.dons-club-hero > div,
.dons-event-hero > div {
    display: grid;
    align-content: center;
    gap: 0.75rem;
    padding: 1.2rem;
}

.dons-fundraising-hero h2,
.dons-event-hero h2 {
    margin: 0;
    color: var(--dons-navy);
    font-size: 1.9rem;
    line-height: 1.08;
}

.dons-fundraising-hero img,
.dons-club-hero img,
.dons-event-hero img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.dons-club-hero img {
    min-height: 180px;
    object-fit: contain;
    padding: 1rem;
    background: #f8fbff;
}

.dons-fundraising-hero div div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dons-impact-grid,
.dons-giving-grid,
.dons-awards-feature {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dons-impact-grid div {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #f8fbff;
}

.dons-giving-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dons-giving-grid article {
    display: grid;
    align-content: start;
    gap: 0.5rem;
}

.dons-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dons-card-actions .dons-primary {
    padding: 0.55rem 0.7rem;
}

.dons-impact-grid .dons-secondary {
    justify-self: start;
    margin-top: 0.35rem;
}

.dons-giving-checkout {
    display: grid;
    gap: 0.75rem;
    scroll-margin-top: 1rem;
}

.dons-checkout-empty {
    padding: 1rem;
    border: 1px dashed #b9c8dd;
    border-radius: 8px;
    background: #f8fbff;
    color: #475569;
    font-weight: 800;
}

.dons-giving-grid h2 {
    margin: 0;
    font-size: 1.1rem;
}

.dons-giving-grid strong {
    font-size: 1.6rem;
}

.dons-awards-feature {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.dons-awards-feature ul,
.dons-awards-archive ul {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
}

.dons-awards-archive details {
    overflow: hidden;
}

.dons-awards-archive summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.85rem 1rem;
    background: #f8fbff;
    color: var(--dons-navy);
    font-weight: 900;
}

.dons-awards-archive summary strong {
    color: #60708a;
    font-size: 0.82rem;
}

.dons-awards-archive li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #edf2f8;
    color: #334155;
}

.dons-awards-archive li:last-child {
    border-bottom: 0;
}

.dons-champions-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.dons-champions-hero img,
.dons-card-section img {
    width: 100%;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    object-fit: cover;
}

.dons-champions-hero img {
    aspect-ratio: 4 / 3;
}

.dons-card-section {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.dons-card-section img {
    max-width: 420px;
    justify-self: center;
    object-fit: contain;
}

.dons-join-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 1rem;
}

.dons-join-card strong {
    color: var(--dons-navy);
}

.dons-step-list article {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.8rem;
}

.dons-step-list article > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--dons-gold);
    color: var(--dons-navy);
    font-weight: 900;
}

.dons-step-list h2 {
    margin: 0 0 0.25rem;
    color: var(--dons-navy);
}

.dons-banner {
    display: grid;
    place-items: center;
    min-height: 180px;
    background: var(--dons-blue);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dons-signup {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
}

.dons-signup input {
    flex: 1;
}

.dons-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--dons-navy);
    color: #fff;
}

.dons-home-modern {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: #f4f7fb;
}

.dons-home-section,
.dons-home-aside > a,
.dons-support-promo,
.dons-roster-table-wrap,
.dons-alumni-board > section,
.dons-awards-grid article {
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(7, 29, 60, 0.06);
}

.dons-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.2rem 0.85rem;
    border-bottom: 1px solid #e8eef7;
}

.dons-section-heading p,
.dons-support-promo span,
.dons-camp-promo span {
    margin: 0 0 0.2rem;
    color: var(--dons-blue);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dons-section-heading h2 {
    margin: 0;
    color: var(--dons-navy);
    font-size: 1.55rem;
    line-height: 1.1;
}

.dons-section-heading a,
.dons-home-stats a,
.dons-upcoming-list a,
.dons-news-card-grid a,
.dons-camp-promo {
    color: inherit;
    text-decoration: none;
}

.dons-section-heading a {
    color: var(--dons-blue);
    font-weight: 900;
    white-space: nowrap;
}

.dons-feature-schedule {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 1rem;
    padding: 1rem;
}

.dons-next-game {
    display: grid;
    gap: 0.45rem;
    min-height: 260px;
    padding: 1.2rem;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 29, 60, 0.96), rgba(18, 63, 140, 0.88)),
        url("/uploads/page-images/dons-migration/bannerbg-temp.jpg") center/cover;
    color: #fff;
    text-decoration: none;
}

.dons-next-date {
    width: fit-content;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--dons-gold);
    color: var(--dons-navy);
    font-weight: 900;
}

.dons-next-meta {
    color: #bfd5ff;
    font-weight: 800;
}

.dons-next-game strong {
    max-width: 16ch;
    color: #fff;
    font-size: 2rem;
    line-height: 1.02;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.dons-next-game > span:last-child {
    align-self: end;
    color: #e7eefc;
    line-height: 1.45;
}

.dons-upcoming-list {
    display: grid;
    gap: 0.6rem;
}

.dons-upcoming-list a {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    min-height: 56px;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e5edf8;
    border-radius: 8px;
    background: #fbfdff;
}

.dons-upcoming-list span {
    color: var(--dons-blue);
    font-weight: 900;
}

.dons-upcoming-list strong {
    color: var(--dons-navy);
}

.dons-upcoming-list em {
    color: #60708a;
    font-style: normal;
    font-weight: 800;
}

.dons-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.dons-home-stats a {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #fff;
}

.dons-home-stats span,
.dons-home-stats em {
    color: #60708a;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.dons-home-stats strong {
    color: var(--dons-navy);
    font-size: 2rem;
    line-height: 1;
}

.dons-home-lower {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 1rem;
}

.dons-news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem;
}

.dons-news-card-grid a {
    display: grid;
    gap: 0.35rem;
    min-height: 150px;
    padding: 0.9rem;
    border: 1px solid #e5edf8;
    border-radius: 8px;
    background: #fbfdff;
}

.dons-news-card-grid span {
    color: #60708a;
    font-size: 0.8rem;
    font-weight: 800;
}

.dons-news-card-grid strong {
    color: var(--dons-navy);
    font-size: 1.08rem;
    line-height: 1.18;
}

.dons-news-card-grid em {
    color: #475569;
    font-style: normal;
    line-height: 1.45;
}

.dons-home-aside {
    display: grid;
    gap: 1rem;
}

.dons-camp-promo {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.dons-camp-promo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #fff;
}

.dons-camp-promo strong {
    display: block;
    color: var(--dons-navy);
    font-size: 1.25rem;
    line-height: 1.1;
}

.dons-support-promo {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.dons-support-promo strong {
    color: var(--dons-navy);
    font-size: 1.2rem;
    line-height: 1.25;
}

.dons-support-promo div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dons-support-promo a {
    padding: 0.65rem 0.85rem;
    border-radius: 5px;
    background: var(--dons-gold);
    color: var(--dons-navy);
    font-weight: 900;
    text-decoration: none;
}

.dons-roster-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.dons-roster-toolbar div {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #f8fbff;
}

.dons-roster-toolbar strong {
    color: var(--dons-navy);
    font-size: 1.7rem;
    line-height: 1;
}

.dons-roster-toolbar span {
    color: #60708a;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dons-roster-table-wrap {
    overflow: auto;
}

.dons-roster-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.dons-roster-table th {
    background: #edf4ff;
    color: var(--dons-navy);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.dons-roster-table th,
.dons-roster-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e8eef7;
    text-align: left;
}

.dons-roster-table td:first-child {
    color: var(--dons-blue);
    font-weight: 900;
}

.dons-roster-table td:nth-child(2) {
    color: var(--dons-navy);
    font-weight: 900;
}

.dons-alumni-logos {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1rem 0;
}

.dons-alumni-logos figure {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    min-height: 108px;
    margin: 0;
    padding: 0.65rem;
    border: 1px solid #dce5f2;
    border-radius: 8px;
    background: #fff;
}

.dons-alumni-logos img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.dons-alumni-logos figcaption {
    color: #334155;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.12;
    text-align: center;
}

.dons-alumni-board {
    display: grid;
    gap: 0.9rem;
}

.dons-alumni-board > section {
    padding: 1rem;
}

.dons-alumni-board h2 {
    margin: 0 0 0.75rem;
    color: var(--dons-blue);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dons-alumni-board section > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.dons-alumni-board article {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid #e5edf8;
    border-radius: 8px;
    background: #fbfdff;
}

.dons-alumni-board strong {
    color: var(--dons-navy);
}

.dons-alumni-board span {
    color: #60708a;
}

.dons-alumni-board em {
    color: var(--dons-blue);
    font-style: normal;
    font-weight: 900;
}

.dons-awards-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.dons-awards-hero div {
    display: grid;
    gap: 0.25rem;
    min-height: 132px;
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--dons-navy), var(--dons-blue));
    color: #fff;
}

.dons-awards-hero span {
    color: var(--dons-gold);
    font-weight: 900;
}

.dons-awards-hero strong {
    font-size: 1.45rem;
    line-height: 1.08;
}

.dons-awards-hero em {
    align-self: end;
    color: #d6e3ff;
    font-style: normal;
}

.dons-awards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.dons-awards-grid article {
    padding: 1rem;
}

.dons-awards-grid h2 {
    margin: 0 0 0.8rem;
    color: var(--dons-navy);
}

.dons-awards-grid ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.15rem;
}

.dons-awards-grid li,
.dons-awards-grid p {
    color: #334155;
    line-height: 1.45;
}

@media (max-width: 820px) {
    .commerce-store-shell {
        padding: 1rem;
    }

    .commerce-store-heading {
        display: grid;
    }

    .commerce-store-layout {
        grid-template-columns: 1fr;
    }

    .store-filter-bar {
        grid-template-columns: 1fr;
    }

    .store-detail-catalog .store-product-card {
        grid-template-columns: 1fr;
    }

    .store-detail-catalog .store-product-image,
    .store-detail-catalog .store-product-initial {
        min-height: 220px;
    }

    .store-cart-panel {
        position: static;
    }

    .store-provider-choice {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        gap: .45rem .75rem;
    }

    .topbar .nav {
        flex: 1 1 10rem;
        margin: 0;
    }

    .topbar-account {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .topbar-account .muted {
        max-width: calc(100vw - 7rem);
    }

    .admin-app {
        grid-template-columns: 1fr;
    }

    .admin-app,
    .admin-workspace,
    .admin-topbar,
    .admin-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 80;
        width: min(82vw, 320px);
        height: 100vh;
        overflow: auto;
        border-right: 0;
        border-bottom: 0;
        box-shadow: 0 20px 44px rgba(15, 23, 42, .22);
        transform: translateX(-105%);
        transition: transform .16s ease;
    }

    .bh-nav-collapsed .admin-sidebar {
        display: flex;
    }

    .bh-mobile-nav-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-nav,
    .admin-sidebar-actions {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        align-items: center;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: .45rem;
        overflow: hidden;
        padding: .75rem 1rem;
    }

    .admin-topbar-left,
    .admin-topbar-utilities,
    .admin-top-actions,
    .admin-crumbs {
        min-width: 0;
    }

    .admin-topbar-left {
        min-width: 0;
    }

    .admin-topbar-utilities {
        justify-content: flex-start;
        padding-left: 0;
    }

    .admin-top-actions {
        gap: .45rem;
        max-width: none;
        overflow: hidden;
    }

    .admin-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-heading .admin-actions {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }

    .admin-pager {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-pager-controls {
        justify-content: flex-start;
    }

    .admin-top-actions .muted {
        display: block;
        min-width: 0;
        max-width: min(34vw, 9rem);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-top-actions .inline-form,
    .admin-top-actions .linkbtn {
        flex: 0 0 auto;
    }

    .section-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-heading,
    .booster-email-composer,
    .admin-grid,
    .layout-editor-grid,
    .layout-visual-builder,
    .layout-template-grid,
    .action-panel,
    .action-panel.three-up,
    .action-panel.five-up,
    .document-manager,
    .metric-grid,
    .split-grid,
    .email-simple-grid,
    .dons-brand,
    .dons-home-grid,
    .dons-page,
    .dons-action-row,
    .dons-team-summary,
    .dons-camp-intro,
    .dons-detail-grid,
    .dons-activity-grid,
    .dons-photo-grid,
    .dons-roster-grid,
    .dons-donation-levels,
    .dons-sponsor-page,
    .dons-coaches {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .layout-preset-grid,
    .layout-visual-options {
        grid-template-columns: 1fr;
    }

    .layout-visual-apply,
    .layout-visual-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .layout-visual-preview-panel {
        position:static;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .card {
        max-width: 100%;
        overflow-x: hidden;
    }

    .readiness-grid {
        grid-template-columns: 1fr;
    }

    .readiness-item {
        align-items: stretch;
        flex-direction: column;
        gap: .65rem;
    }

    .readiness-item .linkbtn {
        align-self: flex-start;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    table.grid {
        display: block;
        min-width: 0;
        width: 100%;
    }

    table.grid thead {
        display: none;
    }

    table.grid tbody {
        display: grid;
        gap: .65rem;
        width: 100%;
    }

    table.grid tr {
        background: #fff;
        border: 1px solid #dbe3ef;
        border-radius: 6px;
        display: grid;
        gap: .25rem;
        padding: .75rem;
    }

    table.grid th,
    table.grid td {
        border-bottom: 0;
        display: block;
        min-width: 0;
        overflow-wrap: anywhere;
        padding: .2rem 0;
        width: 100%;
    }

    table.grid td:first-child {
        font-weight: 800;
    }

    table.grid tbody tr:hover {
        background: #fff;
    }

    .analytics-pages-panel .admin-table-scroll {
        overflow-x: visible;
    }

    table.analytics-pages-table {
        min-width: 0 !important;
    }

    table.analytics-pages-table tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .7rem 1rem;
    }

    table.analytics-pages-table td {
        display: grid;
        gap: .15rem;
    }

    table.analytics-pages-table td:not(:first-child) {
        text-align: left;
    }

    table.analytics-pages-table td::before,
    .analytics-dimension-panel table.grid td:last-child::before {
        content: attr(data-label);
        color: #64748b;
        font-size: .68rem;
        font-weight: 900;
        letter-spacing: .04em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    table.analytics-pages-table td:first-child {
        grid-column: 1 / -1;
        min-width: 0;
        max-width: none;
        padding-bottom: .65rem;
        border-bottom: 1px solid #edf1f7;
    }

    .analytics-dimension-panel table.grid tbody {
        gap: .5rem;
    }

    .analytics-dimension-panel table.grid tr {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: .75rem;
    }

    .analytics-dimension-panel table.grid td:last-child {
        display: grid;
        gap: .1rem;
        justify-items: end;
        text-align: right;
    }

    table.grid td.row-actions,
    table.grid .row-actions {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }

    .admin-tabs,
    .admin-table-toolbar,
    .admin-panel-command,
    .admin-command-actions,
    .admin-filter-row {
        align-items: stretch;
        justify-content: stretch;
    }

    .admin-tabs {
        display:grid;
        gap:0;
        padding:0;
        border:1px solid #cbd5e1;
        border-radius:8px;
        overflow:hidden;
        background:#fff;
    }

    .admin-tab,
    .admin-tab-button,
    .admin-command-actions > *,
    .admin-panel-command > .btn,
    .admin-filter-row > *,
    .admin-filter-row .table-search {
        width: 100%;
        max-width: none;
    }

    .admin-tab,
    .admin-tab-button {
        top:0;
        justify-content:flex-start;
        border:0;
        border-bottom:1px solid #e2e8f0;
        border-radius:0;
        background:#fff;
        box-shadow:none;
    }

    .admin-tab:last-child,
    .admin-tab-button:last-child {
        border-bottom:0;
    }

    .admin-tab.active,
    .admin-tab-button.active {
        border-bottom:1px solid #bfdbfe;
        background:#eaf1ff;
        box-shadow:inset 4px 0 0 #1f6feb;
    }

    .admin-row-actions {
        justify-content: flex-start;
    }

    .grid th.admin-actions-header,
    .grid td.admin-actions-cell {
        text-align:left;
        width:100%;
        white-space:normal;
    }

    .grid td.admin-actions-cell .admin-row-actions {
        justify-content:flex-start;
    }

    .copy-field,
    .compact-copy-field {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    table.grid input,
    table.grid select,
    table.grid textarea {
        max-width: 100%;
        min-width: 0;
    }

    .file-grid .file-name {
        min-width: 0;
    }

    .admin-drawer,
    .admin-drawer-wide,
    .admin-drawer-xl {
        width: min(100vw, 100%);
    }

    .booster-email-composer {
        min-height:0;
    }

    .composer-palette,
    .composer-settings {
        border:0;
        border-bottom:1px solid #dbe3ef;
    }

    .email-preview-frame {
        padding:.75rem;
    }

    .email-simple-preview-panel {
        position:static;
    }

    .dons-site {
        max-width: 100%;
    }

    .dons-masthead {
        border-bottom-width: 3px;
    }

    .dons-brand {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem;
        padding: 0.65rem 0.75rem;
    }

    .dons-mark-main {
        font-size: 1.9rem;
    }

    .dons-mark-sub {
        font-size: 0.78rem;
    }

    .dons-nav {
        display: none;
    }

    .dons-mobile-nav {
        display: block;
    }

    .dons-mobile-nav[open] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .dons-mobile-nav[open] summary {
        justify-self: end;
        margin-left: auto;
        width: fit-content;
    }

    .dons-mobile-nav nav {
        position: static;
        width: 100%;
        min-width: 0;
        max-height: min(64dvh, 500px);
        margin-top: 0.45rem;
    }

    .dons-mobile-nav-group,
    .dons-mobile-nav .dons-sidebar-section {
        grid-template-columns: 1fr;
    }

    .dons-mobile-nav h2 {
        grid-column: 1 / -1;
    }

    .dons-action-row {
        display: flex;
        gap: 0.6rem;
        overflow-x: auto;
        padding: 0.6rem 0.75rem;
        scroll-snap-type: x proximity;
    }

    .dons-action-row a {
        flex: 0 0 78%;
        min-height: 58px;
        scroll-snap-align: start;
    }

    .dons-action-row img {
        max-height: 54px;
        object-fit: contain;
    }

    .dons-home-grid {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .dons-panel-title {
        padding: 0.65rem 0.75rem;
    }

    .dons-page {
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .dons-sidebar-desktop {
        display: none;
    }

    .dons-sidebar-mobile {
        display: none;
        position: sticky;
        top: 0.5rem;
        z-index: 35;
        border: 1px solid var(--dons-line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 10px 28px rgba(7, 29, 60, 0.12);
    }

    .dons-sidebar-mobile summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        list-style: none;
        cursor: pointer;
        padding: 0.7rem 0.85rem;
        color: var(--dons-navy);
        font-weight: 900;
    }

    .dons-sidebar-mobile summary > span:first-child {
        min-width: 0;
    }

    .dons-sidebar-summary-eyebrow {
        display: block;
        margin-bottom: 0.1rem;
        color: #64748b;
        font-size: 0.66rem;
        letter-spacing: 0.08em;
        line-height: 1;
        text-transform: uppercase;
    }

    .dons-sidebar-mobile summary strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dons-sidebar-summary-action {
        flex: 0 0 auto;
        border-radius: 999px;
        padding: 0.35rem 0.62rem;
        background: var(--dons-gold);
        color: var(--dons-navy);
        font-size: 0.78rem;
        font-weight: 950;
    }

    .dons-sidebar-mobile summary::-webkit-details-marker {
        display: none;
    }

    .dons-sidebar-mobile[open] summary {
        border-bottom: 1px solid #edf1f7;
    }

    .dons-sidebar-mobile[open] .dons-sidebar-summary-action {
        background: #eaf1ff;
        color: var(--dons-blue);
    }

    .dons-sidebar-mobile-content {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        left: 0;
        display: grid;
        gap: 0.35rem;
        max-height: min(66vh, 520px);
        overflow: auto;
        border: 1px solid var(--dons-line);
        border-radius: 8px;
        padding: 0.55rem;
        background: #fff;
        box-shadow: 0 20px 46px rgba(7, 29, 60, 0.2);
    }

    .dons-sidebar-mobile .dons-sidebar-section {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .dons-sidebar-mobile h2 {
        grid-column: 1 / -1;
        margin: 0.35rem 0 0;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .dons-sidebar-mobile a {
        display: block;
        border-radius: 6px;
        padding: 0.6rem 0.65rem;
        color: var(--dons-navy);
        text-decoration: none;
        font-weight: 800;
    }

    .dons-sidebar-mobile a.active,
    .dons-sidebar-mobile a:hover {
        background: #eaf1ff;
        color: var(--dons-blue);
    }

    .dons-content {
        border-top: 0;
        padding-top: 0.25rem;
    }

    .dons-content h1 {
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
        line-height: 1.12;
    }

    .dons-kicker {
        font-size: 0.78rem;
    }

    .dons-content .lead {
        margin: 0.45rem 0;
        font-size: 1rem;
    }

    .section-title-row,
    .inline-search {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-search input {
        min-width: 0;
        width: 100%;
    }

    .dons-sponsor-strip {
        display: flex;
        grid-template-columns: none;
        gap: 0.45rem;
        overflow-x: auto;
        padding: 0.35rem 0.5rem;
        scrollbar-width: none;
    }

    .dons-sponsor-strip::-webkit-scrollbar {
        display: none;
    }

    .dons-sponsor-strip img {
        flex: 0 0 auto;
        width: 82px;
        max-height: 34px;
    }

    .dons-schedule-item {
        grid-template-columns: 70px 82px 1fr;
    }

    .dons-imported-content .modGroupBigWrapper {
        grid-template-columns: 1fr;
    }

    .dons-imported-content {
        line-height: 1.45;
    }

    .dons-imported-content p {
        margin: 0.5rem 0 !important;
    }

    .dons-imported-content h2,
    .dons-imported-content h3,
    .dons-imported-content h4,
    .dons-imported-content h5,
    .dons-imported-content h6 {
        margin: 0.75rem 0 0.45rem !important;
    }

    .dons-imported-content blockquote {
        margin: 0.65rem 0 !important;
        padding: 0.7rem !important;
    }

    .dons-imported-content [style*="margin-left"] {
        margin-left: 0 !important;
    }

    .dons-imported-content table {
        min-width: 640px;
    }

    .dons-schedule-board,
    .dons-staff-board,
    .dons-news-board,
    .dons-impact-grid,
    .dons-giving-grid,
    .dons-awards-feature,
    .dons-champions-hero,
    .dons-join-card,
    .dons-fundraising-hero,
    .dons-club-hero,
    .dons-event-hero {
        grid-template-columns: 1fr;
    }

    .dons-schedule-board li {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .dons-fundraising-hero,
    .dons-club-hero,
    .dons-event-hero {
        gap: 0;
    }

    .dons-event-hero img,
    .dons-fundraising-hero img {
        min-height: 180px;
        order: -1;
    }

    .dons-fundraising-hero h2,
    .dons-event-hero h2 {
        font-size: 1.45rem;
    }

    .dons-giving-grid strong {
        font-size: 1.35rem;
    }

    .dons-awards-archive summary {
        align-items: start;
        display: grid;
    }

    .dons-step-list article {
        grid-template-columns: 38px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .dons-home-modern {
        padding: 0.75rem;
    }

    .dons-action-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
        overflow: visible;
        padding: 0.6rem 0.75rem;
    }

    .dons-action-row a {
        min-height: 56px;
    }

    .dons-action-row img {
        max-width: calc(100% - 10px);
        max-height: 44px;
        object-fit: contain;
    }

    .dons-section-heading {
        align-items: start;
        display: grid;
        gap: 0.45rem;
        padding: 0.9rem 0.95rem 0.75rem;
    }

    .dons-section-heading h2 {
        font-size: 1.3rem;
    }

    .dons-feature-schedule,
    .dons-home-lower {
        grid-template-columns: 1fr;
    }

    .dons-next-game {
        min-height: 220px;
    }

    .dons-next-game strong {
        max-width: 18ch;
        font-size: 1.65rem;
    }

    .dons-upcoming-list a {
        grid-template-columns: 72px 1fr;
    }

    .dons-upcoming-list em {
        grid-column: 2;
    }

    .dons-home-stats,
    .dons-news-card-grid,
    .dons-roster-toolbar,
    .dons-awards-hero,
    .dons-awards-grid {
        grid-template-columns: 1fr;
    }

    .dons-camp-promo {
        grid-template-columns: 88px 1fr;
    }

    .dons-alumni-logos {
        display: flex;
        gap: 0.55rem;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        scroll-snap-type: x proximity;
    }

    .dons-alumni-logos figure {
        flex: 0 0 112px;
        min-height: 102px;
        scroll-snap-align: start;
    }

    .dons-alumni-board section > div {
        grid-template-columns: 1fr;
    }

    .dons-roster-table-wrap {
        overflow: visible;
    }

    .dons-roster-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.7rem;
    }

    .dons-roster-table thead {
        display: none;
    }

    .dons-roster-table tbody,
    .dons-roster-table tr,
    .dons-roster-table td {
        display: block;
    }

    .dons-roster-table tr {
        padding: 0.7rem;
        border: 1px solid #dce5f2;
        border-radius: 8px;
        background: #fff;
    }

    .dons-roster-table td {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.18rem 0;
        border: 0;
        color: #334155;
    }

    .dons-roster-table td::before {
        color: #60708a;
        font-size: 0.72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .dons-roster-table td:nth-child(1)::before { content: "No"; }
    .dons-roster-table td:nth-child(2)::before { content: "Player"; }
    .dons-roster-table td:nth-child(3)::before { content: "Pos"; }
    .dons-roster-table td:nth-child(4)::before { content: "Ht"; }
    .dons-roster-table td:nth-child(5)::before { content: "Wt"; }
    .dons-roster-table td:nth-child(6)::before { content: "Yr"; }

    .dons-roster-table td:first-child,
    .dons-roster-table td:nth-child(2) {
        color: var(--dons-blue);
        font-size: 1rem;
        font-weight: 900;
    }
}

/* ---- Public event page + RSVP ---- */
.event-public .event-card { max-width:640px; }
.event-hero { width:100%; max-height:280px; object-fit:cover; border-radius:12px; margin-bottom:1rem; }
.event-when { font-size:1.05rem; color:#172033; margin:.4rem 0 .2rem; }
.event-countdown { color:#1f6feb; font-weight:700; }
.event-description { margin:1rem 0; color:#334155; line-height:1.6; }
.event-rsvp-choices { display:flex; gap:.6rem; margin:.6rem 0 1rem; flex-wrap:wrap; }
.event-choice { flex:1 1 120px; padding:.8rem .5rem; border:2px solid #d5dbe6; border-radius:12px; background:#fff;
  font:inherit; font-weight:700; cursor:pointer; color:#334155; }
.event-choice.active { border-color:#1f6feb; background:#eff6ff; color:#1f6feb; }
.event-outcome { display:block; margin:.8rem 0; }
.events-index-list { display:flex; flex-direction:column; gap:.7rem; margin-top:1rem; }
.events-index-item { display:grid; grid-template-columns:70px 1fr auto; gap:1rem; align-items:center; padding:.9rem 1rem;
  border:1px solid #e2e8f0; border-radius:12px; text-decoration:none; color:#172033; background:#fff; }
.events-index-item:hover { border-color:#1f6feb; }
.events-index-date { display:flex; flex-direction:column; text-align:center; color:#1f6feb; }
/* Honeypot for public forms: off-screen, never display:none (bots check for that). */
.hp-field { position:absolute !important; left:-9999px !important; top:auto; width:1px; height:1px; overflow:hidden; }
.acquisition-shell {
    min-height: 100dvh;
    background: #f4f7fb;
    color: #13233d;
    padding-bottom: 4rem;
}

.acquisition-brand {
    min-height: 68px;
    padding: 0 5vw;
    background: #fff;
    border-bottom: 1px solid #dbe4ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acquisition-brand > a:first-child {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #13233d;
    font-weight: 800;
    text-decoration: none;
}

.acquisition-brand > a:first-child span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #1769e0;
    color: #fff;
    font-size: .8rem;
}

.acquisition-card {
    width: min(760px, calc(100% - 2rem));
    margin: 3.25rem auto 0;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(18, 40, 72, .08);
}

.acquisition-card h1 { margin: .25rem 0 .75rem; font-size: clamp(2rem, 5vw, 3rem); }
.acquisition-lead { color: #5f6f84; font-size: 1.08rem; line-height: 1.6; }
.acquisition-form { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.acquisition-form label { display: grid; gap: .4rem; font-weight: 700; }
.acquisition-form input:not([type="checkbox"]), .acquisition-form select { width: 100%; min-height: 46px; }
.acquisition-form small { color: #66768b; font-weight: 400; line-height: 1.35; }
.acquisition-form .full-row { grid-column: 1 / -1; }
.acquisition-addons { display: grid; gap: .75rem; margin: 0; padding: 1rem; border: 1px solid #d7e2f0; border-radius: 14px; }
.acquisition-addons legend { padding: 0 .35rem; font-weight: 800; color: #14233d; }
.acquisition-addon-card { grid-template-columns: auto 1fr !important; align-items: start; padding: .9rem; border: 1px solid #d7e2f0; border-radius: 12px; background: #fff; cursor: pointer; }
.acquisition-addon-card:has(input:checked) { border-color: #2774e8; background: #f3f8ff; box-shadow: 0 0 0 2px rgba(39, 116, 232, .12); }
.acquisition-addon-card input { margin-top: .2rem; }
.acquisition-addon-card span { display: grid; gap: .25rem; }
.addon-billing-panel { display: grid; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #e2e9f2; }
.addon-offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.addon-offer-card { display: grid; align-content: start; gap: .55rem; padding: 1rem; border: 1px solid #d7e2f0; border-radius: 14px; background: #fff; }
.addon-offer-card h4, .addon-offer-card p { margin: 0; }
.addon-offer-card .btn { justify-self: start; margin-top: .35rem; }
.subdomain-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid #bdcadb; border-radius: 5px; overflow: hidden; }
.subdomain-input input { border: 0 !important; border-radius: 0; }
.subdomain-input b { padding: 0 .8rem; color: #53657d; }
.consent-row { grid-template-columns: auto 1fr; align-items: start; font-weight: 400 !important; }
.acquisition-summary { margin: 2rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e2e9f2; }
.acquisition-summary div { padding: 1rem 0; border-bottom: 1px solid #e2e9f2; }
.acquisition-summary dt { color: #66768b; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.acquisition-summary dd { margin: .25rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
.acquisition-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.qa-verification { margin-top: 1.5rem; padding: 1rem; border: 1px dashed #bc8b00; background: #fff9db; }

@media (max-width: 640px) {
    .acquisition-card { margin-top: 1.25rem; }
    .acquisition-form { grid-template-columns: 1fr; }
    .acquisition-form > * { grid-column: 1 !important; }
    .acquisition-summary { grid-template-columns: 1fr; }
    .acquisition-actions { display: grid; }
    .acquisition-actions .btn { width: 100%; text-align: center; }
}

.provisioning-timeline { list-style: none; margin: 1.25rem 0; padding: 0; border-top: 1px solid #dbe4ef; }
.provisioning-timeline li { padding: 1rem 0 1rem 1.75rem; border-bottom: 1px solid #dbe4ef; position: relative; }
.provisioning-timeline li::before { content: ""; position: absolute; left: .25rem; top: 1.2rem; width: .75rem; height: .75rem; border-radius: 50%; background: #a6b3c3; }
.provisioning-timeline li.completed::before { background: #18864b; }
.provisioning-timeline li.failed::before { background: #c52f2f; }
.provisioning-timeline li.running::before { background: #1769e0; }
.provisioning-timeline li > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marketing-legal { max-width: 880px; }
.marketing-legal h2 { margin-top: 2rem; }
.marketing-legal p { line-height: 1.7; }
.domain-instruction { display: block; max-width: 34rem; margin: .2rem 0; padding: .35rem .5rem; overflow-wrap: anywhere; white-space: normal; }
.plan-conversion-options { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dbe4ef; }
.plan-conversion-options .btn { margin: .25rem .5rem .25rem 0; }
.plan-purchase-form { display:inline; }
.subscription-account-shell {
  align-items: flex-start;
}

.subscription-account-content {
  width: min(960px, 100%);
  margin: 0 auto;
}

.subscription-account-list {
  display: grid;
  gap: 16px;
}

.subscription-account-card {
  padding: 20px;
}

.subscription-account-actions {
  margin-top: 16px;
}

/* Mobile management polish: keep primary actions comfortable to tap and prevent
   iOS from zooming compact admin form fields. Desktop and tablet layouts are unchanged. */
@media (max-width: 820px) {
  .admin-icon-button,
  .drawer-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .admin-action-menu-list a,
  .admin-action-menu-list button {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .admin-content {
    padding: .85rem;
  }

  .launch-readiness .section-title-row {
    flex-direction: column;
  }

  .launch-readiness .admin-actions {
    width: 100%;
  }

  .admin-topbar {
    padding: .65rem .75rem;
    gap: .3rem;
  }

  .admin-crumbs a { display: none; }
  .admin-crumbs span:before { display: none; margin-right: 0; }
  .admin-topbar-utilities { overflow: visible; }
  .support-text-launcher { min-height: 36px; padding: .25rem .45rem; font-size: .75rem; }
  .admin-top-actions { gap: .35rem; padding-left: .35rem; }

  .admin-top-actions .muted {
    display: none;
  }

  .support-activity-link {
    width: 40px;
    padding: 0;
  }

  .admin-heading h1 {
    font-size: 1.75rem;
    line-height: 1.08;
  }

  .admin-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .admin-content select,
  .admin-content textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .admin-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .admin-content select {
    min-height: 42px;
  }

  table.grid tr {
    padding: .85rem;
  }
}

@media (max-width: 340px) {
  .analytics-page .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .editor-body .ed-settings,
  .editor-body .layout-studio-settings {
    max-height: 24dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Fundraising meter presentation blocks. Public output remains aggregate-only and readable without motion. */
.fundraising-meter-race { display: grid; gap: .7rem; margin: 1rem 0; }
.fundraising-meter-lane { display: grid; gap: .25rem; }
.fundraising-meter-lane-label { font-weight: 600; font-size: .9rem; }
.fundraising-meter-lane-track { position: relative; height: 1.5rem; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }
.fundraising-meter-lane-track::before { content: ""; display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand-color, #2f6fed), transparent); opacity: .35; }
.fundraising-meter-lane-runner { position: absolute; top: 50%; z-index:1; display:grid; place-items:center; min-width:1.9rem; min-height:1.9rem; transform: translate(-50%, -50%); color: var(--team-color,var(--brand-color, #2f6fed)); font-size: 1rem; }
.fundraising-meter-lane-runner img { display: block; width: 2rem; height: 2rem; object-fit: contain; border-radius: 50%; }
.fundraising-meter-team-marker { display:grid; place-items:center; width:1.75rem; height:1.75rem; border:2px solid #fff; border-radius:50%; background:var(--team-color,var(--brand-color,#2f6fed)); box-shadow:0 2px 6px rgba(15,23,42,.25); color:#fff; font-size:.75rem; font-weight:900; }
.fundraising-meter-race-status { margin: .25rem 0 0; font-weight: 650; color: #1d4ed8; }
.fundraising-meter-thermometer { position: relative; height: 1.15rem; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.fundraising-meter-thermometer .bar { background: linear-gradient(90deg, #2f6fed, #1d4ed8); }
.fundraising-meter-thermometer-marker { position: absolute; top: 50%; width: .9rem; height: .9rem; border: 2px solid white; border-radius: 50%; background: #1d4ed8; box-shadow: 0 1px 4px rgba(15,23,42,.3); transform: translate(-50%, -50%); }
.fundraising-meter-reveal { display:block; margin:1rem 0; max-width:28rem; }
.fundraising-meter-reveal-artwork { position:relative; overflow:hidden; aspect-ratio:4/3; border:1px solid color-mix(in srgb,currentColor 18%,transparent); border-radius:12px; background:#e2e8f0; }
.fundraising-meter-reveal-artwork > img { display:block; width:100%; height:100%; object-fit:cover; }
.fundraising-meter-reveal-grid { position:absolute; inset:0; display:grid; grid-template-columns:repeat(var(--reveal-columns,3),minmax(0,1fr)); gap:2px; }
.fundraising-meter-tile { display:grid; place-items:center; min-width:0; min-height:0; overflow:hidden; border:0; background:color-mix(in srgb,var(--brand-color,#2f6fed) 88%,#172033); color:#fff; font-size:.7rem; font-weight:800; opacity:1; transition:opacity .35s ease,background .35s ease; }
.fundraising-meter-tile.is-revealed { opacity:0; }
.fundraising-meter-reveal-grid.is-placeholder { position:static; height:100%; }
.fundraising-meter-reveal-grid.is-placeholder .fundraising-meter-tile { opacity:1; background:#dbe7f8; color:#475569; }
.fundraising-meter-reveal-grid.is-placeholder .fundraising-meter-tile.is-revealed { background:var(--brand-color,#2f6fed); color:#fff; }
.fundraising-meter-reveal-text { margin:.5rem 0 0; font-size:.82rem; color:color-mix(in srgb,currentColor 72%,transparent); }
.fundraising-meter-accessible-progress { margin: .35rem 0; font-size: .82rem; color: color-mix(in srgb, currentColor 72%, transparent); }

/* Fundraising meter management studio */
.fundraising-meter-admin { max-width:1180px; }
.meter-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin:0 0 1rem; }
.meter-overview > div { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:58px; padding:.75rem 1rem; border:1px solid #dbe3ef; border-radius:10px; background:#fff; box-shadow:0 5px 16px rgba(15,23,42,.035); }
.meter-overview span { color:#64748b; font-size:.8rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.meter-overview strong { color:#172033; font-size:1.05rem; }
.meter-list { display:grid; gap:.75rem; }
.meter-list-card { display:grid; grid-template-columns:minmax(240px,1.5fr) minmax(250px,1fr) auto; align-items:center; gap:1rem; padding:1rem 1.1rem; border:1px solid #dbe3ef; border-radius:12px; background:#fff; box-shadow:0 7px 20px rgba(15,23,42,.04); }
.meter-list-title { display:flex; align-items:center; flex-wrap:wrap; gap:.55rem; }
.meter-list-title h2 { margin:0; font-size:1.08rem; }
.meter-list-main p { margin:.35rem 0 0; font-size:.86rem; }
.meter-list-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin:0; }
.meter-list-stats div { min-width:0; }
.meter-list-stats dt { color:#64748b; font-size:.7rem; font-weight:800; text-transform:uppercase; }
.meter-list-stats dd { overflow:hidden; margin:.2rem 0 0; color:#172033; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.meter-list-actions { display:flex; align-items:center; gap:.4rem; }
.meter-empty { min-height:300px; display:grid; place-items:center; align-content:center; text-align:center; }
.meter-empty p { max-width:560px; }
.meter-empty-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:50%; background:#eaf2ff; color:#1f6feb; font-size:1.7rem; font-weight:900; }
.meter-drawer-tabs { position:sticky; top:-1rem; z-index:3; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; margin:-1rem -1.1rem 1.1rem; padding:0 1.1rem; border-bottom:1px solid #dbe3ef; background:#fff; }
.meter-drawer-tabs button { display:flex; align-items:center; justify-content:center; gap:.35rem; min-height:56px; padding:.6rem .35rem; border:0; border-bottom:3px solid transparent; background:transparent; color:#64748b; font:inherit; font-size:.78rem; font-weight:800; cursor:pointer; }
.meter-drawer-tabs button span { display:grid; place-items:center; width:20px; height:20px; border:1px solid #cbd5e1; border-radius:50%; font-size:.68rem; }
.meter-drawer-tabs button:hover:not(:disabled) { color:#1f6feb; background:#f8fbff; }
.meter-drawer-tabs button.active { border-bottom-color:#1f6feb; color:#174ea6; }
.meter-drawer-tabs button.active span { border-color:#1f6feb; background:#1f6feb; color:#fff; }
.meter-drawer-tabs button:disabled { opacity:.45; cursor:not-allowed; }
.meter-tab-panel { padding-bottom:4.25rem; }
.meter-tab-heading { display:flex; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.meter-tab-heading h3 { margin:0; }
.meter-tab-heading p { margin:.3rem 0 0; max-width:690px; }
.meter-toggle-list { display:grid; gap:.55rem; margin:1rem 0; }
.meter-toggle-list .check, .meter-tab-panel > .check, .meter-display-studio .check { display:flex; align-items:flex-start; gap:.55rem; padding:.75rem; border:1px solid #dbe3ef; border-radius:9px; background:#fbfdff; }
.meter-toggle-list .check span, .meter-tab-panel > .check span, .meter-display-studio .check span { display:grid; gap:.15rem; }
.meter-toggle-list small, .meter-tab-panel > .check small, .meter-display-studio .check small { color:#64748b; font-weight:500; }
.drawer-sticky-actions { position:sticky; bottom:-1.35rem; z-index:2; display:flex; gap:.55rem; margin:1.25rem -1.1rem -1.35rem; padding:.8rem 1.1rem; border-top:1px solid #dbe3ef; background:rgba(255,255,255,.96); box-shadow:0 -8px 22px rgba(15,23,42,.05); }
.meter-subcard { margin:.75rem 0; padding:1rem; border:1px solid #dbe3ef; border-radius:10px; background:#fbfdff; }
.meter-subcard h4 { margin:0 0 .4rem; }
.meter-item-list { display:grid; gap:.55rem; }
.meter-item-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.7rem; padding:.75rem; border:1px solid #dbe3ef; border-radius:9px; background:#fff; }
.meter-item-card > div:first-child { grid-column:span 2; }
.meter-item-card small { display:block; margin-top:.2rem; color:#64748b; }
.meter-team-swatch { width:14px; height:36px; border-radius:4px; }
.meter-inline-empty { padding:1rem; border:1px dashed #b9c7d9; border-radius:9px; background:#f8fafc; color:#64748b; }
.meter-inline-editor { margin:-.3rem 0 .6rem; padding:1rem; border:1px solid #93b9f4; border-radius:9px; background:#f4f8ff; }
.meter-bulk-create summary { cursor:pointer; color:#174ea6; font-weight:800; }
.meter-bulk-create label { display:grid; gap:.35rem; margin:.75rem 0; font-weight:750; }
.meter-bulk-create textarea { width:100%; box-sizing:border-box; }
.meter-style-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; }
.meter-style-choice { display:grid; justify-items:start; align-content:start; min-height:126px; padding:.8rem; border:1px solid #cbd5e1; border-radius:10px; background:#fff; color:#334155; text-align:left; cursor:pointer; font:inherit; }
.meter-style-choice:hover { border-color:#76a9ef; background:#f8fbff; }
.meter-style-choice.selected { border:2px solid #1f6feb; padding:calc(.8rem - 1px); background:#eff6ff; box-shadow:0 0 0 3px rgba(31,111,235,.08); }
.meter-style-choice strong { margin:.4rem 0 .15rem; }
.meter-style-choice small { color:#64748b; line-height:1.3; }
.meter-style-icon { color:#1f6feb; font-size:.7rem; font-weight:950; letter-spacing:.06em; }
.meter-display-options { margin-top:1rem; }
.meter-display-studio { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr); align-items:start; gap:1rem; margin-top:1rem; }
.meter-style-guidance { display:grid; gap:.3rem; padding:.9rem 1rem; border:1px solid #cfe0f7; border-radius:10px; background:#f6f9ff; }
.meter-style-guidance p { margin:0; color:#475569; line-height:1.45; }
.meter-style-guidance small { font-weight:750; }
.meter-style-guidance small.ready { color:#166534; }
.meter-style-guidance small.needs-setup { color:#9a3412; }
.meter-display-options label small { display:block; margin-top:.3rem; color:#64748b; font-weight:500; line-height:1.4; }
.meter-config-link { padding:.25rem 0; }
.meter-live-preview { position:sticky; top:.5rem; min-width:0; }
.meter-live-preview .meter-preview-card { margin:0 0 .5rem; }
.meter-live-preview > small { display:block; line-height:1.4; }
.meter-embed-box { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem; border:1px solid #b8c8dc; border-radius:9px; background:#f8fafc; }
.meter-embed-box code { overflow:auto; color:#172033; font-size:1rem; font-weight:700; }
.meter-notice { display:grid; gap:.2rem; margin:1rem 0; padding:.8rem 1rem; border-left:4px solid #f59e0b; border-radius:5px; background:#fffbeb; color:#713f12; }
.meter-preview-card { margin:1rem 0; padding:1.25rem; border:1px solid #dbe3ef; border-radius:12px; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.05); }
.meter-preview-card h4 { margin:.2rem 0 1rem; font-size:1.25rem; }
.meter-loading { min-height:180px; display:grid; place-items:center; color:#64748b; }
.wf-fundraising-designation { display:grid; gap:.3rem; margin:.75rem 0; }
.wf-fundraising-designation select { width:100%; margin-top:.3rem; }
.donation-designation-field { display:grid; gap:.35rem; max-width:34rem; margin:.75rem 0; }
.donation-designation-field label { font-weight:750; }
.donation-designation-field select { width:100%; min-height:42px; padding:.55rem .65rem; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#172033; font:inherit; }
.donation-designation-field small { line-height:1.4; }
.fundraising-meter-highlights { display:grid; gap:.3rem; margin-top:.75rem; }
.fundraising-meter-progress { width:100%; height:1rem; overflow:hidden; border-radius:999px; background:#e2e8f0; }
.fundraising-meter-progress .bar { display:block; height:100%; min-width:0; border-radius:inherit; background:var(--brand-color,#1f6feb); transition:width .4s ease; }
.fundraising-meter-highlights p { margin:0; padding:.45rem .65rem; border-left:3px solid var(--brand-color,#1f6feb); border-radius:4px; background:color-mix(in srgb,var(--brand-color,#1f6feb) 7%,white); font-size:.88rem; }
.fundraising-meter-mascot-fill { position:relative; display:grid; place-items:center; width:min(260px,75vw); aspect-ratio:1; margin:1rem auto; overflow:hidden; border:1px solid color-mix(in srgb,currentColor 20%,transparent); border-radius:18px; background:linear-gradient(145deg,#f8fafc,#e8eef7); }
.fundraising-meter-mascot-layer { position:absolute; inset:8%; background:#cbd5e1; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-position:center; mask-position:center; -webkit-mask-size:contain; mask-size:contain; }
.fundraising-meter-mascot-layer.fill { background:var(--brand-color,#1f6feb); clip-path:inset(calc(100% - var(--meter-fill)) 0 0); transition:clip-path .45s ease; }
.fundraising-meter-mascot-fallback { display:grid; place-items:center; width:70%; height:70%; border-radius:48% 48% 44% 44%; background:linear-gradient(to top,var(--brand-color,#1f6feb) var(--meter-fill),#cbd5e1 var(--meter-fill)); color:#fff; font-size:5rem; font-weight:950; line-height:1; }
.fundraising-meter-journey { position:relative; display:grid; grid-template-columns:repeat(auto-fit,minmax(100px,1fr)); gap:.65rem; margin:1.3rem 0 .75rem; padding-top:1.1rem; }
.fundraising-meter-journey-line { position:absolute; inset:.35rem 0 auto; height:7px; overflow:hidden; border-radius:999px; background:#e2e8f0; }
.fundraising-meter-journey-line span { display:block; height:100%; border-radius:inherit; background:var(--brand-color,#1f6feb); }
.fundraising-meter-journey-stop { position:relative; display:grid; justify-items:center; gap:.2rem; padding-top:.55rem; text-align:center; color:#64748b; }
.fundraising-meter-journey-stop > span { position:relative; z-index:1; display:grid; place-items:center; width:22px; height:22px; margin-top:-1.28rem; border:2px solid #cbd5e1; border-radius:50%; background:#fff; color:transparent; font-size:0; font-weight:900; }
.fundraising-meter-journey-stop > span::after { content:""; width:6px; height:6px; border-radius:50%; background:#94a3b8; }
.fundraising-meter-journey-stop.achieved { color:#174ea6; }
.fundraising-meter-journey-stop.achieved > span { border-color:#1f6feb; background:#1f6feb; color:#fff; }
.fundraising-meter-journey-stop.achieved > span::after { background:#fff; }
.fundraising-meter-journey-stop small { color:inherit; }
.fundraising-meter-brick-wall { display:grid; grid-template-columns:repeat(10,minmax(12px,1fr)); gap:4px; margin:1rem 0; }
.fundraising-meter-brick-wall > span { aspect-ratio:2/1; border-radius:2px; background:#e2e8f0; }
.fundraising-meter-brick-wall > span.filled { background:var(--brand-color,#1f6feb); box-shadow:inset 0 -2px 0 rgba(15,23,42,.16); }
.fundraising-meter-brick-wall p, .fundraising-meter-bleachers p { grid-column:1/-1; margin:.4rem 0 0; color:color-mix(in srgb,currentColor 72%,transparent); font-size:.84rem; }
.fundraising-meter-bleachers { display:grid; grid-template-columns:repeat(10,minmax(12px,1fr)); gap:5px; margin:1rem 0; padding:.9rem; border-radius:12px; background:linear-gradient(#f8fafc,#e2e8f0); }
.fundraising-meter-bleachers > span { position:relative; display:block; height:20px; color:#cbd5e1; font-size:0; text-align:center; }
.fundraising-meter-bleachers > span::before { content:""; position:absolute; top:1px; left:50%; width:7px; height:7px; border-radius:50%; background:currentColor; transform:translateX(-50%); }
.fundraising-meter-bleachers > span::after { content:""; position:absolute; bottom:0; left:50%; width:13px; height:10px; border-radius:7px 7px 3px 3px; background:currentColor; transform:translateX(-50%); }
.fundraising-meter-bleachers > span.filled { color:var(--brand-color,#1f6feb); }
.fundraising-meter-donut { --meter-percent:0; display:grid; place-items:center; align-content:center; width:min(220px,70vw); aspect-ratio:1; margin:1rem auto; border-radius:50%; background:radial-gradient(circle at center,#fff 0 55%,transparent 56%),conic-gradient(var(--brand-color,#1f6feb) calc(var(--meter-percent) * 1%),#e2e8f0 0); box-shadow:0 8px 22px rgba(15,23,42,.08); }
.fundraising-meter-donut strong { color:#172033; font-size:2.4rem; line-height:1; }
.fundraising-meter-donut span { margin-top:.25rem; color:#64748b; font-size:.82rem; font-weight:700; text-transform:uppercase; }
@media (prefers-reduced-motion:reduce) { .fundraising-meter-mascot-layer.fill,.fundraising-meter-journey-line span,.fundraising-meter-tile { transition:none; } }

@media (max-width: 800px) {
  .meter-list-card { grid-template-columns:1fr; }
  .meter-list-actions { justify-content:flex-end; }
  .meter-drawer-tabs { grid-template-columns:repeat(5,auto); justify-content:start; overflow-x:auto; }
  .meter-drawer-tabs button { min-width:112px; }
  .meter-style-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .meter-display-studio { grid-template-columns:1fr; }
  .meter-live-preview { position:static; }
}
@media (max-width: 520px) {
  .meter-overview { grid-template-columns:1fr; gap:.4rem; }
  .meter-list-stats { grid-template-columns:1fr 1fr; gap:.5rem; }
  .meter-list-stats div:first-child { grid-column:1 / -1; }
  .meter-list-card { padding:.85rem; }
  .meter-list-actions .btn { flex:1; }
  .meter-style-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
  .meter-style-choice { min-height:108px; padding:.65rem; }
  .meter-style-choice.selected { padding:calc(.65rem - 1px); }
  .meter-style-choice strong { font-size:.9rem; }
  .meter-item-card { grid-template-columns:auto minmax(0,1fr); }
  .meter-item-card .row-actions { grid-column:1 / -1; justify-content:flex-end; }
  .meter-embed-box { align-items:stretch; flex-direction:column; }
}
@media (prefers-reduced-motion: no-preference) {
  .fundraising-meter-lane-runner { transition: left .5s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .fundraising-meter-lane-runner { transition: none; }
}

/* Video Studio: keep each workflow step readable and bounded at every viewport. */
.studio-panel { max-width: 1180px; }
.studio-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-bottom: 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
}
.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.studio-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}
.studio-card h2 { margin: 0; font-size: 1.35rem; }
.studio-card label { display: grid; gap: .4rem; min-width: 0; font-weight: 750; color: #334155; }
.studio-card input:not([type="checkbox"]),
.studio-card select,
.studio-card textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.studio-card textarea { resize: vertical; }
.studio-card .check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-weight: 500;
  line-height: 1.45;
}
.studio-card .check input { flex: 0 0 auto; width: auto; margin-top: .2rem; }
.studio-card .btn { justify-self: start; }
.studio-result { margin-top: 1.25rem; }

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .studio-card { padding: 1rem; }
  .studio-status { align-items: flex-start; }
  .studio-card .btn { width: 100%; }
}

@media (max-width: 640px) {
  .admin-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 104px;
  }
  .admin-topbar-left { grid-column: 1; grid-row: 1; }
  .admin-top-actions { grid-column: 2; grid-row: 1; }
  .admin-topbar-utilities { grid-column: 1 / -1; grid-row: 2; width: 100%; padding-left: 0; }
  .ai-assist-topbar { width: 100%; height: 40px; }
}

/* ---- Video Studio (vs-*) ------------------------------------------------ */
.studio-status .badge { display:inline-flex; align-items:center; padding:.2rem .6rem; border-radius:999px; font-size:.75rem; font-weight:750; }
.studio-status .badge.good { background:#dcfce7; color:#166534; }
.studio-status .badge.warn { background:#fef3c7; color:#92400e; }
.vs-shell { display:grid; grid-template-columns: 300px minmax(0,1fr); gap:1.25rem; align-items:start; }
.vs-rail { display:grid; gap:1rem; min-width:0; }
.vs-rail-section { background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding: .9rem; display:grid; gap:.55rem; }
.vs-rail-heading { display:flex; align-items:center; justify-content:space-between; }
.vs-rail-heading h2 { margin:0; font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; color:#475569; }
.vs-empty { margin:.2rem 0; font-size:.85rem; }
.vs-thumb { width:44px; height:44px; border-radius:10px; object-fit:cover; background:#e2e8f0; flex:0 0 auto; }
.vs-char-card { display:flex; align-items:center; gap:.35rem; border:1px solid #e2e8f0; border-radius:10px; background:#fff; padding:.35rem .45rem; }
.vs-char-card.selected { border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,.15); }
.vs-char-select { display:flex; align-items:center; gap:.55rem; flex:1; min-width:0; background:none; border:0; padding:.1rem; cursor:pointer; text-align:left; font:inherit; }
.vs-char-meta { display:grid; gap:.1rem; min-width:0; }
.vs-char-meta strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vs-char-actions { display:flex; gap:.15rem; }
.iconbtn { background:none; border:0; cursor:pointer; font-size:.85rem; padding:.25rem; border-radius:6px; color:#64748b; }
.iconbtn:hover { background:#e2e8f0; color:#0f172a; }
.vs-rename-row { display:flex; gap:.35rem; align-items:center; }
.vs-rename-row input { flex:1; min-width:0; }
.btn.small { padding:.3rem .6rem; font-size:.8rem; }
.vs-draft-row { display:flex; align-items:center; gap:.55rem; width:100%; border:1px solid #e2e8f0; border-radius:10px; background:#fff; padding:.4rem .5rem; cursor:pointer; text-align:left; font:inherit; }
.vs-draft-row.selected { border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,.15); }
.vs-status-chip { justify-self:start; font-size:.7rem; font-weight:750; padding:.1rem .5rem; border-radius:999px; }
.vs-status-chip.ready { background:#dbeafe; color:#1d4ed8; }
.vs-status-chip.imported { background:#dcfce7; color:#166534; }
.vs-status-chip.rendering { background:#fef3c7; color:#92400e; }
.vs-status-chip.failed { background:#fee2e2; color:#b91c1c; }
.vs-main { min-width:0; display:grid; gap:1rem; }
.vs-steps { display:flex; flex-wrap:wrap; gap:.35rem; list-style:none; margin:0; padding:0; }
.vs-step { display:inline-flex; align-items:center; gap:.45rem; border:1px solid #e2e8f0; background:#fff; border-radius:999px; padding:.35rem .8rem .35rem .4rem; cursor:pointer; font:inherit; font-weight:700; color:#475569; }
.vs-step:disabled { opacity:.45; cursor:not-allowed; }
.vs-step.current { border-color:#2563eb; color:#1d4ed8; background:#eff6ff; }
.vs-step.done:not(.current) { color:#166534; }
.vs-step-dot { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#e2e8f0; font-size:.78rem; }
.vs-step.current .vs-step-dot { background:#2563eb; color:#fff; }
.vs-step.done:not(.current) .vs-step-dot { background:#dcfce7; color:#166534; }
.vs-step-panel { display:grid; gap:.8rem; background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:1.1rem 1.2rem; }
.vs-step-panel h2 { margin:0; font-size:1.25rem; }
.vs-step-panel h3 { margin:.2rem 0 0; font-size:.95rem; }
.vs-form-grid { display:grid; gap:.7rem; }
.vs-form-grid label { display:grid; gap:.35rem; font-weight:750; color:#334155; }
.vs-form-grid input, .vs-form-grid textarea { width:100%; min-width:0; box-sizing:border-box; }
.vs-format-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; max-width:680px; }
.vs-format-card { display:flex; align-items:center; gap:.8rem; min-width:0; border:2px solid #e2e8f0; border-radius:12px; background:#fff; padding:.75rem .85rem; cursor:pointer; color:#334155; text-align:left; font:inherit; }
.vs-format-card > span:last-child { display:grid; gap:.15rem; min-width:0; }
.vs-format-card strong { font-size:.95rem; }
.vs-format-card small { color:#64748b; line-height:1.3; }
.vs-format-card.selected { border-color:#2563eb; background:#eff6ff; box-shadow:0 0 0 2px rgba(37,99,235,.1); }
.vs-format-frame { display:block; flex:0 0 auto; border:2px solid currentColor; border-radius:4px; color:#2563eb; background:linear-gradient(145deg,#dbeafe,#fff); }
.vs-format-frame.landscape { width:42px; height:24px; }
.vs-format-frame.portrait { width:24px; height:42px; }
.vs-format-summary { display:flex; align-items:center; gap:.55rem; }
.vs-format-summary .vs-format-frame.landscape { width:28px; height:16px; }
.vs-format-summary .vs-format-frame.portrait { width:16px; height:28px; }
.vs-style-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:.7rem; }
.vs-style-card { display:grid; gap:.4rem; justify-items:center; border:2px solid #e2e8f0; border-radius:12px; background:#fff; padding:.7rem; cursor:pointer; font:inherit; font-weight:700; color:#334155; }
.vs-style-card img { width:84px; height:84px; border-radius:10px; }
.vs-style-card.selected { border-color:#2563eb; background:#eff6ff; }
.vs-look-section { display:grid; gap:.6rem; }
.vs-look-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:.7rem; }
.vs-look-card { display:grid; gap:.4rem; justify-items:center; border:2px solid #e2e8f0; border-radius:12px; background:#fff; padding:.7rem; cursor:pointer; font:inherit; font-size:.8rem; font-weight:700; color:#334155; }
.vs-look-card img { width:110px; height:110px; border-radius:10px; }
.vs-look-card.selected { border-color:#16a34a; background:#f0fdf4; }
.vs-template-row { display:flex; flex-wrap:wrap; gap:.45rem; }
.vs-chip { border:1px solid #cbd5e1; background:#fff; border-radius:999px; padding:.3rem .8rem; cursor:pointer; font:inherit; font-size:.82rem; font-weight:700; color:#334155; }
.vs-chip.selected { border-color:#2563eb; background:#eff6ff; color:#1d4ed8; }
.vs-voice-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:.6rem; }
.vs-voice-card { display:flex; align-items:center; gap:.6rem; border:2px solid #e2e8f0; border-radius:12px; background:#fff; padding:.55rem .7rem; }
.vs-voice-card.selected { border-color:#2563eb; background:#eff6ff; }
.vs-voice-play { flex:0 0 auto; width:38px; height:38px; border-radius:50%; border:1px solid #bfdbfe; background:#eff6ff; color:#1d4ed8; cursor:pointer; font-size:.9rem; }
.vs-voice-play:hover:not(:disabled) { background:#dbeafe; }
.vs-voice-play:disabled { opacity:.4; cursor:not-allowed; }
.vs-voice-play.inline { width:26px; height:26px; font-size:.7rem; vertical-align:middle; margin-left:.25rem; }
.vs-voice-pick { flex:1; min-width:0; display:grid; gap:.1rem; background:none; border:0; padding:0; cursor:pointer; text-align:left; font:inherit; }
.vs-review-card { display:flex; gap:1rem; align-items:flex-start; border:1px solid #e2e8f0; border-radius:12px; background:#f8fafc; padding:.9rem 1rem; }
.vs-review-thumb { width:88px; height:88px; border-radius:12px; flex:0 0 auto; }
.vs-review-meta { display:grid; gap:.3rem; min-width:0; }
.vs-review-meta p { margin:0; }
.vs-script-excerpt { margin:.2rem 0; padding:.55rem .8rem; border-left:3px solid #cbd5e1; background:#f8fafc; border-radius:0 8px 8px 0; color:#334155; font-size:.9rem; overflow-wrap:anywhere; }
.vs-actions { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
.vs-player-wrap { max-width:720px; }
.vs-player-wrap.portrait { max-width:360px; }
.vs-player-wrap video { width:100%; border-radius:12px; background:#0f172a; aspect-ratio:16/9; object-fit:contain; }
.vs-player-wrap.portrait video { aspect-ratio:9/16; }
.vs-render-wait { position:relative; max-width:480px; }
.vs-render-wait.portrait { max-width:270px; }
.vs-render-wait img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:12px; display:block; }
.vs-render-wait.portrait img { aspect-ratio:9/16; }
.vs-render-pulse { position:absolute; inset:0; border-radius:12px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); background-size:200% 100%; animation:vs-pulse 1.6s linear infinite; }
@keyframes vs-pulse { from { background-position:200% 0; } to { background-position:-200% 0; } }
.vs-skeleton { display:grid; gap:1rem; }
.vs-skeleton-bar, .vs-skeleton-grid div { border-radius:10px; background:linear-gradient(90deg,#eef2f7,#e2e8f0,#eef2f7); background-size:200% 100%; animation:vs-pulse 1.4s linear infinite; }
.vs-skeleton-bar { height:38px; }
.vs-skeleton-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.vs-skeleton-grid div { height:150px; }
@media (prefers-reduced-motion: reduce) {
  .vs-render-pulse, .vs-skeleton-bar, .vs-skeleton-grid div { animation:none; }
}
@media (max-width: 980px) {
  .vs-shell { grid-template-columns:1fr; }
  .vs-rail { grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .vs-step-panel { padding:.85rem; }
  .vs-step-label { font-size:.78rem; }
  .vs-format-grid { grid-template-columns:1fr; }
  .vs-review-card { flex-direction:column; }
  .vs-actions .btn { width:100%; }
  .vs-player-wrap, .vs-render-wait { max-width:100%; }
}
.mfa-steps { margin: 1rem 0; padding-left: 1.3rem; color: var(--muted, #52627a); }
.mfa-steps li + li { margin-top: .45rem; }
.mfa-help { border:1px solid #cddbf0; border-radius:10px; background:#f7faff; }
.mfa-help summary { display:flex; align-items:center; gap:.6rem; min-height:44px; padding:.7rem .8rem; color:#164a9a; font-weight:750; cursor:pointer; list-style:none; }
.mfa-help summary::-webkit-details-marker { display:none; }
.mfa-help summary:focus-visible { outline:3px solid rgba(37,99,235,.28); outline-offset:2px; border-radius:9px; }
.mfa-help-icon { display:inline-grid; place-items:center; flex:0 0 1.55rem; width:1.55rem; height:1.55rem; border:2px solid currentColor; border-radius:50%; font-size:.92rem; line-height:1; }
.mfa-help-content { padding:0 .9rem .9rem 2.95rem; color:var(--muted, #52627a); font-size:.94rem; line-height:1.5; }
.mfa-help-content p { margin:.55rem 0 0; }
.mfa-help-content ol { margin:.65rem 0; padding-left:1.2rem; }
.mfa-help-content li + li { margin-top:.4rem; }
.mfa-help-warning { color:#334155; }
.mfa-qr { display: block; max-width: 100%; height: auto; margin: 1rem auto; border-radius: 12px; }
.mfa-shared-key { display: block; padding: .8rem; text-align: center; overflow-wrap: anywhere; background: #eef5ff; border-radius: 8px; }
.recovery-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 1.25rem; }
.recovery-code-grid code { padding: .65rem; text-align: center; background: #eef5ff; border-radius: 8px; }
@media (max-width: 520px) {
  .recovery-code-grid { grid-template-columns: 1fr; }
  .mfa-help-content { padding-left:.9rem; }
}
