/* Mobile corrections are deliberately isolated from the desktop workspace. */
@media (max-width:1000px){
 body.stcb-header .st-top>header.wrap{height:auto!important;min-height:0;padding:10px 16px;row-gap:8px}
 body.stcb-header #stcb-bar{min-width:0;max-width:100%}
}
@media (max-width:760px){
 body.st-site.st-light-workspace .st-sidebar{height:auto!important;min-height:0!important;top:auto!important;position:static!important;padding:8px 16px!important}
 body.st-workspace-page .st-sidebar .st-side-note{display:none!important}
 body.st-workspace-page .st-workspace{display:block;min-width:0}
 body.st-workspace-page .st-app{min-width:0;width:100%}
 body.st-workspace-page .st-appbody{padding:12px 16px 28px}
 body.stcb-header .st-top .brand{justify-self:center}
 body.stcb-header #stcb-bar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%}
 body.stcb-header #stcb-bar a:not(.stcb-upgrade-button){display:flex;flex-direction:column;gap:4px;white-space:normal;text-align:center;font-size:10px;line-height:1.3;padding:5px 2px;min-width:0}
 body.stcb-header #stcb-bar strong{font-size:15px;padding:2px 8px}
 body.stcb-header #stcb-bar .stcb-details{display:none!important}
 body.stcb-header #stcb-bar .stcb-upgrade-button{grid-column:1/-1;justify-content:center;min-height:36px;padding:7px 12px;box-sizing:border-box}
 .st-app .st-card{min-width:0;max-width:100%;box-sizing:border-box}
 .st-app input:not([type=checkbox]):not([type=radio]),.st-app select,.st-app textarea{max-width:100%;box-sizing:border-box;font-size:16px}
 .st-app .sta-project-grid-list{box-sizing:border-box;max-width:100%;overscroll-behavior:contain}
 .st-app .sta-project-grid-trigger,.st-app .sta-project-grid-row{min-width:0}
 .st-app .sta-project-list-controls{grid-template-columns:minmax(0,1fr)!important;padding:14px;gap:14px}
 .st-app table[data-project-list]{display:block;width:100%!important;min-width:0!important;table-layout:auto}
 .st-app table[data-project-list] thead{display:none}
 .st-app table[data-project-list] tbody{display:grid;gap:14px;width:100%}
 .st-app table[data-project-list] tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #d7e4dd;border-radius:12px;overflow:hidden;background:#fff}
 .st-app table[data-project-list] tbody td{display:block;width:auto!important;min-width:0!important;max-width:100%;padding:12px!important;white-space:normal!important;text-align:left!important;border:0;overflow-wrap:anywhere}
 .st-app table[data-project-list] td:nth-child(1){grid-column:1/-1;background:#eff7f3;font-size:18px;font-weight:800}
 .st-app table[data-project-list] td:nth-child(4),.st-app table[data-project-list] td:nth-child(5),.st-app table[data-project-list] td:nth-child(6){grid-column:1/-1;border-top:1px solid #edf2ef}
 .st-app table[data-project-list] td:nth-child(2):before{content:'Keywords';display:block;font-size:12px;color:#5a7167;margin-bottom:4px}
 .st-app table[data-project-list] td:nth-child(3):before{content:'Trend';display:block;font-size:12px;color:#5a7167;margin-bottom:4px}
 .st-app table[data-project-list] td:nth-child(5):before{content:'Created on';display:block;font-size:12px;color:#5a7167;margin-bottom:4px}
 .st-app table[data-project-list] td:last-child button,.st-app table[data-project-list] td:last-child a{min-height:40px;margin-bottom:4px}
 .st-app .st-table-wrap,.st-app .sta-comp-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .st-app .sta-kr .sta-kr-card{padding:14px;margin:18px 0}
 .st-app .sta-kr .sta-kr-table{min-width:560px}
 .st-app .sta-kr .sta-kr-card{overflow-x:auto}
 .st-app .sta-op-report,.st-app .sta-op-report p,.st-app .sta-op-report a{overflow-wrap:anywhere}
 .st-app .stws-panel{padding:14px}
 .st-app .stws-history{padding:12px}
 .st-app .stws-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .st-app .stws-metric{padding:14px 8px}
 .st-app .stws-label{font-size:12px}
 .st-app .stws-metric strong{font-size:23px}
 .st-app .stcb-card{padding:18px}
 .st-app .stcb-card dl div{gap:12px}
 .st-app .stcb-upgrade{padding:18px}
}
@media(max-width:760px){
 body.st-light-workspace .st-appbody .sta-keyword-wrap .sta-keywords{display:table!important;min-width:1100px!important;table-layout:fixed!important}
 body.st-light-workspace .st-appbody .sta-keyword-wrap .sta-keywords thead{display:table-header-group!important;position:static!important;width:auto!important;height:auto!important;clip-path:none!important}
 body.st-light-workspace .st-appbody .sta-keyword-wrap .sta-keywords tbody{display:table-row-group!important}
 body.st-light-workspace .st-appbody .sta-keyword-wrap .sta-keywords tr{display:table-row!important}
 body.st-light-workspace .st-appbody .sta-keyword-wrap .sta-keywords tr>td,body.st-light-workspace .st-appbody .sta-keyword-wrap .sta-keywords tr>th{display:table-cell!important;position:static!important;max-width:none;padding:12px 8px!important}
 body.st-light-workspace .st-appbody .sta-keyword-wrap .sta-keywords tr>td:before{display:none!important}
 body.st-light-workspace .st-appbody .sta-keyword-wrap .sta-keywords tr>td:last-child{width:auto!important}
 .st-app .sta-keyword-wrap:before{content:'Swipe left or right to see all columns';display:block;position:sticky;left:0;width:fit-content;max-width:100%;padding:10px 4px;color:#526d62;font-size:12px}
}
/* Keep offscreen accessible labels inside the scroll region that owns them. */
.sta-kr-scroll,.sta-sm-scroll,.sta-comp-scroll,.sta-keyword-wrap{position:relative}
@media(max-width:760px){
 .st-app .sta-project-grid select.sta-project-grid-native{width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;margin:0!important}
 .st-app .sta-project-grid-trigger,.st-app .sta-project-grid-row{grid-template-columns:minmax(45px,1fr) minmax(50px,1fr) 23px 23px 24px;gap:4px}
 .st-app .sta-kr-scroll:before{content:'Swipe to view all columns';display:block;position:sticky;left:0;width:fit-content;padding:8px 0;color:#526d62;font-size:12px}
}
@media(max-width:480px){
 body.st-workspace-page .st-sidebar nav{grid-template-columns:minmax(0,1fr)!important;max-height:55vh;max-height:55dvh;overflow-y:auto;overscroll-behavior:contain}
 body.st-workspace-page .st-sidebar nav a{min-height:44px;box-sizing:border-box}
 body.st-workspace-page .st-sidebar nav .st-nav-label{white-space:normal}
}
@media(max-width:760px){
 body.st-site.st-light-workspace .st-workspace .st-appbody #sta-keyword-table .sta-keywords{display:table!important;min-width:1100px!important;width:1100px!important;table-layout:fixed!important}
 body.st-site.st-light-workspace .st-workspace .st-appbody #sta-keyword-table .sta-keywords thead{display:table-header-group!important;position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important}
 body.st-site.st-light-workspace .st-workspace .st-appbody #sta-keyword-table .sta-keywords tbody{display:table-row-group!important}
 body.st-site.st-light-workspace .st-workspace .st-appbody #sta-keyword-table .sta-keywords tr{display:table-row!important}
 body.st-site.st-light-workspace .st-workspace .st-appbody #sta-keyword-table .sta-keywords tr>td,body.st-site.st-light-workspace .st-workspace .st-appbody #sta-keyword-table .sta-keywords tr>th{display:table-cell!important;position:static!important;padding:12px 8px!important;min-width:0!important;max-width:none!important}
 body.st-site.st-light-workspace .st-workspace .st-appbody #sta-keyword-table .sta-keywords tr>td:before{display:none!important}
}

@media(min-width:761px) and (max-width:1000px){
 .st-app .sta-project-list-controls{grid-template-columns:minmax(0,1fr)!important;padding:14px;gap:14px}
 .st-app table[data-project-list]{display:block;width:100%!important;min-width:0!important;table-layout:auto}
 .st-app table[data-project-list] thead{display:none}
 .st-app table[data-project-list] tbody{display:grid;gap:14px;width:100%}
 .st-app table[data-project-list] tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #d7e4dd;border-radius:12px;overflow:hidden;background:#fff}
 .st-app table[data-project-list] tbody td{display:block;width:auto!important;min-width:0!important;max-width:100%;padding:12px!important;white-space:normal!important;text-align:left!important;border:0;overflow-wrap:anywhere}
 .st-app table[data-project-list] td:nth-child(1){grid-column:1/-1;background:#eff7f3;font-size:18px;font-weight:800}
 .st-app table[data-project-list] td:nth-child(4),.st-app table[data-project-list] td:nth-child(5),.st-app table[data-project-list] td:nth-child(6){grid-column:1/-1;border-top:1px solid #edf2ef}
 .st-app table[data-project-list] td:nth-child(2):before{content:'Keywords';display:block;font-size:12px;color:#5a7167;margin-bottom:4px}
 .st-app table[data-project-list] td:nth-child(3):before{content:'Trend';display:block;font-size:12px;color:#5a7167;margin-bottom:4px}
 .st-app table[data-project-list] td:nth-child(5):before{content:'Created on';display:block;font-size:12px;color:#5a7167;margin-bottom:4px}
 .st-app table[data-project-list] td:last-child button,.st-app table[data-project-list] td:last-child a{min-height:40px;margin-bottom:4px}
}
