/* One mobile chrome and touch scale for all public layouts, including the homepage. */
:root{--site-dock-height:96px;--site-mobile-ink:#233955;--site-mobile-muted:#536984}
html{scroll-padding-bottom:calc(var(--site-dock-height) + 24px + env(safe-area-inset-bottom))}
.site-mobile-dock,.site-mobile-dock *,.site-quick-dialog,.site-quick-dialog *{box-sizing:border-box}
.site-quick-dialog{max-height:min(820px,86dvh);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b8cbe5 transparent}
.site-quick-close{min-width:44px;min-height:44px;display:grid;place-items:center}
.site-quick-grid small{font-size:12px;color:#526681}
.site-quick-dialog>p{color:#536984}
.site-dock-create small{display:none}
.site-quick-grid .tone-blue>span{background:#e5f1ff;color:#1675dc}.site-quick-grid .tone-gold>span{background:#fff2d6;color:#a96500}.site-quick-grid .tone-purple>span{background:#f1eaff;color:#7753c8}.site-quick-grid .tone-pink>span{background:#ffeaf3;color:#cb3872}.site-quick-grid .tone-mint>span{background:#e1f8f6;color:#087f80}
@media(max-width:900px){
 body.has-site-dock{min-width:0;padding-bottom:calc(108px + env(safe-area-inset-bottom))}
 body.has-site-dock input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.has-site-dock textarea,body.has-site-dock select{font-size:16px}
 body.has-site-dock input,body.has-site-dock textarea{caret-color:#0867ff}
 body.has-site-dock ::selection{background:#d8eaff;color:#142d50}
 body.has-site-dock input::placeholder,body.has-site-dock textarea::placeholder{color:#60738f;opacity:1}
 /* Loaded after mobile-dock.css: keep the floating-pill geometry in sync. */
 .site-mobile-dock{height:72px;padding:0 12px;align-items:center;gap:2px;border-radius:36px;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%);width:min(420px,calc(100vw - 32px));border:1px solid #ffffffd9;background:rgba(255,255,255,.86);box-shadow:0 14px 36px #2a4a7a26,0 3px 10px #2a4a7a14,inset 0 1px 2px #fff;backdrop-filter:blur(22px) saturate(1.35);-webkit-backdrop-filter:blur(22px) saturate(1.35)}
 .site-mobile-dock>a{min-width:0;min-height:0;height:100%;padding:0;gap:4px;font-size:10px;line-height:1.3;font-weight:500;color:#8b9ab2}
 .site-mobile-dock>a[aria-current=page]{color:#16243c;font-weight:750}
 .site-mobile-dock>a[aria-current=page]>svg,.site-mobile-dock>a[data-site-dock=account][aria-current=page]>svg{fill:none;stroke:currentColor;stroke-width:2.3}
 .site-mobile-dock>.site-dock-create{position:relative;flex:0 0 58px;margin:0 5px;width:58px;height:58px;border:0}
 .site-dock-create>span{width:58px;height:58px;background:linear-gradient(150deg,#4aa6ff,#0875f9 55%,#0066ed);box-shadow:inset 0 1px 2px #ffffff8c,0 8px 20px #1677ff5c,0 0 0 6px #ffffff9e}
 .site-dock-create small{display:none}
 .site-mobile-dock.is-keyboard-hidden{visibility:hidden;pointer-events:none}
 .site-quick-dialog{max-height:86dvh;padding:24px 18px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;scroll-padding-block:20px}
 .site-quick-dialog h2{font-size:23px;line-height:1.4;padding-right:30px;margin:5px 0 8px}
 .site-quick-dialog>p{font-size:14px;margin-bottom:18px;line-height:1.6}
 .site-quick-grid{gap:10px}
 .site-quick-grid>a{padding:14px 12px;gap:8px;min-width:0;border-radius:14px}
 .site-quick-grid strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
 .site-quick-grid small{font-size:12px;line-height:1.6}
 .site-quick-links{flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:10px;font-size:14px}
 .site-quick-links>a{display:inline-flex;align-items:center;min-height:44px}
 .public-navigation,.site-header{width:calc(100% - 32px);height:64px;margin-top:6px}
 .public-navigation,.site-header{padding:0;gap:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
 .pn-desktop,.pn-search,.pn-language,.pn-login,.site-header .desktop-nav,.site-header .header-search,.site-header .language-button,.site-header .login-button{display:none}
 .pn-mobile,.pn-mobile-search{display:block;position:static}
 .site-header .mobile-search,.site-header .menu-toggle{display:inline-flex}
 .pn-actions,.header-actions{margin-left:auto}
 .pn-brand,.site-header .brand{font-size:29px}
 .pn-panel{top:calc(100% + 2px);left:auto;width:285px;min-width:0}
 .pn-actions,.header-actions{gap:4px}
 .pn-icon-button,.header-actions .mobile-search,.header-actions .menu-toggle{min-width:44px;min-height:44px}
 .pn-panel,.site-header .navigation-panel{max-width:calc(100vw - 32px);right:0}
 .pn-mobile-menu{max-height:calc(100dvh - var(--site-dock-height) - 100px - env(safe-area-inset-bottom));padding-bottom:12px}
 .pn-mobile-menu a,.pn-mobile-locales button,.pn-mobile-search button{min-height:44px}
 .pn-mobile-locales{gap:12px;flex-wrap:wrap}
 .pn-mobile-menu .pn-tool strong{font-size:14px}.pn-mobile-menu .pn-tool small{font-size:12px;color:#546985}
 .auth-page .auth-shell{width:calc(100% - 28px);margin-inline:auto;padding:0;background:transparent;border:0;box-shadow:none}
 .auth-page .auth-unified .auth-story{display:none}.auth-page .auth-unified{display:block;max-width:480px;min-height:0}
 .auth-page .auth-form{padding:26px 20px;border-radius:18px}
 .auth-page .check-label{font-size:13px;min-height:44px}.auth-page .password-toggle{min-width:44px;min-height:44px;justify-content:center}
 .auth-page .auth-options>a,.auth-page .auth-switch a{display:inline-flex;align-items:center;min-height:44px}
 .catalog-v2-filters{overflow-x:auto;overscroll-behavior-inline:contain;padding:3px 2px 9px;scrollbar-width:thin;scrollbar-color:#abc7eb transparent}
 .catalog-v2-filters>a{min-height:44px;display:inline-flex;align-items:center;font-size:13px;flex-shrink:0}
 .catalog-v2-card p{font-size:13px;line-height:1.65;color:#526782}.catalog-v2-card small,.catalog-entry-status{font-size:12px}
 .mobile-home-grid .tool-card p{font-size:12px;line-height:1.6;white-space:normal;color:#506581}
 .member-page .content-width{width:calc(100% - 32px)}
 .enhanced-footer .footer-links{gap:4px 14px;flex-wrap:wrap}.enhanced-footer .footer-links>a{min-height:44px;display:inline-flex;align-items:center;font-size:12px}
 .member-page .qudoy-content{min-width:0}.member-page .qudoy-content img,.member-page .qudoy-content video{max-width:100%}
 .gold-main{grid-template-columns:minmax(0,1fr)}.gold-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.gold-stats article,.gold-stats article>div{min-width:0}
 .gold-table-actions{min-width:0;flex-wrap:wrap}.gold-table-actions select{min-width:0;max-width:100%}
}
@media(max-width:380px){.gold-stats article{display:block}.gold-stats h2{white-space:normal;margin-top:8px}.gold-stats strong{font-size:20px}.gold-stats p,.gold-stats div>small{overflow-wrap:anywhere}
 .site-mobile-dock{width:calc(100vw - 20px);height:68px;padding:0 7px;gap:0}
 .site-mobile-dock>a{font-size:9px}
 .site-mobile-dock>a>svg{width:20px;height:20px}
 .site-mobile-dock>.site-dock-create,.site-dock-create>span{flex-basis:52px;width:52px;height:52px}
 .site-dock-create svg{width:23px;height:23px}
}
