:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
/* Reserve system chrome in document flow; the first heading must be reachable.
   Fixed map and modal surfaces reserve the same inset in their own coordinates. */
.app-shell{padding-top:calc(var(--strip,0px) + var(--safe-top))}
html{scroll-padding-top:calc(var(--safe-top) + 16px)}
#dialog{inset:calc(var(--safe-top) + 12px) 0 calc(var(--safe-bottom) + 12px);margin:auto;max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px);overscroll-behavior:contain;scroll-padding-top:76px}
#dialog .dialog-heading{position:sticky;top:-1px;z-index:6;background:var(--panel);padding:12px 0;margin-top:-12px}
#dialog .dialog-heading .icon-button{min-width:44px;min-height:44px;background:var(--panel)}
.flyer-import-preview,.editor-artwork-preview{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:18px;background:var(--control)}
.flyer-import-preview[hidden]{display:none}
.event-category-choices{border:0;padding:0;margin:0;min-width:0}
.event-category-choices legend{font-weight:650;margin-bottom:8px}
.event-category-choices>div{display:flex;gap:8px;flex-wrap:wrap;max-height:210px;overflow:auto;padding:4px}
.event-category-choices label{border:1px solid var(--line);border-radius:22px;display:flex;align-items:center;gap:7px;min-height:40px;padding:7px 11px;font-size:12px;cursor:pointer}
.event-category-choices label:has(:checked){background:var(--text);color:var(--bg);border-color:var(--text)}
.event-category-choices input{width:14px;height:14px;accent-color:var(--brand-accent)}
.event-category-choices small{display:block;margin:7px 0;color:var(--muted)}
.artwork-remove{align-self:flex-start;font-size:12px}
.notification-unread{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;gap:6px;min-width:46px;min-height:44px;border-radius:24px;background:var(--text);color:var(--bg);padding:9px 12px;box-shadow:0 4px 20px #0002;align-self:center}
.notification-unread svg{width:20px;height:20px}.notification-unread span{font-size:12px;font-weight:700}
.notification-unread.is-map{position:fixed;left:calc(var(--map-left,0px) + 16px);top:calc(var(--map-top,0px) + 125px);z-index:1005}
body[data-notification-unread][data-discover-view=map] .map-location-status{top:180px!important}
.more-heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.more-heading .eyebrow{flex-basis:100%}
.event-date-fields label{font-size:12px;display:grid;gap:6px}.event-date-fields .form-grid{gap:8px}
@media(max-width:760px){
 .app-shell{padding-top:var(--safe-top);min-height:100svh}
 .topbar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 body[data-route=messages] .app-shell{padding-top:var(--safe-top);padding-bottom:calc(78px + var(--safe-bottom));height:100dvh;min-height:0}
 body[data-route=messages] #main{height:auto!important;flex:1;min-height:0;margin:0;padding-top:14px;padding-bottom:8px!important}
 body[data-route=messages] .social-chat.chat-layout{flex:1;min-height:0;height:auto!important}
 body[data-route=discover][data-discover-view=map] .app-shell{padding-top:0}
 body[data-route=discover][data-discover-view=map]{--map-top:var(--safe-top)}
 .momo-panel{top:auto;bottom:calc(78px + var(--safe-bottom));max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 94px)}
 .creator-chapter,.creator-intro{scroll-margin-top:calc(var(--safe-top) + 12px)}
 .event-start-actions{display:flex;flex-wrap:wrap;gap:8px}
 .event-start-actions button{flex:1;min-width:130px;min-height:44px}
}

/* One event, up to two images. Keep the source and cover choice visible. */
.flyer-selections{display:grid;gap:12px}.flyer-selection{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:20px;min-width:0}.flyer-selection img,.flyer-pdf{width:72px;height:88px;object-fit:cover;border-radius:12px;flex-shrink:0}.flyer-pdf{display:grid;place-items:center;background:var(--surface)}.flyer-selection>div{flex:1;min-width:0}.flyer-selection strong{display:block;font-size:13px;overflow-wrap:anywhere}.flyer-selection small{display:block;margin:5px 0}.flyer-cover-choice{display:flex;align-items:center;gap:7px;font-size:13px}.flyer-selection button{padding:8px;min-height:44px;font-size:12px}.flyer-add{margin-top:12px}.flyer-add[hidden]{display:none}.flyer-add input{max-width:100%}.flyer-selection-status{font-size:13px;line-height:1.5}.momo-image-picker .flyer-selection{padding:8px;gap:8px}.momo-image-picker img{width:48px;height:64px}.momo-image-picker .flyer-selection button{font-size:11px;padding:6px}
#image-import .check-row,#momo-panel .check-row{color:var(--text)}.flyer-selection{border-color:var(--line)}.flyer-pdf{background:var(--panel2)}

