:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff;background:#0d0910;--bg:#0d0910;--surface:#17101a;--surface-raised:#211527;--line:#46314c;--muted:#c9bdca;--accent:#ef35d9;--accent-hover:#ff66e6;--focus:#ffb4f3;--success:#9aebbb}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(70rem 44rem at 100% -12%,#57215f66,transparent 58%),var(--bg)}button,input,select{font:inherit}button{min-height:44px;cursor:pointer;border:0;border-radius:12px;background:var(--accent);color:#140b15;padding:11px 16px;font-weight:750}button:hover:not(:disabled){background:var(--accent-hover)}button:disabled{opacity:.52;cursor:not-allowed}input,select{display:block;width:100%;min-height:48px;margin-top:8px;padding:12px 13px;border:1px solid #63456b;border-radius:12px;color:#fff;background:#18101b}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}[hidden]{display:none!important}.site-header{display:flex;align-items:center;gap:10px;min-height:76px;padding:14px 18px;border-bottom:1px solid var(--line);background:rgba(28,15,31,.94)}.site-header a{margin-right:auto;color:#fff;text-decoration:none;font-size:24px;font-weight:850;letter-spacing:-1px}.site-header a span{display:block;font-size:11px;font-weight:550;letter-spacing:0;color:var(--muted)}.badge{padding:7px 8px;border:1px solid #805684;border-radius:8px;color:#f7c8ef;background:#392d3b;font-size:10px;letter-spacing:.1em}.site-header button{min-height:42px;padding:9px 13px}main{width:min(1120px,100%);margin:0 auto;padding:28px 18px 72px}.surface,.event-card,.workspace-callout{border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#1b101f,#110d13)}.login{width:min(460px,100%);margin:32px auto;padding:28px}.login form{display:grid;gap:4px}.login form button{width:100%;margin-top:10px}h1,h2,h3,p{margin-top:0}h1{margin-bottom:8px;font-size:clamp(32px,9vw,54px);letter-spacing:-.045em;line-height:1.02}h2{margin-bottom:6px;font-size:clamp(24px,6vw,34px);letter-spacing:-.035em}h3{font-size:20px;letter-spacing:-.02em}.eyebrow{margin-bottom:9px;color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.16em}.muted{color:var(--muted);font-size:14px;line-height:1.55}#status{min-height:22px;margin:10px 0;text-align:center;color:#f4c8ed;white-space:pre-line}.chapter-heading,.workspace-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.chapter-heading>.button-secondary{flex:0 0 auto}.button-secondary,.back-button{border:1px solid #805684;background:transparent;color:#fff}.back-button{margin-bottom:20px}.metrics{display:grid;gap:10px;margin:26px 0 40px}.metric{min-height:118px;padding:20px;border:1px solid var(--line);border-radius:16px;background:rgba(26,15,29,.7)}.metric span{display:block;color:var(--muted);font-size:12px}.metric strong{display:block;margin-top:14px;font-size:31px;letter-spacing:-.05em}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.section-heading .eyebrow{margin-bottom:3px}.event-list{display:grid;gap:12px}.event-card{display:grid;gap:14px;padding:18px}.event-card h3{margin-bottom:6px}.event-card p{margin-bottom:0}.event-card .tag{justify-self:start}.tag{display:inline-flex;align-items:center;width:max-content;min-height:28px;padding:5px 10px;border-radius:999px;background:#392d3b;color:#eee0f0;font-size:12px;font-weight:700;white-space:nowrap}.event-history{margin-top:6px}.event-history summary{cursor:pointer;padding:16px 0;color:#e8dce9;font-weight:700}.event-history[open] summary{margin-bottom:8px}.workspace-heading{padding-bottom:20px;border-bottom:1px solid var(--line)}.workspace-heading h1{margin-bottom:5px}.workspace-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0 22px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#150e17}.workspace-nav button{min-height:40px;padding:8px 10px;border-radius:9px;background:transparent;color:var(--muted);font-size:13px}.workspace-nav button[aria-current="page"]{background:#412240;color:#fff}.workspace-callout{padding:24px}.workspace-callout h2{font-size:26px}.workspace-callout button+button{margin-left:8px}.workspace-view>.card,.workspace-view>#invitation-panel{margin:0}.card{padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#1b101f,#110d13)}label{display:block;margin:18px 0;color:#f5edf5;font-size:14px;font-weight:700}#invitation-panel h2,#check-in-panel h2,#fee-settings h2{margin-bottom:8px}#invitation-panel>button,#check-in-panel>button,#fee-settings button{margin:8px 8px 0 0}.invite-row{display:grid;gap:5px;padding:18px 0;border-top:1px solid var(--line)}.invite-row p{margin:0}.bulk-invitations{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.bulk-invitations>button{margin:10px 8px 0 0}.csv-template{display:inline-block;margin:6px 0;color:#ffc2f2;font-weight:750}.bulk-rows{margin-top:14px}.guest-sheet{display:grid;gap:10px}.guest-sheet-head{display:none}.guest-editor{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#160d18}.guest-editor label{margin:0}.guest-editor input{margin-top:6px}.guest-status{align-self:end;color:var(--muted);font-size:13px;line-height:1.4}.guest-actions{align-self:end}.guest-actions button{width:100%;border:1px solid #805684;background:transparent;color:#fff}.guest-link{display:grid;gap:9px;margin:-2px 8px 6px;padding:14px;border:1px solid #61385e;border-radius:12px;background:#28152a}.guest-link input{margin:0;overflow-wrap:anywhere}.guest-link p{margin:0;color:var(--muted);font-size:13px}.guest-checkout details{margin:1rem 0}.guest-checkout details p{white-space:pre-line}.guest-checkout summary{cursor:pointer;text-decoration:underline}.guest-checkout .checkout-acknowledgment,.check-in-ack{display:flex;align-items:flex-start;gap:.75rem;margin:1rem 0}.guest-checkout .checkout-acknowledgment input,.check-in-ack input{width:1.25rem;height:1.25rem;flex:0 0 1.25rem;margin-top:.15rem}.guest-checkout{overflow-wrap:anywhere}.ticket-qr{display:block;max-width:100%;height:auto;margin:1.5rem auto;background:#fff}.event-list .event-list{margin-top:0}
@media(min-width:700px){.site-header{padding:18px max(5vw,32px)}.site-header a{font-size:27px}main{padding:54px 28px 100px}.metrics{grid-template-columns:repeat(3,1fr);gap:16px}.event-card{grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;padding:22px 24px}.event-card .tag{justify-self:auto}.workspace-nav{display:flex;width:max-content}.workspace-nav button{min-width:110px}.workspace-callout{padding:32px}.guest-sheet-head,.guest-editor{display:grid;grid-template-columns:1.15fr 1.15fr .8fr .7fr auto;gap:12px;align-items:end}.guest-sheet-head{padding:0 16px;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.guest-editor{padding:14px 16px}.guest-editor label{font-size:0}.guest-editor label input{margin:0}.guest-actions button{width:auto}.guest-link{grid-template-columns:minmax(0,1fr) auto auto;align-items:center;margin:-4px 14px 8px}.guest-link p{grid-column:1/-1}.workspace-view>#invitation-panel{padding:30px}.card{padding:30px}}

.home-sections{display:flex;gap:8px;margin:0 0 28px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#150e17}
.home-sections button{flex:1;min-height:44px;background:transparent;color:var(--muted)}
.home-sections button[aria-current="page"]{background:#412240;color:#fff}
.event-card-meta{margin-top:10px!important;font-size:13px!important}
.event-card>button{white-space:nowrap}

/* Administration surfaces use their own spacing system so controls remain
   readable as the owner and pricing tools grow. */
.heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.admin-tools{display:grid;gap:24px;margin-top:48px}
.admin-tools>.section-heading{margin-bottom:0}
.admin-tools>.card{padding:28px}
.owner-invite-form{display:grid;gap:16px;margin-top:24px}
.owner-invite-form label{margin:0}
.owner-invite-form button{justify-self:start;margin-top:4px}
.owner-message{min-height:1.5em;margin:14px 0 0}
.owner-list{display:grid;gap:0;margin-top:28px}
.owner-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0;border-top:1px solid var(--line)}
.owner-row>div:first-child{min-width:0}
.owner-row strong,.owner-row span,.owner-row small{display:block}
.owner-row strong{margin-bottom:4px;font-size:16px;overflow-wrap:anywhere}
.owner-row span{color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.owner-row small{margin-top:6px;color:#f1c9ea;font-size:12px;font-weight:700;letter-spacing:.02em}
.owner-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto;flex-wrap:wrap}
.owner-actions button{min-height:40px;padding:9px 13px;white-space:nowrap}
.pending-owner{padding-bottom:18px}
#admin-fees>.card{margin-top:24px}
#fee-settings{box-shadow:none}
#fee-settings>p{max-width:68ch}
#fee-settings>button{margin:12px 10px 0 0}
#fee-settings>p[role="status"]{min-height:1.5em;margin:14px 0 0}

@media(min-width:700px){
  .owner-invite-form{grid-template-columns:1.1fr 1.25fr .8fr auto;gap:14px;align-items:end}
  .owner-invite-form label{margin:0}
  .owner-invite-form button{margin:0 0 0 4px}
}

@media(max-width:699px){
  .chapter-heading{gap:20px}
  .heading-actions{width:100%;justify-content:flex-start}
  .heading-actions button{flex:1 1 140px}
  .owner-row{align-items:flex-start;flex-direction:column;gap:14px}
  .owner-actions{width:100%;justify-content:flex-start}
  .owner-actions button{flex:1 1 150px}
}

/* Login actions need a clear hierarchy and breathing room. */
#login form{gap:12px}
#login form button{margin-top:4px}
#forgot-password{display:block;margin-top:16px;border:1px solid #805684;background:transparent;color:#fff}
#forgot-password:hover:not(:disabled){background:#39223d}
#login-help{margin-top:14px}

/* Event editor modal */
.event-editor-dialog{width:min(720px,calc(100vw - 32px));max-height:min(90vh,780px);padding:0;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:#fff;box-shadow:0 24px 80px #000b;overflow:auto}
.event-editor-dialog::backdrop{background:#08050bcc;backdrop-filter:blur(4px)}
#event-form{display:grid;gap:18px;padding:30px}
.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.dialog-heading h2{margin-bottom:0}
.dialog-heading button{flex:0 0 auto;min-height:40px}
#event-editor-message{min-height:1.5em;margin:0}
#event-form label{margin:0;line-height:1.4}
#event-form input,#event-form textarea{margin-top:8px}
#event-form textarea{display:block;width:100%;min-height:110px;padding:12px 13px;border:1px solid #63456b;border-radius:12px;color:#fff;background:#18101b;resize:vertical}
#event-form .inline-check{display:flex;align-items:center;gap:12px;margin:0;font-weight:700}
#event-form .inline-check input{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;accent-color:var(--accent)}
.time-grid{display:grid;gap:18px}
.dialog-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:20px;border-top:1px solid var(--line)}
.dialog-actions button{min-width:132px}
@media(min-width:700px){.time-grid{grid-template-columns:1fr 1fr}}
.flyer-crop-dialog{width:min(92vw,520px);padding:24px;border:1px solid var(--line);border-radius:18px;color:#fff;background:#17101a}.flyer-crop-dialog::backdrop{background:rgba(5,3,7,.82)}.flyer-crop-dialog form{display:grid;gap:14px}.flyer-crop-dialog .dialog-heading{margin-bottom:0}.flyer-crop-stage{width:min(100%,360px);aspect-ratio:4/5;margin:0 auto;overflow:hidden;border:1px solid #805684;border-radius:14px;background:#0d0910;touch-action:none}.flyer-crop-stage canvas{display:block;width:100%;height:100%;cursor:grab}.flyer-crop-stage canvas:active{cursor:grabbing}.flyer-crop-dialog label{margin:0}.flyer-crop-dialog input[type=range]{margin-top:8px;padding:0;border:0}.flyer-crop-dialog .dialog-actions{display:flex;flex-wrap:wrap;gap:10px}.flyer-crop-dialog .dialog-actions button{flex:1 1 180px;margin:0}

/* Flyer cards and the flyer-only detail view keep the image and event details
   visible without exposing the ticketing/check-in workspace. */
.flyer-card{grid-template-columns:88px minmax(0,1fr) auto auto auto;align-items:center}
.flyer-thumb{display:grid;place-items:center;width:88px;aspect-ratio:4/5;overflow:hidden;border:1px solid #63456b;border-radius:10px;background:#100a12;color:var(--muted);font-size:11px;text-align:center}
.flyer-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.flyer-thumb.is-loading{color:#d9a8d2}
.flyer-thumb.is-error{color:#f3b3dd}
.flyer-view{display:grid;gap:24px;max-width:620px;margin:0 auto}
.flyer-view-image{display:grid;place-items:center;min-height:260px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#100a12;color:var(--muted);text-align:center}
.flyer-view-image img{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain}
.flyer-view-image.is-error{padding:24px;color:#f3b3dd}
.flyer-view-details{padding:22px;border:1px solid var(--line);border-radius:16px;background:rgba(26,15,29,.7)}
.flyer-view-details h2{margin-bottom:8px}
.flyer-view-details p:last-child{margin-bottom:0}
@media(max-width:699px){.flyer-card{grid-template-columns:76px minmax(0,1fr) auto;align-items:start}.flyer-card .tag{grid-column:2/-1}.flyer-card .flyer-thumb{width:76px}.flyer-card>button{min-height:40px;padding:9px 11px}.flyer-card>button:first-of-type{grid-column:2}.flyer-card>button:last-of-type{grid-column:3;grid-row:2}}

/* Mobile-first owner dashboard views */
.chapter-heading{align-items:center;margin:8px 0 30px}.chapter-heading h1{margin-bottom:5px}.chapter-heading .eyebrow{margin-bottom:7px}.chapter-heading #refresh{min-height:40px;padding:8px 12px}.chapter-heading label{width:min(280px,100%);margin:0}
.dashboard-panel{display:grid;gap:22px}.home-money{display:grid;gap:8px;min-height:240px;padding:28px;border:1px solid #653b68;border-radius:26px;background:linear-gradient(130deg,#211624 4%,#552057 100%)}.home-money span,.chapter-code-card span{color:#ded2e0;font-weight:650}.home-money strong{align-self:center;font-size:clamp(52px,14vw,78px);line-height:1;letter-spacing:-.06em}.home-money small{color:var(--muted);font-size:15px}.chapter-code-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border:1px solid var(--line);border-radius:22px;background:#1b151e}.chapter-code-card p{margin:8px 0;color:var(--muted);font-size:14px}.chapter-code-card strong{display:block;font-size:42px;letter-spacing:.04em}.chapter-code-card button{flex:0 0 auto;min-height:54px}
.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.dashboard-stats .metric{min-height:132px;padding:18px}.dashboard-stats .metric strong{margin-top:18px;font-size:32px}.manage-heading{margin:18px 0 0;font-size:25px}.manage-links{display:grid;gap:14px}.manage-links button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:22px;border:1px solid var(--line);border-radius:20px;background:#1b151e;color:#fff;text-align:left}.manage-links button span{font-size:21px;font-weight:760}.manage-links button small{color:var(--muted);font-size:14px;font-weight:450}.manage-links button b{grid-column:2;grid-row:1/3;color:var(--accent);font-size:32px}.home-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:4px}.home-actions button{flex:1 1 190px}
.dashboard-panel>.section-heading{align-items:center;margin:8px 0 0}.dashboard-panel>.section-heading .muted{margin:6px 0 0}.filter-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;width:min(460px,100%);padding:5px;border:1px solid var(--line);border-radius:15px;background:#1a141d}.filter-switch button{min-height:50px;background:transparent;color:var(--muted)}.filter-switch button[aria-current="page"]{background:#48264a;color:#fff}.event-list{gap:14px}.flyer-card{grid-template-columns:82px minmax(0,1fr) auto;align-items:start;gap:12px 16px;padding:18px;border-radius:20px;background:#1b151e}.flyer-card .flyer-thumb{grid-row:1/3;width:82px;align-self:start;border-radius:11px}.flyer-card .event-card-details{grid-column:2/4;grid-row:1;min-width:0}.flyer-card h3{margin-bottom:4px;font-size:21px}.flyer-card .event-card-details p{margin-top:4px}.flyer-card .tag{grid-column:2;grid-row:2;align-self:center}.flyer-card>button{grid-column:2/4;grid-row:3;justify-self:stretch;min-height:44px}.event-menu{position:relative;grid-column:3;grid-row:2;justify-self:end;z-index:2}.event-menu summary{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:13px;background:#241b29;color:#e9dce9;font-size:20px;cursor:pointer;list-style:none}.event-menu summary::-webkit-details-marker{display:none}.event-menu>button{display:block;width:150px;min-height:48px;padding:12px 16px;border-radius:0;background:#302433;color:#fff;text-align:left;font-weight:600}.event-menu>button:first-of-type{border-radius:12px 12px 0 0}.event-menu>button:last-child{border-radius:0 0 12px 12px}.event-menu[open]{filter:drop-shadow(0 10px 25px #0009)}.event-menu[open] summary{margin-left:auto;margin-bottom:8px}.event-menu .danger-action{color:#ff9cae}.ticket-card{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:22px;border-radius:20px;background:#1b151e}.ticket-card .tag{grid-column:1}.ticket-card>button{grid-column:2;grid-row:1/3}.ticket-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.empty-state{padding:42px 24px;border:1px solid var(--line);border-radius:20px;background:#1b151e;text-align:center}.empty-state strong{font-size:20px}.empty-state p{margin:8px 0 0}
.bottom-navigation{position:fixed;z-index:10;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(3,1fr);padding:8px max(14px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));border-top:1px solid #56365b;background:rgba(31,22,34,.97);backdrop-filter:blur(18px)}.bottom-navigation button{display:grid;justify-items:center;gap:4px;min-height:58px;padding:6px;background:transparent;color:#a99baa;font-size:13px}.bottom-navigation button span{font-size:24px;line-height:1}.bottom-navigation button[aria-current="page"]{color:var(--accent)}.bottom-navigation button[aria-current="page"] span{color:var(--accent)}
@media(max-width:699px){main{padding:24px 18px 120px}.site-header{min-height:68px}.site-header a{font-size:22px}.chapter-heading{gap:10px}.chapter-heading h1{font-size:36px}.chapter-heading #refresh{font-size:0}.chapter-heading #refresh::before{content:'↻';font-size:18px}.dashboard-panel{gap:18px}.home-money{min-height:225px;padding:25px}.chapter-code-card{padding:20px}.dashboard-stats .metric{min-height:112px;padding:14px}.dashboard-stats .metric span{font-size:11px}.dashboard-stats .metric strong{font-size:26px}.manage-links button{padding:20px}.admin-tools{margin-top:34px}.admin-tools>.card{padding:20px}#event-workspace{padding-bottom:20px}}
@media(min-width:700px){.bottom-navigation{position:static;display:flex;width:max-content;margin:0 auto 26px;padding:5px;border:1px solid var(--line);border-radius:16px;background:#18111b}.bottom-navigation button{display:flex;align-items:center;gap:8px;min-width:120px;min-height:44px;justify-content:center}.bottom-navigation button span{font-size:20px}.chapter-heading{margin-bottom:40px}.home-money{min-height:270px;padding:38px}.chapter-code-card{padding:28px}.dashboard-stats .metric{min-height:150px;padding:24px}.manage-links{grid-template-columns:1fr 1fr}.flyer-card{grid-template-columns:104px minmax(0,1fr) auto auto;align-items:center}.flyer-card .flyer-thumb{grid-row:auto;width:104px}.flyer-card .event-card-details{grid-column:auto;grid-row:auto}.flyer-card .tag{grid-column:auto;grid-row:auto}.flyer-card>button{grid-column:auto;grid-row:auto}.event-menu{grid-column:auto;grid-row:auto}.ticket-card{padding:26px}.dashboard-panel{gap:26px}}
.ticket-data-note{margin:-12px 0 0;font-size:12px}.ticketing-coming-soon:disabled{border:1px solid #63456b;background:#241b29;color:#d8cad9;opacity:.76}

/* Flyer actions float above the card instead of participating in its layout. */
.flyer-card{position:relative}
.flyer-card .event-menu{position:absolute;top:12px;right:12px;z-index:5;grid-column:auto;grid-row:auto;justify-self:auto}
.flyer-card .event-card-details{padding-right:46px}
.event-menu summary{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:13px;background:#241b29;color:#f2e8f2;font-size:23px;line-height:1;cursor:pointer;list-style:none}
.event-menu summary::-webkit-details-marker{display:none}
.event-menu>button{position:absolute;right:0;z-index:1;display:block;width:164px;min-height:48px;padding:12px 16px;border:1px solid #5b4261;border-radius:0;background:#302433;color:#fff;text-align:left;font-weight:650;box-shadow:0 10px 28px #0009}
.event-menu>button:first-of-type{top:50px;border-radius:12px 12px 0 0}
.event-menu>button:nth-of-type(2){top:97px}
.event-menu>button:last-child{top:144px;border-radius:0 0 12px 12px}
.event-menu[open]{filter:none}
.event-menu[open] summary{margin:0}
.event-menu .danger-action{color:#ff9cae}
.flyer-card .event-menu>button{grid-column:auto;grid-row:auto;justify-self:auto}

/* Compact account/settings menu in the global header. */
.site-header .badge{margin-left:auto}
.account-menu{position:relative;flex:0 0 auto}
.account-menu>summary{display:grid;place-items:center;width:38px;height:42px;border:0;border-radius:8px;background:transparent;color:#f2e8f2;cursor:pointer;list-style:none}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu>summary .account-gear{display:block;width:23px;height:23px;filter:invert(1)}
.account-menu[open]>summary{color:var(--accent)}
.account-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:20;display:grid;gap:8px;width:min(320px,calc(100vw - 28px));padding:20px;border:1px solid #63456b;border-radius:16px;background:#211825;box-shadow:0 16px 44px #000b}
.account-popover .eyebrow{margin:0 0 2px;font-size:10px}
.account-popover>strong{font-size:17px;overflow-wrap:anywhere}
.account-email,.account-role{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.account-role{color:#f4c8ed;font-weight:650}
.account-divider{height:1px;margin:5px 0;background:var(--line)}
.site-header .account-signout{justify-self:stretch;min-height:42px;margin-top:6px;border:1px solid #805684;background:transparent;color:#fff}
.site-header .account-signout:hover:not(:disabled){background:#39223d}

/* Refined dashboard sizing and consistent contrast on accent buttons. */
button{color:#fff}
.home-money{min-height:190px;padding:22px;border-radius:22px}
.home-money strong{font-size:clamp(42px,10vw,60px)}
.home-money small{font-size:14px}
.chapter-code-card{gap:14px;padding:18px;border-radius:18px}
.chapter-code-card strong{font-size:34px}
.chapter-code-card button{min-height:46px;padding:9px 13px}
@media(max-width:699px){
  .home-money{min-height:172px;padding:18px}
  .home-money strong{font-size:clamp(40px,11vw,54px)}
  .chapter-code-card{padding:16px}
  .chapter-code-card strong{font-size:30px}
  .chapter-code-card button{min-height:42px;padding:8px 12px}
}
@media(min-width:700px){
  .home-money{min-height:220px;padding:30px}
}

/* Chapter dashboard design preview adaptation: persistent desktop rail, compact
   chapter header, restrained cards, and mobile bottom navigation. */
:root{--bg:#100e12;--surface:#19171c;--surface-raised:#211e25;--line:#353039;--muted:#aaa5b0;--accent:#ed32d1;--accent-hover:#f34bdb;--dash-rail:192px}
body{background:#100e12;color:#f7f6f8}
.site-header{min-height:58px;height:58px;padding:8px 32px;border-bottom:1px solid #302d34;background:#141216}
.mobile-brand{display:flex;align-items:center}
.mobile-brand img{display:block;width:122px;height:auto}
.header-chapter{margin-right:auto;color:#eeeaf0;font-size:14px;font-weight:700}
.site-header .badge{margin:0 12px 0 0;padding:5px 8px;border-color:#483c4c;border-radius:999px;color:#dfb7d8;background:#211c24;font-size:9px}
.dashboard-sidebar{position:fixed;z-index:15;inset:0 auto 0 0;display:flex;width:var(--dash-rail);flex-direction:column;padding:28px 13px 14px;border-right:1px solid #2c2930;background:#18161b}
.sidebar-brand{display:block;margin:2px 11px 32px}
.sidebar-brand img{display:block;width:144px;height:auto}
.sidebar-label{margin:0 11px 12px;color:#85818b;font-size:9px;font-weight:800;letter-spacing:.19em}
.sidebar-navigation{display:grid;gap:5px}
.sidebar-navigation button{display:flex;align-items:center;gap:12px;width:100%;min-height:38px;padding:8px 11px;border-radius:9px;background:transparent;color:#c7c3cc;text-align:left;font-size:12px;font-weight:650}
.sidebar-navigation button:hover:not(:disabled){background:#211d25}
.sidebar-navigation button[aria-current="page"]{background:#302338;color:#fff}
.sidebar-navigation .nav-icon{display:grid;place-items:center;width:18px;color:#a9a3ae;font-size:17px;line-height:1}
.sidebar-navigation button[aria-current="page"] .nav-icon{color:var(--accent)}
.sidebar-navigation button small{margin-left:auto;color:var(--accent);font-size:8px;font-weight:850;letter-spacing:.08em}
.sidebar-account{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;margin-top:auto;padding:7px 4px;border:0;border-top:1px solid #302d34;border-radius:0;background:transparent;color:#f5f2f7;text-align:left}
.sidebar-account:hover:not(:disabled){background:#201d23}
.sidebar-avatar{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:8px;background:#38263b;color:#f7d5f1;font-size:10px;font-weight:850}
.sidebar-account-copy{display:grid;min-width:0;gap:3px}
.sidebar-account-copy strong{overflow:hidden;color:#ece8ef;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.sidebar-account-copy small{color:#99939e;font-size:9px}
.sidebar-account-cog{margin-left:auto;color:#aaa4af;font-size:15px}
body.dashboard-active .site-header{position:fixed;z-index:12;top:0;right:0;left:var(--dash-rail);justify-content:flex-end}
body.dashboard-active .mobile-brand{display:none}
body.dashboard-active main{width:auto;max-width:none;margin:0 0 0 var(--dash-rail);padding:90px clamp(28px,5vw,52px) 70px}
body.dashboard-active #dashboard{max-width:1120px;margin:0 auto}
body.dashboard-active .chapter-heading{align-items:center;margin:0 0 23px}
.chapter-heading .eyebrow{margin-bottom:7px;color:#a8a2ae;font-size:9px;letter-spacing:.2em}
.chapter-heading h1{margin:0;font-size:clamp(25px,3vw,34px);font-weight:750;letter-spacing:-.045em;line-height:1.1}
.chapter-heading .muted{display:none}
.chapter-heading #refresh{width:42px;height:42px;border-color:#3d3742;border-radius:11px;background:#1c1920;color:#e8e2eb;font-size:0}
.chapter-heading #refresh::before{content:'↻';font-size:17px}
.chapter-heading #selector{font-size:11px}
.home-overview{display:grid;grid-template-columns:1.2fr .9fr;overflow:hidden;border:1px solid #39343e;border-radius:16px;background:#1b181f}
.home-money{min-height:164px;padding:26px;border:0;border-right:1px solid #39343e;border-radius:0;background:linear-gradient(125deg,#251d2a,#321c34)}
.home-money span,.chapter-code-card span{color:#c1bbc7;font-size:12px;font-weight:700}
.home-money strong{align-self:center;font-size:clamp(40px,5vw,54px);font-weight:760;letter-spacing:-.07em}
.home-money small{color:#aaa4b0;font-size:12px}
.chapter-code-card{align-self:stretch;min-width:0;gap:10px;padding:25px;border:0;border-radius:0;background:#1b181f}
.chapter-code-card>div{min-width:0}
.chapter-code-card strong{margin-top:15px;font-size:32px;letter-spacing:.06em}
.chapter-code-card p{margin:6px 0 0;color:#a7a1ac;font-size:11px}
.chapter-code-card button{min-height:38px;padding:7px 11px;border-color:#4a414f;border-radius:9px;color:#f3eff5;font-size:11px}
.manage-heading{margin:25px 0 11px;font-size:16px;font-weight:750;letter-spacing:-.02em}
.manage-links{gap:8px}
.manage-links button{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px 12px;min-height:62px;padding:12px 15px;border-color:#302d34;border-radius:11px;background:#1b191e}
.manage-links button span{font-size:13px;font-weight:750}
.manage-links button small{font-size:10px}
.manage-links button b{grid-column:2;grid-row:1/3;color:#d4ced9;font-size:20px}
.bottom-navigation button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottom-navigation button[data-dashboard-view="home"] svg path{fill:currentColor;stroke:none}
.sidebar-navigation .nav-icon{font-size:0}
.sidebar-navigation .nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-navigation [data-dashboard-view="home"] .nav-icon svg path{fill:currentColor;stroke:none}
.manage-links button .beta-label{display:inline;color:var(--accent);font-size:8px;font-weight:850;letter-spacing:.08em}
.home-actions{gap:9px;margin-top:12px}
.home-actions button{min-height:40px;padding:9px 13px;border-radius:9px;font-size:12px}
.dashboard-stats{margin:18px 0 0;gap:8px}
.dashboard-stats .metric{min-height:80px;padding:13px;border-color:#302d34;border-radius:11px;background:#19171c}
.dashboard-stats .metric span{font-size:10px}
.dashboard-stats .metric strong{margin-top:8px;font-size:23px}
.ticket-data-note{margin:4px 0 0;font-size:10px}
.dashboard-panel{gap:15px}
.dashboard-panel>.section-heading{margin:0}
.dashboard-panel>.section-heading h2{margin:0;font-size:27px;letter-spacing:-.04em}
.dashboard-panel>.section-heading .muted{margin-top:5px;font-size:12px}
.dashboard-panel>.section-heading>button{min-height:40px;padding:9px 13px;border-radius:9px;font-size:12px}
.filter-switch{width:min(420px,100%);padding:4px;border-color:#353039;border-radius:11px;background:#19171c}
.filter-switch button{min-height:38px;border-radius:8px;font-size:12px}
.flyer-card,.ticket-card{border-color:#302d34;border-radius:13px;background:#19171c}
.empty-state{border-color:#302d34;border-radius:13px;background:#19171c}
.bottom-navigation{display:none!important}
.account-popover{top:calc(100% + 8px);width:min(310px,calc(100vw - 24px));border-color:#39343e;border-radius:13px;background:#201d23}
@media(max-width:699px){
  :root{--dash-rail:0px}
  .site-header{position:sticky;top:0;z-index:12;height:60px;min-height:60px;padding:8px 16px;gap:9px}
  body.dashboard-active .mobile-brand{display:flex;margin-right:auto}
  .mobile-brand img{width:112px}
  .header-chapter{display:none}
  .site-header .badge{margin-right:0}
  .dashboard-sidebar{display:none!important}
  body.dashboard-active main{width:100%;margin:0;padding:28px 18px 112px}
  body.dashboard-active .chapter-heading{gap:12px;margin-bottom:19px}
  .chapter-heading h1{font-size:30px}
  .home-overview{grid-template-columns:1fr;border-radius:14px}
  .home-money{min-height:150px;padding:20px 19px;border-right:0;border-bottom:1px solid #39343e}
  .home-money strong{font-size:46px}
  .chapter-code-card{min-height:116px;padding:17px 19px}
  .chapter-code-card strong{margin-top:8px;font-size:29px}
  .chapter-code-card button{min-height:36px}
  .manage-heading{margin-top:20px;font-size:16px}
  .manage-links{gap:8px}
  .manage-links button{min-height:62px;padding:12px}
  .home-actions{flex-direction:column}
  .home-actions button{flex:auto;width:100%}
  .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:8px}
  .dashboard-stats .metric{min-height:68px;padding:10px}
  .dashboard-stats .metric span{font-size:9px}
  .dashboard-stats .metric strong{font-size:18px}
  .bottom-navigation{display:grid!important;grid-template-columns:repeat(3,1fr);padding:6px 12px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #353039;background:rgba(25,23,28,.97)}
  .bottom-navigation button{min-height:53px;border-radius:9px;font-size:11px}
  .bottom-navigation button[aria-current="page"]{background:#302338;color:var(--accent)}
  .dashboard-panel>.section-heading h2{font-size:25px}
  .dashboard-panel>.section-heading>button{flex:0 0 auto;padding:8px 10px;font-size:11px}
  .filter-switch{width:100%}
  .account-popover{position:fixed;top:68px;right:12px}
}
@media(min-width:700px) and (max-width:920px){
  :root{--dash-rail:174px}
  .dashboard-sidebar{padding-right:10px;padding-left:10px}
  body.dashboard-active main{padding-right:24px;padding-left:24px}
  .home-overview{grid-template-columns:1fr 1fr}
}
.legacy-account-setup{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.legacy-account-setup summary{cursor:pointer;color:#e7dce9;font-size:13px;font-weight:700}
.legacy-account-setup form{display:grid;gap:4px;margin-top:12px}
.legacy-account-setup form button{margin-top:6px}

/* Keep Home focused on the reference overview; detailed actions and totals live in their sections. */
#home-panel>.home-actions,#home-panel>.dashboard-stats,#home-panel>.ticket-data-note{display:none!important}

/* iOS Safari zooms focused form controls whose computed text size is below 16px. */
@media(max-width:699px){input,select,textarea{font-size:16px}}
