.profile-title-spacer{visibility:hidden;margin-bottom:18px}
.profile-settings-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.profile-language-circle{width:42px;height:42px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(255,255,255,.07);font-size:1.25rem;display:grid;place-items:center;cursor:pointer}.profile-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-settings-grid .profile-menu-row{min-height:52px;padding:12px 10px;font-size:.9rem;text-align:center;justify-content:center}.profile-city-dialog .city-district-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-city-dialog .city-district-list .profile-city-option{margin-top:0;min-height:46px;padding:9px;font-size:.82rem;white-space:nowrap;line-height:1.2}.profile-city-ok{position:fixed;left:20px;right:20px;bottom:max(18px,env(safe-area-inset-bottom));z-index:1402;width:auto;box-shadow:0 8px 22px rgba(0,0,0,.3)}.profile-city-dialog{padding-bottom:max(92px,calc(env(safe-area-inset-bottom) + 84px))}

.profile-menu-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.07);color:var(--text-primary);font:inherit;text-align:left;cursor:pointer}.profile-menu-row span{font-size:1.4rem;color:var(--text-secondary)}
.profile-sheet{position:fixed;inset:0;z-index:1300;overflow:auto;padding:max(24px,env(safe-area-inset-top)) 20px max(28px,env(safe-area-inset-bottom));background-color:var(--bg-color);background-image:radial-gradient(circle at 10% 10%,rgba(167,139,250,.08),transparent 40%),radial-gradient(circle at 90% 90%,rgba(34,211,238,.08),transparent 40%)}.profile-sheet[hidden]{display:none}.profile-sheet-header{max-width:600px;margin:0 auto 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-sheet-header h2{font-size:1.35rem;font-weight:750}.profile-sheet-content{max-width:600px;margin:0 auto;display:grid;gap:12px}.profile-menu-note{color:var(--text-secondary);font-size:.88rem;line-height:1.45}.notification-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.07)}.notification-row span{font-size:.95rem}.profile-toggle{position:relative;width:44px;height:26px;border:0;border-radius:999px;background:#475569;cursor:pointer;flex:0 0 auto}.profile-toggle::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.18s}.profile-toggle.on{background:#34d399}.profile-toggle.on::after{left:21px}.share-qr-wrap{display:grid;place-items:center;min-height:240px;padding:12px;border-radius:20px;background:#fff}.share-qr-wrap img{display:block;max-width:100%;height:auto}.share-link-row{display:flex;gap:8px;align-items:center}.share-link-row input{min-width:0;flex:1;padding:12px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.07);color:#fff;font:inherit}.share-link-row button,.profile-share-primary{padding:12px 14px;border:0;border-radius:12px;background:#8ab4ff;color:#08111f;font:inherit;font-weight:700;cursor:pointer}.profile-share-toggle{display:none}.share-link-row button,.profile-share-primary{touch-action:manipulation;-webkit-tap-highlight-color:rgba(138,180,255,.28);pointer-events:auto;transition:transform .12s ease,filter .12s ease,background .12s ease}.share-link-row button:active,.profile-share-primary:active,.share-link-row button.is-pressed,.profile-share-primary.is-pressed{transform:scale(.97);filter:brightness(.88);background:#6f9ff0!important}.share-link-row button:disabled,.profile-share-primary:disabled{opacity:.55;cursor:not-allowed}.profile-share-primary{width:100%}

.profile-sheet-header{position:relative;min-height:52px}.profile-back-button{border:0;border-radius:999px;padding:10px 14px;color:#fff;background:rgba(255,255,255,.1);font:inherit;cursor:pointer}.profile-close-button{width:44px;height:44px;border:1px solid rgba(255,255,255,.18);border-radius:50%;color:#fff;background:rgba(255,255,255,.1);font:inherit;font-size:1.7rem;line-height:1;cursor:pointer}.profile-sheet-header h2{margin:0}.profile-sheet-header .profile-back-button + h2{margin:0 auto}
.profile-back-button{display:none!important}

/* Harmonize profile controls and nested sheets with the dashboard/search design. */
.profile-title-spacer { margin-bottom:14px; }
.profile-menu-row, .admin-entry-button { min-height:58px; padding:14px 16px; border:1px solid rgba(255,255,255,.08); border-radius:20px; background:rgba(18,25,41,.72); color:var(--text-primary); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); transition:background .18s ease,transform .18s ease; }
.profile-menu-row:active, .admin-entry-button:active { background:rgba(31,43,68,.88); transform:scale(.99); }
.profile-sheet { position:fixed; inset:max(72px,calc(env(safe-area-inset-top) + 56px)) 8px 8px; z-index:1300; overflow:auto; padding:22px 16px max(24px,env(safe-area-inset-bottom)); border:1px solid rgba(255,255,255,.17); border-radius:30px; color:var(--text-primary); background:rgba(20,20,26,.84); background-image:none; box-shadow:0 18px 50px rgba(0,0,0,.48); backdrop-filter:blur(25px); -webkit-backdrop-filter:blur(25px); }
@media(max-width:560px) { .profile-sheet { inset:max(72px,calc(env(safe-area-inset-top) + 56px)) 8px 8px; padding:20px 14px max(24px,env(safe-area-inset-bottom)); border-radius:30px; } }
@media(prefers-reduced-motion:reduce) { .profile-menu-row,.admin-entry-button { transition:none; } }

.profile-sheet:not([hidden]) { animation: profileSheetIn .18s ease-out both; }
@keyframes profileSheetIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .profile-sheet:not([hidden]) { animation:none; } }

