/* Preserve all controls and upload slots, simplify their presentation. */
#orderSummary, #uploadMissing, .ux-upload-guide, .angle-selection-summary,
.type-summary, .subtitle, .eyebrow, .angle-selection-head > span,
.angle-mode-switch small, .angle-picker-label > span,
.result-head > span, .angle-result small,
.white-view-results-note { display: none !important; }
.angle-selection-head { margin-bottom: 12px !important; }
.slot-title::after { content: none !important; }
.slot-help { display: none !important; }
.page-head { padding-bottom: 20px !important; margin-bottom: 20px !important; }
.page-head h1 { font-size: 30px !important; }
.category-tabs { margin-bottom: 20px !important; }
.workspace .panel { border-radius: 12px !important; }
.panel h2 { font-size: 22px !important; }
.panel-head { padding-bottom: 16px !important; }
.section-label, .angle-selection h3 { font-size: 17px !important; }
.panel-note, #clearAll { font-size: 14px !important; }
.mode-card { font-size: 17px !important; min-height: 62px !important; }
.mode-card strong { font-size: 17px !important; }
.mode-option, .mode-option strong { font-size: 16px !important; }
.mode-card small { display: none !important; }
.slot-title { font-size: 20px !important; font-weight: 600 !important; line-height: 1.5 !important; }
.slot-plus { font-size: 30px !important; margin-bottom: 10px !important; }
.upload-grid { gap: 14px !important; margin-top: 18px !important; }
.upload-slot.full-row { min-height: 195px !important; }
.upload-slot.multi-slot { min-height: 170px !important; }
.angle-mode-switch strong { font-size: 17px !important; }
.angle-mode-switch button { min-height: 50px !important; padding: 12px !important; }
.angle-selection { padding: 16px !important; }
.choice strong, .segment button, .stepper, .fixed-option-button { font-size: 16px !important; }
.choice small { display: none !important; }
.auto-padding-toggle { font-size: 16px !important; }
.choice { min-height: 86px !important; }
.generate { font-size: 18px !important; height: 52px !important; }
.fixed-option-buttons button { font-size: 16px !important; }
.cost { font-size: 17px !important; }
.result-head h3 { font-size: 20px !important; }
@media (min-width: 1380px) {
  body.white-workbench-page .shell,
  body.white-workbench-page.sct-order-dock-enabled .shell {
    width: calc(100% - var(--sct-order-dock-width, 60px)) !important; max-width: 1760px !important;
    margin: 0 var(--sct-order-dock-width, 60px) 0 0 !important; padding: 88px 32px 36px !important;
  }
  body.white-workbench-page .workspace,
  body.white-workbench-page.sct-order-dock-enabled .workspace {
    grid-template-columns: 224px minmax(560px, 1fr) 310px !important;
    gap: 20px !important; align-items: start !important;
  }
  body.white-workbench-page .params-panel,
  body.white-workbench-page.sct-order-dock-enabled .params-panel { grid-column: auto !important; }
  body.white-workbench-page .params-body,
  body.white-workbench-page.sct-order-dock-enabled .params-body { display: block !important; }
  body.white-workbench-page .form-section + .form-section {
    margin-top: 20px !important; padding-top: 20px !important; border-top: 1px solid var(--line) !important;
  }
}
@media (max-width: 1379px) and (min-width: 781px) {
  body.white-workbench-page .shell { width: calc(100% - var(--sct-order-dock-width, 60px)) !important; margin: 0 var(--sct-order-dock-width, 60px) 0 0 !important; padding-left: 24px !important; padding-right: 24px !important; }
  body.white-workbench-page .workspace { grid-template-columns: 210px minmax(0, 1fr) !important; }
  body.white-workbench-page .params-panel { grid-column: 1 / -1 !important; }
}
@media (max-width: 780px) {
  .slot-title { font-size: 17px !important; }
  .upload-slot.multi-slot { min-height: 150px !important; }
}

.sct-clean-hide-copy { display: none !important; }
.workspace > section:first-child > .section-label { display: none !important; }

@media (min-width:1380px) and (max-width:1599px) {
 body.white-workbench-page.sct-order-dock-enabled:not(.sct-order-dock-collapsed) .workspace {grid-template-columns:210px minmax(0,1fr)!important;}
 body.white-workbench-page.sct-order-dock-enabled:not(.sct-order-dock-collapsed) .params-panel {grid-column:1/-1!important;}
}

