:root {
  --navy-950: #071d34;
  --navy-900: #0b2947;
  --navy-800: #12385e;
  --pv-blue: #3f7fb2;
  --pv-blue-dark: #2c6797;
  --pv-blue-light: #dceaf4;
  --pv-blue-pale: #f0f6fa;
  --accent: #f6b400;
  --accent-deep: #df9600;
  --green-700: #17664e;
  --green-100: #e4f3ed;
  --amber-700: #875005;
  --amber-100: #fff0c2;
  --red-700: #a1373d;
  --red-100: #fbe8e9;
  --ink: #1c2731;
  --muted: #66727d;
  --line: #d5dce2;
  --surface: #ffffff;
  --canvas: #eef1f4;
  --shadow: 0 10px 28px rgba(7, 29, 52, .09);
  --radius: 6px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-family: Arial, Helvetica, sans-serif; }
button, select, input { font: inherit; }
button { cursor: pointer; }

.app-header { position: sticky; top: 0; z-index: 30; color: #fff; background: linear-gradient(100deg, var(--navy-900), var(--navy-950)); box-shadow: 0 4px 16px rgba(7,29,52,.2); }
.header-inner { min-height: 86px; width: min(1480px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.pv-brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.pv-icon { position: relative; width: 42px; height: 42px; display: block; overflow: hidden; transform: rotate(30deg); border-radius: 8px; background: linear-gradient(135deg, #6ea6d0, var(--pv-blue-dark)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.pv-icon::before, .pv-icon::after, .pv-icon i { content: ""; position: absolute; top: -8px; bottom: -8px; width: 3px; background: rgba(255,255,255,.8); transform: rotate(-30deg); }
.pv-icon::before { left: 12px; }
.pv-icon i { left: 21px; }
.pv-icon::after { left: 30px; }
.pv-wordmark { display: flex; align-items: baseline; font-size: 38px; line-height: 1; letter-spacing: -.07em; }
.pv-wordmark strong { color: var(--pv-blue); font-weight: 800; }
.pv-wordmark span { color: #fff; font-weight: 300; }
.header-product { display: flex; align-items: center; gap: 20px; min-width: 0; }
.header-divider { width: 1px; height: 44px; background: rgba(255,255,255,.22); }
.app-header h1 { margin: 0; font-size: 19px; letter-spacing: -.01em; font-weight: 700; white-space: nowrap; }
.eyebrow { margin: 0 0 4px; color: var(--pv-blue-dark); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.app-header .eyebrow { color: #91bad9; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.ews-wordmark { display: grid; line-height: 1; text-align: right; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.22); }
.ews-wordmark strong { font-family: Georgia, serif; font-style: italic; font-size: 24px; letter-spacing: .03em; }
.ews-wordmark small { margin-top: 4px; color: #cbd8e2; font-size: 8px; font-weight: 700; }
.utility-nav { position: sticky; top: 86px; z-index: 25; background: #fff; border-bottom: 1px solid var(--line); }
.utility-inner { min-height: 36px; width: min(1480px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.utility-inner b { color: var(--accent-deep); font-size: 16px; }
.utility-inner strong { color: var(--navy-900); }

.app-shell { width: min(1480px, calc(100% - 40px)); margin: 24px auto 64px; }
.hero-panel { position: relative; min-height: 176px; padding: 36px 40px; border-radius: var(--radius); color: #fff; background: linear-gradient(115deg, var(--navy-950) 0%, var(--navy-800) 70%, var(--pv-blue) 100%); display: flex; justify-content: space-between; align-items: center; gap: 32px; overflow: hidden; box-shadow: var(--shadow); border-bottom: 5px solid var(--accent); }
.hero-panel::before { content: ""; position: absolute; width: 320px; height: 320px; right: 19%; top: -215px; transform: rotate(35deg); background: rgba(255,255,255,.05); }
.hero-panel::after { content: ""; position: absolute; width: 120px; height: 220%; right: -32px; top: -55%; transform: rotate(24deg); background: rgba(246,180,0,.17); }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel .eyebrow { color: #a7c9e1; }
.hero-panel h2 { font-size: clamp(29px, 3vw, 43px); margin: 0; letter-spacing: -.035em; }
.hero-copy { margin: 12px 0 0; color: #d9e6ef; max-width: 680px; line-height: 1.6; }
.hero-side { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 24px; }
.restart-button { min-height: 38px; padding: 8px 13px; display: inline-flex; align-items: center; gap: 8px; color: #fff; border: 1px solid rgba(255,255,255,.34); border-radius: 4px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; letter-spacing: .01em; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.restart-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.restart-button:hover { border-color: var(--accent); background: rgba(246,180,0,.14); }
.restart-button:active { transform: translateY(1px); }
.restart-button:focus-visible { outline: 3px solid rgba(246,180,0,.38); outline-offset: 3px; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 7px; }
.stepper li { min-width: 112px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 3px; background: rgba(255,255,255,.06); color: #bdceda; font-size: 13px; display: flex; align-items: center; gap: 9px; }
.stepper li span { width: 25px; height: 25px; display: grid; place-items: center; background: rgba(255,255,255,.11); font-weight: 800; }
.stepper li.active { color: #fff; border-color: var(--accent); background: rgba(246,180,0,.12); }
.stepper li.active span { color: var(--navy-950); background: var(--accent); }

.room-planner { margin-top: 20px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(7,29,52,.045); }
.room-planner-heading { display: grid; grid-template-columns: minmax(360px,.9fr) minmax(560px,1.1fr); gap: 34px; align-items: end; }
.room-planner-heading h2 { margin: 2px 0 6px; color: var(--navy-900); font-size: 22px; }
.room-planner-heading p:not(.section-number) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.room-planner-controls { display: grid; grid-template-columns: 150px minmax(320px,1fr); gap: 14px; }
.planner-field { display: grid; gap: 7px; color: var(--navy-900); font-size: 14px; font-weight: 800; }
.room-count-stepper { width: 156px; height: 52px; display: grid; grid-template-columns: repeat(3,52px); overflow: hidden; border: 1px solid #c7d1d9; border-radius: 28px; background: #fff; box-shadow: 0 4px 12px rgba(7,29,52,.06); }
.room-count-stepper button, .room-count-stepper input { min-width: 0; height: 100%; border: 0; color: var(--navy-900); font: inherit; font-size: 21px; font-weight: 800; text-align: center; }
.room-count-stepper button { cursor: pointer; background: #edf3f7; }
.room-count-stepper button:first-child { border-right: 1px solid #d2dce3; }
.room-count-stepper button:last-child { border-left: 1px solid #d2dce3; }
.room-count-stepper button:hover:not(:disabled) { color: #fff; background: var(--pv-blue-dark); }
.room-count-stepper button:disabled { cursor: not-allowed; color: #94a4b0; background: #f4f7f9; }
.room-count-stepper input { padding: 0; background: #fff; appearance: textfield; -moz-appearance: textfield; }
.room-count-stepper input::-webkit-inner-spin-button, .room-count-stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.room-count-stepper button:focus-visible, .room-count-stepper input:focus { position: relative; z-index: 1; outline: 3px solid rgba(63,127,178,.22); outline-offset: -3px; }
.room-area-input input:focus { border-color: var(--pv-blue); outline: 0; box-shadow: 0 0 0 3px rgba(63,127,178,.14); }
.series-picker-trigger { width: 100%; min-height: 64px; padding: 8px 12px; display: grid; grid-template-columns: 68px minmax(0,1fr) auto; align-items: center; gap: 11px; text-align: left; color: var(--navy-900); background: #fff; border: 1px solid #c7d1d9; border-radius: 3px; }
.series-picker-trigger:hover { border-color: var(--pv-blue); box-shadow: 0 5px 15px rgba(7,29,52,.08); }
.series-picker-trigger:focus-visible { outline: 3px solid rgba(63,127,178,.2); outline-offset: 2px; }
.series-picker-trigger img { width: 68px; height: 48px; object-fit: contain; }
.series-picker-trigger > span { min-width: 0; display: grid; gap: 3px; }
.series-picker-trigger strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.series-picker-trigger small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.series-picker-trigger em { color: var(--pv-blue-dark); font-size: 12px; font-style: normal; font-weight: 900; }
.series-picker-trigger.compact { min-height: 60px; grid-template-columns: 60px minmax(0,1fr) auto; }
.series-picker-trigger.compact img { width: 60px; height: 42px; }
.room-size-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(var(--room-count,3),minmax(0,1fr)); gap: 12px; }
.room-size-card { min-width: 0; padding: 13px 15px; display: grid; gap: 8px; color: var(--navy-900); background: #f8fafb; border: 1px solid #d7e0e6; border-top: 3px solid #8eb2cd; border-radius: 3px; }
.room-size-card > span:first-child { font-size: 14px; font-weight: 900; }
.room-area-input { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; background: #fff; border: 1px solid #c7d1d9; }
.room-area-input input { min-width: 0; height: 40px; padding: 0 10px; border: 0; color: var(--navy-900); background: transparent; font-size: 17px; font-weight: 900; }
.room-area-input small { padding-right: 9px; color: var(--muted); font-size: 13px; }
.room-size-card strong { min-height: 19px; color: var(--green-700); font-size: 12px; line-height: 1.35; }
.room-size-card strong.planner-warning { color: var(--amber-700); padding: 6px 8px; background: var(--amber-100); border-left: 3px solid var(--accent-deep); }
.room-size-card strong.planner-error { color: var(--red-700); }
.derived-plan { margin-top: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 16px; border: 1px solid #d2e0e9; border-radius: 3px; background: #f7fafc; }
.derived-plan span { min-width: 150px; display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 14px; }
.derived-plan strong { color: var(--navy-900); font-size: 17px; }
.derived-plan span.ready strong { color: var(--green-700); }
.derived-plan span.blocked strong { color: var(--red-700); }
.derived-plan i { width: 22px; height: 1px; background: #b4c6d2; }
.room-planner-actions { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.room-planner-message { margin: 0; color: var(--muted); font-size: 14px; }
.room-planner-message.success { color: var(--green-700); font-weight: 800; }
.room-planner-message.error { color: var(--red-700); font-weight: 800; }
.workflow-placeholder { margin-top: 20px; min-height: 100px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; color: var(--muted); background: rgba(255,255,255,.68); border: 1px dashed #aebbc5; border-radius: var(--radius); }
.workflow-placeholder > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #7a8c9b; font-weight: 900; }
.workflow-placeholder strong { display: block; margin-bottom: 5px; color: var(--navy-900); font-size: 17px; }
.workflow-placeholder p { margin: 0; line-height: 1.5; }
.derived-system-type { padding: 9px 12px; color: var(--navy-900); background: var(--pv-blue-pale); border: 1px solid #bfd5e5; border-radius: 3px; font-size: 14px; font-weight: 900; white-space: nowrap; }

.system-panel { margin-top: 20px; padding: 22px 24px; display: grid; grid-template-columns: minmax(240px,.65fr) minmax(480px,1.35fr); gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--pv-blue); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(7,29,52,.045); }
.system-heading { display: grid; gap: 8px; }
.system-heading h2 { margin: 2px 0 0; color: var(--navy-900); font-size: 22px; }
.system-heading > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.system-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.system-tab { min-height: 82px; padding: 15px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-align: left; color: var(--navy-900); background: #f4f7f9; border: 1px solid #ced8df; border-radius: 3px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.system-tab:hover { transform: translateY(-1px); border-color: var(--pv-blue); }
.system-tab.active { color: #fff; background: var(--navy-900); border-color: var(--navy-900); box-shadow: inset 0 -4px var(--accent), 0 8px 18px rgba(7,29,52,.14); }
.system-tab-index { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--pv-blue-dark); font-size: 11px; font-weight: 900; }
.system-tab.active .system-tab-index { color: var(--navy-950); background: var(--accent); }
.system-tab strong, .system-tab small { display: block; }
.system-tab strong { font-size: 16px; }
.system-tab small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.system-tab.active small { color: #bfd2df; }
.system-tab-arrow { font-size: 28px; font-weight: 300; }

.workspace { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 20px; }
.main-column { display: grid; gap: 14px; }
.panel, .device-card, .summary-card, .info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(7,29,52,.045); }
.panel { padding: 26px; border-top: 3px solid var(--pv-blue); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.panel-heading h2 { margin: 1px 0 6px; color: var(--navy-900); font-size: 22px; letter-spacing: -.02em; }
.panel-heading p:not(.section-number) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.section-number { margin: 0; color: var(--pv-blue-dark); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.segmented { padding: 4px; border-radius: 3px; background: #e9edf1; display: flex; gap: 3px; }
.segmented button { width: 50px; height: 38px; border: 0; border-radius: 2px; background: transparent; color: var(--muted); font-weight: 800; }
.segmented button:hover { color: var(--navy-900); }
.segmented button.active { color: #fff; background: var(--navy-900); box-shadow: inset 0 -3px var(--accent); }

.device-list { display: grid; gap: 10px; }
.device-card { min-height: 164px; padding: 18px 20px; display: grid; grid-template-columns: 42px 142px minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px 18px; align-items: center; border-left: 4px solid var(--pv-blue); }
.device-badge { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--navy-900); box-shadow: inset 0 -4px var(--accent); font-weight: 900; }
.device-visual { position: relative; width: 142px; height: 108px; padding: 10px; overflow: hidden; border: 1px solid #d3dde4; border-radius: 6px; background: radial-gradient(circle at 50% 40%, #fff 0%, #f4f7f9 76%); box-shadow: 0 6px 16px rgba(7,29,52,.08); }
.device-visual { grid-row: 1 / 3; }
.device-visual::after { content: "＋"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(11,41,71,.82); font-size: 15px; opacity: 0; transform: translateY(-3px); transition: opacity .15s ease, transform .15s ease; }
.device-visual img { width: 100%; height: 76px; object-fit: contain; mix-blend-mode: multiply; transition: transform .2s ease; }
.device-visual span { position: absolute; left: 8px; right: 8px; bottom: 6px; overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.device-visual:hover { border-color: var(--pv-blue); box-shadow: 0 9px 22px rgba(7,29,52,.13); }
.device-visual:hover img { transform: scale(1.05); }
.device-visual:hover::after, .device-visual:focus-visible::after { opacity: 1; transform: translateY(0); }
.device-visual:focus-visible { outline: 3px solid rgba(63,127,178,.22); outline-offset: 2px; }
.device-fields { grid-column: 3; display: grid; grid-template-columns: minmax(180px,.85fr) minmax(250px,1.35fr); gap: 14px; }
.device-card.no-image { grid-template-columns: 42px minmax(0,1fr); }
.device-card.no-image .device-fields, .device-card.no-image .device-metrics { grid-column: 2; }
.field-group { display: grid; gap: 7px; }
.field-group label { font-size: 11px; color: var(--navy-900); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
select { width: 100%; height: 44px; border: 1px solid #c7d1d9; border-radius: 2px; padding: 0 40px 0 12px; color: var(--ink); background: #fff; outline: none; }
select:focus { border-color: var(--pv-blue); box-shadow: 0 0 0 3px rgba(63,127,178,.14); }
select:disabled { color: #91a0ad; background: #f2f4f6; }
.device-metrics { grid-column: 3; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(80px,1fr)); gap: 7px 16px; padding-top: 11px; border-top: 1px solid var(--line); }
.metric { display: grid; gap: 2px; }
.metric span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { color: var(--navy-900); font-size: 13px; }
.device-placeholder { color: var(--muted); font-size: 13px; grid-column: 1 / -1; }

.result-count { padding: 8px 11px; border-radius: 2px; color: var(--navy-900); background: var(--pv-blue-pale); border-left: 3px solid var(--accent); font-size: 12px; font-weight: 800; }
.outdoor-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.outdoor-card { position: relative; display: grid; gap: 14px; min-height: 190px; padding: 19px; border: 1px solid var(--line); border-radius: 3px; background: #fff; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.outdoor-card.compatible { border-top: 4px solid var(--pv-blue); }
.outdoor-card.compatible:hover { transform: translateY(-2px); border-color: var(--pv-blue); box-shadow: 0 10px 24px rgba(7,29,52,.1); }
.outdoor-card.recommended { border-color: var(--accent-deep); background: linear-gradient(145deg, #fff 72%, #fff6d6); box-shadow: 0 0 0 3px rgba(255,204,0,.32), 0 12px 28px rgba(7,29,52,.12); }
.outdoor-card.recommended::before { content: "EMPFEHLUNG"; position: absolute; top: -12px; left: 18px; padding: 4px 9px; border-radius: 2px; color: var(--navy-950); background: var(--accent); font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.outdoor-card.selected { border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(63,127,178,.14); }
.outdoor-card.recommended.selected { box-shadow: 0 0 0 3px rgba(255,204,0,.42), 0 12px 28px rgba(7,29,52,.14); }
.outdoor-card.incompatible { background: #f7f8f9; }
.outdoor-top { display: flex; justify-content: space-between; gap: 12px; }
.article-availability { display: block; width: fit-content; margin-top: 6px; padding: 3px 7px; border-radius: 3px; background: #eef2f5; color: #425367; font-size: 12px; line-height: 1.35; font-weight: 700; }
.device-metrics > .article-availability { grid-column: 1 / -1; margin-top: 0; }
.article-availability.available { background: #e5f1e9; color: #22533e; }
.article-availability.backorder { background: #fcf0d2; color: #724600; }
.article-availability.unavailable { background: #f8e8e7; color: #832e29; }
.outdoor-name { color: var(--navy-900); font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.badge { height: fit-content; padding: 5px 8px; border-radius: 2px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.badge.success { color: var(--green-700); background: var(--green-100); }
.badge.danger { color: var(--red-700); background: var(--red-100); }
.badge.recommended { color: var(--navy-950); background: var(--accent); }
.outdoor-specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.outdoor-specs div { padding: 9px; border-radius: 2px; background: #f0f3f5; border-bottom: 2px solid #d8e0e6; }
.outdoor-specs span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.outdoor-specs strong { color: var(--navy-900); font-size: 13px; }
.reason-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; color: var(--red-700); font-size: 12px; }
.reason-list li::before { content: "×"; font-weight: 900; margin-right: 7px; }
.choose-outdoor { margin-top: auto; min-height: 40px; border: 0; border-radius: 2px; color: #fff; background: var(--navy-900); font-weight: 800; box-shadow: inset 0 -3px var(--accent); }
.choose-outdoor:disabled { color: #8b99a5; background: #e3e8ec; box-shadow: none; cursor: not-allowed; }
.outdoor-empty { grid-column: 1/-1; padding: 34px; border: 1px dashed #bdc9d2; border-radius: 3px; text-align: center; color: var(--muted); }

.material-heading { align-items: flex-end; }
.button-row { display: flex; gap: 8px; }
.button { min-height: 40px; border-radius: 2px; padding: 0 16px; border: 1px solid transparent; font-weight: 800; }
.button.primary { color: #fff; background: var(--navy-900); box-shadow: inset -7px 0 var(--accent); }
.button.secondary { color: var(--navy-900); background: var(--pv-blue-pale); border-color: #bfd5e5; }
.button.cart { color: var(--navy-950); background: var(--accent); border-color: var(--accent-deep); box-shadow: inset -7px 0 rgba(11,41,71,.18); }
.button.cart span { margin-right: 5px; font-size: 15px; }
.button:disabled { opacity: .48; cursor: not-allowed; filter: grayscale(.2); }
.button.ghost { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.32); }
.button:hover:not(:disabled) { filter: brightness(1.05); }
.empty-state { margin-top: 22px; padding: 34px; border-radius: 3px; text-align: center; background: #f2f5f7; color: var(--muted); border-left: 4px solid var(--pv-blue); }
.empty-icon { width: 44px; height: 44px; margin: 0 auto 10px; display: grid; place-items: center; color: #fff; background: var(--navy-900); box-shadow: inset 0 -4px var(--accent); font-size: 24px; font-weight: 900; }
.empty-state h3 { margin: 0 0 5px; color: var(--navy-900); }
.empty-state p { margin: 0; }
.table-wrap { margin-top: 22px; overflow-x: auto; }
.material-toolbar { margin-top: 20px; padding: 11px 13px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); background: var(--pv-blue-pale); border-left: 4px solid var(--pv-blue); font-size: 12px; }
.material-toolbar strong { color: var(--navy-900); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 12px; color: #fff; background: var(--navy-900); text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 4px solid var(--accent); }
td { padding: 12px; border-bottom: 1px solid #dfe5e9; vertical-align: top; }
tbody tr:nth-child(even) { background: #f7f9fa; }
td:nth-child(2) { color: var(--pv-blue-dark); font-weight: 800; }
table td:nth-child(3) { min-width: 280px; white-space: nowrap; }
table td:nth-child(3) .article-availability { display: inline-block; margin: 0 0 0 8px; vertical-align: middle; white-space: nowrap; }
.select-column { width: 46px; text-align: center; }
.material-checkbox { width: 18px; height: 18px; accent-color: var(--pv-blue-dark); cursor: pointer; }
.quantity-stepper { width: 124px; min-height: 42px; margin-left: auto; display: grid; grid-template-columns: 40px 44px 40px; align-items: stretch; overflow: hidden; border: 1px solid #c7d3dc; border-radius: 999px; background: #fff; box-shadow: 0 4px 12px rgba(7,29,52,.09); transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
.quantity-stepper:focus-within { border-color: var(--pv-blue); box-shadow: 0 0 0 3px rgba(63,127,178,.15), 0 5px 14px rgba(7,29,52,.12); }
.quantity-stepper.zero { border-color: #d7dee3; box-shadow: none; }
.quantity-button { min-width: 40px; padding: 0; border: 0; color: var(--navy-900); background: var(--pv-blue-pale); font-size: 21px; font-weight: 500; line-height: 1; transition: color .15s ease, background .15s ease, transform .1s ease; }
.quantity-button:hover:not(:disabled) { color: #fff; background: var(--pv-blue-dark); }
.quantity-button:active:not(:disabled) { transform: scale(.92); }
.quantity-button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent-deep); outline-offset: -2px; }
.quantity-button:disabled { color: #9aa6af; background: #edf1f3; cursor: not-allowed; }
.material-quantity { width: 44px; min-width: 0; height: 40px; padding: 0; border: 0; border-left: 1px solid #dbe2e7; border-right: 1px solid #dbe2e7; border-radius: 0; color: var(--navy-900); background: #fff; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.material-quantity::-webkit-inner-spin-button, .material-quantity::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.material-quantity:focus { outline: 0; }
.material-quantity:disabled { color: #84919b; background: #f3f5f6; }
tbody tr { transition: opacity .15s ease, background .15s ease; }
tbody tr.unselected { opacity: .48; background: #eef1f3; }
.qty { text-align: right; }
.material-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.summary-column { position: sticky; top: 20px; display: grid; gap: 14px; }
.summary-card { padding: 24px; color: #fff; background: linear-gradient(145deg, var(--navy-900), var(--navy-950)); border: 0; border-bottom: 5px solid var(--accent); }
.summary-card .eyebrow { color: #91bad9; }
.summary-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.status-pill { padding: 6px 8px; border-radius: 2px; font-size: 10px; font-weight: 900; }
.status-pill.complete { color: #eafff6; background: rgba(70,174,131,.28); }
.status-pill.incomplete { color: #fff2c9; background: rgba(246,180,0,.2); }
.compatibility-status { margin: 20px 0 16px; color: #fff; font-size: 19px; line-height: 1.35; font-weight: 800; }
.summary-list { margin: 20px 0 0; display: grid; gap: 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.summary-list dt { color: #bcd0de; font-size: 12px; }
.summary-list dd { margin: 0; color: #fff; font-size: 12px; font-weight: 900; text-align: right; }
.info-card { padding: 18px; display: flex; gap: 13px; background: var(--pv-blue-pale); border-color: #c7dce9; border-left: 4px solid var(--pv-blue); }
.info-icon { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: var(--navy-950); background: var(--accent); font-weight: 900; }
.info-card h3 { margin: 2px 0 5px; color: var(--navy-900); font-size: 13px; }
.info-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.cart-dialog { width: min(620px, calc(100% - 32px)); padding: 0; color: var(--ink); background: #fff; border: 0; border-top: 5px solid var(--accent); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(7,29,52,.32); }
.cart-dialog::backdrop { background: rgba(7,29,52,.7); backdrop-filter: blur(3px); }
.cart-dialog form { padding: 26px; }
.cart-dialog-head { display: flex; align-items: center; gap: 14px; }
.cart-dialog-head h2 { margin: 2px 0 0; color: var(--navy-900); font-size: 24px; }
.cart-dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--navy-950); background: var(--accent); font-size: 24px; font-weight: 900; }
.cart-dialog > form > p { color: var(--muted); line-height: 1.5; }
.cart-preview { margin: 20px 0; border: 1px solid var(--line); }
.cart-preview div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 16px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.cart-preview div:last-of-type { border-bottom: 0; }
.cart-preview span { color: var(--navy-900); font-weight: 800; }
.cart-preview strong { color: var(--pv-blue-dark); }
.cart-preview small { grid-column: 1 / -1; color: var(--muted); }
.cart-preview p { margin: 0; padding: 10px 13px; color: var(--muted); background: #f4f6f8; font-size: 12px; }
.cart-future-note { padding: 13px 15px; color: var(--navy-900) !important; background: var(--pv-blue-pale); border-left: 4px solid var(--pv-blue); font-size: 13px; }
.cart-dialog-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 8px; }

.product-dialog { width: min(760px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 28px 80px rgba(7,29,52,.34); }
.product-dialog::backdrop { background: rgba(7,29,52,.72); backdrop-filter: blur(4px); }
.product-dialog form { position: relative; display: grid; grid-template-columns: minmax(320px,1.15fr) minmax(250px,.85fr); min-height: 390px; }
.product-dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; background: var(--navy-900); font-size: 24px; line-height: 1; box-shadow: 0 5px 14px rgba(7,29,52,.2); }
.product-dialog-visual { min-height: 390px; padding: 38px; display: grid; place-items: center; background: #fff; border-bottom: 5px solid var(--accent); }
.product-dialog-visual img { width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: normal; }
.product-dialog-copy { padding: 46px 34px 34px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(150deg, var(--navy-900), var(--navy-950)); color: #fff; }
.product-dialog-copy .section-number { color: #91bad9; }
.product-dialog-copy h2 { margin: 8px 0 10px; font-size: 28px; line-height: 1.1; }
.product-dialog-copy p { margin: 0; color: #d5e2eb; font-size: 15px; line-height: 1.5; }
.product-dialog-copy small { margin-top: 30px; padding-top: 16px; color: #9fb6c7; border-top: 1px solid rgba(255,255,255,.14); font-size: 10px; line-height: 1.5; }

.series-picker { margin-top: 20px; scroll-margin-top: 16px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: #f3f6f8; overflow: clip; }
.series-picker-head { padding: 20px 28px 4px; display: flex; justify-content: space-between; gap: 16px; color: var(--navy-900); background: #fff; }
.series-picker-head h2 { margin: 4px 0 7px; font-size: 24px; }
.series-picker-head p:not(.section-number) { margin: 0; color: var(--muted); }
.series-picker-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--navy-900); background: #f3f6f8; font-size: 25px; line-height: 1; }
.series-picker-tools { padding: 16px 28px; display: grid; grid-template-columns: minmax(240px,.7fr) minmax(500px,1.3fr); gap: 18px; align-items: end; background: #fff; border-bottom: 1px solid var(--line); }
.series-search { display: grid; gap: 6px; color: var(--navy-900); font-size: 13px; font-weight: 900; }
.series-search input { height: 42px; padding: 0 12px; border: 1px solid #c7d1d9; border-radius: 3px; }
.series-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.series-filters button { min-height: 38px; padding: 0 12px; border: 1px solid #c6d2db; border-radius: 3px; color: var(--navy-900); background: #fff; font-weight: 800; }
.series-filters button.active { color: #fff; background: var(--navy-900); border-color: var(--navy-900); box-shadow: inset 0 -3px var(--accent); }
.series-family-grid { padding: 22px 28px 30px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.series-family-card { min-width: 0; display: grid; grid-template-columns: 170px minmax(0,1fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 6px 18px rgba(7,29,52,.06); }
.series-family-card.selected { border-color: var(--pv-blue); box-shadow: 0 0 0 3px rgba(63,127,178,.16), 0 8px 22px rgba(7,29,52,.1); }
.series-family-image { position: relative; isolation: isolate; min-height: 250px; padding: 22px; display: grid; place-items: center; background: linear-gradient(145deg,#f9fbfc,#e8eef2); border-right: 1px solid var(--line); }
.series-family-image img { width: 100%; max-height: 160px; object-fit: contain; mix-blend-mode: multiply; }
.series-family-image span { position: absolute; top: 12px; left: 12px; padding: 5px 8px; color: var(--navy-950); background: var(--accent); border-radius: 2px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.series-family-copy { min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.series-family-title { display: flex; justify-content: space-between; gap: 12px; }
.series-family-title small { color: var(--pv-blue-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.series-family-title h3 { margin: 3px 0 0; color: var(--navy-900); font-size: 20px; }
.series-family-title b { height: fit-content; padding: 5px 7px; color: var(--green-700); background: var(--green-100); border-radius: 2px; font-size: 10px; text-transform: uppercase; }
.series-family-copy > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.series-benefits { display: flex; flex-wrap: wrap; gap: 6px; }
.series-benefits span { padding: 5px 7px; color: var(--navy-900); background: var(--pv-blue-pale); border: 1px solid #c7dce9; border-radius: 2px; font-size: 11px; font-weight: 800; }
.series-family-copy label { margin-top: auto; display: grid; gap: 6px; color: var(--navy-900); font-size: 12px; font-weight: 900; }
.series-family-copy select { height: 40px; }
.series-variant-single { margin-top: auto; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); background: #f3f6f8; border: 1px solid #d7e0e6; border-radius: 3px; font-size: 12px; }
.series-variant-single strong { color: var(--navy-900); font-size: 13px; }
.series-family-copy .button { width: 100%; }
.series-picker-empty { grid-column: 1/-1; padding: 44px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #adbbc5; }
.series-picker-empty strong { color: var(--navy-900); font-size: 18px; }

@media (max-width: 1180px) { .ews-wordmark { display: none; } }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .summary-column { position: static; grid-row: 1; grid-template-columns: 1fr 1fr; }
  .summary-list { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .room-size-grid { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); }
  .series-family-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .utility-nav { top: 74px; }
  .pv-wordmark { font-size: 30px; }
  .pv-icon { width: 36px; height: 36px; }
  .header-product .header-divider { display: none; }
  .app-header h1 { font-size: 16px; }
}
@media (max-width: 820px) {
  .app-shell, .header-inner, .utility-inner { width: min(100% - 24px, 1480px); }
  .app-shell { margin-top: 12px; }
  .hero-panel { padding: 28px; align-items: flex-start; flex-direction: column; }
  .hero-side { width: 100%; align-items: flex-start; gap: 18px; }
  .room-planner-heading { grid-template-columns: 1fr; gap: 18px; }
  .system-panel { grid-template-columns: 1fr; gap: 16px; }
  .stepper { width: 100%; }
  .stepper li { flex: 1; min-width: 0; justify-content: center; font-size: 0; }
  .stepper li span { font-size: 12px; }
  .device-card { grid-template-columns: 36px 124px minmax(0,1fr); }
  .device-visual { width: 124px; height: 104px; }
  .device-fields { grid-template-columns: 1fr; }
  .device-metrics { grid-column: 3; border-left: 0; padding: 0; }
  .outdoor-grid { grid-template-columns: 1fr; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .material-heading .button-row { width: 100%; }
  .material-heading .button { flex: 1; }
  .product-dialog form { grid-template-columns: 1fr; }
  .product-dialog-visual { min-height: 300px; padding: 32px; }
  .product-dialog-copy { padding: 28px; }
  .series-picker-tools { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 66px; gap: 12px; }
  .utility-nav { top: 66px; }
  .utility-inner { min-height: 32px; overflow: hidden; white-space: nowrap; }
  .pv-wordmark { font-size: 27px; }
  .pv-icon { width: 32px; height: 32px; }
  .header-product { display: none; }
  .header-actions { margin-left: auto; }
  .button.ghost { min-height: 35px; padding: 0 11px; font-size: 12px; }
  .panel { padding: 20px 16px; }
  .room-planner { padding: 20px 16px; }
  .room-planner-controls, .room-size-grid { grid-template-columns: 1fr; }
  .derived-plan { align-items: stretch; flex-direction: column; }
  .derived-plan span { min-width: 0; }
  .derived-plan i { width: 1px; height: 12px; margin-left: 14px; }
  .room-planner-actions { align-items: stretch; flex-direction: column; }
  .room-planner-actions .button { width: 100%; }
  .series-picker-trigger { grid-template-columns: 58px minmax(0,1fr) auto; }
  .series-picker-trigger img { width: 58px; }
  .system-panel { padding: 18px 16px; }
  .system-tabs { grid-template-columns: 1fr; }
  .summary-column { grid-template-columns: 1fr; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .device-card { padding: 16px; gap: 12px; }
  .device-card { grid-template-columns: 36px minmax(0,1fr); }
  .device-badge { grid-row: auto; }
  .device-visual { grid-column: 2; grid-row: auto; width: 100%; height: 126px; }
  .device-visual img { height: 94px; }
  .device-fields, .device-metrics { grid-column: 1 / -1; }
  .device-card.no-image .device-fields, .device-card.no-image .device-metrics { grid-column: 1 / -1; }
  .device-metrics { min-width: 0; }
  .outdoor-specs { grid-template-columns: 1fr 1fr; }
  .series-picker-head, .series-picker-tools, .series-family-grid { padding-left: 16px; padding-right: 16px; }
  .series-picker-head h2 { font-size: 22px; }
  .series-family-card { grid-template-columns: 1fr; }
  .series-family-image { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .series-family-image img { max-height: 130px; }
}

@media print {
  body { background: #fff; }
  .app-header, .utility-nav, .hero-panel, .series-picker, #device-count, .device-list, #outdoor-section, .summary-column, .button-row, .cart-dialog, .product-dialog { display: none !important; }
  .app-shell, .workspace { display: block; width: 100%; margin: 0; }
  #material-section { border: 0; box-shadow: none; padding: 0; }
  #material-section .panel-heading { display: block; }
  .table-wrap { overflow: visible; }
  .material-toolbar, .select-column { display: none !important; }
  tbody tr.unselected { display: none; }
}
