/* 4.12.187 — shared Studio/Expert screen rules, loaded after workspace styles.
   Keep tables scrollable within their container; never hide page overflow to
   conceal controls. Print and PDF layouts deliberately stay independent. */
@media screen and (max-width:1199px) {
  body.cockpit-polished {padding-left:0;overflow-x:visible}
  body.cockpit-polished > main {width:calc(100% - 32px)!important;max-width:100%;margin:16px auto 40px!important;height:auto!important;min-height:0!important}
  body.cockpit-polished .thalionis-header {position:sticky;inset:auto;top:0;width:100%;height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 16px!important;overflow:visible;flex-direction:row}
  body.cockpit-polished .thal-brand {min-height:0;max-width:100px;margin:0;padding:5px 8px;flex-shrink:1}
  body.cockpit-polished .thal-brand-logo {width:80px!important;height:32px!important;max-height:32px!important}
  body.cockpit-polished .thal-cockpit-title {min-width:0;padding:0;overflow-wrap:anywhere}
  body.cockpit-polished .thal-public-site-link {display:none}
  body.cockpit-polished .polish-nav-toggle {display:block!important;grid-column:3;justify-self:end;width:auto;min-height:44px;padding:9px 12px;background:#e7eee1!important;color:#365030!important}
  body.cockpit-polished .thalionis-header nav:not(.cockpit-language-switch) {position:static;inset:auto;grid-column:1/-1;width:100%;max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:8px 0;max-height:calc(100svh - 120px);max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain;border:0;box-shadow:none;background:#252b2f}
  body.cockpit-polished.has-mobile-nav .thalionis-header nav:not(.cockpit-language-switch) {display:none}
  body.cockpit-polished.has-mobile-nav .thalionis-header nav.polish-nav-open {display:grid}
  body.cockpit-polished .thalionis-header nav a {min-width:0;min-height:44px;overflow-wrap:anywhere;white-space:normal}
  body.cockpit-polished .thalionis-header nav.cockpit-language-switch {display:flex!important;grid-column:1/-1;grid-row:auto;justify-content:flex-end;padding:0;max-height:none}
  body.cockpit-polished.has-mobile-nav .thalionis-header nav.cockpit-language-switch {display:none!important}
  body.cockpit-polished .thalionis-header:has(.polish-nav-open) nav.cockpit-language-switch {display:flex!important}
  body.cockpit-polished .thalionis-header .client-session-controls {grid-column:1/-1;margin:0;padding:6px 0 0}
  body.cockpit-polished :is(.card,.hero,.campaign,.candidate-folder,.form-grid,.assessment-field-group,.polish-table-scroll,.table-scroll,.tablewrap) {min-width:0;max-width:100%}
  body.cockpit-polished :is(.form-grid,.studio-project-grid,.case-grid,.candidate-folder-grid,.cockpit-nine-grid,.cockpit-service-grid) > * {min-width:0}
  body.cockpit-polished :is(.polish-table-scroll,.table-scroll,.tablewrap) {overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
  body.cockpit-polished :is(h1,h2,h3,h4,p,li,label,.btn,button,summary,.candidate-folder small) {overflow-wrap:anywhere}
  body.cockpit-polished :is(.btn,button) {white-space:normal;max-width:100%}
  body.cockpit-polished main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.workspace-native-file),select,textarea) {font-size:16px!important;min-width:0;max-width:100%;box-sizing:border-box}
  body.cockpit-polished .candidate-lifecycle {grid-template-columns:repeat(3,minmax(0,1fr))}
  body.cockpit-polished .kpi-bar-row {grid-template-columns:minmax(0,140px) minmax(0,1fr) auto;gap:12px}
  body.cockpit-polished .kpi-bar-row > * {min-width:0}
  body.cockpit-polished .cockpit-service-grid {grid-template-columns:1fr}
  body.cockpit-polished .workspace-form-actions {position:static}
  body.cockpit-polished .report-page .profile-visual-card {min-width:0;max-width:100%}
  body.cockpit-polished .report-page .profile-visual-card h3 {white-space:normal;overflow-wrap:anywhere}
  body.cockpit-polished .workspace-skip {left:12px;max-width:calc(100vw - 24px)}
}
@media screen and (max-width:767px) {
  body.cockpit-polished > main {width:calc(100% - 24px)!important;margin-top:12px!important}
  body.cockpit-polished .thalionis-header {padding:8px 12px!important}
  body.cockpit-polished :is(.card,.hero,.campaign,.studio-hero,.consultant-hero,.expert-client-hero,.recruiter-welcome-hero) {padding:16px!important}
  body.cockpit-polished :is(.form-grid,.assessment-choices-columns,.assessment-language-fields,.function-level-grid,.compact-function-level,.expert-product-grid,.expert-formula-grid,.personalized-question-form,.report-access-list,.assessment-recap-layout,.settings-section-grid,.external-report-grid) {grid-template-columns:minmax(0,1fr)!important}
  body.cockpit-polished .form-grid > * {grid-column:auto!important}
  body.cockpit-polished :is(.candidate-lifecycle,.candidate-stage-nav,.candidate-progress) {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.cockpit-polished :is(.section-heading,.ai-cost-heading,.question-save-row,.analysis-launch-panel,.workflow-next-action,.report-source-links,.dossier-owner-actions) {flex-wrap:wrap;min-width:0;gap:10px}
  body.cockpit-polished .section-heading > * {min-width:0;max-width:100%}
  body.cockpit-polished .studio-alert {flex-wrap:wrap;gap:12px}
  body.cockpit-polished .studio-alert > div {min-width:0;flex:1 1 100%}
  body.cockpit-polished .studio-alert > .btn {flex:1 1 100%;text-align:center}
  body.cockpit-polished .expert-assessment-row {grid-template-columns:minmax(0,1fr);gap:10px}
  body.cockpit-polished .expert-assessment-row .status-pill {justify-self:start}
  body.cockpit-polished :is(.workspace-file-control,.compact-upload-control,.candidate-reminder-action,.expert-order-total,.workspace-report-controls) {flex-wrap:wrap}
  body.cockpit-polished .candidate-reminder-action > div {min-width:0;flex-basis:100%}
  body.cockpit-polished .studio-kpis {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.cockpit-polished .kpi-bar-row,body.cockpit-polished .kpi-bar-row:has(.workspace-kpi-counts) {grid-template-columns:minmax(0,1fr) auto;gap:8px}
  body.cockpit-polished .kpi-bar-row > :is(b,.kpi-recruiter-link,.kpi-result-legend) {grid-column:1/-1}
  body.cockpit-polished .kpi-result-legend {flex-wrap:wrap;white-space:normal}
  body.cockpit-polished .polish-table-tools > label:first-child {min-width:0;flex-basis:100%}
  body.cockpit-polished .workspace-pagination {justify-content:flex-start;gap:8px}
  body.cockpit-polished .workspace-pagination label {flex-wrap:wrap}
  body.cockpit-polished .profile-report-page,body.cockpit-polished .flash-report {padding:16px!important}
  body.cockpit-polished .report-page .profile-visual-grid {grid-template-columns:minmax(0,1fr)}
  body.cockpit-polished .cockpit-client-hero > div {max-width:100%}
  body.cockpit-polished .formula-credit-detail {width:100%;padding:12px 0 0;border-left:0;grid-template-columns:1fr}
}
@media screen and (max-width:390px) {
  body.cockpit-polished :is(.cockpit-kpi-grid.compact,.studio-kpis,.kpi-summary-five,.member-wallet-grid) {grid-template-columns:minmax(0,1fr)!important}
  body.cockpit-polished .thalionis-header nav:not(.cockpit-language-switch) {grid-template-columns:minmax(0,1fr)}
}
