/* WorkToolSet — Studio typography harmonization.
   Scoped to studio page shells; original standalone tool pages remain unchanged.
   Image Studio's comfortable control sizes are the visual reference.
   Intentional exceptions: page headings, pictograms, badges and numerical metrics.
*/
.studio-page-shell {
  --studio-type-control: 14px;
  --studio-type-label: 13px;
  --studio-type-secondary: 12px;
  --studio-type-kicker: 11px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--studio-type-control);
  line-height: 1.5;
}

/* Accessible common form typography, without touching checkboxes, file inputs,
   range widgets, icons, sliders, or native PDF/canvas viewports. */
.studio-page-shell :is(select, textarea,
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"])),
.studio-page-shell :is(.field > span, .studio-page-workspace label:not(.check-row):not(.office-studio-drop-zone):not(.image-studio-drop-zone):not(.pdf-studio-drop-zone):not(.media-studio-drop-zone):not(.knowledge-drop-zone):not(.language-studio-file)) {
  font-family: inherit;
  font-size: var(--studio-type-control) !important;
  line-height: 1.45;
}
.studio-page-shell :is(.studio-page-workspace, .studio-integrated-tools) :is(.button, .mini-button) {
  font-family: inherit;
  font-size: var(--studio-type-label) !important;
  line-height: 1.4;
}
.studio-page-shell :is(.studio-page-workspace, .studio-integrated-tools) :is(.button, .mini-button) {
  min-height: 36px;
}
.studio-page-shell :is(.studio-page-workspace, .studio-integrated-tools) :is(button, select, input, textarea) {
  font-family: inherit;
}
.studio-page-shell :is(.studio-page-workspace, .studio-integrated-tools) :is(button, select, input, textarea):focus-visible {
  outline-offset: 2px;
}

/* Secondary hints and actual option names should never be 7–10 px. */
.studio-page-shell .studio-page-workspace small {
  font-size: var(--studio-type-secondary) !important;
  line-height:1.5;
}
.studio-page-shell .studio-page-workspace :is(.pdf-studio-field > span,
  .media-studio-field > span, .data-studio-field > span,
  .image-studio-looks-controls label, .knowledge-panel .field > span) {
  font-size: var(--studio-type-label) !important;
  line-height:1.5;
}
.studio-page-shell .studio-page-workspace :is(.knowledge-panel-head > span,
  .knowledge-section-head > span) {font-size:var(--studio-type-kicker) !important;}
.studio-page-shell .studio-page-workspace .knowledge-panel-head p {
  font-size:var(--studio-type-label) !important;
  line-height:1.6;
}

/* Shared headers, navigation and secondary text across all seven studios. */
.studio-page-shell :is(.studio-page-mark, .studio-page-number, .studio-page-access,
  .studio-page-hero .section-kicker, .studio-page-summary > span) {
  font-size: var(--studio-type-kicker) !important;
}
.studio-page-shell .studio-page-trust span {
  font-size: var(--studio-type-secondary) !important;
}
.studio-page-shell :is(.studio-page-summary small, .studio-page-hero p) {
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.studio-page-shell :is(.image-studio-toolnav, .pdf-studio-toolnav,
  .media-studio-toolnav, .office-studio-toolnav,
  .knowledge-studio-toolnav, .language-studio-toolnav) :is(strong, b) {
  font-size: var(--studio-type-label) !important;
  line-height: 1.35;
}
.studio-page-shell :is(.image-studio-toolnav, .pdf-studio-toolnav,
  .media-studio-toolnav, .office-studio-toolnav,
  .knowledge-studio-toolnav, .language-studio-toolnav) small {
  font-size: var(--studio-type-secondary) !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.studio-page-shell :is(.image-studio-toolnav, .pdf-studio-toolnav,
  .media-studio-toolnav, .office-studio-toolnav,
  .knowledge-studio-toolnav, .language-studio-toolnav) button {
  min-height: 49px;
  overflow-wrap: anywhere;
}
.studio-page-shell :is(.image-studio-tools-head, .pdf-studio-tools-head,
  .media-studio-panel-head, .office-studio-panel-head,
  .knowledge-studio-tools-head, .language-studio-tools-head) > span {
  font-size: var(--studio-type-kicker) !important;
}
.studio-page-shell :is(.image-studio-tools-head, .pdf-studio-tools-head,
  .media-studio-panel-head, .office-studio-panel-head,
  .knowledge-studio-tools-head, .language-studio-tools-head) > strong {
  font-size: 15px !important;
}
.studio-page-shell :is(.image-studio-tools-head, .pdf-studio-tools-head,
  .media-studio-panel-head, .office-studio-panel-head,
  .knowledge-studio-tools-head, .language-studio-tools-head) > small {
  font-size: var(--studio-type-secondary) !important;
  line-height: 1.45;
}

/* Office Studio had 6–10px labels in its navigation, overview, results and
   PRO rail. Bring those controls up to the readable Image Studio scale. */
.office-studio-page .office-studio-toolnav button { gap: 11px; padding: 12px 10px; }
.office-studio-page .office-studio-toolnav button > span:first-child {font-size: 10px !important;}
.office-studio-page .office-studio-toolnav strong {font-size: 13px !important;}
.office-studio-page .office-studio-toolnav small {font-size: 11.5px !important; color: #526875;}
.office-studio-page :is(.office-studio-panel-head, .office-studio-pro-head) > span {font-size: 11px !important;}
.office-studio-page :is(.office-studio-panel-head, .office-studio-pro-head) > strong {font-size: 15px !important;}
.office-studio-page :is(.office-studio-panel-head, .office-studio-pro-head) > small {font-size: 12px !important;}
.office-studio-page :is(.office-studio-drop-zone small, .office-studio-drop-note p,
  .office-studio-status, .office-studio-filebar small,
  .office-studio-overview > p, .office-studio-export p,
  .office-studio-empty-work p, .office-studio-extract-grid p) {
  font-size: 12px !important;
  line-height: 1.55;
}
.office-studio-page :is(.office-studio-filebar strong, .office-studio-drop-zone strong,
  .office-studio-overview-grid strong, .office-studio-issue strong,
  .office-studio-extract-grid h3, .office-sheet-grid strong,
  .office-slide-list strong, .office-outline strong,
  .office-studio-pro article strong, .office-studio-action-card label) {
  font-size: 13px !important;
  line-height: 1.4;
}
.office-studio-page :is(.office-empty-flow span, .office-diff-list p, .office-studio-overview-grid small, .office-studio-issue small,
  .office-sheet-grid small, .office-slide-list small,
  .office-studio-pro article small, .office-diff-list small,
  .office-studio-stat small, .office-studio-stat span,
  .office-studio-issue > span, .office-studio-audit-list span,
  .office-outline > div > span, .office-diff-list span,
  .office-studio-overview-grid > div > small) {
  font-size: 12px !important;
  line-height: 1.5;
}
.office-studio-page .office-studio-pro article {grid-template-columns:72px minmax(0,1fr);}
.office-studio-page .office-studio-pro article > span {font-size: 10px !important;}
.office-studio-page :is(.office-studio-pro article small, .office-studio-issue small, .office-studio-overview-grid small) {color:#5b6b73;}
.office-studio-page .office-studio-stat {min-width:0;}
.office-studio-page .office-studio-issue {grid-template-columns:78px minmax(0,1fr) 36px;}
.office-studio-page .office-studio-stat strong {font-size:20px !important;}
.office-studio-page .office-studio-overview-grid > div,
.office-studio-page .office-studio-issue,
.office-studio-page .office-studio-pro article {min-width:0;}

/* Cross-studio status and option explanations: never present core instructions
   as tiny microcopy. Preserve the visual differentiation of badges/metrics. */
.studio-page-shell :is(.image-studio-journey-status, .image-studio-looks-status,
  .image-studio-looks-intro, .media-studio-field, .pdf-studio-help,
  .data-prep104-lead, .knowledge-verify-status) {
  font-size: var(--studio-type-label) !important;
  line-height: 1.5;
}
.studio-page-shell :is(.media-sub102-row, .media-sub102-cues > small,
  .media-sub103-editor > small, .media-sub103-editor > p,
  .media-sub103-pro-options > small, .media-cover100-status,
  .media-cover100-pro > small, .media-titles101-pro > small) {
  font-size: var(--studio-type-secondary) !important;
  line-height: 1.5;
}

/* Original tool selectors in every Studio: same readable scale and line-height. */
.app-view .studio-integrated-tools-head p {font-size:14px !important;line-height:1.65;}
.app-view .studio-integrated-tool-choice strong {font-size:14px !important;line-height:1.4;}
.app-view .studio-integrated-tool-choice small {font-size:12px !important;line-height:1.55;}
.app-view .studio-integrated-tool-message {font-size:12px !important;line-height:1.5;}
.app-view .studio-integrated-tool-mark {font-size:12px !important;}
.app-view .studio-integrated-tool-toolbar > strong {font-size:15px !important;}
.app-view .studio-integrated-tools .mini-button {font-size:13px !important;min-height:36px;}
.app-view .studio-integrated-tool-choice {min-height:78px;}

/* The real tool renderer lives in a separate same-origin iframe. Improve its
   controls only in embedded mode; standalone tool pages keep their own styles. */
body.studio-embed-page #toolMount {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
}
body.studio-embed-page #toolMount :is(.field > span, .field > label, .tool-field > label,
  label:not(.switch):not(.toggle):not(.check-row)) {
  font-size: 13px !important;
  line-height: 1.5;
}
body.studio-embed-page #toolMount :is(select, textarea,
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"])) {
  font-family:inherit;
  font-size: 14px !important;
}
body.studio-embed-page #toolMount :is(.button, .mini-button) {
  font-size: 13px !important;
  line-height: 1.4;
}
body.studio-embed-page #toolMount :is(.field > small, .tool-help, .tool-description) {
  font-size:12px !important;
  line-height:1.5;
}

