/* =====================================================
   KONFIGURÁTOR PC (pages/configurator.php) a uložená sestava (pages/build-detail.php).
   Styl „přesná dílna“ jako homepage: rýsovací mřížka, mono údaje, jedna tmavá plocha (souhrn).
   ===================================================== */
.pcc {
    --pcc-ink: #15131f; --pcc-ink-2: #3d4457; --pcc-ink-3: #7b7f94;
    --pcc-line: #e7e4f1; --pcc-line-2: #d7d3e8; --pcc-wash: #f3f0fe; --pcc-wash-2: #e9e3fd;
    --pcc-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;
    --pcc-ok: #16a34a; --pcc-warn: #d97706; --pcc-err: #dc2626;
    padding-bottom: 4rem; color: var(--pcc-ink);
}
.pcc [hidden], .pcc-drawer[hidden] { display: none !important; }
.pcc-mono { font-family: var(--pcc-mono); }

/* Hlavička */
.pcc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 10px 0 22px; }
.pcc-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--pcc-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.pcc-beta { height: 18px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--pcc-ink); color: #fff; font-size: 10px; letter-spacing: .08em; }
.pcc-title { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.pcc-title span { color: var(--primary); }
.pcc-lede { margin: 10px 0 0; max-width: 62ch; font-size: 15px; color: var(--pcc-ink-2); }
.pcc-seg { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: #eceaf4; }
.pcc-seg button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--pcc-ink-2); padding: 10px 16px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pcc-seg button[aria-pressed="true"] { background: #fff; color: var(--pcc-ink); box-shadow: 0 1px 2px rgba(20,22,40,.12); }
.pcc-seg svg { width: 16px; height: 16px; }

/* Návrh: pracovní stůl s mřížkou */
.pcc-bench { position: relative; border-radius: 24px; border: 1px solid var(--pcc-line); overflow: hidden; padding: 26px 28px 28px;
    background: linear-gradient(var(--pcc-line) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--pcc-line) 1px, transparent 1px) 0 0 / 28px 28px, #fff; }
.pcc-bench::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 100% at 40% 30%, rgba(255,255,255,.96) 35%, rgba(255,255,255,.8) 100%); }
.pcc-bench > * { position: relative; }
.pcc-bench-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.pcc-step { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.pcc-step b { font-family: var(--pcc-mono); font-size: 12px; font-weight: 700; color: var(--primary); }
.pcc-purposes { display: grid; gap: 10px; }
.pcc-purpose { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--pcc-line-2); border-radius: 16px; background: #fff; font: inherit; text-align: left; color: var(--pcc-ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pcc-purpose:hover { border-color: var(--primary); transform: translateY(-1px); }
.pcc-purpose[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary), 0 18px 36px -24px rgba(82,28,223,.6); }
.pcc-purpose-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--pcc-wash); color: var(--primary); }
.pcc-purpose[aria-pressed="true"] .pcc-purpose-ico { background: var(--primary); color: #fff; }
.pcc-purpose-ico svg { width: 28px; height: 28px; }
.pcc-purpose-txt strong { display: block; font-size: 16px; font-weight: 800; }
.pcc-purpose-txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--pcc-ink-3); }
.pcc-purpose-tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--pcc-line-2); display: grid; place-items: center; color: #fff; }
.pcc-purpose[aria-pressed="true"] .pcc-purpose-tick { background: var(--primary); border-color: var(--primary); }
.pcc-purpose-tick svg { width: 12px; height: 12px; opacity: 0; }
.pcc-purpose[aria-pressed="true"] .pcc-purpose-tick svg { opacity: 1; }