/* Match profile content gutters and spacing to the four-column home dashboard. */
#profile-screen .overlay-content { width:100%; max-width:1500px; margin:0 auto; display:grid; gap:12px; }
#profile-screen .profile-menu-row, #profile-screen .admin-entry-button { margin:0; width:100%; }
body:has(#profile-screen.open) .profile-share-toggle:not([hidden]) { display:grid; }

.profile-city-dialog { position:fixed; inset:max(72px,calc(env(safe-area-inset-top) + 56px)) 8px 8px; z-index:1400; display:block; overflow:auto; padding:22px 16px max(24px,env(safe-area-inset-bottom)); background:rgba(20,20,26,.98); border:1px solid rgba(255,255,255,.17); border-radius:30px; box-shadow:0 18px 50px rgba(0,0,0,.48); backdrop-filter:blur(25px); -webkit-backdrop-filter:blur(25px); }
.profile-city-dialog[hidden] { display:none; }
.profile-city-card { width:100%; max-width:720px; margin:0 auto; padding:0 0 24px; border:0; border-radius:0; color:var(--text-primary); background:transparent; box-shadow:none; text-align:center; }
.profile-city-card h2 { margin:0 0 18px; font-size:1.25rem; text-align:left; }
.profile-city-header { display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 10px; }
.profile-city-header h2 { margin:0; }
.profile-language-arrow{font-size:.75rem;opacity:.7;margin:0 2px}
.city-full-options { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.city-full-options .profile-city-option { min-height:48px;margin-top:0;padding:9px 8px;justify-content:center;text-align:center;font-size:.82rem;font-weight:700;white-space:nowrap; }
.city-full-options .profile-city-option small,.city-full-options .profile-city-option span { flex:none; }
.city-full-options .profile-city-option span,.city-full-options .profile-city-option small { margin-left:6px; }
.profile-city-card p { margin:0 0 12px; color:var(--text-secondary); line-height:1.45; }
.profile-city-ok { width:100%; min-height:46px; border:0; border-radius:14px; color:#08111f; background:#8ab4ff; font:inherit; font-weight:700; cursor:pointer; }
.profile-city-dialog:not([hidden]) .profile-city-card { animation:profileCityIn .18s ease-out both; }
@keyframes profileCityIn { from { opacity:0; transform:scale(.97) translateY(5px); } to { opacity:1; transform:scale(1) translateY(0); } }
@media(prefers-reduced-motion:reduce) { .profile-city-dialog:not([hidden]) .profile-city-card { animation:none; } }

.profile-city-value { margin-top:6px; color:var(--text-secondary); font-size:.82rem; }
.profile-city-value strong { color:var(--text-primary); font-weight:650; }

.profile-menu-row .profile-menu-trailing { display:flex; align-items:center; gap:10px; margin-left:auto; }
.profile-menu-row .profile-menu-value { color:var(--text-secondary); font-size:.85rem; font-weight:650; }

/* Final unified modal geometry */
.profile-sheet, .profile-city-dialog { inset:max(72px,calc(env(safe-area-inset-top) + 56px)) 8px 8px !important; }

/* Blur the profile screen behind every profile modal sheet. */
body:has(.profile-sheet:not([hidden]), .profile-city-dialog:not([hidden])) #profile-screen,
body:has(.profile-sheet:not([hidden]), .profile-city-dialog:not([hidden])) #miniapp-top-logo { filter:blur(11px); transform:scale(1.018); transform-origin:center; transition:filter .18s ease,transform .18s ease; }

.profile-language-circle { width:42px; min-width:42px; height:42px; padding:0; display:grid; place-items:center; border-radius:50%; color:#f3f4f6; -webkit-text-fill-color:#f3f4f6; font-size:.78rem; font-weight:750; }
.profile-language-circle #lang-current { display:inline!important; color:#f3f4f6; -webkit-text-fill-color:#f3f4f6; }
.profile-language-circle #lang-next,.profile-language-circle .profile-language-arrow { display:none!important; }

.profile-city-dialog .city-district-option span,.profile-city-dialog #city-region small{display:none}
/* Keep profile location details compact and prevent long addresses from overflowing. */
#profile-screen .profile-city-value { min-width:0; font-size:.78rem; line-height:1.3; overflow-wrap:anywhere; }
#profile-screen .profile-city-value strong { font-size:.78rem; }
#profile-screen .profile-address-value { min-width:0; max-width:100%; margin-top:4px; font-size:.68rem; line-height:1.3; overflow-wrap:anywhere; word-break:break-word; white-space:normal; }

/* Profile sheets use a dark glass surface on every platform/theme. */
#profile-screen, #profile-screen .overlay-title, #profile-screen .profile-card,
#profile-screen .profile-name, #profile-screen .profile-menu-row,
#profile-screen .admin-entry-button,
.profile-sheet, .profile-sheet h2, .profile-sheet .profile-menu-row,
.profile-sheet .notification-row, .profile-city-dialog, .profile-city-card,
.profile-city-dialog h2, .profile-city-dialog .profile-city-option { color:#f3f4f6 !important; }
#profile-screen .profile-username,
#profile-screen .profile-city-value, #profile-screen .profile-city-value strong,
#profile-screen .profile-address-value, #profile-screen .profile-note,
.profile-sheet .profile-menu-row span,
.profile-sheet .profile-menu-note,
.profile-city-dialog .profile-city-card p { color:#aab4c5 !important; }
#profile-screen .profile-menu-row, #profile-screen .admin-entry-button { -webkit-text-fill-color:#f3f4f6 !important; opacity:1 !important; }
#profile-screen .profile-menu-row span { -webkit-text-fill-color:#aab4c5 !important; }

.notification-setting-group{display:grid;min-width:0;margin:0 0 6px}.notification-setting-group:last-child{margin-bottom:0}.notification-setting-group .notification-row{margin:0}.notification-setting-group.has-reminder .notification-row{border-radius:16px 16px 12px 12px}.notification-reminder-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-top:3px;padding:8px 11px 8px 13px;border:1px solid rgba(255,255,255,.1);border-radius:12px 12px 16px 16px;background:rgba(18,25,41,.88);color:#f3f4f6;font-size:.84rem}.notification-reminder-row[hidden]{display:none!important}.notification-reminder-row label{min-width:0;line-height:1.3}.notification-reminder-select{flex:none;min-width:108px;padding:8px 26px 8px 10px;border:1px solid rgba(255,255,255,.18);border-radius:10px;color:#f3f4f6;background:#202632;font:inherit;font-size:.8rem}
/* Share sheet: keep the main action at the bottom above the Telegram tab bar. */
#profile-share-sheet .share-content { padding-bottom:max(88px,calc(env(safe-area-inset-bottom) + 92px)); gap:10px; }
#profile-share-sheet .share-link-row { margin-top:0; }
#profile-share-sheet .share-send-bottom { position:fixed; left:20px; right:20px; bottom:max(18px,env(safe-area-inset-bottom)); z-index:1405; width:auto; min-height:52px; box-shadow:0 8px 22px rgba(0,0,0,.3); }
#profile-share-retry { padding:10px 14px; border:1px solid rgba(138,180,255,.45); border-radius:12px; background:rgba(138,180,255,.1); color:#b9d5ff; font:inherit; font-weight:650; cursor:pointer; }
#profile-share-retry[hidden] { display:none!important; }
/* Keep the share URL row inside the sheet on narrow Telegram WebViews. */
#profile-share-sheet,
#profile-share-sheet * { box-sizing:border-box; }
#profile-share-sheet .profile-sheet-content,
#profile-share-sheet .share-link-row { min-width:0; max-width:100%; }
#profile-share-sheet .share-link-row { display:flex; flex-wrap:wrap; align-items:stretch; overflow:hidden; }
#profile-share-sheet .share-link-row input { min-width:0; width:0; flex:1 1 12rem; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
#profile-share-sheet .share-link-row button { flex:0 1 auto; min-width:0; max-width:100%; white-space:nowrap; }
@media (max-width:360px) {
  #profile-share-sheet .share-link-row { gap:6px; }
  #profile-share-sheet .share-link-row input,
  #profile-share-sheet .share-link-row button { flex:1 1 100%; width:100%; }
}
/* Admin entry matches the profile sheet rows and the app's glass panel system. */
#admin-entry-button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:52px; margin-top:0; padding:12px 16px; border:1px solid rgba(255,255,255,.14); border-radius:16px; color:var(--text-primary); background:rgba(255,255,255,.07); font:inherit; font-weight:650; text-align:left; cursor:pointer; }
#admin-entry-button span { color:var(--text-secondary); font-size:1.4rem; }
#admin-entry-button:active { background:rgba(255,255,255,.11); transform:scale(.99); }
.admin-panel-sheet { z-index:1400; padding:0 !important; }
.admin-panel-sheet .profile-sheet-header { flex:0 0 auto; padding:18px 16px 14px; margin:0; }
.admin-panel-frame-wrap { height:calc(100% - 76px); min-height:0; overflow:hidden; border-top:1px solid rgba(255,255,255,.1); }
#admin-panel-frame { width:100%; height:100%; border:0; display:block; background:#0a0a0a; }

.project-list-empty{color:var(--text-secondary);font-size:.9rem;text-align:center;padding:22px 12px}.project-item{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;padding:12px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.06)}.project-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;background:rgba(255,255,255,.1);display:grid;place-items:center;color:#9fb9e8;font-size:1.25rem;font-weight:750}.project-info{min-width:0}.project-info h3{margin:0 0 4px;font-size:1rem;font-weight:750}.project-info p{margin:0;color:#aab4c5;font-size:.84rem;line-height:1.35;overflow-wrap:anywhere}.project-open{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border-radius:12px;background:#8ab4ff;color:#08111f;font-size:.82rem;font-weight:750;text-decoration:none;white-space:nowrap}@media(max-width:420px){.project-item{grid-template-columns:44px minmax(0,1fr) auto;gap:9px;padding:10px}.project-avatar{width:44px;height:44px}.project-open{padding:0 9px;font-size:.76rem}}

/* Live external calculator fills the existing profile modal sheet. */
#profile-calculator-sheet{display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box}
#profile-calculator-sheet .profile-sheet-header{width:100%;flex:0 0 auto;margin:0 auto 10px}
#profile-calculator-sheet .profile-calculator-actions{display:flex;align-items:center;gap:9px;margin-left:auto}
#profile-calculator-sheet .profile-calculator-external{color:#aab4c5;font-size:.78rem;font-weight:650;text-decoration:none;white-space:nowrap}
#profile-calculator-sheet .profile-calculator-content{display:flex;flex:1 1 auto;min-height:0;width:100%;max-width:none;margin:0;padding:0;overflow:hidden}
#profile-calculator-frame{display:block;flex:1 1 auto;width:100%;height:100%;min-height:0;border:0;border-radius:15px;background:#fff}
@media(max-width:420px){#profile-calculator-sheet .profile-sheet-header{gap:6px}#profile-calculator-sheet .profile-calculator-actions{gap:6px}#profile-calculator-sheet .profile-calculator-external{font-size:.7rem}}

/* Native calculator UI */
#profile-calculator-sheet:not([hidden]){display:flex!important;flex-direction:column!important;overflow:hidden!important}#profile-calculator-sheet[hidden]{display:none!important}
#profile-calculator-sheet .profile-sheet-header{flex:0 0 auto;width:100%;margin:0 auto 10px}
.profile-calculator-content{display:grid!important;flex:1 1 auto;min-height:0;width:100%;max-width:none;margin:0;padding:0 2px 4px;overflow:auto;gap:12px}
.calculator-intro h3{margin:0 0 5px;font-size:1.05rem}.calculator-intro p,.calculator-note{margin:0;color:#aab4c5;font-size:.8rem;line-height:1.35}.calculator-section{padding:13px;border:1px solid rgba(255,255,255,.12);border-radius:17px;background:rgba(255,255,255,.045)}.calculator-section h4{margin:0 0 10px;font-size:.95rem}.calculator-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.calculator-fields label,.calc-appliance label{display:grid;gap:5px;color:#aab4c5;font-size:.72rem}.calculator-fields input,.calc-appliance input{width:100%;box-sizing:border-box;padding:9px;border:1px solid rgba(255,255,255,.15);border-radius:10px;background:rgba(255,255,255,.07);color:#fff;font:inherit}.calculator-section-head{display:flex;align-items:center;justify-content:space-between}.calculator-add,.calculator-primary,.calculator-secondary{border:0;border-radius:10px;padding:9px 11px;font:inherit;font-size:.78rem;font-weight:700;cursor:pointer}.calculator-add{background:rgba(52,211,153,.15);color:#72e4bd}.calc-appliance{display:grid;grid-template-columns:minmax(0,1.5fr) .8fr .55fr 34px;gap:7px;align-items:end;margin-top:8px}.calc-remove{height:37px;border:1px solid rgba(240,96,106,.35);border-radius:10px;background:rgba(240,96,106,.1);color:#ff9da5;font-size:1.1rem;cursor:pointer}.calculator-result{padding:15px;border:1px solid rgba(52,211,153,.35);border-radius:17px;background:linear-gradient(145deg,rgba(52,211,153,.12),rgba(255,255,255,.04))}.calculator-result>div:first-child{display:flex;justify-content:space-between;color:#aab4c5;font-size:.8rem}.calculator-result strong{display:block;margin-top:4px;color:#eef2fb;font-size:1.35rem}.calculator-result>div:first-child strong{color:#72e4bd;font-size:1.6rem}.calculator-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;color:#aab4c5;font-size:.75rem}.calculator-result-grid strong{font-size:1rem}.calculator-result p{margin:12px 0 0;color:#eef2fb;font-size:.82rem}.calculator-actions{display:flex;gap:8px}.calculator-primary{flex:1;background:#8ab4ff;color:#08111f}.calculator-secondary{background:rgba(255,255,255,.1);color:#eef2fb}.calculator-note{text-align:center}@media(max-width:420px){.calculator-fields{gap:7px}.calculator-section{padding:11px}.calc-appliance{grid-template-columns:minmax(0,1fr) .72fr .52fr 32px;gap:5px}}

/* Keep calculator title and close button fixed; scroll only the calculator body. */
#profile-calculator-sheet:not([hidden]){display:flex!important;flex-direction:column!important;overflow:hidden!important}
#profile-calculator-sheet .profile-sheet-header{position:sticky!important;top:0!important;z-index:5!important;flex:0 0 auto!important;align-self:stretch!important;width:100%!important;box-sizing:border-box;padding:8px 0 12px!important;margin:0 0 10px!important;background:rgba(20,20,26,.97);border-bottom:1px solid rgba(255,255,255,.1)}
#profile-calculator-sheet .profile-calculator-content{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}

/* Match calculator sheet background to the other profile panels. */
#profile-calculator-sheet:not([hidden]){background:rgba(20,20,26,.84)!important;background-image:none!important}
#profile-calculator-sheet .profile-calculator-content{background:transparent!important}
#profile-calculator-sheet .calculator-section,#profile-calculator-sheet .calculator-result{background:rgba(255,255,255,.045)!important}

/* Mobile: keep swipe scrolling, hide the visual scrollbar. */
#profile-calculator-sheet .profile-calculator-content{scrollbar-width:none;-ms-overflow-style:none}
#profile-calculator-sheet .profile-calculator-content::-webkit-scrollbar{display:none;width:0;height:0}


/* Branded map tab: a quiet full-screen page, not a popup/map iframe. */
#map-screen{position:fixed!important;inset:0!important;z-index:2!important;display:none!important;overflow:hidden!important;padding:0!important;border:0!important;border-radius:0!important;background:#070b14!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#map-screen.open{display:flex!important;flex-direction:column!important;align-items:center!important}
body:has(#map-screen.open) #miniapp-top-logo{display:none!important}
.map-page-logo{position:absolute!important;top:var(--miniapp-logo-top,39px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:170px!important;height:46px!important;margin:0!important;object-fit:contain!important}

.profile-settings-grid .profile-map-toggle-row{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 14px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.07);cursor:pointer}.profile-map-toggle-row strong,.profile-map-toggle-row small{display:block}.profile-map-toggle-row strong{font-size:.9rem}.profile-map-toggle-row small{margin-top:3px;color:var(--text-secondary);font-size:.74rem}.profile-map-toggle-row input{position:absolute;opacity:0;width:1px;height:1px}.profile-switch{position:relative;flex:0 0 44px;width:44px;height:26px;border-radius:99px;background:#475569;transition:background .18s}.profile-switch:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .18s}.profile-map-toggle-row input:checked+.profile-switch{background:#34d399}.profile-map-toggle-row input:checked+.profile-switch:after{transform:translateX(18px)}.profile-map-toggle-row input:focus-visible+.profile-switch{outline:2px solid #8ab4ff;outline-offset:2px}

.quick-tab[hidden]{display:none!important}.map-admin-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 14px;margin-bottom:14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.045);cursor:pointer}.map-admin-toggle strong,.map-admin-toggle small{display:block}.map-admin-toggle strong{font-size:.9rem}.map-admin-toggle small{margin-top:3px;color:#aab4c5;font-size:.74rem}.map-admin-toggle input{position:absolute;opacity:0;width:1px;height:1px}.admin-switch{position:relative;flex:0 0 44px;width:44px;height:26px;border-radius:99px;background:#475569}.admin-switch:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .18s}.map-admin-toggle input:checked+.admin-switch{background:#34d399}.map-admin-toggle input:checked+.admin-switch:after{transform:translateX(18px)}

#profile-calculator-sheet .profile-sheet-header h2{color:#72e4bd!important;-webkit-text-fill-color:#72e4bd!important;font-size:1.2rem!important;font-weight:800!important}

.calculator-result-caption{margin-bottom:10px;color:#aab4c5;font-size:.8rem;font-weight:650}

#profile-calculator-sheet .profile-sheet-header h2{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;text-align:center}.calc-header-label{color:#f3f4f6!important;-webkit-text-fill-color:#f3f4f6!important;font-size:.9rem;font-weight:700}.calc-header-label+strong{color:#72e4bd!important;-webkit-text-fill-color:#72e4bd!important;font-size:1.25rem;font-weight:850;line-height:1.1}
/* Calculator header: no black strip; move centered runtime closer to the panel top. */
#profile-calculator-sheet .profile-sheet-header{background:transparent!important;border-bottom:0!important;padding:0 0 8px!important;margin:0!important;min-height:0!important}
#profile-calculator-sheet .profile-sheet-header h2{margin:0!important;padding:0!important;line-height:1.12!important}
#profile-calculator-sheet .profile-calculator-content{padding-top:0!important}
.kyiv-oblast-district-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kyiv-oblast-district-list .profile-city-option{margin-top:0;min-height:46px;padding:9px;font-size:.78rem;white-space:normal;line-height:1.15}

/* City and district picker uses the same sheet geometry as other profile windows. */
.profile-city-dialog{inset:max(72px,calc(env(safe-area-inset-top) + 56px)) 8px 8px!important;padding:22px 16px max(24px,env(safe-area-inset-bottom))!important;background:rgba(20,20,26,.84)!important;background-image:none!important;border:1px solid rgba(255,255,255,.17)!important;border-radius:30px!important;box-shadow:0 18px 50px rgba(0,0,0,.48)!important;backdrop-filter:blur(25px)!important;-webkit-backdrop-filter:blur(25px)!important}.profile-city-header{justify-content:space-between!important;max-width:600px;margin:0 auto 18px!important}.profile-city-header h2{display:block!important;color:#f3f4f6!important;font-size:1.25rem!important;font-weight:750!important}.profile-city-card{max-width:600px!important;padding:0!important;text-align:left!important}.profile-city-card p{text-align:left!important}
/* Only the active city-picker step is visible; prevent hidden district lists from stacking. */
.profile-city-dialog .city-step[hidden]{display:none!important}.profile-city-dialog .city-step:not([hidden]){display:block!important}

.zakarpattia-group-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.zakarpattia-group-list .profile-city-option{margin-top:0;min-height:48px;justify-content:center;font-weight:700}

#admin-entry-button[hidden]{display:none!important}

.profile-city-dialog .oblast-district-option span,.profile-city-dialog .odeska-district-option span{display:none!important}.profile-city-dialog .city-district-list .profile-city-option{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:center;line-height:1.15}.profile-city-dialog .odeska-district-option{min-height:58px;padding:9px 7px;font-size:.78rem}

/* Push setup card: compact dark glass treatment that fits narrow Telegram screens. */
.profile-sheet .push-notification-setting {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 12px; align-items:center;
  min-width:0; margin:0 0 14px; padding:15px 14px; border:1px solid rgba(255,255,255,.15);
  border-radius:18px; background:linear-gradient(145deg,rgba(31,41,58,.96),rgba(18,25,41,.96));
  box-shadow:0 10px 24px rgba(0,0,0,.2); box-sizing:border-box;
}
.profile-sheet .push-notification-copy { min-width:0; }
.profile-sheet .push-notification-copy strong { color:#f3f4f6; font-size:1rem; line-height:1.2; }
.profile-sheet .push-notification-copy p { margin:6px 0 0; color:#aab4c5; font-size:.8rem; line-height:1.4; }
.profile-sheet .push-browser-open { grid-column:2; align-self:center; width:auto; min-width:0; min-height:40px; padding:10px 13px; border:1px solid rgba(52,211,153,.45); border-radius:12px; background:#34d399; color:#062318; font-size:.76rem; line-height:1.1; white-space:nowrap; overflow:hidden; }
.profile-sheet .push-notification-status { grid-column:1/-1; margin:0; padding-top:10px; border-top:1px solid rgba(255,255,255,.1); color:#8f9bb0; font-size:.76rem; }
.profile-sheet .push-notification-setting.is-on { border-color:rgba(52,211,153,.55); background:linear-gradient(145deg,rgba(20,83,64,.72),rgba(18,25,41,.97)); }
@media(max-width:380px){ .profile-sheet .push-notification-setting{padding:13px 12px;gap:8px}.profile-sheet .push-browser-open{padding:9px 10px;font-size:.72rem} }

/* Profile help cards */
.profile-help-content{gap:10px}
.profile-help-card{padding:14px 16px;border:1px solid rgba(255,255,255,.13);border-radius:16px;background:rgba(255,255,255,.055)}
.profile-help-card strong{display:block;color:#f3f4f6;font-size:.92rem;line-height:1.25}
.profile-help-card p{margin:6px 0 0;color:#aab4c5;font-size:.82rem;line-height:1.45}