/* Avoid horizontal text clipping on smaller screens; do not force fixed heights. */
@media (max-width:780px) {
  .office-studio-page .office-studio-issue {grid-template-columns: minmax(70px,auto) minmax(0,1fr) 30px;}
  .office-studio-page .office-studio-pro article {grid-template-columns:75px minmax(0,1fr);}
  .app-view .studio-integrated-tool-choice {min-height:0;}
}
@media (max-width:530px) {
  .office-studio-page .office-studio-overview-grid {grid-template-columns:1fr;}
  .office-studio-page .office-studio-stats,
  .office-studio-page .office-studio-stats.compact {grid-template-columns:repeat(2,minmax(0,1fr));}
  .office-studio-page .office-studio-issue {grid-template-columns: minmax(0,1fr) 30px;}
  .office-studio-page .office-studio-issue > span {grid-column:1/-1;}
  .app-view .studio-integrated-tools-head p {font-size:13px !important;}
}

/* Lot 322 — Media Studio: always-visible cue navigation (FREE, up to 2000 cues). */
.studio-page-shell .media-sub102-pagination{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 16px;padding:8px 0;min-width:0;font-size:13px}
.studio-page-shell .media-sub102-pagination[hidden]{display:none}
.studio-page-shell .media-sub102-pagination label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.studio-page-shell .media-sub102-pagination input{width:74px;min-height:36px;padding:5px 8px;box-sizing:border-box}
.studio-page-shell .media-sub102-pagination [data-sub102-page-status]{color:var(--studio-muted,#52627b);font-variant-numeric:tabular-nums}