.pcc-budget { padding: 20px 20px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--pcc-line-2); }
.pcc-budget-val { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pcc-budget-val output { font-family: var(--pcc-mono); font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--primary); }
.pcc-budget-val small { font-size: 13px; color: var(--pcc-ink-3); font-weight: 600; }
.pcc-budget-label { margin: 8px 0 16px; min-height: 1.4em; font-size: 14px; font-weight: 700; color: var(--pcc-ink-2); }
.pcc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--primary) var(--fill, 30%), var(--pcc-line) var(--fill, 30%)); outline: none; margin: 0; }
.pcc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 4px 12px -4px rgba(82,28,223,.6); cursor: grab; }
.pcc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; }
.pcc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--pcc-wash-2); }
.pcc-ticks { position: relative; height: 22px; margin: 8px 13px 0; }
.pcc-ticks button { position: absolute; transform: translateX(-50%); border: 0; background: none; padding: 2px 4px; font-family: var(--pcc-mono); font-size: 11px; font-weight: 700; color: var(--pcc-ink-3); cursor: pointer; }
.pcc-ticks button:hover { color: var(--primary); }
.pcc-ticks-unit { position: absolute; right: -13px; top: 22px; font-family: var(--pcc-mono); font-size: 10px; color: var(--pcc-ink-3); }
.pcc-ticks { margin-bottom: 14px; }
.pcc-go { margin-top: 18px; width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 15px 20px; border: 0; border-radius: 14px; background: var(--primary); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .15s, gap .15s; }
.pcc-go:hover:not(:disabled) { background: var(--primary-hover); gap: 14px; }
.pcc-go:disabled { opacity: .5; cursor: not-allowed; }
.pcc-go svg { width: 18px; height: 18px; }
.pcc-spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: pcc-spin .8s linear infinite; }
@keyframes pcc-spin { to { transform: rotate(360deg); } }
.pcc-hint { margin: 10px 0 0; font-size: 12px; color: var(--pcc-ink-3); text-align: center; }

