/* Reflow content instead of hiding document overflow. Shared with Capacitor. */
body[data-urbhi-surface] :where(main,section,article,header,footer,div,form){min-width:0}
body[data-urbhi-surface] :where(img,video,canvas,iframe){max-width:100%}
body[data-urbhi-surface] :where(h1,h2,h3,p,a,label,button){overflow-wrap:anywhere}
body[data-urbhi-surface="student"] .main{min-width:0;max-width:100%;box-sizing:border-box}
body[data-urbhi-surface="student"] #content{min-width:0;max-width:100%}
.v69-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.v69-stats section{padding:14px;background:#f1eeff;border-radius:14px}
.v69-stats h2{font-size:16px}.v69-stats strong{font-size:24px}
.v69-preview-note{padding:14px;background:#fff3d5;color:#644b0d;border-radius:12px;font-weight:700}
.v69-wallet{width:min(540px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid #d7cef0;border-radius:20px;padding:24px;color:#261b4b;box-sizing:border-box}
.v69-wallet::backdrop{background:#1a153b99}
.v69-wallet button{padding:12px;border-radius:10px;cursor:pointer}
.v69-wallet li{overflow-wrap:anywhere;margin:8px 0}
@media(max-width:700px){
 body[data-urbhi-surface="public"] .navin{flex-wrap:wrap;gap:10px;padding-block:10px}
 body[data-urbhi-surface="public"] .navact{flex-wrap:wrap;max-width:100%}
 body[data-urbhi-surface="public"] .herogrid{grid-template-columns:minmax(0,1fr)}
 body[data-urbhi-surface="public"] .heroart{max-width:100%;width:100%}
 body[data-urbhi-surface="student"] #app .top{flex-wrap:wrap;align-items:flex-start;padding-right:0!important}
 body[data-urbhi-surface="student"] #app .top .brand{max-width:calc(100% - 110px);min-height:44px}
 body[data-urbhi-surface="student"] .top-right{flex:1 1 100%;flex-wrap:wrap;justify-content:flex-end}
 body[data-urbhi-surface="student"] .top-right select{max-width:100%}
 body[data-urbhi-surface="student"] :where(.cards,.settings-grid,.v40-grid,.lower){grid-template-columns:minmax(0,1fr)}
 body[data-urbhi-surface="student"] #content button{max-width:100%;white-space:normal}
 .v69-stats{grid-template-columns:minmax(0,1fr)}
}
/* Decorative ambient blobs must not enlarge the document's scrollable area. */
body[data-urbhi-surface="public"] .ambient{position:fixed;pointer-events:none;max-width:100vw}
@media(max-width:1000px){
 body[data-urbhi-surface="public"] .navin{flex-wrap:wrap;padding-block:10px}
 body[data-urbhi-surface="public"] .navact{flex-wrap:wrap;max-width:100%}
}
