body.v2{background:#f2f5fa;--hover-green:#51b24e;--hover-ink:#102f49}
body.v2 .v2-screen{max-width:820px;margin:auto}
body.v2 .screen-heading{max-width:700px;margin-bottom:24px;text-align:left}
body.v2 .screen-heading h1{font-size:clamp(27px,4vw,38px)}
body.v2 .screen-heading p{font-size:15px;line-height:1.65}
body.v2 .v2-card{background:white;border-radius:16px;padding:24px;margin:20px 0;min-width:0}
body.v2 .v2-card>h2{font-size:19px;margin-bottom:18px}
body.v2 .v2-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.v2 .v2-tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;min-height:180px;padding:20px;background:white;color:var(--ink);border:2px solid transparent;border-radius:14px;text-align:left}
body.v2 .v2-tile .risk-icon{width:32px;height:32px;color:var(--navy)}
body.v2 .v2-tile strong{font-size:15px;line-height:1.4}
body.v2 .v2-tile>span{font-size:14px;font-weight:600;overflow-wrap:anywhere}
body.v2 .v2-tile>small{margin-top:auto;font-size:12px;line-height:1.5;color:var(--muted)}
body.v2 .v2-tile.is-selected{border-color:var(--navy);background:#e8f1fa}
body.v2 .v2-tile.is-selected>small{color:var(--navy);font-weight:650}
body.v2 .v2-tile:hover:not(:disabled){border-color:#749cbd}
body.v2 .v2-tile:disabled{opacity:1;background:#e9edf2;color:#5b7183;cursor:default}
body.v2 .v2-selection-count{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:20px 0;font-size:15px}
body.v2 .v2-selection-count>strong{font-size:22px;color:var(--navy)}
body.v2 .v2-selection-count>span{font-size:13px;color:var(--muted);margin-left:auto}
body.v2 .v2-recap .selected-summary{margin:0}
body.v2 .v2-offers{display:grid;gap:16px}
body.v2 .v2-offer-detail{flex-basis:100%;min-width:0}
body.v2 .v2-offer-detail>summary{font-size:14px;color:var(--navy)}
body.v2 .v2-person-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;padding:0;margin:20px 0;gap:8px}
body.v2 .v2-person-progress>li{padding:12px;background:#e4ebf2;border-radius:8px;font-size:13px;color:var(--muted)}
body.v2 .v2-person-progress>li[aria-current]{background:var(--navy);color:white;font-weight:650}
body.v2 .edit-section{padding:24px;background:white;border-radius:16px;margin-bottom:16px;min-width:0}
body.v2 .price-summary{margin:0;border:0;background:#edf3f9;border-radius:10px}
body.v2 .v2-finish .done-message{padding-bottom:16px}
body.v2 .v2-screen>form>.actions{margin-bottom:0}
@media(max-width:760px){
body.v2 .v2-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.v2 .v2-tile{padding:16px 12px;min-height:180px}
body.v2 .v2-tile strong{font-size:14px}
body.v2 .v2-tile>span{font-size:13px}
body.v2 .v2-tile>small{font-size:12px}
body.v2 .v2-card,body.v2 .edit-section{padding:20px 16px}
body.v2 .v2-person-progress>li{font-size:12px;padding:12px 10px}
body.v2 .v2-selection-count>span{flex-basis:100%;margin-left:0}
body.v2 .v2-screen>form>.actions{position:static;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:#f2f5fa;border-top:1px solid var(--line)}
body.v2.keyboard-open .v2-screen>form>.actions{position:static}
body.v2 .risk-line>div{min-width:0;overflow-wrap:anywhere}
body.v2 .risk-line>div:last-child{max-width:48%}
}
/* Kombinovaná varianta: skutečná matice 3 × 3 i na úzkém mobilu. */
body.v2.combined .v2-screen{max-width:820px}
body.v2.combined .screen-heading{margin:18px 0}
body.v2.combined .screen-heading h1{font-size:clamp(25px,4vw,34px)}
body.v2.combined .screen-heading p{font-size:14px;line-height:1.5}
body.v2.combined .v2-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.v2.combined .v2-tile{padding:14px 12px;min-height:148px;border:1px solid #d7e2ed;border-radius:12px;gap:6px;align-items:center;text-align:center}
body.v2.combined .v2-tile .risk-icon{width:27px;height:27px}
body.v2.combined .v2-tile strong{font-size:14px;line-height:1.4;min-height:40px}
body.v2.combined .v2-tile>span{font-size:12px;line-height:1.4}
body.v2.combined .v2-tile>small{font-size:11px;line-height:1.4}
body.v2.combined .v2-tile.is-selected{background:#e6f0fa;border-color:#003b71;box-shadow:inset 0 0 0 1px #003b71}
body.v2.combined .more-risks{margin:14px 0 4px}
body.v2.combined .more-risks>summary{font-size:14px;min-height:48px}
body.v2.combined .more-risks>summary small{font-size:12px;font-weight:400;color:var(--muted)}
body.v2.combined .extra-matrix{margin:10px 0}
#price-dock{position:sticky;top:0;z-index:20;max-width:820px;margin:0 auto;background:#fff;box-shadow:0 3px 12px #173b5812;border-radius:12px}
.live-prices{padding:10px 14px;background:#fff;color:var(--ink);border-bottom:1px solid #cbd9e4}
.price-caption{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-bottom:4px}
.price-matrix{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.price-cell{display:flex;align-items:baseline;justify-content:space-between;gap:16px;min-width:0;padding:4px 0;border-bottom:1px solid #edf2f7}
.price-cell:last-child{border-bottom:0}
.price-cell>span{display:block;font-size:13px;line-height:1.4;font-weight:550;color:var(--navy)}
.price-cell>strong{display:block;text-align:right;font-size:15px;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap}
.price-difference{font-size:11px;color:#875407}
/* Při úpravě krytí se celkové ceny nezobrazují. Místo přehledu se zachová. */
body.sheet-open #price-dock{visibility:hidden}
body.combined #detail-dialog::backdrop{background:#173b5870}
body.combined #detail-dialog{position:fixed;width:100%;max-width:820px;margin:auto auto 0;padding:0;max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px);border-radius:18px 18px 0 0;overflow:hidden;box-shadow:0 -8px 48px #173b5840}
body.combined #detail-dialog[open]{display:grid;grid-template-rows:minmax(0,1fr)}
.sheet-content{overflow:auto;overscroll-behavior:contain;padding:16px 24px calc(22px + env(safe-area-inset-bottom));background:#f7f9fc}
body.combined .sheet-content .risk-editor{background:transparent}
body.combined .sheet-content .risk-explanation{font-size:13px;margin:10px 0}
body.combined .sheet-content .section-heading h2{font-size:21px}
body.combined .sheet-top{margin-bottom:6px}
body.combined .sheet-content .actions{margin-bottom:0}
body.combined .sheet-content .actions>.button{min-width:100px;flex:1}
@media(max-width:600px){
 body.v2.combined .v2-tiles{gap:8px}
 body.v2.combined .v2-tile{padding:10px 6px;min-height:136px}
 body.v2.combined .v2-tile strong{font-size:12px;line-height:1.4;min-height:34px}
 body.v2.combined .v2-tile>span{font-size:11px;line-height:1.4}
 body.v2.combined .v2-tile>small{font-size:10px}
 .live-prices{padding:8px 10px}
 .price-cell>span{font-size:13px}
 .price-cell>strong{font-size:15px}
 .sheet-content{padding:12px 16px calc(18px + env(safe-area-inset-bottom))}
 body.v2.combined .sheet-content .section-heading h2{font-size:19px}
}
@media(max-height:500px){body.combined #detail-dialog{max-height:calc(100dvh - 8px)}.sheet-content{padding-top:8px}.live-prices{padding-top:5px;padding-bottom:5px}.price-caption{margin-bottom:0}}
@media print{#price-dock{position:static;box-shadow:none}.more-risks{display:none}}

.desktop-steps{display:none}

/* Matice srovnání: stejné riziko vždy pohromadě, včetně dostupnosti mimo cenu. */
.risk-comparison{margin-top:24px;min-width:0}
.comparison-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.comparison-scopes{display:flex;gap:4px;padding:4px;border-radius:10px;background:#e3ebf3}
.comparison-scopes>.button{border:0;border-radius:7px;background:transparent;color:var(--navy);font-size:13px;padding:10px 14px}
.comparison-scopes>.button[aria-pressed=true]{background:white;box-shadow:0 1px 5px #173b5820}
.comparison-controls .check-row{padding:0}.comparison-controls .check-row>span{font-size:13px}
.comparison-legend{list-style:none;display:flex;flex-wrap:wrap;gap:10px 24px;padding:0;margin:0 0 16px;font-size:12px;color:var(--muted)}
.comparison-legend li{display:flex;align-items:center;gap:8px}
.comparison-symbol{font-size:18px;line-height:1;display:inline-block;width:18px;flex:0 0 18px;text-align:center;font-family:Arial,sans-serif;color:var(--navy)}
.comparison-symbol.different,.comparison-cell.different .comparison-symbol{color:#1664a6}
.comparison-symbol.available,.comparison-cell.available .comparison-symbol{color:#4f6e89}
.comparison-explanation{font-size:13px;line-height:1.8;color:var(--muted);max-width:90ch;margin-bottom:24px}
.comparison-warning{background:#fff3dd;padding:18px 22px;border-radius:12px;margin:20px 0}
.comparison-warning h2{font-size:17px;margin-bottom:8px}.comparison-warning p{font-size:13px;line-height:1.7}
.comparison-cell{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;font-size:13px;line-height:1.5;color:var(--ink)}
.comparison-cell>span:last-child{min-width:0}.comparison-cell small{display:block;font-size:10px;margin-top:3px;color:#1664a6}
.comparison-cell.match>span:last-child,.comparison-cell.different>span:last-child{font-weight:650}
.comparison-cell.missing,.comparison-cell.unavailable{color:#637485;font-size:12px}
.comparison-cell.missing .comparison-symbol,.comparison-cell.unavailable .comparison-symbol{color:#637485}
.comparison-cell.available{color:#506477;font-size:12px}
.availability-pill{display:inline-flex;flex-direction:column;align-items:center;gap:2px;border-radius:7px;padding:7px 10px;background:#edf0f4;color:#40566c;min-width:65px}
.availability-pill.all{background:#e2f0ec;color:#17634b}.availability-pill.some{background:#fcf0da;color:#80520f}
.availability-pill b{font-size:15px;line-height:1.3}.availability-pill small{font-size:10px;line-height:1.4}
.comparison-table-frame{background:white;border:1px solid #d5e1eb;border-radius:14px}
.comparison-table{width:100%;table-layout:fixed;border-spacing:0;border-collapse:separate;font-size:13px}
.comparison-table thead th{background:#eaf0f6;position:sticky;top:0;z-index:5;vertical-align:top;text-align:center;padding:22px 12px 18px;border-bottom:1px solid #c7d5e3}
.comparison-table thead th:first-child{border-top-left-radius:14px}.comparison-table thead th:last-child{border-top-right-radius:14px}
.comparison-table .comparison-risk-head{text-align:left;vertical-align:bottom;font-size:16px;padding:22px}
.comparison-risk-head>span,.comparison-share-head>span{display:block;font-size:11px;font-weight:400;color:var(--muted);line-height:1.6;margin-top:6px}
.comparison-share-head{font-size:12px;vertical-align:bottom!important}
.comparison-company{font-size:17px;font-weight:700;color:var(--navy);display:block;margin-bottom:10px}
.comparison-price{display:block;font-size:21px;line-height:1.4;color:var(--navy);white-space:nowrap}
.comparison-period{display:block;font-size:10px;line-height:1.5;color:var(--muted);font-weight:400}
.comparison-offer-status{display:flex;align-items:center;justify-content:center;min-height:42px;font-size:10px;line-height:1.5;font-weight:500;color:#1664a6;margin:8px 0}
.comparison-offer-status.full{color:var(--green)}
.comparison-table thead .button{font-size:12px;padding:10px 8px;width:100%;min-height:44px}
.comparison-table tbody th{padding:18px 22px;text-align:left;font-weight:500;border-bottom:1px solid #e0e8f0;background:white}
.comparison-table tbody th>strong{font-size:13px;line-height:1.6;display:block;font-weight:600}
.comparison-table tbody th>small{display:block;font-size:11px;font-weight:400;line-height:1.6;margin-top:4px}
.requested-risk{color:var(--navy)}.optional-risk{color:#617286}
.comparison-table td{padding:14px 10px;vertical-align:middle;text-align:center;border-bottom:1px solid #e0e8f0;background:white}
.comparison-table tr.is-optional>th,.comparison-table tr.is-optional>td{background:#f8fafc}
.comparison-table tr:hover>th,.comparison-table tr:hover>td{background:#edf4fb}
.comparison-table tr:last-child>th,.comparison-table tr:last-child>td{border-bottom:0}
.comparison-table td.comparison-availability{background:#f2f6f9}
.comparison-no-risks{padding:20px;background:white;font-size:14px;margin-top:16px;border-radius:12px}
.comparison-choice-list{display:grid;gap:12px;margin:22px 0 28px}
.comparison-choice{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;background:white;border:1px solid #d5e1eb;border-radius:12px;padding:16px}
.comparison-choice h2{font-size:17px;margin:0 0 5px}.comparison-choice>div>small{display:block;font-size:10px;line-height:1.6;color:var(--muted)}
.comparison-choice-price{text-align:right}.comparison-choice-price>strong{font-size:17px;white-space:nowrap;color:var(--navy)}
.comparison-choice>.button{font-size:12px;padding:10px 12px;min-height:44px}
.comparison-risk-cards{display:grid;gap:16px}
.comparison-risk-card{background:white;border:1px solid #d5e1eb;border-radius:12px;overflow:hidden}
.comparison-risk-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 16px;background:#edf3f9;border-bottom:1px solid #d5e1eb}
.comparison-risk-card.is-optional>header{background:#f3f6f9}
.comparison-risk-card h2{font-size:15px;line-height:1.5;margin:0;min-width:0}
.comparison-risk-card h2>strong{font-size:15px;line-height:1.5;display:block}
.comparison-risk-card h2>small{font-size:12px;line-height:1.6;display:block;font-weight:400;margin-top:6px}
.comparison-card-share{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:5px}.comparison-card-share>span:first-child{font-size:9px;color:var(--muted)}
.comparison-risk-card ul{margin:0;padding:0 16px;list-style:none}
.comparison-risk-card li{display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;align-items:center;padding:14px 0;min-height:50px;border-bottom:1px solid #e0e8f0}
.comparison-risk-card li:last-child{border:0}.comparison-risk-card li>strong{font-size:13px;color:var(--navy)}
.comparison-risk-card .comparison-cell{justify-content:flex-end;text-align:right}
@media(max-width:1023px){.comparison-controls{align-items:start;flex-direction:column;gap:12px}.comparison-legend{gap:10px 16px}.comparison-explanation{font-size:12px}.comparison-scopes{width:100%}.comparison-scopes>.button{flex:1}.comparison-cell{font-size:13px}}
@media(max-width:360px){.comparison-choice{padding:14px 12px;gap:8px}.comparison-choice-price>strong{font-size:15px}.comparison-choice h2{font-size:15px}.comparison-choice>.button{padding:10px;font-size:11px}.comparison-risk-card li{grid-template-columns:60px minmax(0,1fr);gap:8px}}

/* Úprava produktu: oddělené zvolené krytí a dostupné doplňky pojišťovny. */
.product-chosen{margin:24px 0 28px}
.product-chosen>h2,.provider-addons>h2{font-size:20px;margin:0 0 16px}
.provider-addons{padding-top:24px;margin:24px 0 28px;border-top:1px solid var(--line)}
.provider-addons .scope-label{margin-bottom:8px}
.provider-addons-note{font-size:14px;line-height:1.7;color:var(--muted);max-width:70ch;margin-bottom:20px}
@media(min-width:1024px){.desktop-screen .product-chosen{margin-top:24px}.desktop-screen .provider-addons{padding-top:28px}.desktop-screen .product-chosen>h2,.desktop-screen .provider-addons>h2{font-size:21px}}
.selected-price-period{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 0}
.price-difference{color:#1664a6}
.frequency-discount-note{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 16px}
.frequency-saving-badge{display:inline-block;padding:3px 8px;margin:0;border-radius:6px;background:#def1e5;color:#14643e;font-size:11px;line-height:1.5;font-weight:650;white-space:nowrap}
.frequency-option .frequency-details{min-width:0}
.frequency-option .frequency-price{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.frequency-price>b{font-size:12px;white-space:nowrap;text-align:right}
.frequency-price .frequency-baseline{margin:0}
@media(max-width:360px){.frequency-option{grid-template-columns:20px minmax(0,1fr)}.frequency-option input{grid-row:1/3}.frequency-option .frequency-price{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}}
.frequency-baseline{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin:5px 0}
.frequency-option .frequency-saving-detail{color:#14643e;font-size:11px;line-height:1.6;margin-top:4px}
body.v2.combined .button{transition:background-color .15s,color .15s,border-color .15s}
@media(hover:hover){
 body.v2.combined .button:hover:not(:disabled):not(nav .button){background:var(--hover-green);border-color:var(--hover-green);color:var(--hover-ink)}
}

.desktop-frequency .frequency-discount-note{grid-column:1/-1}
