/* Mobile-first polish, v1.1. Desktop layout retained. */
#global-navigation .desktop-nav{display:flex;width:100%;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 20px}#global-navigation .nav-symbol,#global-navigation .mobile-nav{display:none}#global-navigation [hidden]{display:none!important}
@media(max-width:900px){#global-navigation .desktop-nav{justify-content:flex-start}}
@media(max-width:760px){
html{scroll-padding-top:84px;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{font-size:16px;line-height:1.65}header,main,footer,.wrap{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}header,.page-library header .head{min-height:0;gap:8px;padding-top:calc(14px + env(safe-area-inset-top));padding-bottom:12px;flex-wrap:nowrap}header>div,.page-library header .head>div{min-width:0}header .brand{font-size:clamp(23px,6vw,31px);letter-spacing:-1px}header .tag{font-size:8px;letter-spacing:1.1px}#language,#lang{min-height:44px;padding:9px 11px;font-size:13px;flex:none}
#global-navigation{display:block;position:sticky;top:0;z-index:20;margin:0;max-width:none;padding:0 max(10px,env(safe-area-inset-left)) 0 max(10px,env(safe-area-inset-right));background:#fff7fa;border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:0 3px 8px #2a0b1e09}#global-navigation .desktop-nav{display:none}#global-navigation .mobile-nav{display:block}#global-navigation .mobile-quick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}#global-navigation .mobile-quick a,#global-navigation .mobile-quick button{min-width:0;min-height:56px;padding:5px 1px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;text-align:center;font-size:11px;line-height:1.2;border:0;background:transparent;color:var(--ink);box-shadow:none;white-space:normal;border-radius:0}#global-navigation .nav-symbol{display:block;font:22px/1 Georgia,serif;color:var(--blue)}#global-navigation a[aria-current]{font-weight:700;color:var(--blue)}#global-navigation a[aria-current]:after{height:2px}#mobile-extra{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px 4px 14px;border-top:1px solid var(--line);max-height:55vh;overflow:auto;overscroll-behavior:contain}#global-navigation #mobile-extra a{display:flex;align-items:center;gap:9px;min-height:48px;padding:9px;border:1px solid var(--line);border-radius:6px;background:#fffafd;font-size:14px;text-align:left}#global-navigation #mobile-extra a[aria-current]{background:#eee5fa}
main{padding-top:18px;padding-bottom:32px}footer{padding-bottom:calc(24px + env(safe-area-inset-bottom))}h1{font-size:clamp(34px,9vw,47px);letter-spacing:-1px}h2{font-size:clamp(25px,6.4vw,32px)}h3{font-size:clamp(21px,5.8vw,26px)}.hero,.page-index .hero,.page-universe .hero{min-height:0;grid-template-columns:1fr;gap:15px;padding:clamp(18px,4.5vw,28px)}.hero h1,.page-index .hero h1,.page-library .hero h1{font-size:clamp(34px,9vw,49px);letter-spacing:-1px;max-width:none}.hero p,.page-library .hero p{font-size:16px}.hero:after,.page-index .hero:after{max-height:190px}.home-cta{display:grid;grid-template-columns:1fr;gap:8px}.home-cta .btn{font-size:15px;text-align:center}.grid,.cards{gap:12px}.card,.panel{padding:clamp(16px,4vw,22px)}.small,.meta,.notice{font-size:13px;line-height:1.55}.page-library .card p{font-size:15px}.page-library .card .author{font-size:13px}.page-library .card .actions{flex-wrap:wrap}.page-library .card .actions button{font-size:14px}.page-library dialog{max-height:calc(100dvh - 30px);overflow:auto;padding:18px;overscroll-behavior:contain}.page-library .dialogtop{align-items:flex-start}.page-library .toolbar{grid-template-columns:1fr}.page-library .meta{flex-wrap:wrap}.page-atlas .layout{grid-template-columns:minmax(0,1fr)}.page-atlas .map{padding:5px}.page-atlas .top{padding:20px}.page-atlas .toolbar{width:100%}.page-atlas .toolbar button{flex:1 1 135px}.page-atlas .node text{font-size:12px}.page-atlas .link{min-height:44px;display:inline-flex;align-items:center}.page-atlas #connections{padding-left:16px!important;padding-right:16px!important}.page-atlas .cards{grid-template-columns:1fr}.page-atlas .panel{padding:17px}.page-studio .story{padding:16px}.page-studio .question{font-size:23px}.page-studio .story .choice{font-size:16px}.page-tests .narrow{padding:16px;margin:12px 0}.page-tests .narrow>h2{font-size:clamp(24px,6vw,32px)}.page-tests .narrow .choice{font-size:16px;min-height:56px;padding:14px 13px;line-height:1.45}.page-tests .test-card .actions button:first-child{flex:1}.page-tests .test-card .actions button[data-fav]{flex:0 0 48px}.page-tests .test-card .actions button{margin-top:0}.page-tests .narrow .row>*{min-width:0}.page-tests .test-cover svg{height:124px}.page-tests .narrow>.test-cover svg{height:148px}.personal-report{margin:14px 0}.report-hero{grid-template-columns:minmax(0,1fr)!important;padding:15px!important}.report-hero svg{max-width:75px;justify-self:end}.report-grid{padding:0 10px 10px!important}.report-dimension{padding:13px!important}.report-mast{padding:10px 12px!important}.report-note{padding:0 12px!important}.report-end{padding:13px!important}.report-actions button{width:100%}.report-links a{padding:6px 0;line-height:1.55}.universe-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.universe-stats>div{padding:14px}.universe-stats strong{font-size:36px}.universe-history{flex-wrap:wrap}.universe-section input[type=date]{min-width:0;max-width:100%;font-size:16px}.letter-card{padding:14px}.tabs,.chips{gap:7px;margin:15px 0}.tabs button,.chips button{font-size:14px;padding:9px 11px;min-height:44px;line-height:1.35}.tabs button{flex:1 1 120px}.row,.actions{gap:8px}.primary,.btn,button,.button{min-height:44px;max-width:100%;overflow-wrap:anywhere;line-height:1.4;font-size:15px}input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;min-height:48px;max-width:100%;min-width:0}textarea{min-height:120px}.consent-row,label.check{min-height:44px;align-items:flex-start}.consent-row input,label.check input{width:20px;height:20px;flex:none;accent-color:var(--blue)}img,svg{max-width:100%}.card>*{max-width:100%}.page-index .grid .card:before{height:100px}.page-index .grid .card{min-height:0}.page-index .grid .card h2{font-size:26px}
}
@media(max-width:380px){header,main,footer,.wrap{padding-left:12px;padding-right:12px}header .tag{letter-spacing:.65px}#global-navigation .mobile-quick a,#global-navigation .mobile-quick button{font-size:10.5px}.hero,.page-index .hero,.page-universe .hero{padding:16px}.page-tests .narrow,.page-atlas .panel,.page-studio .story{padding:13px}.tabs button{flex-basis:100px}.page-atlas .top{padding:16px}.page-library .card-body{padding:16px}.page-museum .timeline article{padding:13px}.page-museum .timeline{padding-left:17px}.page-museum .timeline article:before{left:-27px}}
@media(min-width:581px) and (max-width:760px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero,.page-index .hero,.page-universe .hero{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}.hero:after,.page-index .hero:after{max-height:250px}.home-cta{display:flex;flex-wrap:wrap}}
@media(pointer:coarse){button:hover,.btn:hover,.button:hover{box-shadow:none}button:active,.btn:active{opacity:.83}}
@media print{#global-navigation{display:none!important}}

.atlas-mobile-picker{display:none}@media(max-width:760px){.atlas-mobile-picker{display:block;padding:7px}.atlas-mobile-picker p{margin:5px 0 10px}.atlas-mobile-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.atlas-mobile-picker button{font-size:14px;padding:9px 6px;min-width:0}.atlas-mobile-picker button[aria-pressed=true]{background:var(--ink);color:white}.page-atlas .node text:first-of-type{font-size:23px}.page-atlas .node text:nth-of-type(2){font-size:13px}}
