.product-manager { background: #020617; padding: 56px 32px; color: #f8fafc; scroll-margin-top: 80px; }
.product-manager [hidden] { display: none !important; }
.pm-container { max-width: 1280px; margin: 0 auto; }
.pm-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.pm-eyebrow { color: #fdba74; font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.pm-heading-row h2 { font-size: 32px; font-weight: 600; line-height: 1.2; }
.pm-brand { font-size: 14px; font-weight: 700; color: #cbd5e1; white-space: nowrap; }
.pm-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid #ffffff26; margin-bottom: 32px; }
.pm-steps button { display: flex; align-items: center; gap: 10px; padding: 16px 12px; background: transparent; border-bottom: 3px solid transparent; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: #cbd5e1; }
.pm-steps button:disabled { cursor: default; color: #94a3b8; }
.pm-steps button[aria-current="step"] { color: #fdba74; border-bottom-color: #f97316; }
.pm-steps button span { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border: 1px solid #cbd5e1; border-radius: 50%; font-size: 12px; background: white; color: #334155; }
.pm-steps button[aria-current="step"] span { background: #ea580c; border-color: #ea580c; color: white; }
.pm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.pm-form { min-width: 0; }
.pm-stage { min-height: 356px; }
.pm-stage h3 { font-size: 22px; font-weight: 600; line-height: 1.4; margin-bottom: 24px; }
.pm-fields { display: grid; gap: 16px; margin-bottom: 22px; }
.pm-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pm-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pm-form label { color: #e2e8f0; font-size: 14px; font-weight: 500; min-width: 0; }
.pm-form .pm-choice { color: #334155; }
.pm-fields label, .pm-custom-color { display: grid; gap: 8px; align-content: start; }
.pm-fields .pm-distance-unknown { display: flex; align-items: center; margin-top: 8px; cursor: pointer; }
.pm-distance-unknown input { width: 16px; height: 16px; accent-color: #ea580c; }
.pm-form [name="receiverDistance"]:disabled { opacity: .65; }
.pm-form input:not([type="radio"]):not([type="checkbox"]), .pm-form select { border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #18212e; height: 44px; padding: 9px 12px; width: 100%; min-width: 0; font-size: 15px; font-weight: 400; }
.pm-form input::placeholder { color: #7c8797; }
.pm-form input:focus, .pm-form select:focus { border-color: #ea580c; outline: 2px solid #ffedd5; outline-offset: 1px; }
.pm-frequency-table { width: 100%; max-width: 620px; margin-bottom: 24px; border-collapse: collapse; color: #e2e8f0; font-size: 13px; font-variant-numeric: tabular-nums; }
.pm-frequency-table caption { margin-bottom: 12px; text-align: left; font-size: 14px; font-weight: 600; }
.pm-frequency-table caption span { color: #aab8ca; font-weight: 400; }
.pm-frequency-table th, .pm-frequency-table td { padding: 6px; border-bottom: 1px solid #334155; text-align: center; }
.pm-frequency-table thead { background: #1e293b; }
.pm-frequency-table th:first-child { text-align: left; }
.pm-frequency-table tbody th { white-space: nowrap; }
.pm-form .pm-frequency-table input[type="number"] { width: 100%; min-width: 62px; max-width: 130px; padding-inline: 8px; }
.pm-frequency-table + .pm-field-error { margin: -12px 0 16px; }
.pm-frequency-table.is-horizontal { max-width: none; table-layout: fixed; }
.pm-frequency-table.is-horizontal th, .pm-frequency-table.is-horizontal td { padding-inline: 4px; }
.pm-frequency-table.is-horizontal th:first-child { width: 7rem; white-space: normal; }
.pm-form .pm-frequency-table.is-horizontal input[type="number"] { min-width: 0; padding-inline: 3px; font-size: 13px; text-align: center; appearance: textfield; }
.pm-frequency-table.is-horizontal input::-webkit-inner-spin-button, .pm-frequency-table.is-horizontal input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.pm-device-picker { display: grid; gap: 8px; align-content: start; min-width: 0; }
.pm-fields .pm-device-picker label { display: block; }
.pm-device-control { position: relative; }
.pm-device-control:has(.pm-device-toggle:not([hidden])) input { padding-right: 44px; }
.pm-device-toggle { position: absolute; inset: 1px 1px auto auto; display: grid; place-items: center; width: 42px; height: 42px; border-left: 1px solid #dbe3ed; border-radius: 0 3px 3px 0; background: #f1f5f9; color: #334155; cursor: pointer; }
.pm-device-toggle::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.pm-device-toggle:hover, .pm-device-toggle[aria-expanded="true"] { background: #ffedd5; color: #9a3412; }
.pm-device-options { position: absolute; z-index: 5; inset: 48px 0 auto; max-height: 230px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 4px; list-style: none; border: 1px solid #cbd5e1; border-radius: 4px; background: white; color: #18212e; box-shadow: 0 8px 20px #02061733; }
.pm-device-options [role="option"] { display: flex; align-items: center; min-height: 38px; padding: 7px 10px; border-radius: 3px; font-size: 14px; overflow-wrap: anywhere; cursor: pointer; }
.pm-device-options [role="option"]:hover, .pm-device-options [aria-selected="true"] { background: #ffedd5; color: #7c2d12; }
.pm-form input[type="radio"], .pm-form input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; accent-color: #ea580c; padding: 0; cursor: pointer; }
.pm-fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.pm-fieldset legend { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #e2e8f0; }
.pm-air-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pm-choice { display: flex; align-items: center; gap: 10px; border: 1px solid #cbd5e1; background: #fff; border-radius: 4px; padding: 12px 14px; cursor: pointer; min-height: 46px; }
.pm-choice:hover { border-color: #ea580c; }
.pm-choice.is-selected { border-color: #ea580c; background: #fff7ed; }
.pm-choice:focus-within { outline: 2px solid #fed7aa; outline-offset: 2px; }
.pm-air-choice { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-content: start; padding: 20px; }
.pm-air-choice strong { display: block; font-size: 17px; font-weight: 600; }
.pm-air-choice small { display: block; font-size: 13px; color: #64748b; margin-top: 4px; min-height: 38px; line-height: 1.5; }
.pm-air-choice img { grid-column: 1 / -1; width: 280px; max-width: 100%; height: 202px; object-fit: contain; justify-self: center; margin-top: 10px; }
.pm-inline-options { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-inline-options .pm-choice { min-width: 150px; }
.pm-form .pm-check { display: flex; align-items: center; align-self: end; gap: 10px; min-height: 44px; padding-top: 22px; }
.pm-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-colors .pm-choice { font-size: 13px; padding: 10px; }
.pm-swatch { width: 20px; height: 20px; border: 1px solid #a4adb8; border-radius: 3px; flex: 0 0 20px; }
.pm-anthracite { background: #383e42; }
.pm-white { background: #f1efdf; }
.pm-silver { background: #a5a5a5; }
.pm-custom-color { max-width: 420px; margin-bottom: 20px; }
.pm-summary { border-left: 1px solid #ffffff26; padding-left: 28px; min-width: 0; }
.pm-summary h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.pm-product-image { width: 100%; height: 154px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
.pm-generated-photo { position: relative; width: 100%; max-width: 350px; margin: 0 0 20px; }
.pm-generated-photo .pm-product-image { display: block; margin-bottom: 0; }
.pm-summary-data > div { padding: 12px 0; border-bottom: 1px solid #ffffff26; }
.pm-summary-data dt { font-size: 12px; color: #aab8ca; margin-bottom: 4px; }
.pm-summary-data dd { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.6; }
.pm-own-brand { color: #aab8ca; margin-top: 18px; font-size: 12px; }
.pm-navigation { display: flex; align-items: center; gap: 14px; border-top: 1px solid #ffffff26; padding-top: 20px; margin-top: 12px; }
.pm-step-counter { font-size: 13px; color: #aab8ca; margin-right: auto; }
.pm-primary, .pm-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.pm-primary { border: 1px solid #f97316; color: #fff; background: #f97316; }
.pm-primary:hover { background: #ea580c; border-color: #ea580c; }
.pm-secondary { border: 1px solid #cbd5e1; color: #334155; background: #fff; }
.pm-secondary:hover { border-color: #64748b; background: #f1f5f9; }
.pm-validation { color: #fca5a5; font-size: 14px; min-height: 22px; margin-top: 12px; }
.pm-field-error { display: block; color: #fca5a5; font-size: 12px; font-weight: 400; line-height: 1.5; }
.pm-choice .pm-field-error { color: #b91c1c; }
.pm-form input[aria-invalid="true"], .pm-form select[aria-invalid="true"] { border-color: #b91c1c; outline: 2px solid #fee2e2; outline-offset: 1px; }
.pm-series { font-size: 26px; font-weight: 600; color: #fdba74; margin-bottom: 8px; }
.pm-series-reason { color: #cbd5e1; font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.pm-result-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 20px 0; border-top: 1px solid #ffffff26; border-bottom: 1px solid #ffffff26; }
.pm-result-data dt { font-size: 12px; color: #aab8ca; margin-bottom: 4px; }
.pm-result-data dd { font-size: 14px; overflow-wrap: anywhere; line-height: 1.6; }
.pm-match-recommendation { grid-column: 2; }
.pm-match-recommendation dd, #pm-summary-box.is-recommendation { color: var(--color-orange-500, #f97316); font-weight: 700; }
.pm-technical-note { font-size: 13px; color: #aab8ca; line-height: 1.7; margin-top: 20px; padding-left: 12px; border-left: 2px solid #ea580c; }
.pm-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pm-match-heading { font-size: 16px; font-weight: 600; margin: 24px 0 12px; }
.pm-floor-options { display: grid; gap: 10px; }
.pm-space-plan { margin: 0 0 24px; padding: 16px 18px; border: 1px solid #c7d5e1; border-radius: 4px; background: #f5f8fa; color: #18212e; }
.pm-space-plan figcaption { font-size: 15px; font-weight: 700; }
.pm-space-measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; padding-bottom: 12px; border-bottom: 1px solid #d4dfe7; }
.pm-space-measures dt { font-size: 12px; color: #45576b; }
.pm-space-measures dd { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pm-space-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px 20px; padding-top: 12px; }
.pm-space-view h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.pm-space-view svg { display: block; width: 100%; max-width: 360px; height: auto; margin-inline: auto; background: repeating-linear-gradient(#e3ebf1 0 1px, transparent 1px 16px), repeating-linear-gradient(90deg, #e3ebf1 0 1px, transparent 1px 16px); }
.pm-space-outline { fill: #dce9f0; fill-opacity: .84; stroke: #395a6f; stroke-width: 1.4; }
.pm-space-view.is-pending .pm-space-outline { fill: none; stroke-dasharray: 5 4; }
.pm-space-guides { fill: none; stroke: #7b8c9a; stroke-width: 1; }
.pm-space-dimensions { fill: none; stroke: #a63d12; stroke-width: 1.4; }
.pm-space-view text { fill: #92350f; font-size: 14px; font-weight: 700; text-anchor: middle; }
.pm-optional, .pm-photo-hint { color: #aab8ca; font-size: 13px; font-weight: 400; }
.pm-photo-label { display: block; margin-bottom: 8px; }
.pm-form input[type="file"] { height: auto !important; min-height: 44px; padding: 8px !important; font-size: 0 !important; }
.pm-form input[type="file"]::file-selector-button { border: 1px solid #cbd5e1; border-radius: 4px; background: #f1f5f9; color: #334155; padding: 6px 10px; margin-right: 10px; cursor: pointer; font-size: 14px; }
.pm-photo-hint { margin-top: 8px; line-height: 1.6; }
.pm-photo-previews { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 180px)); gap: 12px; }
.pm-photo-previews li { min-width: 0; }
.pm-photo-previews img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e9eef2; border: 1px solid #d6dee7; border-radius: 4px; }
.pm-photo-name { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; margin-top: 6px; }
.pm-photo-remove { background: transparent; color: #fca5a5; font-size: 12px; padding: 6px 0; cursor: pointer; text-decoration: underline; }
.pm-scene-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pm-scene-choice { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-content: start; padding: 14px 12px; }
.pm-scene-preview { position: relative; grid-column: 1 / -1; width: 100%; height: 190px; min-width: 0; margin-top: 12px; }
.pm-scene-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pm-distance-symbols { position: absolute; overflow: hidden; }
.pm-distance-overlay { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pm-scene-choice:has([name="reflection"]:checked) .pm-distance-overlay { display: block; }
.pm-distance-cue { display: none; }
.pm-stage.has-receiver-distance .pm-distance-cue,
.pm-stage:has([name="receiverDistance"]:focus) .pm-distance-cue { display: inline; }
.pm-scene-value { font-size: 20px; font-weight: 700; text-anchor: middle; fill: #1b3a4b; stroke: white; stroke-width: 6px; stroke-linejoin: round; paint-order: stroke; }
.pm-distance-value { fill: #952c0b; }
@media (prefers-reduced-motion: no-preference) {
  .pm-distance-measure { animation: pm-measure-reveal .65s ease-out both; }
  .pm-distance-observer { animation: pm-observer-reveal .26s ease-out .2s both; }
  .pm-distance-value { animation: pm-observer-reveal .26s ease-out .35s both; }
}
@keyframes pm-measure-reveal {
  from { clip-path: inset(-8px 100% -8px -8px) fill-box; opacity: .35; }
  to { clip-path: inset(-8px) fill-box; opacity: 1; }
}
@keyframes pm-observer-reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .pm-scene-options { grid-template-columns: minmax(0, 1fr); }
  .pm-scene-choice { grid-template-columns: 16px minmax(0, 1fr) 150px; align-items: center; }
  .pm-scene-preview { grid-column: 3; grid-row: 1; height: 130px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-scene-choice { transition: none; }
}
.pm-contact { margin-top: 28px; padding-top: 24px; border-top: 1px solid #ffffff26; }
.pm-project { margin-top: 28px; padding-top: 24px; border-top: 1px solid #ffffff26; }
.pm-process-link { display: block; color: inherit; text-decoration: none; transition: border-color .2s, background-color .2s; }
.pm-process-link:hover { border-color: #fb923c; background-color: rgba(255, 255, 255, .09); }
.pm-process-link:focus-visible { outline: 2px solid #fb923c; outline-offset: 4px; }
.pm-message { display: grid; gap: 8px; }
.pm-message textarea { width: 100%; resize: vertical; background: white; color: #18212e; border: 1px solid #cbd5e1; border-radius: 4px; padding: 12px; font: inherit; }
#pm-send-status { font-size: 14px; line-height: 1.6; margin-top: 16px; overflow-wrap: anywhere; }
.pm-primary:disabled { opacity: .65; cursor: wait; }
.pm-print-report { display: none; }
@media (max-width: 1023px) {
  .product-manager { padding: 40px 20px; }
  .pm-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
  .pm-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pm-summary { padding-left: 20px; }
  .pm-heading-row h2 { font-size: 28px; }
}
@media (max-width: 760px) {
  .product-manager { scroll-margin-top: 144px; }
  .pm-two { grid-template-columns: minmax(0, 1fr); }
  .pm-layout { grid-template-columns: minmax(0, 1fr); }
  .pm-summary { border-left: 0; border-top: 1px solid #ffffff26; padding: 24px 0 0; }
  .pm-product-image { max-width: 350px; height: 180px; }
  .pm-summary-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .pm-match-recommendation { grid-column: 1 / -1; }
  .pm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
  .pm-steps button { padding: 12px 4px; font-size: 13px; }
  .pm-heading-row { align-items: start; }
  .pm-brand { display: none; }
  .pm-stage { min-height: 0; }
  .pm-air-choice { padding: 14px 10px; }
  .pm-air-choice img { width: 130px; height: 120px; }
  .pm-air-choice small { font-size: 12px; min-height: 54px; }
  .pm-result-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .pm-two { grid-template-columns: minmax(0, 1fr); }
  .pm-form .pm-check { padding-top: 0; }
  .pm-air-options { gap: 10px; }
  .pm-air-choice { grid-template-columns: 16px minmax(0, 1fr); padding: 12px 6px; }
  .pm-air-choice img { width: 110px; }
  .pm-navigation { flex-wrap: wrap; gap: 8px; }
}
@media print {
  @page pm-project { size: A4; margin: 12mm 13mm; }
  body.pm-report-printing > :not(#pm-print-report) { display: none !important; }
  .pm-report-printing .pm-print-report {
    display: block; page: pm-project; color: #172235; font: 10pt/1.28 Arial, sans-serif;
    overflow-wrap: anywhere; print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .pm-print-report h1, .pm-print-report h2, .pm-print-report p { margin: 0; }
  .pm-report-header { display: flex; align-items: end; justify-content: space-between; gap: 4mm; border-bottom: 1.2pt solid #fe641f; padding-bottom: 3mm; margin-bottom: 3mm; }
  .pm-report-header img { width: 48mm; height: auto; margin-bottom: 2mm; }
  .pm-report-header h1 { font-size: 18pt; font-weight: 700; line-height: 1.1; margin-bottom: 1mm; }
  .pm-report-header p, .pm-report-header time { font-size: 9pt; color: #45576b; }
  .pm-report-header time { white-space: nowrap; }
  .pm-print-report section { margin: 0 0 2.5mm; }
  .pm-print-report h2 { font-size: 10pt; font-weight: 700; break-after: avoid; margin-bottom: 1mm; }
  .pm-print-report table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9pt; }
  .pm-print-report tr { break-inside: avoid; }
  .pm-print-report th, .pm-print-report td { border-bottom: .5pt solid #cad5df; text-align: left; vertical-align: top; padding: .6mm 1.4mm; }
  .pm-print-report th { font-weight: 600; color: #34465b; }
  .pm-print-report th[scope="row"] { width: 48%; }
  .pm-print-report .pm-report-project { margin-bottom: 3mm; }
  .pm-report-project th[scope="row"] { width: 28%; }
  .pm-print-report small { display: inline; margin-left: 1mm; color: #45576b; font-size: 7.5pt; }
  .pm-report-proposal { border-left: 2pt solid #fe641f; background: #fff3eb; padding: 2mm 3mm; break-inside: avoid; }
  #pm-report-proposal { font-size: 13pt; font-weight: 700; }
  #pm-report-reason { color: #45576b; font-size: 9pt; margin-top: .7mm; }
  .pm-report-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 5mm; }
  .pm-report-installation { break-inside: avoid; }
  #pm-report-space-status { font-size: 9pt; }
  .pm-print-report .pm-space-plan { background: #f5f8fb; color: #172235; border: .5pt solid #cad5df; margin: 1mm 0 0; padding: 1.6mm 3mm; }
  .pm-print-report .pm-space-measures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pm-print-report .pm-space-measures dt, .pm-print-report .pm-space-view h4 { font-size: 8pt; }
  .pm-print-report .pm-space-measures dd { font-size: 9pt; }
  .pm-print-report .pm-space-views { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm; padding-top: 1mm; }
  .pm-print-report .pm-space-view h4 { margin: 0; }
  .pm-print-report .pm-space-view svg { height: 25mm; width: 100%; }
  #pm-report-notes p { white-space: pre-wrap; }
  .pm-report-footer { border-top: .8pt solid #aab9c8; padding-top: 2mm; color: #45576b; font-size: 8pt; break-inside: avoid; }
  .pm-report-footer p + p { margin-top: 1mm; }
}
