.mode-toggle--global{display:flex;gap:.4rem;position:sticky;top:.4rem;z-index:40;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);padding:.35rem;border-radius:999px;border:1px solid #e5e7eb;margin:.3rem 0 .8rem}
.mode-toggle--global a{flex:1;text-align:center;padding:.45rem .65rem;border-radius:999px;border:1px solid #ddd;text-decoration:none;color:#111;background:#fff;font-weight:600}
.mode-toggle--global a.active{background:#111;color:#fff}
.brand-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.brand-header__main{display:flex;align-items:center;gap:.8rem;min-width:0}
.brand-header__main-link{text-decoration:none;color:inherit}
.brand-header__main-link:hover{opacity:.94}
.brand-header a,.ios-topbar a{text-decoration:none!important;border-bottom:none!important}
.brand-header__name-row{display:flex;align-items:center;gap:.45rem;flex-wrap:nowrap}
.alpha-badge{display:inline-flex;align-items:center;justify-content:center;padding:.14rem .5rem;border-radius:999px;font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:rgba(15,23,42,.1);color:#7c2d12;border:1px solid rgba(194,65,12,.28)}
.app-install-icon-btn{width:auto!important;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.08rem;padding:.24rem .36rem!important;margin:0!important;border-radius:10px!important;border:1px solid #dbe3ef!important;background:#fff!important;color:#0f172a!important;line-height:1}
.app-install-icon-btn span{font-size:.86rem;line-height:1}
.app-install-icon-btn small{font-size:.54rem;font-weight:700;letter-spacing:.01em}
.app-update-banner{display:none;position:sticky;top:0;z-index:50;background:#111;color:#fff;padding:.6rem .75rem;border-radius:12px;margin:.5rem 0}
.app-update-banner.show{display:block}
.toast{position:fixed;left:50%;bottom:1rem;transform:translateX(-50%);background:#111;color:#fff;padding:.55rem .8rem;border-radius:999px;font-size:.85rem;z-index:80;opacity:0;pointer-events:none;transition:opacity .2s}
.toast.show{opacity:1}
.ios-topbar{display:flex;align-items:center;justify-content:space-between;gap:.65rem;margin:.2rem 0 .65rem;padding:.45rem .55rem;border-radius:16px;background:rgba(255,255,255,.82);border:1px solid rgba(148,163,184,.28);box-shadow:0 8px 24px rgba(15,23,42,.08)}
.ios-topbar__brand{display:flex;align-items:center;gap:.68rem;min-width:0;flex:1;color:inherit;text-decoration:none}
.ios-topbar__brand img{width:42px;height:42px;border-radius:12px;box-shadow:0 8px 20px rgba(15,23,42,.22);flex-shrink:0}
.ios-topbar__brand-text{display:block;min-width:0;line-height:1;overflow:visible}
.ios-topbar__brand-name{display:block;font-weight:800;font-size:1.03rem;line-height:1.12;letter-spacing:.01em;white-space:nowrap;min-width:0}
.ios-topbar__brand-name-row{display:flex;align-items:center;gap:.4rem;flex-wrap:nowrap;min-width:0}
.ios-topbar__alpha-badge{padding:.1rem .4rem;font-size:.58rem;flex-shrink:0;position:relative;z-index:1}
.ios-topbar__brand-tagline{display:block;margin-top:.15rem;font-size:.68rem;color:#475569;line-height:1.1;white-space:nowrap;overflow:visible;text-overflow:clip;max-width:none}
.ios-topbar__title-link{text-decoration:none;color:inherit}
.profile-menu-trigger{width:44px;height:44px;border-radius:50%;padding:0;overflow:hidden;border:1px solid #d1d5db;background:#fff;display:grid;place-items:center;box-shadow:0 8px 18px rgba(15,23,42,.18)}
.profile-menu-avatar{width:100%;height:100%;object-fit:cover;display:block}
.profile-menu-avatar--fallback{display:flex;align-items:center;justify-content:center;font-size:1.1rem;background:#f8fafc;color:#0f172a}
.profile-drawer{position:fixed;top:0;right:0;height:100vh;width:min(360px,88vw);transform:translateX(105%);transition:transform .22s ease;z-index:1400;padding:.85rem;background:transparent}
.profile-drawer.open{transform:translateX(0)}
.profile-drawer__card{height:100%;background:#fff;border-radius:20px;box-shadow:0 16px 32px rgba(15,23,42,.22);padding:1rem 1rem calc(6.5rem + env(safe-area-inset-bottom,0px));overflow:auto}
.drawer-refresh-btn{width:auto!important;min-width:0!important;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.06rem;padding:.26rem .44rem!important;margin:0!important;border-radius:10px!important;background:#fff!important;color:#0f172a!important;border:1px solid #dbe3ef!important;line-height:1;flex:0 0 auto}
.drawer-refresh-btn span{font-size:.85rem;line-height:1}
.drawer-refresh-btn small{font-size:.5rem;font-weight:700;letter-spacing:.01em}
.profile-drawer__identity{display:flex;align-items:center;gap:.7rem;padding:.35rem .15rem .75rem;border-bottom:1px solid #eef2f7;margin-bottom:.35rem}
.profile-drawer__avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#f8fafc;border:1px solid #e2e8f0;object-fit:cover;flex:0 0 52px}
.profile-drawer__avatar--fallback{font-size:1.25rem}
.profile-drawer__identity-main{min-width:0;flex:1}
.profile-drawer__name{margin:.1rem 0;font-weight:700}
.profile-drawer__profile-link{display:inline-block;margin-top:.08rem;color:#475569;text-decoration:none;font-size:.88rem}
.profile-drawer__profile-link:hover{text-decoration:none}
.profile-drawer__modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;padding:.45rem 0 .65rem}
.profile-drawer__modes a{display:block!important;text-align:center;border:1px solid #dbe3ef;border-radius:999px;padding:.45rem .3rem!important;background:#fff;font-size:.78rem;font-weight:700}
.profile-drawer__modes a.active{background:#111827;color:#fff;border-color:#111827}
.profile-drawer__links a,.profile-drawer__links summary{display:block;padding:.62rem .35rem;border-bottom:0;color:#111827;text-decoration:none;cursor:pointer}
.profile-drawer__links details{margin:.2rem 0 .35rem}
.profile-drawer__links details a{padding-left:1rem}
.profile-drawer__links .logout-link{color:#b91c1c;font-weight:700}
.profile-drawer__footer{margin-top:.7rem;padding:.7rem .2rem 0;border-top:1px solid #eef2f7;display:grid;gap:.55rem}
.profile-drawer__footer-links{display:flex;flex-wrap:wrap;gap:.35rem .65rem}
.profile-drawer__footer-links a{padding:0!important;font-size:.78rem;color:#475569;text-decoration:none}
.profile-drawer__footer-links a:hover{text-decoration:underline}
.profile-drawer__version{margin:0;font-size:.76rem}
.profile-drawer__version a{text-decoration:none}
.profile-drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.34);opacity:0;pointer-events:none;transition:opacity .2s;z-index:1350}
.profile-drawer-backdrop.open{opacity:1;pointer-events:auto}
.ios-tabbar{position:fixed;left:50%;transform:translateX(-50%);bottom:.35rem;width:min(760px,95vw);background:rgba(255,255,255,.98);backdrop-filter:blur(8px);border:1px solid #e5e7eb;border-radius:16px;z-index:1200;padding:.2rem .3rem;box-shadow:0 10px 26px rgba(15,23,42,.2)}
.ios-tabbar ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.1rem}
.ios-tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;color:#6b7280;padding:.3rem;border-radius:12px;font-size:.72rem;position:relative}
.ios-tabbar a .icon{font-size:1.05rem;line-height:1}
.ios-tabbar a.active{color:#111;background:#f3f4f6;font-weight:700}
.ios-tabbar__badge{position:absolute;top:.08rem;right:.8rem;background:#ef4444;color:#fff;border-radius:999px;padding:0 .32rem;font-size:.64rem}
body{padding-bottom:5rem!important}
@media (max-width:520px){
  .ios-topbar{padding:.42rem .48rem;gap:.5rem}
  .ios-topbar__brand img{width:34px;height:34px;border-radius:10px}
  .ios-topbar__brand-name{font-size:.92rem}
  .ios-topbar__brand-name-row{gap:.28rem}
  .ios-topbar__alpha-badge{padding:.08rem .34rem;font-size:.53rem}
  .ios-topbar__brand-tagline{font-size:.57rem;max-width:none}
  .drawer-refresh-btn{padding:.2rem .32rem!important;border-radius:8px!important}
  .drawer-refresh-btn span{font-size:.7rem}
  .drawer-refresh-btn small{font-size:.43rem}
}
.notif-page{display:grid;gap:1rem}
.notif-page__hero{background:linear-gradient(140deg,#ff4d8d,#7c3aed);color:#fff;padding:1rem;border-radius:18px;box-shadow:0 14px 30px rgba(124,58,237,.22)}
.notif-page__hero h1{margin:.15rem 0 .3rem;font-size:1.7rem}
.notif-page__eyebrow{margin:0;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.92}
.notif-page__hero .muted{color:rgba(255,255,255,.92)}
.notif-form{background:#fff;border:1px solid #ebeff5;border-radius:18px;padding:.9rem;box-shadow:0 10px 22px rgba(15,23,42,.08)}
.notif-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.65rem}
.notif-option{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;padding:.7rem .75rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px}
.notif-option strong{display:block;line-height:1.2}
.notif-option small{display:block;color:#64748b;margin-top:.2rem;line-height:1.35}
.notif-option input[type="checkbox"]{width:1.1rem;height:1.1rem;margin:.1rem 0 0;accent-color:#ff2a6d}
.notif-save-btn{margin-top:.8rem;background:linear-gradient(135deg,#ff4d8d,#7c3aed)!important;border:0!important}
.notif-push{background:#fff;border:1px solid #ebeff5;border-radius:18px;padding:.9rem;box-shadow:0 8px 20px rgba(15,23,42,.07)}
.notif-push h2{margin:.1rem 0 .35rem}
.notif-push__actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.6rem}
.notif-secondary-btn{background:#fff!important;color:#0f172a!important;border:1px solid #cfd8e3!important}
