.media-planner-master { overflow: visible; }
.media-planner-master::before { left: 1px; right: 1px; border-radius: 8px 8px 0 0; }
.commercial-section { margin: 28px 0; }
.commercial-section h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: 0; color: var(--navy-deep); }
.commercial-section > p, .commercial-terms, .commercial-price-note { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.commercial-plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.commercial-plans-grid--combos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.commercial-plan { min-width: 0; display: flex; flex-direction: column; border: 1px solid #dce2ec; border-radius: 8px; padding: 20px; background: #fff; }
.commercial-plan.is-selected { border: 2px solid #ea580c; padding: 19px; background: #fffaf6; }
.commercial-plan-top { display: flex; gap: 10px; justify-content: space-between; align-items: start; min-height: 50px; }
.commercial-plan h3 { margin: 0; font-size: 18px; color: var(--navy-deep); line-height: 1.3; }
.commercial-recommendation { white-space: nowrap; font-size: 12px; color: #9a3412; font-weight: 700; }
.commercial-price { margin-top: 14px; font-size: 29px; font-weight: 800; color: var(--navy-deep); line-height: 1.25; }
.commercial-price small { display: inline-block; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.commercial-price-note { margin: 8px 0 12px; min-height: 42px; }
.commercial-plan ul { margin: 0 0 18px; padding-left: 18px; line-height: 1.6; font-size: 14px; }
.commercial-select { min-height: 44px; border: 1px solid #ccd3df; color: var(--navy-deep); background: #fff; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.commercial-select[aria-pressed="true"] { background: #1b255f; color: #fff; border-color: #1b255f; }
.btn-select-plan { min-height: 44px; padding: 10px 16px; border: 1px solid #ccd3df; border-radius: 6px; background: #fff; color: var(--navy-deep); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.commercial-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 20px; background: #c2410c; border-color: #c2410c; color: #fff; }
.commercial-action svg, .mpm-tab-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.commercial-action:hover { background: #9a3412; color: #fff; }
.commercial-plan-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; }
.commercial-edit-plan { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 700; border: 0; background: transparent; color: #9a3412; cursor: pointer; }
.commercial-edit-plan svg { width: 16px; height: 16px; }
.mpm-switch-wrap { justify-content: flex-start; margin: 24px 0; }
.mpm-tabs-segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 520px); max-width: 100%; gap: 6px; padding: 5px; border-radius: 8px; background: #eef1f7; box-shadow: none; }
.mpm-tab-toggle { min-height: 52px; justify-content: center; padding: 12px 16px; border: 1px solid transparent; border-radius: 5px; font-size: 15px; letter-spacing: 0; color: #334155; }
.mpm-tab-toggle.active { background: #c2410c; color: #fff; border-color: #c2410c; box-shadow: 0 2px 4px #7c2d121a; }
.mpm-tab-toggle.active:hover { color: #fff; }
.commercial-rate-note { border-left: 3px solid #f97316; padding: 12px 16px; margin: 20px 0; background: #f4f7fb; font-size: 14px; line-height: 1.6; color: #303a50; }
.commercial-custom-total { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid #dce2ec; padding: 0 0 18px; margin-bottom: 18px; }
.commercial-custom-total strong { font-size: 23px; color: var(--navy-deep); }
.commercial-custom-total p { font-size: 14px; color: var(--text-muted); margin: 5px 0; }
.commercial-filter { width: 100%; max-width: 340px; min-height: 44px; margin: 8px 0 16px; border: 1px solid #ccd3df; border-radius: 6px; padding: 9px 12px; color: var(--navy-deep); background: #fff; font: inherit; }
.commercial-format { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 134px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid #e0e5ee; }
.commercial-format-category { font-size: 12px; color: #64748b; }
.commercial-format h3 { display: flex; gap: 8px; align-items: center; font-size: 16px; line-height: 1.4; margin: 5px 0; color: var(--navy-deep); }
.commercial-format h3 svg { width: 18px; height: 18px; flex-shrink: 0; }
.commercial-format p { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 5px 0 8px; }
.commercial-format small { font-size: 13px; font-weight: 500; }
.commercial-stepper { display: grid; grid-template-columns: 44px 44px 44px; align-items: center; height: 46px; width: 134px; border: 1px solid #ccd3df; border-radius: 6px; overflow: hidden; box-sizing: border-box; }
.commercial-stepper button { display: grid; place-items: center; width: 44px; height: 44px; background: #f4f6fa; border: 0; cursor: pointer; color: var(--navy-deep); }
.commercial-stepper svg { width: 16px; height: 16px; }
.commercial-stepper output { text-align: center; font-size: 16px; font-weight: 700; }
.commercial-quantity { display: grid; gap: 8px; justify-items: end; }
.commercial-line-total { font-size: 14px; font-weight: 700; color: #334155; font-variant-numeric: tabular-nums; }
.commercial-config-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: start; padding-top: 28px; margin-top: 24px; border-top: 1px solid #dce2ec; }
.commercial-config-fields, .commercial-estimate { min-width: 0; }
.commercial-estimate { position: sticky; top: 155px; max-height: calc(100dvh - 180px); overflow-y: auto; background: #f3f6fb; padding: 24px; border: 1px solid #dce2ec; border-radius: 8px; box-sizing: border-box; }
.commercial-estimate h2 { margin: 0; font-size: 20px; color: #17204d; }
.commercial-estimate p { font-size: 13px; line-height: 1.6; color: #475569; margin: 8px 0; }
.commercial-breakdown { margin: 20px 0; font-size: 14px; }
.commercial-breakdown > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #dce2ec; }
.commercial-breakdown dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.commercial-estimate-total { display: grid; gap: 6px; color: #17204d; }
.commercial-estimate-total span { font-size: 13px; font-weight: 700; }
.commercial-estimate-total strong { font-size: 30px; line-height: 1.3; }
.commercial-estimate .btn-primary-advance { width: 100%; margin-top: 18px; justify-content: center; gap: 10px; }
.commercial-estimate .btn-primary-advance svg { width: 18px; height: 18px; }
.commercial-money-field { display: flex; align-items: center; gap: 12px; max-width: 260px; min-height: 48px; border: 1px solid #a8b3c4; border-radius: 6px; background: #fff; padding: 0 14px; margin-top: 8px; }
.commercial-money-field span { color: #64748b; }
.commercial-money-field input { min-width: 0; width: 100%; min-height: 48px; font: inherit; font-size: 18px; color: #17204d; border: 0; background: transparent; }
.commercial-money-field:focus-within { outline: 3px solid #2563eb; outline-offset: 2px; }
.commercial-field-error { color: #b91c1c; font-size: 13px; line-height: 1.5; }
.commercial-banner-choice { margin: 20px 0; padding: 16px 0; border-bottom: 1px solid #dce2ec; }
.commercial-banner-choice label, .commercial-banner-choice small { display: block; font-size: 14px; }
.commercial-banner-choice small { color: #475569; line-height: 1.5; }
.commercial-creation-row { display: grid; gap: 14px; padding: 20px 0; border-top: 1px solid #dce2ec; }
.commercial-creation-row h3 { margin: 0 0 8px; font-size: 17px; }
.commercial-creation-row p { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #17204d; }
.commercial-other-services { padding: 16px 0; margin: 0; border: 0; }
.commercial-other-services legend { font-size: 14px; }
#production-services-list { display: flex; flex-wrap: wrap; gap: 0 20px; }
.commercial-other-services label { padding: 8px 0; font-size: 14px; align-items: center; min-height: 44px; }
.commercial-other-services input { width: 18px; height: 18px; accent-color: #c2410c; }
.media-planner-master.is-customizing { display: grid; grid-template-columns: minmax(0, 1fr) 310px; column-gap: 32px; align-items: start; }
.is-customizing > .mpm-head, .is-customizing > .mpm-switch-wrap, .is-customizing > .commercial-terms { grid-column: 1 / -1; }
.is-customizing > #view-custom-wrap { grid-column: 1; grid-row: 3; min-width: 0; }
.is-customizing > .commercial-config-layout { display: contents; }
.is-customizing .commercial-config-fields { grid-column: 1; grid-row: 4; padding-top: 24px; }
.is-customizing .commercial-estimate { grid-column: 2; grid-row: 3 / span 2; margin-top: 16px; }
.commercial-materials { border: 0; padding: 0; margin: 0; }
.commercial-materials legend { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--navy-deep); }
.commercial-materials .commercial-other-services legend { font-size: 14px; }
.commercial-materials label { display: flex; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; padding: 14px 0; cursor: pointer; }
.commercial-materials input[type="radio"] { margin-top: 4px; width: 18px; height: 18px; accent-color: #ea580c; flex-shrink: 0; }
.commercial-materials small { display: block; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.commercial-materials textarea { width: 100%; min-height: 90px; }
.commercial-production-note { padding: 14px 0; font-size: 14px; line-height: 1.6; color: #303a50; }
.commercial-cycle { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.commercial-cycle button { min-height: 44px; padding: 10px 16px; border: 1px solid #ccd3df; border-radius: 6px; font: inherit; background: #fff; color: var(--navy-deep); cursor: pointer; }
.commercial-cycle button.active { background: #1b255f; border-color: #1b255f; color: #fff; }
.commercial-cycle-note { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin-top: 10px; }
.commercial-terms strong { color: var(--navy-deep); }
#step-nav-placeholder { scroll-margin-top: 90px; }
#view-custom-wrap { scroll-margin-top: 165px; }
.formats-grid-wrap { display: block; }
.commercial-plan *, .commercial-format *, .commercial-materials * { letter-spacing: 0; overflow-wrap: anywhere; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .commercial-config-layout { grid-template-columns: 1fr; gap: 24px; }
  .media-planner-master.is-customizing { display: block; }
  .is-customizing > .commercial-config-layout { display: grid; }
  .is-customizing .commercial-config-fields, .is-customizing .commercial-estimate { grid-column: auto; grid-row: auto; }
  .commercial-estimate { position: static; max-height: none; overflow: visible; padding: 20px; }
  .mpm-tab-toggle { padding: 10px 8px; min-height: 50px; font-size: 14px; gap: 7px; }
  .commercial-custom-total .commercial-action { width: 100%; }
  .commercial-plans-grid, .commercial-plans-grid--combos { grid-template-columns: 1fr; }
  .commercial-plan-top { min-height: auto; }
  .commercial-price-note { min-height: auto; }
  .commercial-format { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .commercial-format h3 { font-size: 16px; }
  .commercial-stepper { justify-self: end; }
  .bar-center-info, .bar-label-top, .bar-value-main, .bar-traffic-pill { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .bar-value-main { font-size: 17px; }
  .bar-traffic-pill { max-width: 100%; font-size: 11px; line-height: 1.4; }
  .bar-right-actions { flex-shrink: 0; }
  .prop-head-row, .prop-client-banner, .prop-finance-card { gap: 16px; flex-wrap: wrap; }
}
@media print {
  .commercial-production-note, .commercial-terms { display: block !important; }
  .commercial-production-note { break-inside: avoid; }
}