/* Center the workbench in the available area, including browser zoom / wide screens. */
@media (min-width: 781px) {
  body.white-workbench-page {
    --white-content-max: 1760px;
    --white-content-padding: 32px;
    --white-order-space: max(54px, var(--sct-order-dock-width, 60px));
    --white-outer-gap: max(0px, calc((100vw - var(--white-order-space) - var(--white-content-max)) / 2));
  }
  body.white-workbench-page .shell,
  body.white-workbench-page.sct-order-dock-enabled .shell {
    width: min(var(--white-content-max), calc(100% - var(--white-order-space))) !important;
    max-width: var(--white-content-max) !important;
    margin-left: var(--white-outer-gap) !important;
    margin-right: calc(var(--white-outer-gap) + var(--white-order-space)) !important;
  }
  body.white-workbench-page .site-nav {
    padding-left: calc(var(--white-outer-gap) + var(--white-content-padding)) !important;
    padding-right: calc(var(--white-outer-gap) + var(--white-order-space) + var(--white-content-padding)) !important;
  }
}
@media (min-width: 781px) and (max-width: 1379px) {
  body.white-workbench-page { --white-content-padding: 24px; }
}
@media (min-width: 2000px) {
  body.white-workbench-page { --white-content-max: 2200px; --white-content-padding: 40px; }
  body.white-workbench-page .shell,
  body.white-workbench-page.sct-order-dock-enabled .shell { padding: 100px 40px 36px !important; }
  body.white-workbench-page .workspace,
  body.white-workbench-page.sct-order-dock-enabled .workspace { grid-template-columns: 280px minmax(560px, 1fr) 360px !important; gap: 24px !important; }
  .page-head h1 { font-size: 34px !important; }
  .panel h2 { font-size: 28px !important; }
  .section-label, .angle-selection h3, .auto-padding-toggle { font-size: 22px !important; }
  .mode-option, .mode-option strong, .angle-mode-switch strong,
  .choice strong, .segment button, .stepper, .fixed-option-buttons button { font-size: 22px !important; }
  .choice { padding: 10px 4px !important; }
  .choice strong { white-space: nowrap !important; }
  .stepper button, .stepper output { font-size: 22px !important; }
  .angle-result strong { font-size: 18px !important; }
  .slot-title { font-size: 28px !important; }
  .panel-note, #clearAll { font-size: 18px !important; }
  .mode-option { min-height: 72px !important; }
  .generate { font-size: 24px !important; height: 60px !important; }
  .cost { font-size: 22px !important; }
  .result-head h3 { font-size: 26px !important; }
  .upload-slot.full-row { min-height: 200px !important; }
  .upload-slot.multi-slot { min-height: 190px !important; }
  .site-nav { height: 72px !important; }
  .nav-link, .nav-order, .home-btn { font-size: 18px !important; }
  .brand img { height: 38px !important; }
}

/* Match the top and bottom edges of the three desktop panels. */
@media (min-width: 1380px) {
  body.white-workbench-page .workspace,
  body.white-workbench-page.sct-order-dock-enabled .workspace { align-items: stretch !important; }
  body.white-workbench-page .params-panel,
  body.white-workbench-page.sct-order-dock-enabled .params-panel { display: flex; flex-direction: column; }
  body.white-workbench-page .params-body,
  body.white-workbench-page.sct-order-dock-enabled .params-body {
    display: flex !important; flex-direction: column !important; flex: 1; gap: 0 !important;
  }
  body.white-workbench-page .cost-area { margin-top: auto !important; padding-top: 28px !important; }
}
/* Parameters occupy their own row when the order drawer leaves room for two columns. */
@media (min-width: 1380px) and (max-width: 1599px) {
  body.white-workbench-page.sct-order-dock-enabled:not(.sct-order-dock-collapsed) .params-panel { display: block; }
  body.white-workbench-page.sct-order-dock-enabled:not(.sct-order-dock-collapsed) .params-body { display: block !important; }
}

/* Keep view selection compact and give the two required uploads more space. */
body.white-workbench-page #singleAnglePanel { margin-top: 14px; }
body.white-workbench-page #singleAnglePanel .angle-picker-label { display: none; }
body.white-workbench-page .angle-card { padding: 10px 8px; border-radius: 8px; }
body.white-workbench-page .angle-card .angle-visual {
  width: 140px; max-width: 100%; height: 80px; aspect-ratio: auto;
  margin-bottom: 8px; border: 0; border-radius: 5px;
}
body.white-workbench-page .angle-card strong { font-size: 14px; line-height: 1.4; }
body.white-workbench-page .angle-card .angle-check { top: 8px; right: 8px; }
body.white-workbench-page.is-single-angle #uploadGrid { gap: 16px !important; }
body.white-workbench-page.is-single-angle #uploadGrid .upload-slot { height: 300px !important; min-height: 300px !important; }
@media (min-width: 2000px) {
  body.white-workbench-page .angle-card .angle-visual { width: 180px; height: 100px; }
  body.white-workbench-page .angle-card strong { font-size: 18px; }
  body.white-workbench-page.is-single-angle #uploadGrid .upload-slot { height: 340px !important; min-height: 340px !important; }
}
@media (max-width: 780px) {
  body.white-workbench-page .angle-card .angle-visual { width: 120px; height: 65px; }
  body.white-workbench-page .angle-card strong { font-size: 12px; }
  body.white-workbench-page.is-single-angle #uploadGrid .upload-slot { height: 220px !important; min-height: 220px !important; }
  body.white-workbench-page.is-single-angle #uploadGrid .slot-title { font-size: 16px !important; }
}