/* Varianty */
.pcc-variants { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pcc-var { position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 20px; border: 1px solid var(--pcc-line); background: #fff; animation: pcc-rise .45s cubic-bezier(.2,.7,.2,1) both; }
.pcc-var:nth-child(2) { animation-delay: .06s; } .pcc-var:nth-child(3) { animation-delay: .12s; }
@keyframes pcc-rise { from { opacity: 0; transform: translateY(10px); } }
.pcc-var.is-rec { border-color: var(--primary); box-shadow: 0 24px 48px -32px rgba(82,28,223,.55); }
.pcc-var.is-on { box-shadow: 0 0 0 2px var(--primary); }
.pcc-var-tag { position: absolute; top: -10px; left: 20px; padding: 3px 9px; border-radius: 99px; background: var(--primary); color: #fff; font-family: var(--pcc-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pcc-var-name { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--pcc-ink-3); text-transform: uppercase; }
.pcc-var-price { margin-top: 6px; font-family: var(--pcc-mono); font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.pcc-var-delta { font-size: 12px; font-weight: 700; color: var(--pcc-ink-3); }
.pcc-var-badge { align-self: flex-start; margin-top: 10px; padding: 5px 10px; border-radius: 8px; background: var(--pcc-wash); color: var(--primary); font-size: 12px; font-weight: 800; }
.pcc-var-specs { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--pcc-line-2); display: grid; gap: 8px; }
.pcc-var-specs li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 13px; line-height: 1.3; }
.pcc-var-specs b { font-family: var(--pcc-mono); font-size: 11px; color: var(--pcc-ink-3); padding-top: 1px; }
.pcc-var-specs span { color: var(--pcc-ink); font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcc-var-note { margin: 12px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 12px; }
.pcc-var-use { margin-top: auto; padding-top: 16px; }
.pcc-var-use button { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--pcc-line-2); background: #fff; font: inherit; font-size: 14px; font-weight: 800; color: var(--pcc-ink); cursor: pointer; transition: all .15s; }
.pcc-var.is-rec .pcc-var-use button, .pcc-var-use button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.pcc-var-count { font-family: var(--pcc-mono); font-size: 11px; color: var(--pcc-ink-3); margin-top: 8px; text-align: center; }

/* Sestava: kusovník + souhrn */
.pcc-build { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; scroll-margin-top: 90px; }
.pcc-parts { border-radius: 22px; border: 1px solid var(--pcc-line); background: #fff; }
.pcc-parts-head { border-radius: 22px 22px 0 0; }
.pcc-list .pcc-row:last-child { border-radius: 0 0 22px 22px; }
.pcc-parts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--pcc-line); background: linear-gradient(180deg, #fbfaff, #fff); }
.pcc-parts-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pcc-parts-head span { font-family: var(--pcc-mono); font-size: 12px; font-weight: 700; color: var(--pcc-ink-3); }
.pcc-list { list-style: none; margin: 0; padding: 0; }
.pcc-row { position: relative; display: grid; grid-template-columns: 34px 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--pcc-line); transition: background .2s; }
.pcc-row:last-child { border-bottom: 0; }
.pcc-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.pcc-row.is-err::before { background: var(--pcc-err); }
.pcc-row.is-warn::before { background: var(--pcc-warn); }
.pcc-row.is-flash { background: var(--pcc-wash); }
.pcc-row-n { font-family: var(--pcc-mono); font-size: 12px; font-weight: 700; color: var(--pcc-ink-3); }
.pcc-row-img { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--pcc-line); background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--pcc-ink-3); }
.pcc-row-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pcc-row-img i { font-size: 24px; }
.pcc-row.is-empty .pcc-row-img { border-style: dashed; background: repeating-linear-gradient(45deg, #fff 0 6px, var(--pcc-wash) 6px 12px); }
.pcc-row-type { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pcc-ink-3); }
.pcc-row-type em { font-style: normal; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--pcc-ink-3); opacity: .8; }
.pcc-row-name { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--pcc-ink); text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
a.pcc-row-name:hover { color: var(--primary); }
.pcc-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.pcc-specs span { padding: 2px 7px; border-radius: 6px; background: var(--pcc-wash); font-family: var(--pcc-mono); font-size: 11px; font-weight: 600; color: var(--pcc-ink-2); white-space: nowrap; }
.pcc-row-hint { margin-top: 6px; font-size: 12.5px; color: var(--pcc-ink-3); }
.pcc-row-hint.is-warn { color: #b45309; }
.pcc-row-issue { margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.pcc-row.is-err .pcc-row-issue { color: var(--pcc-err); }
.pcc-row.is-warn .pcc-row-issue { color: #b45309; }
.pcc-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pcc-row-price { font-family: var(--pcc-mono); font-size: 15px; font-weight: 700; white-space: nowrap; }
.pcc-row-acts { display: flex; align-items: center; gap: 6px; }
.pcc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--pcc-line-2); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--pcc-ink-2); cursor: pointer; white-space: nowrap; transition: all .15s; }
.pcc-btn:hover { border-color: var(--primary); color: var(--primary); }
.pcc-btn-pick { background: var(--pcc-ink); border-color: var(--pcc-ink); color: #fff; }
.pcc-btn-pick:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.pcc-x { width: 32px; height: 32px; padding: 0; justify-content: center; }
.pcc-x svg, .pcc-btn svg { width: 14px; height: 14px; }
.pcc-qty { display: inline-flex; align-items: center; border: 1px solid var(--pcc-line-2); border-radius: 10px; overflow: hidden; }
.pcc-qty button { width: 28px; height: 30px; border: 0; background: #fff; font: inherit; font-weight: 800; cursor: pointer; color: var(--pcc-ink-2); }
.pcc-qty button:hover { background: var(--pcc-wash); }
.pcc-qty span { min-width: 26px; text-align: center; font-family: var(--pcc-mono); font-size: 13px; font-weight: 700; }

/* Souhrn – jediná tmavá plocha stránky */
.pcc-sum { position: sticky; top: calc(var(--sticky-top, 140px) + 4px); border-radius: 22px; padding: 22px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 70% at 100% 0%, rgba(82,28,223,.55), rgba(82,28,223,0) 60%), var(--pcc-ink); }
.pcc-sum-label { font-family: var(--pcc-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pcc-sum-total { margin-top: 6px; font-family: var(--pcc-mono); font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.pcc-sum-sub { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.6); }
.pcc-sum-budget { margin-top: 6px; font-size: 12px; font-weight: 700; }
.pcc-sum-budget.is-over { color: #fca5a5; } .pcc-sum-budget.is-ok { color: #86efac; }
.pcc-status { margin-top: 18px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); font-size: 14px; font-weight: 800; }
.pcc-status i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: rgba(255,255,255,.35); }
.pcc-status.is-ok i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.pcc-status.is-warn i { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.pcc-status.is-err i { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.22); }
.pcc-msgs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; max-height: 260px; overflow: auto; }
.pcc-msgs li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.82); }
.pcc-msgs li::before { content: ""; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.pcc-msgs li.is-err::before { background: #ef4444; } .pcc-msgs li.is-warn::before { background: #f59e0b; }
.pcc-power { margin-top: 18px; }
.pcc-power-row { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.65); }
.pcc-power-row b { font-family: var(--pcc-mono); color: #fff; }
.pcc-power-bar { position: relative; height: 8px; margin-top: 8px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; }
.pcc-power-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(90deg, #22c55e, #a3e635); transition: width .4s; }
.pcc-power-bar.is-hot i { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.pcc-sum-acts { margin-top: 20px; display: grid; gap: 8px; }
.pcc-cart { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px; border: 0; border-radius: 14px; background: #fff; color: var(--pcc-ink); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.pcc-cart:hover:not(:disabled) { background: var(--primary); color: #fff; }
.pcc-cart:disabled { opacity: .45; cursor: not-allowed; }
.pcc-cart svg { width: 18px; height: 18px; }
.pcc-sum-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcc-ghost { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pcc-ghost:hover:not(:disabled) { border-color: #fff; }
.pcc-ghost:disabled { opacity: .4; cursor: not-allowed; }
.pcc-ghost svg { width: 14px; height: 14px; }
.pcc-share { margin-top: 10px; display: flex; gap: 6px; }
.pcc-share input { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-family: var(--pcc-mono); font-size: 12px; }
.pcc-sum-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.18); font-size: 12px; color: rgba(255,255,255,.6); }
.pcc-sum-foot a { color: #fff; font-weight: 700; }

/* Výběr dílu (šuplík) */
.pcc-drawer { position: fixed; inset: 0; z-index: 1200; display: flex; justify-content: flex-end; }
.pcc-drawer-bg { position: absolute; inset: 0; background: rgba(15,12,30,.45); backdrop-filter: blur(2px); animation: pcc-fade .2s both; }
@keyframes pcc-fade { from { opacity: 0; } }
.pcc-drawer-panel { position: relative; width: min(760px, 100%); height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -30px 0 60px -30px rgba(15,12,30,.5); animation: pcc-slide .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pcc-slide { from { transform: translateX(40px); opacity: 0; } }
.pcc-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 12px; }
.pcc-drawer-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pcc-drawer-head p { margin: 2px 0 0; font-size: 13px; color: var(--pcc-ink-3); }
.pcc-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 12px; border-bottom: 1px solid var(--pcc-line); }
.pcc-search { flex: 1 1 220px; position: relative; }
.pcc-search input { width: 100%; padding: 10px 12px 10px 36px; border-radius: 11px; border: 1px solid var(--pcc-line-2); font: inherit; font-size: 14px; }
.pcc-search input:focus, .pcc-tools select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pcc-wash-2); }
.pcc-search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--pcc-ink-3); }
.pcc-tools select { padding: 10px 12px; border-radius: 11px; border: 1px solid var(--pcc-line-2); background: #fff; font: inherit; font-size: 14px; color: var(--pcc-ink); max-width: 180px; }
.pcc-tools .pcc-seg { padding: 3px; }
.pcc-tools .pcc-seg button { padding: 7px 12px; font-size: 13px; }
.pcc-drawer-info { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 22px; font-size: 12.5px; color: var(--pcc-ink-3); background: #fbfaff; border-bottom: 1px solid var(--pcc-line); }
.pcc-drawer-info b { font-family: var(--pcc-mono); color: var(--pcc-ink); }
.pcc-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pcc-cands { flex: 1; overflow: auto; padding: 8px 14px 20px; }
.pcc-cand { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--pcc-line); background: none; font: inherit; text-align: left; color: var(--pcc-ink); cursor: pointer; border-radius: 12px; transition: background .12s; }
.pcc-cand:hover { background: var(--pcc-wash); }
.pcc-cand.is-current { background: var(--pcc-wash); box-shadow: inset 0 0 0 1.5px var(--primary); }
.pcc-cand.is-error { opacity: .62; }
.pcc-cand .pcc-row-img { width: 60px; height: 60px; }
.pcc-cand-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.pcc-cand-msg { margin-top: 5px; font-size: 12px; line-height: 1.35; }
.pcc-cand-side { text-align: right; }
.pcc-cand-price { font-family: var(--pcc-mono); font-size: 15px; font-weight: 700; white-space: nowrap; }
.pcc-fit { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.pcc-fit::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pcc-fit.ok { background: #dcfce7; color: #15803d; }
.pcc-fit.warn { background: #fef3c7; color: #b45309; }
.pcc-fit.unknown { background: #eef0f5; color: #5b6275; }
.pcc-fit.error { background: #fee2e2; color: #b91c1c; }
.pcc-cand-msg.ok { color: #15803d; } .pcc-cand-msg.warn { color: #b45309; } .pcc-cand-msg.unknown { color: var(--pcc-ink-3); } .pcc-cand-msg.error { color: #b91c1c; }
.pcc-more { display: block; margin: 16px auto 0; }
.pcc-empty { padding: 40px 20px; text-align: center; color: var(--pcc-ink-3); font-size: 14px; }
.pcc-skel { height: 84px; margin: 6px 0; border-radius: 12px; background: linear-gradient(90deg, #f3f2f8 0%, #fbfaff 50%, #f3f2f8 100%) 0 0 / 200% 100%; animation: pcc-skel 1.2s infinite; }
@keyframes pcc-skel { to { background-position: -200% 0; } }

/* Mobilní lišta se součtem */
.pcc-bar { display: none; }

@media (max-width: 1100px) {
    .pcc-build { grid-template-columns: 1fr; }
    .pcc-sum { position: relative; top: 0; }
    .pcc-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--pcc-ink); color: #fff; box-shadow: 0 18px 40px -16px rgba(15,12,30,.6); }
    .pcc-bar b { font-family: var(--pcc-mono); font-size: 18px; }
    .pcc-bar small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.7); }
    .pcc-bar small i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
    .pcc-bar small i.is-ok { background: #22c55e; } .pcc-bar small i.is-warn { background: #f59e0b; } .pcc-bar small i.is-err { background: #ef4444; }
    .pcc-bar button { padding: 10px 14px; border: 0; border-radius: 12px; background: #fff; color: var(--pcc-ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
    .pcc-bar { transition: transform .25s, opacity .25s; }
    .pcc-bar.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
    .pcc { padding-bottom: 6rem; }
}
@media (max-width: 860px) {
    .pcc-bench { padding: 20px 16px; border-radius: 20px; }
    .pcc-bench-grid { grid-template-columns: 1fr; }
    .pcc-variants { grid-template-columns: 1fr; }
    .pcc-seg { width: 100%; }
    .pcc-seg button { flex: 1; justify-content: center; padding: 10px 8px; }
}
@media (max-width: 600px) {
    .pcc-row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 12px; padding: 14px 14px; }
    .pcc-row-n { display: none; }
    .pcc-row-img { width: 48px; height: 48px; }
    .pcc-row-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .pcc-drawer-panel { width: 100%; height: 92%; margin-top: auto; border-radius: 20px 20px 0 0; animation-name: pcc-up; }
    @keyframes pcc-up { from { transform: translateY(40px); opacity: 0; } }
    .pcc-drawer { align-items: flex-end; }
    .pcc-drawer-head, .pcc-tools, .pcc-drawer-info { padding-left: 16px; padding-right: 16px; }
    .pcc-tools select { flex: 1; max-width: none; }
    .pcc-cand { grid-template-columns: 48px minmax(0, 1fr); }
    .pcc-cand .pcc-row-img { width: 48px; height: 48px; }
    .pcc-cand-side { grid-column: 2; text-align: left; display: flex; align-items: center; gap: 10px; }
    .pcc-cand-side .pcc-fit { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .pcc *, .pcc-drawer * { animation: none !important; transition: none !important; } }
.pcc-row-name, .pcc-cand-name, .pcc-var-specs span, .pcc-msgs li { overflow-wrap: anywhere; }
.pcc-os { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--pcc-line-2); background: #fff; cursor: pointer; }
.pcc-os:hover { border-color: var(--primary); }
.pcc-os input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.pcc-os strong { font-size: 14px; font-weight: 800; }
.pcc-os small { display: block; font-size: 12px; color: var(--pcc-ink-3); }
/* Filtry v šuplíku */
.pcc-facets { display: flex; flex-direction: column; gap: 6px; padding: 10px 22px 12px; border-bottom: 1px solid var(--pcc-line); max-height: 200px; overflow: auto; }
.pcc-facets:empty { display: none; }
.pcc-facet { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pcc-facet > span { min-width: 88px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pcc-ink-3); }
.pcc-facet button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--pcc-line-2); background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--pcc-ink-2); cursor: pointer; transition: all .12s; }
.pcc-facet button small { font-family: var(--pcc-mono); font-size: 10.5px; font-weight: 600; color: var(--pcc-ink-3); }
.pcc-facet button:hover { border-color: var(--primary); color: var(--primary); }
.pcc-facet button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pcc-facet button[aria-pressed="true"] small { color: rgba(255,255,255,.75); }
.pcc-facet-reset { align-self: flex-start; font-size: 12px; }
@media (max-width: 600px) {
    .pcc-facets { padding: 8px 16px 10px; max-height: 150px; }
    .pcc-facet { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .pcc-facet > span { min-width: auto; flex: none; }
    .pcc-facet button { flex: none; }
}
.pcc-cart-block { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(239,68,68,.16); color: #fecaca; font-size: 12.5px; font-weight: 600; }
/* Upřesnit požadavky */
.pcc-refine { margin-top: 14px; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
    border: 1.5px solid var(--primary); border-radius: 16px; background: var(--pcc-wash); font: inherit; text-align: left; color: var(--pcc-ink); cursor: pointer; transition: background .15s, box-shadow .15s; }
.pcc-refine:hover { background: var(--pcc-wash-2); box-shadow: 0 14px 30px -22px rgba(82,28,223,.7); }
.pcc-refine-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.pcc-refine-ico svg { width: 20px; height: 20px; }
.pcc-refine-txt strong { display: block; font-size: 15px; font-weight: 800; color: var(--primary); }
.pcc-refine-txt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--pcc-ink-2); }
.pcc-refine-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--pcc-mono); font-size: 12px; font-weight: 700; }
.pcc-refine-chev { width: 16px; height: 16px; color: var(--primary); transition: transform .2s; }
.pcc-refine[aria-expanded="true"] .pcc-refine-chev { transform: rotate(180deg); }
.pcc-prefs { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--pcc-line-2); animation: pcc-rise .3s cubic-bezier(.2,.7,.2,1) both; }
.pcc-prefs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pcc-prefs-note { font-size: 13px; font-weight: 600; color: var(--pcc-ink-3); }
.pcc-prefs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pcc-prefs-group { margin: 0; padding: 16px; border: 1px solid var(--pcc-line-2); border-radius: 16px; background: #fff; display: grid; gap: 14px; min-width: 0; }
.pcc-prefs-group legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; font-family: var(--pcc-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.pcc-pref-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--pcc-ink-2); }
.pcc-pref-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pcc-pref-opts button { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--pcc-line-2); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--pcc-ink-2); cursor: pointer; transition: all .12s; }
.pcc-pref-opts button:hover { border-color: var(--primary); color: var(--primary); }
.pcc-pref-opts button[aria-pressed="true"] { background: var(--pcc-ink); border-color: var(--pcc-ink); color: #fff; }
.pcc-pref-opts button[data-pv=""][aria-pressed="true"] { background: var(--pcc-wash); border-color: var(--pcc-line-2); color: var(--pcc-ink-2); }
@media (max-width: 1100px) { .pcc-prefs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .pcc-prefs-grid { grid-template-columns: 1fr; } .pcc-refine-txt small { display: none; } }
/* Vzorník barev skříně */
.pcc-pref-opts button.pcc-swatch { display: inline-flex; align-items: center; gap: 7px; padding-left: 7px; }
.pcc-swatch i { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.pcc-pref-opts button.pcc-swatch[aria-pressed="true"] i { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(255,255,255,.5); }
/* Rada k nesmyslným požadavkům */
.pcc-advice { grid-column: 1 / -1; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid #fcd9a8; background: #fff8ee; animation: pcc-rise .35s both; }
.pcc-advice-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f59e0b; color: #fff; font-weight: 800; font-size: 18px; }
.pcc-advice strong { font-size: 15px; font-weight: 800; color: #7c2d12; }
.pcc-advice p { margin: 4px 0 0; font-size: 14px; color: #7c3d12; line-height: 1.5; }
.pcc-advice-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* Větší náhled obrázku v kusovníku po najetí myší (jen počítač s myší) */
.pcc-zoom { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
    .pcc-list .pcc-row-img.has-zoom { position: relative; overflow: visible; cursor: zoom-in; }
    .pcc-list .pcc-row-img.has-zoom > img { border-radius: 11px; }
    .pcc-list .pcc-zoom { display: block; position: absolute; left: calc(100% + 14px); top: 50%; z-index: 40; width: 280px; height: 280px; padding: 14px;
        border: 1px solid var(--pcc-line-2); border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -24px rgba(21,19,31,.45);
        opacity: 0; visibility: hidden; transform: translate(-6px, -50%) scale(.96); transform-origin: left center; transition: opacity .16s, transform .16s, visibility .16s; pointer-events: none; }
    .pcc-list .pcc-zoom img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
    .pcc-list .pcc-row-img.has-zoom:hover .pcc-zoom { opacity: 1; visibility: visible; transform: translate(0, -50%) scale(1); transition-delay: .12s; }
}
/* Hlášení nesmyslu / chyby */
.pcc-report { margin-top: 12px; width: 100%; display: flex; justify-content: center; align-items: center; gap: 7px; padding: 9px; border: 1px dashed rgba(255,255,255,.25); border-radius: 12px; background: none; color: rgba(255,255,255,.8); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; }
.pcc-report:hover { border-color: #fbbf24; color: #fbbf24; }
.pcc-report svg { width: 13px; height: 13px; }
.pcc-report-line { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--pcc-ink-3); }
.pcc-modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; }
.pcc-modal[hidden] { display: none !important; }
.pcc-modal-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; margin: 0; padding: 22px 24px 24px; border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -30px rgba(15,12,30,.6); animation: pcc-rise .25s both; }
.pcc-modal-head { display: flex; justify-content: space-between; gap: 14px; }
.pcc-modal-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pcc-modal-head p { margin: 4px 0 0; font-size: 13px; color: var(--pcc-ink-3); }
.pcc-report-body { display: grid; gap: 14px; margin-top: 16px; }
.pcc-field { display: grid; gap: 6px; margin: 0; }
.pcc-field span { font-size: 13px; font-weight: 700; color: var(--pcc-ink-2); }
.pcc-field em { font-style: normal; font-weight: 600; color: var(--pcc-ink-3); }
.pcc-field textarea, .pcc-field input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--pcc-line-2); font: inherit; font-size: 14px; resize: vertical; }
.pcc-field textarea:focus, .pcc-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--pcc-wash-2); }
.pcc-report-snap { margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--pcc-wash); font-size: 12.5px; color: var(--pcc-ink-2); }
.pcc-report-err { margin: 0; font-size: 13px; font-weight: 700; color: var(--pcc-err); }
.pcc-report-body .pcc-go { margin-top: 0; }
.pcc-report-done { text-align: center; padding: 24px 8px 6px; }
.pcc-report-ok { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #15803d; font-size: 24px; font-weight: 800; }
.pcc-report-done h3 { margin: 12px 0 4px; font-size: 18px; font-weight: 800; }
.pcc-report-done p { margin: 0 0 16px; font-size: 14px; color: var(--pcc-ink-2); }

.pcc-modal-box.pcc { padding-bottom: 24px; }
