/* V5.45.16: shared responsive polish for writer/admin, auth, and story pages. */
:root{--knp-panel-border:#eae4ee;--knp-panel-shadow:0 10px 32px rgba(40,27,57,.06)}
:where(.admin-shell,.writer-shell) {min-width:0;max-width:100%}
:where(.admin-shell,.writer-shell) .content{min-width:0;max-width:100%;box-sizing:border-box}
:where(.admin-shell,.writer-shell) .panel,:where(.auth-panel,.mature-gate-card){border-radius:18px;box-shadow:var(--knp-panel-shadow)}
:where(.admin-shell,.writer-shell) .stats{min-width:0;gap:12px}
:where(.admin-shell,.writer-shell) .stat{min-width:0;overflow-wrap:anywhere}
:where(.admin-shell,.writer-shell) .section-head{gap:12px;flex-wrap:wrap}
:where(.admin-shell,.writer-shell) table{max-width:100%}
:where(.admin-shell,.writer-shell) .sidebar a{overflow-wrap:anywhere}
:where(.public-auth,.mature-gate-page) input,:where(.public-auth,.mature-gate-page) button{min-height:44px;max-width:100%;box-sizing:border-box}
:where(.public-auth,.mature-gate-page) .auth-panel{max-width:min(100%,480px);margin-inline:auto}
:where(.public-auth,.mature-gate-page) .login-brand{gap:12px;align-items:center}
:where(.public-auth,.mature-gate-page) .login-brand img{flex-shrink:0}
:where(.public-auth,.mature-gate-page) .auth-switch{line-height:1.6}
@media(max-width:767px){
 html,body{max-width:100%;overflow-x:clip}
 :where(.admin-shell,.writer-shell) .content{padding:16px!important}
 :where(.admin-shell,.writer-shell) .section-head h1{font-size:clamp(1.5rem,6vw,2.1rem)}
 :where(.admin-shell,.writer-shell) .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 :where(.admin-shell,.writer-shell) .stats .stat{padding:14px;min-width:0}
 :where(.admin-shell,.writer-shell) .actions{flex-wrap:wrap}
 :where(.admin-shell,.writer-shell) .panel{max-width:100%;box-sizing:border-box}
 :where(.public-auth,.mature-gate-page) .auth-wrap{padding:16px;max-width:100%;box-sizing:border-box}
 :where(.public-auth,.mature-gate-page) .auth-panel{padding:24px 18px}
 :where(.public-auth,.mature-gate-page) input{font-size:16px!important}
}
@media(max-width:390px){:where(.admin-shell,.writer-shell) .stats{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){:where(.admin-shell,.writer-shell) *{scroll-behavior:auto}}
