/* Server-connected mobile application and administration. */
:root { color-scheme: dark; }
body { font-family: Arial,Helvetica,sans-serif; }
a.btn { text-decoration:none; }
.loading-state { display:grid; place-content:center; gap:16px; min-height:70vh; text-align:center; padding:30px; }
.loading-state p { color:var(--muted); font-size:15px; }
.loading-state .brand-logo { width:230px; height:auto; margin:auto; }
.empty p,.bio,.about-content p { font-size:15px; }
.section-heading p { font-size:14px; }
.connection { font-size:12px; color:var(--muted); }
.connection.offline { color:#ffbac8; }
.chat-header .connection { max-width:235px; font-size:11px; }
.chat-header h3 { font-size:16px; }
.chat-header .avatar { object-fit:cover; }
.history-btn { align-self:center; flex-shrink:0; min-height:40px; border-radius:22px; padding:9px 16px; background:#323236; color:#dddde5; font-size:13px; }
.chat-messages .date-label { margin-bottom:6px; }
.chat-form .btn:disabled { opacity:.6; }
.message { scroll-margin:12px; }
.message time { min-height:12px; }
.place-search { margin-bottom:12px; }
.venue-content p { font-size:12px; }
.live-stats { display:flex; align-items:center; gap:9px; margin-top:10px; font-size:12px; }
.live-stats strong { color:#fff; }
.venue-type { max-width:200px; }
.venue-test { font-size:11px; color:#b7b7c3; }
.screen .action-row { display:flex; gap:8px; margin:14px 0; }
.action-row .btn { font-size:14px; min-height:44px; }
.test-payment { font-size:13px; color:#c0c0ca; line-height:1.5; text-align:center; }
.venue-intro h1 { text-shadow:0 1px 15px #000; }
.venue-intro { min-height:180px; }
.venue-screen .page-top { position:relative; }
.venue-screen .venue-photo { height:310px; }
.guest-grid .guest-card { height:210px; }
.guest-card .person-copy h3 { font-size:15px; }
.guest-card .person-copy .pill { font-size:12px; }
.status-options .status-option { font-size:18px; }
.status-screen>.btn { margin-top:24px; }
.person-screen .portrait { height:390px; }
.person-screen .small { font-size:14px; }
.request-row { gap:13px; padding:16px; }
.request-copy h3 { font-size:16px; }
.request-copy p { font-size:13px; }
.request-actions { margin-left:0; flex-basis:100%; }
.request-state { font-size:13px; margin-left:0; }
.notification-row { font-size:15px; }
.notification-row p { font-size:13px; }
.profile-heading h1 { font-size:25px; }
.profile-heading p { font-size:14px; }
.profile-screen .profile-glass { padding:0; }
.profile-screen .profile-photo { height:128px; width:128px; margin:15px auto; }
.profile-screen .photo-strip { height:auto; margin-bottom:18px; }
.profile-screen .photo-thumb,.profile-screen .photo-add { width:calc((100% - 27px)/4); height:74px; }
.profile-screen .input { min-height:46px; }
.profile-screen .field textarea { min-height:90px; resize:none; }
.profile-screen .field { margin-bottom:12px; }
.profile-screen .interest-title { font-size:14px; }
.profile-screen .interests-grid { display:flex; gap:7px; flex-wrap:wrap; }
.profile-screen .interests-grid .pill { font-size:13px; min-height:36px; }
.profile-screen .profile-glass>.btn { font-size:17px; margin-top:18px; min-height:48px; }
.profile-screen .photo-add span { font-size:11px; }
.form-label { display:block; font-size:14px; margin-bottom:7px; color:#d7d7df; }
.form-field { margin:12px 0; }
.profile-screen .fields-row .input { padding-right:8px; }
.profile-screen .profile-extra { display:grid; gap:9px; margin-top:24px; }
.profile-screen .profile-extra .btn { margin:0; min-height:46px; font-size:14px; }
.profile-security { margin:12px 0; }
.legal { font-size:11px; }
.profile-screen .profile-error { min-height:16px; }
.top-title { display:flex; align-items:center; gap:14px; margin:5px 0 24px; }
.top-title h1 { font-size:27px; }
.benefit strong { font-size:14px; }
.benefit p { font-size:12px; }
.access-panel { padding:20px 16px; }
.access-screen .benefit { min-height:65px; }
.access-screen .access-panel h1 { font-size:23px; }
.access-screen .access-panel>p { font-size:14px; }
.access-screen>.btn { min-height:48px; margin-top:12px; }
.screen .payment-total p { font-size:15px; }
.notice { font-size:12px; }
.city-option { min-height:40px; font-size:14px; }
.city-panel h1 { font-size:23px; }
.city-panel>p { font-size:14px; }
.onboard-city .city-panel { margin:12px 2px; }
.city-panel>.btn { margin-top:18px; }
.screen-login .login-panel { padding:24px 20px; }
.login-panel .btn { margin:25px 0 17px; font-size:16px; }
.login-panel .social-btn { height:48px; }
.login-bottom { font-size:13px; }
.bottom-dock .nav button { font-size:11px; }
.bottom-dock .nav button > span:not(.badge) { text-overflow:ellipsis; overflow:hidden; max-width:100%; }
.map-header .home-header { gap:8px; }
.map-card-copy .live-stats { font-size:12px; }
.map-card-bottom>.glass { font-size:13px; justify-content:center; min-height:45px; }
.map-card-bottom .btn { font-size:15px; }
.map-selected .small { font-size:13px; }
.map-selected .map-card-photo { object-fit:cover; }
.map-close { z-index:1; }
.dialog .input { min-height:44px; font-size:16px; }
.dialog p { font-size:14px; }
.dialog .dialog-top .icon-btn { min-height:36px; min-width:36px; }
.checkbox-line { display:flex; align-items:center; gap:10px; margin:15px 0; font-size:14px; }
.checkbox-line input { width:19px; height:19px; accent-color:var(--cyan); }
.form-error { color:#ffb2bb; font-size:13px; line-height:1.4; min-height:18px; }
.install-hint { font-size:14px; color:var(--muted); }
.empty .secondary { margin:10px auto 0; }
.admin-screen { width:100%; max-width:1120px; min-height:100svh; padding:24px 24px 60px; }
.admin-top { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:26px; }
.admin-top .brand-logo { width:180px; height:auto; }
.admin-top h1 { font-size:25px; margin-top:12px; }
.admin-top .btn { width:auto; min-height:42px; font-size:14px; }
.admin-layout { display:grid; grid-template-columns:180px minmax(0,1fr); gap:26px; }
.admin-tabs { display:flex; flex-direction:column; gap:6px; }
.admin-tabs button { background:transparent; border:1px solid transparent; border-radius:15px; padding:13px; font-size:14px; text-align:left; display:flex; align-items:center; gap:10px; min-height:46px; }
.admin-tabs button.active { color:var(--cyan); background:var(--surface-raised); border-color:#4b4b52; }
.admin-content h2 { font-size:23px; margin-bottom:18px; }
.admin-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; flex-wrap:wrap; }
.admin-toolbar h2 { margin:0; }
.admin-toolbar .btn { width:auto; font-size:14px; min-height:42px; }
.admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.admin-metric { border:1px solid #3e3e46; padding:20px; border-radius:20px; background:var(--surface); }
.admin-metric p { color:#b4b4bd; font-size:14px; }
.admin-metric strong { display:block; font-size:32px; margin-top:10px; }
.admin-list { display:grid; gap:12px; }
.admin-row { background:var(--surface); border:1px solid #3e3e46; border-radius:18px; padding:16px; display:flex; gap:16px; align-items:flex-start; }
.admin-row>img { width:62px; height:62px; border-radius:14px; flex-shrink:0; }
.admin-row-copy { flex:1; min-width:0; }
.admin-row h3 { font-size:16px; }
.admin-row p { font-size:13px; color:#b9b9c3; margin:6px 0; overflow-wrap:anywhere; }
.admin-row .btn { width:auto; font-size:13px; min-height:40px; padding:9px 14px; }
.admin-tag { display:inline-flex; font-size:12px; padding:4px 8px; border-radius:12px; background:#3b3b41; color:#d6d6dd; }
.admin-tag.warning { background:#49313b; color:#ffbdc9; }
.admin-tag.good { background:#294641; color:#9af0d8; }
.admin-note { font-size:14px; color:#b3b3bf; margin:18px 0; line-height:1.5; }
.admin-search { max-width:400px; margin-bottom:18px; }
.admin-dialog { max-width:580px; }
.admin-dialog .fields-row { gap:12px; }
.admin-venue-preview { height:140px; width:100%; object-fit:cover; border-radius:14px; }
@media(max-width:650px){.admin-screen{padding:20px 14px 35px}.admin-layout{display:block}.admin-tabs{flex-direction:row;overflow-x:auto;margin:0 -2px 20px;padding-bottom:6px}.admin-tabs button{white-space:nowrap}.admin-tabs button i{display:none}.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-metric{padding:15px}.admin-row{gap:12px;flex-wrap:wrap}.admin-row>.btn{margin-left:0}.admin-top h1{font-size:22px}.admin-top .brand-logo{width:155px}.admin-dialog .fields-row{grid-template-columns:1fr 1fr}}
@media(max-width:360px){.bottom-dock .nav button{font-size:10px}.person-screen .portrait{height:350px}.guest-grid .guest-card{height:195px}.guest-card .person-copy h3{font-size:14px}}

.profile-screen .photo-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.profile-screen .photo-thumb,.profile-screen .photo-add { width:100%; }
.admin-row[hidden] { display:none; }
/* Keep map actions above variable-height venue cards and contain guest grid tracks. */
.map-controls { top:142px; bottom:auto; flex-direction:row; gap:8px; z-index:600; }
.map-selected { max-height:calc(var(--stable-height,100svh) - 300px); overflow-y:auto; }
.guest-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.guest-card,.guest-card .person-link { min-width:0; }
@media(orientation:landscape) and (max-height:500px){
 .map-controls { top:122px; }
 .map-selected { max-height:calc(var(--stable-height,100svh) - 270px); }
}
.guest-grid .guest-card { aspect-ratio:auto; width:100%; max-width:100%; }
.guest-card .person-copy h3 { overflow:hidden; text-overflow:ellipsis; }

.organization-section{padding:20px;margin-bottom:24px}.organization-section h2{font-size:22px}.category-list{display:flex;overflow:auto;gap:8px;margin:16px 0}.category-list .btn{white-space:nowrap;min-width:max-content;padding:10px 14px;width:auto}.organization-row{width:100%;text-align:left;display:grid;gap:5px;padding:16px 0;border-bottom:1px solid #ffffff20}.organization-row span{font-size:13px;color:#aaa}.login-panel .btn{margin-top:12px}.login-panel .btn:disabled{opacity:.35}
