/* Shared viewport-safe layout for the unified site and account screens. */
*,*::before,*::after{box-sizing:border-box}html{width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:0}img,video,iframe{max-width:100%}input,select,textarea{max-width:100%;min-width:0}button,a,label{overflow-wrap:anywhere}main,section,article,.content,.panel,.form-side,.form-wrap,.profile-card,.field,.title-row>div,.hero-grid>div{min-width:0}p,small,h1,h2,h3,.hint,.note{overflow-wrap:anywhere}.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}dialog{max-width:calc(100vw - 24px);max-height:calc(100svh - 24px);overflow:auto}nav{max-width:100%}
@media(max-width:640px){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}button,.edit-btn,.top-link,.lang{min-height:44px}.title-row{flex-wrap:wrap;gap:16px}.title-row h1{font-size:clamp(26px,7vw,36px);letter-spacing:-1px}.form-grid,.form-layout{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.toolbar{flex-wrap:wrap;gap:12px}.toolbar .search{min-width:0;flex:1 1 180px}.top,.form-bottom{flex-wrap:wrap;gap:14px}.profile-card{padding:24px!important}.identity{gap:14px!important}.identity h2{font-size:clamp(22px,6vw,30px)}.identity .portrait{width:72px!important;height:72px!important}.actions{gap:10px}.actions button{flex:1 1 auto}.footer-grid>*{min-width:0}.tools{gap:10px}.tools .pill{gap:10px;padding:12px;font-size:11px}.brand strong{font-size:20px}#menu-list li{cursor:grab}#menu-list button{min-width:44px}#menu-list small{overflow-wrap:anywhere}.settings-form{min-width:0}}
@media(max-width:380px){.nav{gap:10px}.brand{gap:6px}.brand .mark{font-size:30px;margin-right:2px}.brand strong{font-size:17px}.tools{gap:6px}.tools .pill{padding:10px 8px;max-width:112px}.tools .lang{font-size:10px}.profile-card{padding:18px!important}.form-side{padding:22px 18px}.content{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.two-col>* ,.stats>*,.cards>*{min-width:0}.panel-head{flex-wrap:wrap;gap:12px}.two-col{min-width:0}@media(max-width:640px){.two-col,.cards{grid-template-columns:minmax(0,1fr)}}

@media(max-width:640px){.hero h1{font-size:clamp(30px,8vw,46px);letter-spacing:-1.5px;overflow-wrap:normal}.hero h1 em{letter-spacing:-1px;overflow-wrap:normal}.hero-actions{gap:16px;flex-wrap:wrap}.hero-actions .pill{gap:18px}.hero-foot{line-height:1.6}}
