.kb-app{display:grid;gap:26px;min-width:0}
.kb-heading{display:flex;align-items:end;justify-content:space-between;gap:24px 48px;flex-wrap:wrap}
.kb-eyebrow{font:400 10px/1.5 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.kb-heading h2{font-size:clamp(32px,4.6vw,54px);line-height:1.08;letter-spacing:-.04em}
.kb-heading>p{font-size:18px;line-height:1.5;color:var(--muted);max-width:42ch}
.kb-workspace{display:grid;grid-template-columns:minmax(0,1fr) 410px;border:1px solid var(--line);border-radius:24px;background:var(--surface);overflow:clip}
.kb-visual{min-width:0;align-self:start}
.kb-image-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-height:56px;padding:10px 22px}
#kbImageLabel{font:400 10px/1.5 var(--mono);letter-spacing:.07em;color:var(--muted)}
.kb-view{display:flex;gap:4px}
.kb-view:has(>button:not([hidden])){margin-left:auto}
.kb-view button{min-height:36px;padding:5px 10px;border-radius:20px;font-size:12px;color:var(--muted)}
.kb-view button[aria-pressed=true]{background:var(--tile);color:var(--ink)}
.kb-stage,.kb-render,.kb-image-stack{position:relative;aspect-ratio:3/2;background:var(--tile);overflow:hidden;scroll-margin-top:76px}
.kb-image-stack img,.kb-original{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.kb-render[hidden],.kb-original[hidden],.kb-light[hidden],.kb-view button[hidden]{display:none}
.kb-scene-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px;padding:10px 22px}
.kb-scene-status{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;color:var(--muted);font-size:11px;line-height:1.5}
.kb-scene-status[hidden]{display:none}
.kb-scene-status button{text-decoration:underline;text-underline-offset:3px;min-height:44px;color:var(--ink)}
.kb-light{display:flex;flex:none;gap:3px;padding:3px;border:1px solid var(--line);border-radius:30px}
.kb-light button{min-width:62px;min-height:38px;border-radius:24px;font-size:12px;color:var(--muted)}
.kb-light button[aria-pressed=true]{background:var(--ink);color:var(--paper)}
.kb-chosen{padding:0 22px 22px;margin-top:-8px}
.kb-chosen[hidden]{display:none}
.kb-chosen>p{font-size:13px;font-weight:600;margin-bottom:8px}
.kb-chosen ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.kb-chosen li{display:flex;align-items:center;gap:10px;padding:5px 6px 5px 5px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.kb-chosen img{width:56px;height:56px;object-fit:contain;background:#fff;border-radius:8px}
.kb-chosen span{font-size:14px;font-weight:500}
.kb-chosen small{color:var(--muted);font-weight:400}
.kb-chosen button{width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}
.kb-chosen button:hover{background:var(--tile);color:var(--ink)}
.kb-chosen button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
#kbBackMine{display:inline-block;margin:6px 0 8px;font-size:14px}
#kbBackMine[hidden]{display:none}
.kb-caption{padding:0 22px 22px}
.kb-caption h3{font-size:22px;font-weight:500;letter-spacing:-.025em}
.kb-caption p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:5px;max-width:85ch}
.kb-photo,.kb-discover,.kb-proposal{min-width:0;padding:24px 22px;border-top:1px solid var(--line)}
.kb-ideas{border-top:1px solid var(--line)}
.kb-ideas>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;min-height:64px}
.kb-ideas>summary::-webkit-details-marker{display:none}
.kb-ideas>summary>span{display:grid;gap:3px}
.kb-ideas>summary strong{font-size:16px;font-weight:600;letter-spacing:-.02em}
.kb-ideas>summary small{font-size:13px;color:var(--muted);line-height:1.4}
.kb-ideas>summary::after{content:"+";flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--tile);font:400 18px/1 var(--mono)}
.kb-ideas[open]>summary::after{content:"−"}
.kb-ideas>.kb-disclosure{padding:0 22px 22px}
.kb-photo-head{display:flex;align-items:flex-start;gap:16px}
.kb-proposal h3{font-size:17px;font-weight:500;letter-spacing:-.02em}
.kb-photo{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.kb-photo h3,.kb-discover>h3{font-size:17px;font-weight:500;letter-spacing:-.02em}
.kb-photo p,.kb-discover>p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:6px;max-width:75ch}
.kb-upload{position:relative;flex:none;cursor:pointer;min-height:40px;padding:8px 16px;font-size:13px;white-space:nowrap;overflow:hidden;margin-left:auto}
.kb-upload:focus-within{outline:2px solid var(--accent-ink);outline-offset:3px}
.kb-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.kb-photo>#kbPhotoPrivacy,.kb-photo>progress,.kb-photo>#kbPhotoStatus,.kb-photo>#kbPhotoError,.kb-photo-actions,.kb-privacy{grid-column:1/-1}
.kb-photo>#kbPhotoPrivacy{font-size:11px;margin:0}
.kb-photo>progress{width:100%;height:5px;accent-color:var(--accent-ink)}
.kb-photo>#kbPhotoError{color:var(--ink);font-weight:500}
.kb-photo>#kbPhotoError:empty,.kb-photo>#kbPhotoStatus:empty{display:none}
.kb-photo-actions{display:flex;flex-wrap:wrap;gap:4px 20px}
.kb-photo-actions:has(>button:not([hidden])){margin-top:2px}
.kb-photo-actions button,.kb-text-button{min-height:44px;text-decoration:underline;text-underline-offset:4px;font-size:12px;text-align:left}
.kb-privacy{font-size:11px;color:var(--muted)}
.kb-privacy summary,.kb-reasons summary{cursor:pointer;min-height:36px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
.kb-privacy ul,.kb-reasons ul{padding-left:18px;line-height:1.7;margin:6px 0}
.kb-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.kb-match{min-width:0}
.kb-choice{display:grid;gap:12px;width:100%;height:calc(100% - 36px);align-content:start;padding:7px;border:1px solid var(--line);border-radius:12px;text-align:left;background:var(--surface)}
.kb-choice>img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:7px}
.kb-choice>span{display:grid;gap:6px;min-width:0;padding:2px 4px 6px}
.kb-choice small{font:400 9px/1 var(--mono);color:var(--muted)}
.kb-choice strong{font-size:14px;font-weight:500;line-height:1.3}
.kb-choice>span>span{font-size:11px;line-height:1.5;color:var(--muted)}
.kb-choice[aria-pressed=true]{border-color:var(--accent-ink);box-shadow:inset 0 0 0 1px var(--accent-ink);background:var(--glow-soft)}
.kb-reasons{font-size:11px;color:var(--muted);line-height:1.5}
.kb-browse,.kb-space label{display:grid;gap:8px;font-size:12px;color:var(--muted);margin-top:16px}
.kb-app select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px 30px 8px 10px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;text-overflow:ellipsis}
.kb-panel{min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto;border-left:1px solid var(--line);border-bottom:1px solid var(--line);position:sticky;top:76px;height:min(760px,calc(100dvh - 100px));align-self:start}
.kb-panel-scroll{min-height:0;overflow-y:auto;scrollbar-gutter:stable}
.kb-equipment,.kb-builder,.kb-legacy{padding:22px;border-bottom:1px solid var(--line)}
.kb-step{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-.015em}
.kb-equipment-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.kb-equipment-fields label{display:grid;gap:7px;font-size:12px;color:var(--muted)}
#kbEquipmentHint,.kb-space p,.kb-proposal p:not(.kb-step),.kb-builder>p,.kb-proposal small,.kb-legacy p{font-size:11px;line-height:1.6;color:var(--muted);margin-top:8px}
.kb-space{margin-top:6px;font-size:12px;color:var(--muted)}
.kb-space summary,.kb-category summary,.kb-legacy summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.kb-space summary::after,.kb-category summary::after,.kb-legacy summary::after{content:"+";font:400 18px/1 var(--mono)}
.kb-space[open]>summary::after,.kb-category[open]>summary::after,.kb-legacy[open]>summary::after{content:"−"}
.kb-proposal select{margin-top:10px}
.kb-proposal .btn{width:100%;min-height:44px;margin-top:14px;font-size:12px}
.kb-proposal small{display:block}
.kb-category{border-bottom:1px solid var(--line)}
.kb-category:last-child{border-bottom:0}
.kb-category summary{font-size:14px;font-weight:500}
.kb-category summary>span{margin-left:auto;font:400 10px/1 var(--mono);color:var(--muted)}
.kb-product-option{display:flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:14px;margin-bottom:6px;padding:8px}
.kb-product-option.is-selected{border-color:var(--line);background:var(--tile)}
.kb-product-option label{display:flex;align-items:center;gap:14px;min-width:0;flex:1;cursor:pointer;min-height:84px}
.kb-product-option input{width:16px;height:16px;flex:none;accent-color:var(--accent-ink)}
.kb-product-option img{flex:none;width:84px;height:84px;object-fit:contain;padding:4px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.kb-product-option label>span{min-width:0}
.kb-product-option strong{display:block;font-size:15px;line-height:1.3;font-weight:500;letter-spacing:-.01em}
.kb-product-option small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:2px}
.kb-product-option b{display:block;font-size:16px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin-top:4px}
.kb-product-option:has(input:disabled){opacity:.6}
.kb-product-option button{font-size:12px;min-height:44px;min-width:28px;text-decoration:underline;text-underline-offset:3px}
#kbNotice{font-size:12px;line-height:1.6;margin-top:10px}
#kbNotice:empty{display:none}
.kb-legacy{font-size:12px}
.kb-legacy .kb-text-button{display:block}
.kb-sum{background:var(--surface);padding:20px 22px;display:grid;gap:8px;border-top:1px solid var(--line)}
.kb-total-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.kb-total-row>span{font-size:18px;font-weight:600;letter-spacing:-.02em}
.kb-total-row small{font-size:14px;font-weight:500;color:var(--muted);margin-left:2px}
#kbTotal{font-size:32px;font-weight:500;letter-spacing:-.05em;line-height:1.2;font-variant-numeric:tabular-nums}
#kbSavings{font-size:11px;color:var(--accent-ink)}
#kbCount,#kbKind,.kb-shipping{font-size:11px;line-height:1.5;color:var(--muted)}
.kb-cta{width:100%;min-height:46px;margin-top:4px}
.kb-cta:disabled{background:var(--tile);color:var(--muted);cursor:not-allowed}
.kb-disclosure{font-size:11px;line-height:1.7;color:var(--muted)}
.kb-boot-error{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--tile)}
.kb-boot-error p{font-size:14px;line-height:1.6;margin:12px 0}
.kb-skel{aspect-ratio:2/1;border-radius:24px;background:var(--tile)}
@media (hover:hover) and (pointer:fine){.kb-choice:hover{border-color:var(--muted)}.kb-product-option button:hover{color:var(--accent-ink)}}
@media (prefers-reduced-motion:no-preference){.kb-choice{transition:background-color .2s ease,border-color .2s ease,transform .2s ease}.kb-choice:active{transform:scale(.985)}}
@media (max-width:1099px){
  .kb-workspace{grid-template-columns:1fr}
  .kb-visual{display:contents}
  .kb-panel{grid-row:5;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr;grid-template-rows:auto;height:auto;position:static;align-items:start}
  .kb-panel-scroll{display:contents}
  .kb-ideas{grid-row:6}
  #kbItems{display:grid;grid-template-columns:1fr 1fr;column-gap:28px;align-items:start}
  .kb-legacy,.kb-sum{grid-column:1/-1}
  .kb-sum{position:static;grid-template-columns:minmax(0,1fr) 260px;column-gap:24px}
  .kb-sum>*{grid-column:1}.kb-sum>.kb-cta{grid-column:2;grid-row:1/span 6;align-self:center}
}
@media (min-width:1100px) and (max-height:650px){
  .kb-panel{position:static;height:auto}
  .kb-panel-scroll{overflow:visible}
}
@media (max-width:600px){
  .kb-app{gap:20px}.kb-heading>p{font-size:16px}.kb-heading h2{font-size:32px}
  .kb-workspace{border-radius:18px}
  .kb-image-heading{padding:8px 12px;gap:6px}#kbImageLabel{font-size:9px}
  .kb-view button{font-size:11px;padding:4px 7px}
  .kb-scene-tools{padding:8px 12px;gap:8px;min-height:60px}
  .kb-scene-status{font-size:10px}.kb-light button{min-width:48px;min-height:36px;font-size:11px}
  .kb-chosen{padding:0 14px 18px}.kb-chosen li{flex:1 1 100%}.kb-chosen span{flex:1}.kb-caption{padding:0 14px 18px}.kb-caption h3{font-size:20px}
  .kb-choices{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity}
  .kb-match{flex:0 0 160px;scroll-snap-align:start}
  .kb-choice strong{font-size:13px}
  .kb-panel{display:flex;flex-direction:column}
  .kb-equipment,.kb-builder,.kb-legacy,.kb-sum{padding:20px 14px;width:100%}
  .kb-photo,.kb-discover,.kb-proposal{padding:20px 14px}
  .kb-ideas>summary{padding:16px 14px}.kb-ideas>.kb-disclosure{padding:0 14px 18px}
  .kb-photo-head{flex-direction:column}.kb-upload{margin-left:0}
  #kbItems{display:block}
  .kb-sum{grid-template-columns:1fr}.kb-sum>.kb-cta{grid-column:1;grid-row:auto}
}
