/* Shared reference layout. Existing theme tokens remain the source of all colors. */
.catalog-reference-workspace .catalog-reference-list .catalog-mobile-stage{display:none}
.catalog-reference-workspace .catalog-mobile-stage{display:none}.reference-filter-short{display:none}
@media(max-width:750px){.catalog-reference-workspace .catalog-reference-list .catalog-mobile-stage{display:grid}.catalog-reference-workspace .reference-filter-full{display:none}.catalog-reference-workspace .reference-filter-short{display:inline}.catalog-reference-workspace .catalog-reference-toolbar>button,.catalog-reference-workspace .catalog-reference-toolbar summary.btn{min-width:0;max-width:100%;box-sizing:border-box}.catalog-reference-workspace .catalog-reference-list .product-results-sort>span{width:auto}.catalog-reference-workspace .catalog-reference-list .page-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.catalog-reference-workspace .catalog-reference-list .page-selection>.btn{white-space:normal;font-size:11px;padding:8px;min-height:44px}.catalog-reference-workspace .catalog-reference-list .page-selection>small{grid-column:1/-1;font-size:11px}}
.product-reference-panel[data-workspace-panel=history] .table-wrap>table{min-width:660px}
@media(max-width:750px){.catalog-reference-workspace .catalog-reference-list .catalog-reference-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.catalog-reference-workspace .catalog-reference-toolbar>.catalog-saved-shortcut,.catalog-reference-workspace .catalog-reference-toolbar>.catalog-tools-menu{justify-self:stretch}.catalog-reference-workspace .catalog-reference-toolbar>.btn,.catalog-reference-workspace .catalog-reference-toolbar summary.btn{padding:8px;font-size:12px;min-height:40px;text-align:center;white-space:normal}.catalog-reference-workspace .catalog-reference-list .listing-status-tiles{display:none}.catalog-reference-workspace .catalog-mobile-stage{display:grid;gap:6px;font-size:12px;color:var(--muted);margin:14px 0}.catalog-mobile-stage select{width:100%;min-width:0}.catalog-reference-workspace .catalog-saved-shortcut>div{left:50%;right:auto;transform:translateX(-50%)}.catalog-reference-workspace .catalog-sort-menu>div{right:0;left:auto}.catalog-reference-workspace .product-results-sort{justify-content:space-between}.product-reference-facts{gap:10px;padding:14px}.product-reference-facts>span{width:100%;justify-content:space-between}}
.catalog-reference-workspace .catalog-reference-list .catalog-reference-toolbar>[data-open-catalog-filters]{white-space:normal}
.catalog-reference-workspace .catalog-reference-toolbar{grid-template-columns:minmax(200px,1fr) minmax(170px,210px) auto auto auto}.catalog-reference-workspace .catalog-saved-shortcut{position:relative;display:block;margin:0;order:0}.catalog-saved-shortcut>summary{list-style:none;white-space:nowrap;cursor:pointer}.catalog-saved-shortcut>summary::-webkit-details-marker{display:none}.catalog-saved-shortcut>div{position:absolute;z-index:41;right:0;top:calc(100% + 8px);width:300px;max-width:calc(100vw - 48px);display:flex;gap:8px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 30px #0002}.catalog-reference-workspace .catalog-saved-shortcut>div>select{flex:1;min-width:0;width:auto}.catalog-sort-menu{position:relative;font-size:12px}.catalog-sort-menu>summary{cursor:pointer;padding:8px;border:1px solid var(--border);border-radius:6px;list-style:none}.catalog-sort-menu>div{position:absolute;z-index:30;left:0;top:100%;padding:12px;width:240px;display:grid;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.catalog-reference-workspace .catalog-sort-menu select{width:100%;max-width:none}.catalog-mobile-stage{display:none}.catalog-reference-workspace .product-results-sort{display:flex;align-items:center}
.catalog-reference-toolbar .filter-search{max-width:none}.catalog-reference-list>.table-wrap>table>thead>tr>th{white-space:normal;font-size:10px;line-height:1.6}.catalog-reference-list .readiness-headline{display:none}.catalog-reference-list .readiness-next{padding:8px 10px}.product-reference-facts{display:flex;align-items:center;flex-wrap:wrap;gap:16px 32px;padding:16px 20px;border:1px solid var(--border);border-radius:10px;background:var(--surface);margin-bottom:16px}.product-reference-facts>span{display:flex;gap:10px;font-size:13px;color:var(--muted)}.product-reference-facts strong{color:var(--text);font-size:14px}.product-match-summary{padding:18px 22px}.product-match-summary>summary{font-size:15px;font-weight:700;cursor:pointer}.product-match-summary>p{font-size:13px;line-height:1.6}.product-reference-panel>.product-match-summary{margin-top:16px}
.catalog-reference-list{padding:20px}.catalog-reference-toolbar{display:grid;grid-template-columns:minmax(230px,1fr) minmax(180px,240px) auto auto;align-items:end;gap:12px}.catalog-reference-toolbar .filter-search{margin:0;width:100%;min-width:0}.catalog-reference-toolbar .filter-search input{width:100%}.catalog-reference-account label{display:grid;gap:6px;font-size:12px;color:var(--muted);margin:0}.catalog-reference-toolbar select,.catalog-reference-toolbar input{min-height:40px;min-width:0;max-width:100%}.catalog-tools-menu{position:relative}.catalog-tools-menu summary{list-style:none;white-space:nowrap;cursor:pointer}.catalog-tools-menu summary::-webkit-details-marker{display:none}.catalog-tools-menu>div{position:absolute;z-index:40;right:0;top:calc(100% + 8px);display:grid;gap:8px;padding:12px;width:240px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 8px 30px #0002}
.catalog-saved-shortcut{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0}.catalog-saved-shortcut select{width:240px;max-width:100%;min-width:0}.catalog-saved-shortcut span{margin-left:auto;font-size:12px;color:var(--muted)}
.catalog-reference-workspace .listing-status-tiles{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0;border-bottom:1px solid var(--border);padding-bottom:16px}.catalog-reference-workspace .listing-status-tile{display:flex;align-items:center;gap:10px;min-width:0;min-height:42px;flex:1;padding:10px 12px}.catalog-reference-workspace .listing-status-tile .icon{display:none}.catalog-reference-workspace .listing-status-tile strong{font-size:13px}.catalog-reference-workspace .listing-status-tile small{display:none}.catalog-reference-workspace .listing-status-tile b{font-size:14px;margin-left:auto}
.catalog-reference-workspace .product-selection-dock{position:static;transform:none;width:auto;margin:12px 0;padding:14px;border-radius:9px;box-shadow:none;display:flex;flex-wrap:wrap;gap:10px;background:var(--surface-alt);border:1px solid var(--border)}.catalog-reference-workspace .product-selection-dock>span{margin-right:auto;font-size:13px}.catalog-reference-workspace .product-selection-accounts{min-width:180px}.catalog-preparation-options{flex-basis:100%;font-size:13px}.catalog-preparation-options .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-preparation-options select{width:100%;min-width:0}
.catalog-reference-workspace .product-results-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:0;border:0}.catalog-reference-workspace .product-results-sort{gap:8px;flex-wrap:wrap}.catalog-reference-workspace .product-results-sort>label{font-size:12px}.catalog-reference-workspace .product-results-sort select{min-height:34px;max-width:160px;font-size:12px}.catalog-quick-pages{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}.catalog-quick-pages .btn{padding:6px;font-size:12px;min-height:32px}.catalog-quick-pages>a{font-size:12px}.catalog-reference-workspace .page-selection{padding:12px 0;gap:8px;flex-wrap:wrap}.catalog-reference-workspace .page-selection small{font-size:12px}.catalog-reference-workspace .page-selection .btn{font-size:12px;min-height:36px}
.catalog-reference-list>.table-wrap>table{table-layout:fixed;width:100%;min-width:880px}.catalog-reference-list>.table-wrap>table>thead>tr>th:nth-child(1){width:36px}.catalog-reference-list>.table-wrap>table>thead>tr>th:nth-child(2){width:auto}.catalog-reference-list>.table-wrap>table>thead>tr>th:nth-child(3){width:70px}.catalog-reference-list>.table-wrap>table>thead>tr>th:nth-child(4){width:90px}.catalog-reference-list>.table-wrap>table>thead>tr>th:nth-child(5){width:155px}.catalog-reference-list>.table-wrap>table>thead>tr>th:nth-child(6){width:260px}.catalog-reference-list>.table-wrap>table>tbody>tr>td{padding:16px 10px;vertical-align:top;overflow-wrap:anywhere;font-size:13px}.catalog-reference-list .product-cell{gap:12px}.catalog-reference-list .product-cell>div{min-width:0}.catalog-reference-list .product-cell strong{font-size:14px;line-height:1.55}.catalog-reference-list .product-cell .muted{display:block;font-size:12px;line-height:1.6;margin-top:5px}.catalog-reference-list .product-thumb{width:48px;height:52px;flex:0 0 48px}.catalog-reference-list .account-readiness-cell{min-width:0}.catalog-account-state{font-size:12px;margin-bottom:10px}.catalog-account-state>details>summary{cursor:pointer;font-size:12px;margin-bottom:7px}.catalog-account-state .badge{font-size:11px;white-space:normal}.catalog-reference-list .readiness-cell{min-width:0;width:auto}.catalog-reference-list .product-readiness-card{max-width:none;gap:8px}.catalog-reference-list .readiness-headline,.catalog-reference-list .readiness-next strong{font-size:13px;line-height:1.6}.catalog-reference-list .readiness-next span,.catalog-reference-list .readiness-next small,.catalog-reference-list .readiness-catalog-link{font-size:12px}.catalog-reference-list .readiness-actions>.btn{font-size:12px;min-height:36px}.catalog-reference-list .readiness-more>summary{font-size:12px}.catalog-reference-list .readiness-actions{gap:8px}.catalog-reference-list .readiness-more>div{min-width:160px}.catalog-reference-workspace .pagination-wrap{overflow:auto;padding-top:16px;scroll-margin-top:90px}
.catalog-filter-dialog{width:min(960px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--border);border-radius:14px;color:var(--text);background:var(--surface);box-shadow:0 24px 80px #0004}.catalog-filter-dialog::backdrop{background:#071b1877}.catalog-dialog-frame{display:flex;flex-direction:column;max-height:calc(100dvh - 44px)}.catalog-dialog-frame>header,.catalog-dialog-frame>footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px;flex-shrink:0}.catalog-dialog-frame>header{border-bottom:1px solid var(--border)}.catalog-dialog-frame>header h2{margin:0 0 7px;font-size:21px}.catalog-dialog-frame>header p{font-size:13px;margin:0;line-height:1.6;color:var(--muted)}.catalog-dialog-frame>footer{border-top:1px solid var(--border)}.catalog-dialog-body{overflow-y:auto;overscroll-behavior:contain;padding:24px;min-height:0}.catalog-filter-basics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.catalog-filter-basics label{font-size:12px;display:grid;gap:6px}.catalog-filter-basics .sr-only{position:static;width:auto;height:auto;clip:auto;overflow:visible;white-space:normal}.catalog-filter-basics select{width:100%;min-width:0}.catalog-dialog-body .product-filter-panel{padding:20px 0 0;margin:0;border:0}.catalog-dialog-body .product-primary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-dialog-body .product-saved-filters{grid-template-columns:1fr auto auto auto}.catalog-dialog-body input,.catalog-dialog-body select{min-width:0;max-width:100%}
.product-reference-tabs{display:flex;gap:6px;overflow:auto;padding:6px;margin:0 0 20px;border:1px solid var(--border);border-radius:11px;background:var(--surface);position:sticky;top:76px;z-index:25}.product-reference-tabs>[role=tab]{flex:1;min-width:max-content;border:0;border-radius:7px;padding:12px 18px;color:var(--muted);background:transparent;font:inherit;font-size:14px;font-weight:600;cursor:pointer}.product-reference-tabs>[aria-selected=true]{background:var(--brand);color:#fff}.product-reference-tabs>[role=tab]:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.product-reference-panel[hidden]{display:none!important}.product-reference-panel{scroll-margin-top:145px;min-width:0}.product-reference-panel:focus-visible{outline:2px solid var(--brand);outline-offset:4px}.product-reference-panel>.card{margin-top:16px}.product-reference-panel>.card:first-child{margin-top:0}.product-reference-panel>section>h2{font-size:19px}.product-source-details{margin-top:18px;padding:18px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:14px}.product-source-details>summary{font-weight:600;cursor:pointer}.product-reference-metrics{margin:18px 0;gap:16px}.product-reference-metrics .metric{padding:16px 20px}.product-reference-metrics .metric b{font-size:24px}.product-reference-workspace .product-account-grid>article{padding:18px}.product-reference-workspace .product-account-overview{padding:24px}.product-reference-panel .table-wrap{overflow:auto}.product-reference-panel .parameter-card{min-width:0}.product-reference-panel .parameter-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}.product-reference-workspace .listing-list-toolbar{flex-wrap:wrap}.product-reference-workspace .listing-list-toolbar>.form-hint{flex-basis:100%;margin:0}.product-reference-workspace .listing-list-toolbar label{min-width:0}.product-reference-panel .card{min-width:0}
@media(max-width:1100px){.catalog-reference-toolbar{grid-template-columns:minmax(0,1fr) minmax(160px,220px)}.catalog-reference-toolbar>[data-open-catalog-filters],.catalog-tools-menu{justify-self:start}.catalog-reference-workspace .product-results-sort{width:100%}}
@media(max-width:1250px){.catalog-reference-workspace .catalog-reference-toolbar{grid-template-columns:minmax(0,1fr) minmax(180px,230px)}.catalog-reference-workspace .catalog-reference-toolbar>.catalog-saved-shortcut,.catalog-reference-workspace .catalog-reference-toolbar>.catalog-tools-menu{justify-self:start}}
@media(max-width:750px){.catalog-reference-list{padding:14px}.catalog-reference-toolbar{grid-template-columns:1fr 1fr}.catalog-reference-toolbar .filter-search,.catalog-reference-account{grid-column:1/-1}.catalog-saved-shortcut{display:grid;grid-template-columns:minmax(0,1fr) auto}.catalog-saved-shortcut select{width:100%}.catalog-saved-shortcut span{grid-column:1/-1;margin:0}.catalog-reference-workspace .listing-status-tile{flex:1 1 44%;padding:10px}.catalog-reference-workspace .listing-status-tile strong{font-size:12px}.catalog-reference-workspace .product-results-sort>span{width:100%}.catalog-reference-list>.table-wrap>table{min-width:0;table-layout:auto}.catalog-reference-list>.table-wrap>table>thead{display:none}.catalog-reference-list>.table-wrap>table>tbody,.catalog-reference-list>.table-wrap>table>tbody>tr,.catalog-reference-list>.table-wrap>table>tbody>tr>td{display:block}.catalog-reference-list>.table-wrap>table>tbody>tr{display:grid;grid-template-columns:24px minmax(0,1fr) 95px;gap:8px;border-bottom:1px solid var(--border);padding:16px 0}.catalog-reference-list>.table-wrap>table>tbody>tr>td{border:0;padding:0;min-width:0}.catalog-reference-list>.table-wrap>table>tbody>tr>td:nth-child(1){grid-column:1;grid-row:1}.catalog-reference-list>.table-wrap>table>tbody>tr>td:nth-child(2){grid-column:2/-1}.catalog-reference-list>.table-wrap>table>tbody>tr>td:nth-child(3){grid-column:2}.catalog-reference-list>.table-wrap>table>tbody>tr>td:nth-child(4){grid-column:3}.catalog-reference-list>.table-wrap>table>tbody>tr>td:nth-child(5),.catalog-reference-list>.table-wrap>table>tbody>tr>td:nth-child(6){grid-column:2/-1}.catalog-reference-list>.table-wrap>table>tbody>tr>td:nth-child(3)::before{content:'Stan: ';color:var(--muted);font-size:12px}.catalog-reference-list>.table-wrap>table>tbody>tr>td:nth-child(4)::before{content:'Cena: ';color:var(--muted);font-size:12px}.catalog-reference-list>.table-wrap>table>tbody>tr.expanded-row>td{grid-column:1/-1;grid-row:auto}.catalog-reference-list .expanded-content{padding:12px 0}.catalog-reference-list>.table-wrap>table>tbody>tr>td[colspan]{grid-column:1/-1}.catalog-reference-list .product-cell .muted{font-size:11px}.catalog-reference-workspace .product-selection-dock{align-items:stretch}.catalog-reference-workspace .product-selection-dock>span{width:100%}.catalog-preparation-options .toolbar{grid-template-columns:1fr}.catalog-filter-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.catalog-dialog-frame{max-height:calc(100dvh - 20px)}.catalog-dialog-frame>header,.catalog-dialog-frame>footer,.catalog-dialog-body{padding:16px}.catalog-dialog-frame>header{align-items:flex-start}.catalog-filter-basics,.catalog-dialog-body .product-primary-grid{grid-template-columns:1fr}.catalog-filter-basics .sr-only{margin-bottom:-6px}.catalog-dialog-body .product-parameter-row,.catalog-dialog-body .product-saved-filters{display:flex;flex-direction:column;align-items:stretch}.catalog-dialog-body .product-parameter-row>*{width:100%}.product-reference-tabs{top:64px;gap:4px;padding:5px}.product-reference-tabs>[role=tab]{padding:11px 13px;font-size:13px}.product-reference-panel .grid.two{grid-template-columns:1fr}.product-reference-workspace .product-account-overview{padding:18px}.product-reference-workspace .listing-list-toolbar{align-items:stretch;flex-direction:column}.product-reference-workspace .listing-list-toolbar>*{width:100%}.product-reference-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.product-reference-panel .parameter-grid{grid-template-columns:1fr}.product-reference-panel .parameter-autosave-bar{align-items:stretch}.product-reference-panel .parameter-autosave-bar>.btn{width:100%}}
