/* Shared fit rules keep content readable without hiding horizontal overflow. */
.grid{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))}
.mobile-workspace-nav,.mobile-workspace-menu{display:none}
.card,.article-card,.row>div,.plan>div,.chat>div{min-width:0}
.post p,.bub p,.profile-bio,.note,.community-status,.history-message p{overflow-wrap:anywhere}
input[type=tel],input[type=number],input[type=date]{max-width:100%;min-width:0}
img{max-width:100%}
@media(min-width:821px){body.in .side{max-height:calc(100dvh - 82px);overflow-y:auto}}
@media(max-width:820px){
  html{scroll-padding-top:100px;scroll-padding-bottom:100px}
  body.in{--mobile-nav-height:74px}
  body.in .side{display:none}
  body.in .shell{display:block}
  body.in .main{min-width:0;width:100%}
  body.in #view{padding-bottom:24px}
  body.in footer{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 24px)}
  body.in #top{bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 12px);width:44px;height:44px;right:16px}
  .mobile-workspace-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:70;min-height:74px;padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));gap:3px;background:#272932;border-top:1px solid #454652;box-shadow:0 -5px 20px #13131a0a}
  .mobile-workspace-nav>a,.mobile-workspace-nav>button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:60px;padding:8px 3px;border:0;border-radius:12px;background:transparent;color:#c8c9d4;font:inherit;font-size:11px;font-weight:650;text-decoration:none;cursor:pointer}
  .mobile-workspace-nav svg,.mobile-menu-grid svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .mobile-workspace-nav .on{background:#474156;color:#f1eaff}
  .mobile-workspace-nav .badge,.mobile-workspace-nav .dot{position:absolute;top:4px;right:15%;min-width:17px;height:17px;font-size:10px;padding:1px 4px;line-height:15px}
  .mobile-workspace-nav :focus-visible,.mobile-workspace-menu :focus-visible{outline:2px solid #bc9df6!important;outline-offset:2px}
  .mobile-workspace-menu[open]{display:flex;flex-direction:column;position:fixed;top:auto;bottom:calc(82px + env(safe-area-inset-bottom));left:0;right:0;margin:0 auto;width:calc(100% - 24px);max-width:540px;max-height:calc(100dvh - 110px - env(safe-area-inset-bottom));padding:0;border:1px solid #595466;border-radius:24px;background:#272932;color:#f6f2ff;box-shadow:0 12px 60px #09091055;overflow:hidden;color-scheme:dark}
  .mobile-workspace-menu::backdrop{background:#101018a6;backdrop-filter:blur(3px)}
  .mobile-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 20px 16px;flex:none;border-bottom:1px solid #ffffff12}
  .mobile-menu-brand{display:flex;align-items:center;gap:12px;min-width:0}
  .mobile-menu-brand img{flex:none;object-fit:contain}
  .mobile-menu-brand>div{min-width:0}
  .mobile-menu-heading .brk{font-size:10px;letter-spacing:.1em;color:#c5b8dc;margin:0 0 6px}
  .mobile-menu-heading h2{font-size:23px;line-height:1.25;letter-spacing:-.03em;margin:0;color:#fff}
  .mobile-menu-close{width:44px;height:44px;flex:none;font:inherit;font-size:28px;line-height:1;border:1px solid #ffffff25;border-radius:12px;background:#363541;color:#fff;cursor:pointer}
  .mobile-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:16px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .mobile-menu-grid a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:86px;padding:13px 7px;text-align:center;border:1px solid #ffffff12;border-radius:15px;background:#343540;color:#d4d1df;text-decoration:none;font-size:12px;line-height:1.4;overflow-wrap:anywhere;font-weight:600}
  .mobile-menu-grid a.on{background:#504660;color:#fff;border-color:#77648f}
  .mobile-menu-grid a .badge,.mobile-menu-grid a .dot{position:absolute;top:6px;right:6px;min-width:18px;line-height:18px;font-size:10px}
  .mobile-menu-account{padding:0 16px 16px;flex:none}
  .mobile-menu-account .side-signout{display:flex!important;margin:0!important;width:100%;justify-content:center;border:1px solid #ffffff20;border-radius:12px;min-height:44px}
  input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;min-width:0;max-width:100%}
  .btn,.link,.x,.profile-tabs button,.nest-channel button,.feed-toolbar button,.saved-filters button{min-height:44px}
  .btn{justify-content:center;max-width:100%;white-space:normal}
  .card .row.sp{gap:12px}
  .signin-story h1{line-height:1.2}
  .signin-story h1 br{display:inline}
  .signin-story h1 br:after{content:none}
  .signin-story h1 em{display:inline}
  .google-slot{max-width:100%;min-width:0}
  #burger,body.in .nav-signout{min-height:44px}
  body.in #nav a[aria-label="Your profile"]{min-width:44px;min-height:44px;justify-content:center}
  .signin-password button{min-height:44px;min-width:44px}
  .signin-password-label a,.signin-join a,.signin-policy a,footer .fgrid a:not(.logo){display:inline-flex;align-items:center;min-height:44px}
  footer .fgrid a:not(.logo){display:flex}
  .adult-check{min-height:44px}
}
@media(max-width:520px){
  .container{padding-inline:16px}
  .card{padding:20px}
  .card .card{padding:16px}
  .feed-toolbar,.composer-foot,.learning-card{flex-wrap:wrap;gap:12px}
  .feed-toolbar select{width:100%;margin-left:0}
  .composer-foot>div{flex:1 1 100%;min-width:0}
  .composer-foot>.btn{width:100%}
  .prompt-row{flex-wrap:wrap}
  .prompt-row button{min-height:44px}
  .learning-card>div{flex:1;min-width:150px}
  .learning-card>.btn{width:100%;margin-left:0}
  .profile-identity h1{overflow-wrap:anywhere}
  .profile-stat-grid strong{font-size:24px}
  .profile-stat-grid a{padding:16px 10px}
  .profile-tabs{gap:4px}
  .profile-tabs button{padding-inline:11px;font-size:12px}
  .profile-form .form-actions{flex-wrap:wrap}
  .social-tools{padding:16px;gap:10px}
  body.in .social-tools label,body.in .history-search label{width:100%;min-width:0;flex:1 1 100%}
  .security-page .authenticator-app{align-items:flex-start;gap:12px}
  .authenticator-app img{width:48px;height:48px}
  .authenticator-app h3{font-size:17px}
  .authenticator-pairing{gap:18px}
  .security-page form .btn{width:100%;justify-self:stretch}
  .operations-metrics{gap:8px}
  .operations-metrics>div{padding:14px;min-width:0}
  .operations-jobs strong,.operations-jobs span{overflow-wrap:anywhere}
  .nest-page-heading h1,.community-heading h1{font-size:32px;overflow-wrap:anywhere}
  .nest-capacity-card .nest-counter{margin-left:auto}
  .nest-empty-slot{min-width:0;padding:12px 8px}
  .nest-link-row .btn{width:100%}
  .signin-panel{padding:28px 20px}
  .signin-story{padding:26px 24px}
  .signin-password input{padding-right:66px}
  .social-setup summary span{float:none;display:block}
}
@media(max-width:360px){.mobile-workspace-nav>a,.mobile-workspace-nav>button{font-size:10px}.mobile-menu-grid{gap:6px;padding:12px}.mobile-menu-grid a{font-size:11px}.profile-tabs button{padding-inline:9px;font-size:11px}.profile-identity{padding-inline:18px}.signin-story h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){.mobile-workspace-menu::backdrop{backdrop-filter:none}}