/* One bottom bar measurement, including the home-indicator inset. WebKit can
   retain an oversized inset after closing the keyboard in an installed app. */
:root{--safe-bottom:min(env(safe-area-inset-bottom,0px),34px);--mobile-bar-size:68px;--mobile-bar-total:calc(var(--mobile-bar-size) + var(--safe-bottom))}
.ticket-editor-row{border:1px solid var(--line);border-radius:22px;padding:18px;display:grid;gap:16px;min-width:0;margin:14px 0;background:var(--panel2)}
.ticket-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.ticket-editor-heading h4{margin:0;font-size:15px}.ticket-remove{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:12px}.ticket-remove svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
.ticket-external-toggle{display:flex;align-items:center;gap:12px}.ticket-external-toggle input{width:20px;height:20px;flex-shrink:0;accent-color:var(--text)}.ticket-external-toggle span{display:grid;gap:4px}.ticket-external-toggle small{font-size:12px;color:var(--muted)}.ticket-local-fields{display:grid;gap:16px}.ticket-editor-row [hidden]{display:none!important}.external-admission a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.external-admission a svg{width:16px;height:16px}
.chat-room .chat-room-header,.chat-room-header{display:flex;align-items:center;gap:10px;min-width:0;text-align:left}
.chat-room-header .chat-room-identity{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;flex:1;min-width:0}
.chat-room-header .chat-room-titles{display:grid;gap:4px;min-width:0}.chat-room-header .chat-room-name{display:block;padding:0;margin:0;min-height:0;min-width:0;width:100%;border:0;background:none;color:var(--text);font-size:14px;font-weight:700;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-room-header .chat-room-titles small{display:block;margin:0;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-room-header .avatar,.chat-room-header .profile-avatar{width:38px;height:38px;min-width:38px;margin:0;padding:0}.chat-room-header .chat-plan-button{flex:none;margin:0;font-size:12px;padding:10px;min-height:44px}.chat-room-header .chat-options-button,.chat-room-header .chat-back{flex:none;width:38px;min-width:38px;height:44px;padding:8px;margin:0}
.chat-options-button svg{width:22px;height:22px;stroke:none}.hidden-chats-button{font-size:12px;text-align:right;align-self:flex-end;min-height:40px}
.action-sheet{box-sizing:border-box;width:min(500px,calc(100% - 24px));max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 28px);inset:calc(var(--safe-top) + 12px) 0 calc(var(--safe-bottom) + 12px);margin:auto;padding:20px;border:1px solid var(--line);border-radius:26px;background:var(--panel);color:var(--text);overflow:auto;overscroll-behavior:contain}.action-sheet::backdrop{background:#0009;backdrop-filter:blur(8px)}.action-sheet>header{display:flex;align-items:center;gap:12px;justify-content:space-between;position:sticky;top:-20px;background:var(--panel);padding:12px 0;z-index:1}.action-sheet h2{margin:0;font-size:21px}.action-sheet>header button{flex:none;width:44px;height:44px;font-size:26px}.chat-menu-name{color:var(--muted);font-size:13px}.chat-menu-actions{display:grid;gap:6px}.chat-menu-item{display:flex;align-items:center;gap:12px;text-align:left;background:var(--panel2);color:var(--text);border-radius:16px;min-height:60px;padding:12px}.chat-menu-item>svg{width:22px;height:22px;flex-shrink:0}.chat-menu-item>span{display:grid;gap:4px;flex:1}.chat-menu-item small{font-size:12px;color:var(--muted)}.chat-menu-item>svg:last-child{width:16px}.chat-member-list article,.hidden-chat-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}.chat-member-list .person,.hidden-chat-row>span{flex:1}.action-sheet .dialog-actions{display:flex;gap:10px}.action-sheet .dialog-actions button{flex:1;min-height:44px}
.content-options{flex:none;min-width:44px;width:44px;height:44px;padding:10px;color:var(--text);margin-left:auto}.content-options svg{width:22px;height:22px;stroke:none}.scene-room-heading>.content-options{float:right}.feed-kind>.content-options{margin-left:auto}.feed-plan{padding:22px}.feed-plan button svg{width:16px;height:16px}
.filter-categories{padding:12px;border:1px solid var(--line);border-radius:16px;max-height:230px;overflow:auto;grid-column:1/-1;min-width:0}.filter-categories label{display:flex;gap:8px;align-items:center;min-height:40px;font-size:13px}.filter-categories input{width:18px;height:18px;accent-color:var(--text)}
.profile-hero-v2{display:grid;grid-template-columns:80px minmax(0,1fr);gap:18px;align-items:start}.profile-hero-v2>div{min-width:0}.profile-hero-v2 .profile-top-tools{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end;align-items:center}.profile-top-tools .content-options{margin:0}.profile-rep-pill,.outscore-pill{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:30px;background:var(--panel2);color:var(--text);font-size:12px;line-height:18px;padding:8px 12px}.profile-rep-pill{min-height:40px}.profile-hero-v2>.avatar{width:80px;height:80px}.profile-copy h1{margin:0 0 6px;font-size:28px}.profile-copy>.muted{margin:0 0 12px}.profile-outscore{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.profile-outscore>small{font-size:11px;color:var(--muted)}.profile-outscore>button{font-size:11px;padding:7px}.profile-hero-v2 .profile-actions{grid-column:1/-1;display:flex;gap:12px;align-items:center;justify-content:flex-start;min-width:0}.profile-hero-v2 #profile-chat-action{font-size:12px;color:var(--muted);flex:1}.profile-hero-v2 .profile-actions>button{min-height:44px}.score-visibility{padding:20px 0;margin:12px 0;border-top:1px solid var(--line)}.score-visibility h3{font-size:17px}.score-visibility [role=status]{display:block;color:var(--muted);margin-top:12px}
.notification-unread{padding:0 4px 0 0;gap:0}.notification-open{display:flex;align-items:center;gap:6px;background:none;color:inherit;padding:9px 8px 9px 12px;min-height:44px;border:0}.notification-dismiss{display:grid;place-items:center;flex:none;width:32px;height:44px;padding:0;background:none;color:inherit;font-size:19px;border:0;opacity:.65}
@media(max-width:760px){
 .mobile-nav{box-sizing:border-box;position:fixed;inset:auto 0 0;height:var(--mobile-bar-total);min-height:0;max-height:var(--mobile-bar-total);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;padding:6px max(8px,env(safe-area-inset-right)) calc(6px + var(--safe-bottom)) max(8px,env(safe-area-inset-left));background:var(--bg);transform:none;margin:0;overflow:hidden}
 .mobile-nav .nav-button{height:55px;min-height:0;max-height:55px;padding:6px 2px;gap:4px;justify-content:center}.mobile-nav .nav-label{font-size:10px;line-height:14px}.mobile-nav button svg{width:23px;height:23px;flex:none}
 main{padding-bottom:calc(var(--mobile-bar-total) + 24px)}
 body[data-route=discover][data-discover-view=map]{--map-bottom:var(--mobile-bar-total)}
 body[data-route=messages] .app-shell{padding-bottom:var(--mobile-bar-total)}
 .editor .form-actions{bottom:var(--mobile-bar-total)}
 .momo-panel{bottom:var(--mobile-bar-total)}
 .chat-room-header{gap:6px;padding:12px 0}.chat-room-header .chat-room-identity{gap:8px;grid-template-columns:34px minmax(0,1fr)}.chat-room-header .avatar,.chat-room-header .profile-avatar{width:34px;height:34px;min-width:34px}.chat-room-header .chat-room-name{font-size:13px}.chat-room-header .chat-room-titles small{font-size:10px}.chat-room-header .chat-back,.chat-room-header .chat-options-button{width:34px;min-width:34px;padding:5px}
}

.ticket-cancellation-actions{padding:0 20px 20px}
.chat-options-button svg,.content-options svg{fill:currentColor;stroke:none}
.event-comment>header,.scene-comment-heading{display:flex;align-items:center;gap:8px;min-width:0}.event-comment>header .person,.scene-comment-heading .person{flex:1;min-width:0}.event-comment>header small{font-size:10px}

.work-skills-editor>header,.creator-chapter>header{display:flex;align-items:center;gap:12px}.work-skills-editor p{font-size:12px;color:var(--muted);line-height:1.6}.skill-choices,.skill-tags{display:flex;flex-wrap:wrap;gap:6px}.skill-choices button,.skill-tags span{border:1px solid var(--line);border-radius:999px;background:var(--panel2);color:var(--text);font-size:12px;padding:8px 12px}.skill-choices button[aria-pressed=true]{background:var(--text);color:var(--bg)}.skill-tags span{font-size:11px;padding:5px 9px}.skill-edit,.skill-portfolio{margin:12px 0;border:1px solid var(--line);border-radius:16px;padding:14px}.skill-edit summary,.skill-portfolio summary{cursor:pointer;display:flex;gap:8px;align-items:center;font-size:13px;font-weight:650}.skill-edit summary small,.skill-portfolio summary small{margin-left:auto;color:var(--muted);font-weight:400}.skill-edit .field{margin:14px 0}.portfolio-link-row{padding:12px;border:1px solid var(--line);border-radius:12px;margin-top:12px}.skill-portfolio article{padding:16px 0;border-top:1px solid var(--line);margin-top:12px}.skill-portfolio p{font-size:12px;line-height:1.6}.skill-portfolio a{display:inline-flex;align-items:center;gap:6px;padding:9px;border:1px solid var(--line);border-radius:10px;font-size:12px;margin:8px 4px 0 0}.skill-portfolio svg{width:16px;height:16px}.access-add-ticket{margin-left:auto;white-space:nowrap;font-size:12px;padding:12px!important}.team-search-row{display:flex;align-items:end;gap:10px}.team-search-row label{flex:1;min-width:0}.team-search-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.team-search-result>div{min-width:0}.team-search-result .skill-tags{padding-left:42px}.team-editor-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,160px) auto;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:20px;margin-top:12px;background:var(--panel2)}.team-editor-card .person{min-width:0;overflow-wrap:anywhere}.team-editor-card .field{margin:0}.event-team-display{padding:24px 4px}.event-team-display h2{margin:8px 0 20px}.event-team-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.event-team-card{border:1px solid var(--line);border-radius:24px;background:var(--panel2);padding:20px;display:flex;align-items:start;flex-direction:column;gap:14px;transform:rotate(var(--team-turn));transition:transform .2s}.event-team-card:hover,.event-team-card:focus-within{transform:rotate(0)}.event-team-card .person{min-width:0;max-width:100%;overflow-wrap:anywhere}.team-role{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-size:11px;font-weight:650}.team-role svg{width:15px;height:15px}.team-instagram{font-size:11px;color:var(--muted);text-decoration:none;overflow-wrap:anywhere}.global-people-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.global-people-results article{padding:16px;border:1px solid var(--line);border-radius:20px}.global-people-results .skill-tags{margin-top:12px}
@media(max-width:600px){.team-editor-card{grid-template-columns:minmax(0,1fr) auto}.team-editor-card .field{grid-column:1/-1;grid-row:2}.event-team-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.event-team-card{padding:14px;border-radius:20px}.event-team-card .person{flex-wrap:wrap;font-size:13px}.event-team-card .person .avatar{width:42px;height:42px}.access-add-ticket{font-size:11px;padding:10px!important}.creator-chapter>header>div{min-width:0}.creator-chapter>header h2{font-size:20px}.team-search-row{align-items:stretch}.team-search-row>button{align-self:end}}
@media(prefers-reduced-motion:reduce){.event-team-card{transition:none;transform:none}}

.ticket-editor-row{grid-template-columns:1fr}.ticket-editor-heading,.ticket-editor-row>.field,.ticket-external-toggle,.ticket-editor-row>[data-external-fields],.ticket-local-fields{grid-column:1/-1}.ticket-sales-help{display:grid;gap:8px}.ticket-sales-help small{line-height:1.6;color:var(--muted)}.ticket-sales-help button{justify-self:start;text-decoration:underline}.ticket-date-warning{font-size:12px;color:var(--text);border-left:3px solid #c49a56;padding:10px}.ticket-editor-row input[type=datetime-local]{min-width:0;max-width:100%}

.action-error{inset:0;margin:auto;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 40px);overflow:auto;border:1px solid var(--line);border-radius:26px;background:var(--panel);color:var(--text);padding:30px;box-shadow:0 24px 90px #0006}.action-error::backdrop{background:#0008;backdrop-filter:blur(5px)}.action-error h2{font-size:24px;line-height:1.2;margin:12px 36px 16px 0}.error-dismiss{position:absolute;right:14px;top:14px}.error-detail{font-weight:650;line-height:1.6}.error-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.error-actions button{min-height:44px}.needs-attention{outline:3px solid #bd9551!important;outline-offset:4px}

.membership-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.membership-card{padding:24px;display:flex;flex-direction:column;gap:12px;margin:0}.membership-card.is-current{border-color:var(--text)}.membership-price{font-size:28px;font-weight:750}.membership-price small{font-size:12px;font-weight:400;color:var(--muted)}.membership-card dl{flex:1;margin:0}.membership-card dl>div{padding:12px 0;border-top:1px solid var(--line)}.membership-card dt{font-size:12px;color:var(--muted)}.membership-card dd{margin:5px 0 0;font-size:14px;font-weight:650}.membership-card>small{font-size:12px;color:var(--muted)}.membership-current p{line-height:1.6}.ticket-local-fields .check-row{display:flex;align-items:center;gap:10px}.ticket-local-fields .check-row input{width:20px;height:20px}@media(max-width:900px){.membership-grid{grid-template-columns:1fr}.membership-card dl{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}}
.my-events-filters{display:flex;gap:8px;overflow-x:auto;padding:0 0 18px}.my-events-filters button{display:flex;gap:8px;align-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:999px;padding:10px 16px;background:var(--surface);color:var(--text)}.my-events-filters button[aria-pressed=true]{background:var(--text);color:var(--bg)}.my-events-filters span,.my-events-section h2 span,.my-events-archive summary span{font-size:12px;opacity:.65;margin-left:6px}.my-events-archive summary{cursor:pointer;font-weight:700;padding:10px 0}.my-events-section h2{font-size:20px}.my-event-item+.my-event-item{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}.my-event-phase{display:inline-flex;border-radius:999px;font-size:11px;padding:6px 10px;margin-bottom:10px;background:var(--panel2);color:var(--muted)}.my-event-phase.is-live{background:#123d32;color:#adf7d4}.my-events-archive .draft-row{margin-top:12px}

.signal-skill-filter{max-width:320px;margin:12px 0 20px}.signal-skill-picker summary{cursor:pointer;padding:12px 0;font-weight:600}

/* The navigation occupies a real row, outside the scrolling content. Fixed
   bottom positioning can drift above iOS standalone's invisible browser chrome. */
@media(max-width:760px){
 html{height:100%;overflow:hidden}
 body{position:relative;height:var(--keyboard-viewport,100dvh);min-height:0;overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) var(--mobile-bar-total)}
 html[data-keyboard-open]{--safe-bottom:0px}
 .app-shell{grid-row:1;min-height:0;height:auto;overflow:auto;overscroll-behavior-y:contain;padding-bottom:0}
 .mobile-nav{grid-row:2;position:relative;inset:auto;align-self:end;width:100%}
 main{padding-bottom:24px}
 body[data-route=messages] .app-shell{height:auto;min-height:0;padding-bottom:0;overflow:hidden}
 body[data-route=discover][data-discover-view=map] .app-shell{overflow:hidden}
 body[data-route=discover][data-discover-view=map] .map-column,
 body[data-route=discover][data-discover-view=map] .discover-controls,
 body[data-route=discover][data-discover-view=map] .category-browser,
 body[data-route=discover][data-discover-view=map] .topbar,
 .notification-unread.is-map{position:absolute}
 .editor .form-actions{bottom:0}
}
/* Installed apps have no expanding browser toolbar. Use the full viewport,
   keeping the system home-indicator inset inside the navigation row only. */
@media(max-width:760px) and (display-mode:standalone){body{height:var(--keyboard-viewport,100lvh)}}
.launch-screen .launch-wordmark{width:184px;height:auto;justify-self:center;fill:initial;stroke:none}
#startup-recovery{max-width:340px;padding:0 24px;line-height:1.6}
#startup-recovery h1{font-size:24px;margin-bottom:12px}
#startup-recovery button{margin-top:18px;border-radius:24px;padding:12px 24px;background:#fff;color:#111}
#startup-recovery[hidden]{display:none}
