/* PB_P1122 pb-mobile.css — shared mobile rules, all panels (<=640px) */
@media (max-width:640px){
[style*="grid-template-columns"]:not([style*="repeat(7"]){grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))!important}
[style*="grid-template-columns"]>*,[style*="display:flex"]>*,[style*="display: flex"]>*,.sp-grid-2>*,.stk-week>*{min-width:0}
.sp-grid-2{grid-template-columns:minmax(0,1fr)!important}
.stk-week{gap:.25rem!important}
img,svg,video,canvas,iframe{max-width:100%}
[style*="font-size:.5"],[style*="font-size:.6"],[style*="font-size:.65"],[style*="font-size: .6"],[style*="font-size:0.6"],[style*="font-size:0.5"],[style*="font-size:9px"],[style*="font-size:10px"],[style*="font-size:.7rem"],[style*="font-size:.68"],[style*="font-size:.69"]{font-size:.75rem!important}
button,select,input:not([type=checkbox]):not([type=radio]),a.px-b,.px-b{min-height:40px}
input,select,textarea{font-size:max(16px,1em)}
}
/* PB_P1130 — readable text + tap size on phones */
@media (max-width:640px){
.ac-ribbon,.ac-badge,.px-b-l,.px-qt,.asp-group-count,.asp-group-chevron,.pb-ci7-mode{font-size:11px!important}
.ac-desc,.ac-name-hi,.stu-sec-label,.ah-popover-row-label,.ah-card-stat-lbl,.ac-req-btn,.ac-tab,.pb-ci7-no,.pb-ci7-st,.po-blk-t,summary{font-size:12px!important}
a.px-b,.asp-logo,.asp-sub-item,.asp-group-head{min-height:40px}
a.pb-m2-retake,a.pbps-a{display:inline-flex;align-items:center;min-height:40px}
.ac-req-btn,.ac-tab{min-height:36px}
.pb-ci7-dot{position:relative}.pb-ci7-dot::after{content:"";position:absolute;inset:-14px -6px}
}
/* PB_P1131 — more small labels readable on phones */
@media (max-width:640px){
.dr-chip-name,.dr-tstep-range,.ah-skill-tag,.pb-ci7-lv,.pb-ci7-badge,.ah-pill,.stu-badge,.br-cat-count,.pbdc-js,.pbdc-st,.asp-profile-caret,.ah-hstat-lbl,.ah-quickstat-lbl,.ah-done-badge,.ah-locked-sub,.pbov-l{font-size:11px!important}
}
/* PB_P1134 — admin panels (superadmin/school): wide tables scroll, side-nav stacks, long code wraps */
@media (max-width:860px){
table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.ctrl-layout,.skc-shell{grid-template-columns:minmax(0,1fr)!important;flex-direction:column!important}
.ctrl-nav,.skc-nav{width:100%!important;max-width:100%!important;position:static!important;height:auto!important}
.ctrl-content,.skc-main,.ctrl-layout>*,.skc-shell>*{min-width:0;max-width:100%}
code,pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.pb-card-3d,form>div{min-width:0}
}
@media (max-width:860px){
[style*="display:flex"]:has(>[style*="flex-shrink:0"][style*="width:2"]){flex-direction:column}
[style*="display:flex"]>[style*="flex-shrink:0"][style*="width:2"]{width:100%!important}
}
@media (max-width:860px){
.px-bar{max-width:100vw;overflow:hidden}
.px-bar .px-b{min-width:0;flex:1 1 0;overflow:hidden;padding-left:2px;padding-right:2px}
.px-b-l{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (max-width:640px){
[style*="display:flex"]:not([style*="overflow"]):not([style*="flex-direction:column"]):not([style*="flex-wrap"]):not(:has(>[style*="flex-shrink:0"])){flex-wrap:wrap}
[style*="repeat(7"]{grid-template-columns:repeat(7,minmax(44px,1fr))!important;overflow-x:auto}
}
/* PB_P1139 — very small phones (320px): calculator cards + college stats */
@media (max-width:360px){
.ac-grid,.col-statsbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.ac-item,.ac-card,.col-stat,.col-stat-num{min-width:0;max-width:100%}
.ac-req-btn{white-space:normal}
.col-stat{min-width:0!important;overflow:hidden}
}
/* PB_P1140 — phone polish: readable micro-labels, wrapped chart labels, 44px taps, 44px tap targets */
@media (max-width:860px){
[style*="font-size:.4375rem"],[style*="font-size:.375rem"],[style*="font-size:.5rem"]{font-size:.6875rem!important}
.cm2 .cm2-rn{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2;overflow-wrap:anywhere}
.cm2-rp{min-width:44px;min-height:44px}
.cm2-i{min-width:40px;min-height:40px}
.px-pinbtn{min-height:44px!important}
.pb-lt__b{min-height:40px!important;min-width:40px}
a[style*="display:inline-block"]{min-height:44px;display:inline-flex!important;align-items:center;justify-content:center}
.cr2-best,.cm2-tile small{font-size:11px}
.neev-card a,.neev-wrap a.neev-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
html{scroll-behavior:smooth;scroll-padding-top:72px}
a,button,[role="button"],input,select,label{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
}
@media (max-width:860px) and (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* PB_P1162 — tiny text floor 12px on phones (shell badges, labels, tags) */
@media (max-width:640px){
.stu-stage-copy,.px-qt,.px-pinbtn,.po-badge,.px-b-l,.pp-stage,.col-stat-label,.col-tag,.cp-badge,.pb-ovh-stage-badge,.mp-hero-eyebrow,.mp-panel-tag,.up-cycle-save,.up-panel-popularity{font-size:12px!important}
.stu-sidebar label,.pp label{font-size:12px!important}
svg text{font-size:max(10px,1em)}
}
/* PB_P1164 — 12px floor: brand sub-label, header stage, remaining small labels */
@media (max-width:640px){
.stu-logo-text span,.stu-header-actions>span,.up-info-btn,.upCycleLabel,.up-panel-price-cyc,.pb-ovh-widget-label,.pb-ovh-card-label,.pb-ovh-milestone-badge,.br-cat-count,.ah-eyebrow,.ah-hstat-lbl,.asp-group-count,.asp-group-chevron{font-size:12px!important}
}
/* PB_P1165 — brand sub-label 12px (beats pb-sidebar-logo*.css !important rules) */
@media (max-width:640px){
html:root #stu-sidebar .stu-logo-text.pb-lg-hasw.pb-lg-hasw.pb-lg-hasw.pb-lg-hasw>span,html:root #stu-sidebar .stu-logo-text.pb-lg-hasw.pb-lg-hasw.pb-lg-hasw.pb-lg-hasw.pb-lg-hasw.pb-lg-hasw>span{font-size:12px!important}
}
/* PB_P1166 — 12px floor: Assessment Hub / Study Plan / sidebar small labels */
@media (max-width:640px){
html:root .ah-quickstat-lbl.ah-quickstat-lbl,html:root .ah-badge.ah-badge,html:root .ah-sec-note.ah-sec-note,html:root .ah-done-badge.ah-done-badge,html:root .ah-skill-tag.ah-skill-tag,html:root .ah-pill.ah-pill,html:root .ah-trend.ah-trend,html:root .ah-peer.ah-peer,html:root .sp-checkbox.sp-checkbox,html:root .asp-group-count.asp-group-count,html:root .asp-group-chevron.asp-group-chevron,html:root .px-b-l.px-b-l,html:root .br-cat-count.br-cat-count{font-size:12px!important}
}
/* PB_P1169 — last 12px floor items (higher specificity to beat inline/earlier rules) */
@media (max-width:640px){
html:root .pp .pp-kpis .pp-kpi span,html:root .ah-grid .ah-locked-card .ah-locked-sub,html:root .pbps-grid .pbps-it .pbps-chip,html:root #aspSidebar .asp-stage-badge div,html:root #aspSidebar .asp-group-toggle .asp-group-count,html:root #aspSidebar .asp-group-toggle .asp-group-chevron,html:root nav.px-bar .px-b .px-b-l,html:root nav.px-bar .px-b-more .px-b-l{font-size:12px!important}
html:root [style*="font-size:.5rem"]{font-size:12px!important}
}
/* PB_P1198 — take pages: 12px floor + 320px safety */
@media (max-width:640px){
html:root .avt-chip.avt-chip{font-size:12px!important}
html:root .avt-prog{flex-wrap:wrap}
html:has(.avt-outer){overflow-x:hidden}
html:root .xcardtop>div>span,html:root .xcardtop span.xs{font-size:12px!important}
html:root .xqnum.xqnum{font-size:12px!important}
}
/* PB_P1199 — Too fast! warning 12px */
@media (max-width:640px){
html:root #xspeed{font-size:12px!important}
}
