/* Kit finder + building builder — matches Figma "Concept – Kit Sizing". */
.kb{--ink:#0f1e28;--blue:#4daae8;--green:#1fab3d;--green-d:#178f32;--acc:#4A9A77;--acc-soft:#EAF5EF;--muted:#5B6475;--line:#DDE3EA;--soft:#F5F8FA;--warn:#B26B00;--hdr:88px;
  color:var(--ink);font-family:'Plus Jakarta Sans',sans-serif!important;-webkit-font-smoothing:antialiased}
.kb *,.kb *::before,.kb *::after{box-sizing:border-box;font-family:inherit!important}
.kb .bi{font-family:bootstrap-icons!important}
.kb :where(p,h1,h2,ul){margin:0;padding:0}
.kb :where(ul){list-style:none}
.kb :where(button){font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.kb [hidden]{display:none!important}
.kb-screen{min-height:calc(100vh - var(--hdr));display:flex;align-items:center;padding:14px 0 18px}
.kb-wrap{width:100%;max-width:1220px;margin:0 auto;padding:0 32px}
.kb-center{text-align:center;display:flex;flex-direction:column;align-items:center}
.kb-eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--acc);margin-bottom:10px}
.kb-eyebrow--sm{font-size:12px;margin-bottom:6px}
.kb-h1{font-size:44px;line-height:1.15;font-weight:700;letter-spacing:-.01em;margin-bottom:14px}
.kb-h2{font-size:38px;line-height:1.18;font-weight:700;letter-spacing:-.01em;margin-bottom:14px}
.kb-sub{font-size:18px;color:var(--muted);margin-bottom:30px}
.kb-sub--left{margin-bottom:22px}
.kb-blue{font-size:22px;font-weight:600;color:var(--blue);margin-bottom:4px}
.kb-ph{font-size:12px;font-style:italic;color:var(--muted);margin-top:2px}
.kb-link{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--acc)!important;text-decoration:underline;text-underline-offset:3px;margin-top:26px}
.kb-link .bi{text-decoration:none}
.kb-link--left{margin-top:16px}
.kb-link--small{font-size:14px;margin-top:16px;cursor:pointer}
.kb-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 28px;border-radius:12px!important;font-size:18px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s;text-decoration:none}
.kb-btn--green{background:var(--green)!important;color:#fff!important}
.kb-btn--green:hover{background:var(--green-d)!important}
.kb-btn--green:disabled{opacity:.55;cursor:default}
.kb-btn--ghost{border:1.5px solid var(--line)!important;background:#fff!important;color:var(--ink)!important}
.kb-btn--ghost:hover{border-color:#b9c3cf!important}
.kb-btn--sm{min-height:50px;font-size:17px;padding:0 26px}
.kb-btn--lg{min-height:62px;padding:0 40px;font-size:19px}
.kb-btn--block{width:100%;min-height:56px}
.kb-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.kb-back{display:inline-flex;align-items:center;gap:8px;font-size:15px;color:var(--muted)!important;margin-bottom:14px;min-height:28px}
.kb-back:hover{color:var(--ink)!important}
.kb-error{color:#C0392B;font-size:14px;margin-top:10px}

/* start */
.kb-choices{display:grid;grid-template-columns:repeat(2,400px);gap:24px}
.kb-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:192px;padding:28px 28px 26px!important;border-radius:14px!important;border:1.5px solid var(--line)!important;background:#fff!important;transition:transform .15s,box-shadow .15s}
.kb-choice:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,30,40,.08)}
.kb-choice__icon{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--acc-soft);color:var(--acc);font-size:26px;margin-bottom:auto}
.kb-choice__title{font-size:24px;font-weight:700;margin-top:18px}
.kb-choice__text{font-size:15px;color:var(--muted);margin-top:4px}
.kb-choice--primary{background:var(--green)!important;border-color:var(--green)!important;color:#fff!important}
.kb-choice--primary .kb-choice__icon{background:#fff;color:var(--green)}
.kb-choice--primary .kb-choice__text{color:#e8f7ec}
.kb-start__building{margin-top:12px}

/* split layouts */
.kb-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:center}
.kb-copy{min-width:0}
.kb-drop{position:relative;height:min(480px,calc(100vh - var(--hdr) - 40px));border:2px dashed #79b89a;border-radius:14px;background:var(--soft);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}
.kb-drop__icon{width:80px;height:80px;border-radius:50%;background:var(--acc-soft);color:var(--acc);display:flex;align-items:center;justify-content:center;font-size:32px;margin-bottom:22px}
.kb-drop__title{font-size:19px;font-weight:600;margin-bottom:16px!important}
.kb-drop__status{font-size:14px;color:var(--muted);margin-top:10px!important;min-height:20px}
.kb-tips__title{font-size:16px;font-weight:700;margin-bottom:10px!important}
.kb-tips li{display:flex;align-items:center;gap:14px;font-size:16px;margin-bottom:12px}
.kb-tips li span{width:40px;height:40px;border-radius:50%;background:var(--acc-soft);color:var(--acc);display:flex;align-items:center;justify-content:center;font-size:17px;flex:none}

/* size screen */
.kb-split--size{grid-template-columns:400px minmax(0,1fr);gap:72px}
.kb-visual{display:flex;flex-direction:column;align-items:center}
.kb-toggle{display:inline-flex;background:#EEF1F4;border-radius:12px;padding:4px;margin-bottom:12px;align-self:center}
.kb-toggle button{padding:9px 16px;border-radius:9px!important;font-size:14px;font-weight:500;color:var(--muted)!important;min-height:38px}
.kb-toggle button[aria-selected=true]{background:#fff!important;color:var(--ink)!important;font-weight:700;box-shadow:0 1px 3px rgba(15,30,40,.12)}
.kb-m{display:none!important}
.kb-art{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:min(430px,calc(100vh - var(--hdr) - 130px))}
.kb-drawing{height:100%;display:flex;align-items:center;justify-content:center;width:100%}
.kb-drawing svg{height:100%;width:auto;max-width:100%;display:block}
.kb-drawing--res svg{height:84%}
.kb-userphoto{max-width:100%;max-height:100%;border-radius:14px;object-fit:contain;background:var(--soft);display:block}
.kb-art__count{display:none}
.kb-caption{font-size:13px;color:var(--muted);margin-top:8px!important;min-height:18px}
.kb-count{display:flex;align-items:center;gap:12px;margin:4px 0 6px}
.kb-count__num{font-size:64px;line-height:1;font-weight:700;color:var(--blue)}
.kb-count__unit{font-size:26px;font-weight:600;margin-top:16px}
.kb-stepper{display:inline-flex;align-items:center;gap:4px;margin-left:auto;border:1.5px solid var(--line);border-radius:12px;padding:4px}
.kb-stepper button{width:40px;height:40px;border-radius:8px!important;background:var(--soft)!important;font-size:20px;font-weight:600}
.kb-stepper input{width:64px;height:40px;border:0;text-align:center;font-size:18px;font-weight:700;color:var(--ink);background:transparent;-moz-appearance:textfield}
.kb-stepper input::-webkit-inner-spin-button{-webkit-appearance:none}
.kb-maxnote{font-size:14px;font-weight:600;color:var(--warn);margin:2px 0 4px!important}
.kb-clampnote{font-size:15px;font-weight:600;color:var(--acc);margin-bottom:4px!important}
.kb-range{position:relative;margin:10px 0 34px;padding:0 13px}
.kb-range input{-webkit-appearance:none;appearance:none;width:100%;height:28px;background:transparent;margin:0;display:block;position:relative;z-index:1;cursor:pointer}
.kb-range input::-webkit-slider-runnable-track{height:8px;border-radius:4px;background:linear-gradient(90deg,var(--green) var(--p,0%),#E3E8ED var(--p,0%))}
.kb-range input::-moz-range-track{height:8px;border-radius:4px;background:#E3E8ED}
.kb-range input::-moz-range-progress{height:8px;border-radius:4px;background:var(--green)}
.kb-range input::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;border-radius:50%;background:#fff;border:4px solid var(--green);margin-top:-10px;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.kb-range input::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:4px solid var(--green)}
.kb-ticks{position:absolute;left:27px;right:27px;top:30px;height:24px}
.kb-ticks span{position:absolute;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center}
.kb-ticks i{width:1.5px;height:7px;background:#9AA3AE}
.kb-ticks em{font-style:normal;font-size:12px;color:var(--muted);margin-top:3px}
.kb-kitbox{display:flex;justify-content:space-between;gap:24px;border:2px solid var(--acc);background:var(--acc-soft);border-radius:14px;padding:18px 22px;margin-bottom:16px}
.kb-kitbox__name{font-size:20px;font-weight:700}
.kb-ptable{border-collapse:collapse;font-size:15px;min-width:220px}
.kb-ptable td{padding:1px 0;color:var(--muted)}
.kb-ptable td+td{text-align:right;color:var(--ink);font-weight:600;padding-left:28px}
.kb-ptable__total td{border-top:1px solid #9cc7b2;padding-top:4px;font-weight:700;color:var(--ink)!important;font-size:16px}
.kb-ptable--sm{font-size:14px;min-width:200px}
.kb-ptable--sm .kb-ptable__total td{border-color:var(--line)}
.kb-actions{display:flex;gap:12px;flex-wrap:wrap}
.kb-size.is-photo .kb-toggle{margin-bottom:12px}

/* result */
.kb-split--result{grid-template-columns:460px minmax(0,1fr);gap:64px}
.kb-kitimg{height:min(500px,calc(100vh - var(--hdr) - 36px));border:1.5px solid var(--line);border-radius:18px;display:flex;align-items:center;justify-content:center;padding:28px;background:#fff}

.kb-kitimg{overflow:hidden}
.kb-sizeline{font-size:14px;color:var(--blue);margin-bottom:6px!important}
.kb-result .kb-tips__title{margin-top:10px}
.kb-box{display:grid;grid-template-columns:1fr 1fr;gap:6px 24px;margin-bottom:14px!important}
.kb-box li{display:flex;gap:10px;font-size:15px;align-items:baseline}
.kb-box .bi{color:var(--acc)}
.kb-buy{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.kb-buy__btns{display:flex;flex-direction:column;gap:8px}
.kb-buy__btns .kb-btn--ghost{min-height:44px;font-size:15px}

/* kit picture (exact counts) */
.kb-art{flex-direction:column;justify-content:center;gap:16px;padding:22px!important}
.kb-art-g{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.kb-art-icons{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:6px;position:relative}
.kb-art-g p{font-size:13px;font-weight:600;color:var(--muted);margin:0}
.kb-art-g--gw img{height:84px}.kb-art-g--hub img{height:44px}.kb-art-g--sen img{height:26px}
.kb-art-g--sen .kb-art-icons{max-width:300px}
.kb-art-hubs{display:grid;grid-template-columns:repeat(var(--hc,4),auto);gap:8px;justify-content:center}
.kb-art-hubs:has(> :nth-child(1):last-child){--hc:1}.kb-art-hubs:has(> :nth-child(2):last-child){--hc:2}.kb-art-hubs:has(> :nth-child(3):last-child){--hc:3}
.kb-art-hub{display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid var(--line,#e5e7eb);border-radius:8px;padding:5px}
.kb-art-hub .kb-p-hub{height:24px}.kb-art-sen{display:grid;grid-template-columns:repeat(4,11px);gap:2px}.kb-art-sen img{width:11px;height:11px;object-fit:contain}
.kb-art-hub small{font-size:11px;font-weight:700;color:var(--muted);line-height:1}
/* result modal */
html.kb-lock,html.kb-lock body{overflow:hidden!important}
.kb-result{position:fixed;inset:0;z-index:100000;min-height:0;padding:20px;background:rgba(11,18,26,.6);display:flex;align-items:center;justify-content:center}
.kb-result .kb-modal{position:relative;background:#fff;border-radius:20px;max-width:1120px;width:100%;max-height:calc(100vh - 40px);overflow:auto;padding:30px 36px;box-shadow:0 24px 60px rgba(0,0,0,.3);grid-template-columns:400px minmax(0,1fr);gap:44px}
.kb-result .kb-kitimg{height:min(440px,calc(100vh - 100px))}
.kb-result .kb-back{display:none}
.kb .kb-x{position:absolute;top:14px;right:14px;width:44px;height:44px;border-radius:50%!important;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--muted)!important;background:var(--soft)!important;z-index:2}
.kb .kb-x:hover{background:#E6EBF0!important;color:var(--ink)!important}
.kb-result .kb-h2{padding-right:40px}

/* building */
.kb-building{align-items:flex-start;padding-top:22px}
.kb-bgrid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:32px;align-items:start}
.kb-bhead{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:12px}
.kb-h2--b{font-size:32px;margin:0}
.kb-bhead .kb-eyebrow{margin-bottom:4px}
.kb-bname{display:flex;flex-direction:column;gap:4px;width:300px;font-size:12px;color:var(--muted);margin:0}
.kb-bname input,.kb-item__name{font-size:16px;color:var(--ink)}
.kb-bname input{height:44px;border:1.5px solid var(--line);border-radius:10px;padding:0 14px;width:100%}
.kb-bname input:focus,.kb-item__name:focus{outline:2px solid var(--blue);outline-offset:1px}
.kb-items{display:flex;flex-direction:column;gap:10px;margin-bottom:10px!important}
.kb-item{display:flex;gap:16px;align-items:flex-start;border:1.5px solid var(--line);border-radius:12px;padding:10px 14px;background:#fff}
.kb-thumb{width:58px;height:58px;flex:none;border-radius:10px;background:var(--soft);display:flex;align-items:center;justify-content:center}
.kb-item__body{flex:1;min-width:0}
.kb-item__name{display:block;width:100%;border:1px solid transparent;border-radius:6px;padding:1px 4px;margin:0 0 1px -5px;font-weight:700;font-size:17px;background:transparent}
.kb-item__name:hover{border-color:var(--line)}
.kb-item__count{font-size:14px;color:var(--blue)}
.kb-item__kit{font-size:13px;color:var(--muted)}
.kb-item__warn{font-size:13px;color:var(--warn);font-weight:600;margin-top:2px!important}
.kb-item__photo{font-size:13px;color:var(--acc);margin-top:2px!important}
.kb-item__side{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.kb-item__price{font-size:20px;font-weight:700}
.kb-item__acts{display:flex;gap:6px}
.kb-item__acts button{width:34px;height:34px;border:1.5px solid var(--line)!important;border-radius:8px!important;display:flex;align-items:center;justify-content:center;color:var(--muted)!important;font-size:14px}
.kb-item__acts button.is-del{color:#C0392B!important}
.kb-item__acts button:hover{border-color:#b9c3cf!important}
.kb-addrow{width:100%;min-height:52px;border:2px dashed #79b89a!important;border-radius:12px!important;background:var(--acc-soft)!important;color:var(--acc)!important;font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px}
.kb-total{border:1px solid var(--line);border-radius:16px;padding:22px 24px;box-shadow:0 8px 24px rgba(15,30,40,.08);background:#fff}
.kb-total__title{font-size:19px;font-weight:700}
.kb-total__meta{font-size:13px;color:var(--muted);margin:6px 0 12px!important}
.kb-total__lines li{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted);margin-bottom:8px}
.kb-total__lines li span:last-child{color:var(--ink);font-weight:600}
.kb-total__sum{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:12px;margin-top:4px}
.kb-total__sum span{font-size:18px;font-weight:700}
.kb-total__sum b{font-size:32px;font-weight:800}
.kb-total .kb-ph{margin-bottom:12px}

/* laptop heights */
@media (min-width:768px) and (max-height:700px){
  .kb-h1{font-size:40px}.kb-h2{font-size:34px;margin-bottom:10px}.kb-sub{margin-bottom:22px}.kb-choice{min-height:176px}
  .kb-count__num{font-size:56px}.kb-range{margin-bottom:30px}.kb-kitbox{padding:14px 20px}.kb-link{margin-top:18px}
  .kb-box{margin-bottom:10px!important}.kb-blue{font-size:20px}
}

/* tablet */
@media (max-width:1100px) and (min-width:768px){
  .kb-choices{grid-template-columns:repeat(2,minmax(0,340px))}
  .kb-split,.kb-split--size,.kb-split--result{gap:36px}.kb-split--size{grid-template-columns:320px minmax(0,1fr)}.kb-split--result{grid-template-columns:360px minmax(0,1fr)}
  .kb-bgrid{grid-template-columns:minmax(0,1fr) 320px}.kb-box{grid-template-columns:1fr}
}

/* phone */
@media (max-width:767px){
  .kb{--hdr:96px}
  .kb-screen{min-height:0;align-items:flex-start;padding:14px 0 28px}
  .kb-wrap{padding:0 16px}
  .kb-back,.kb-link{min-height:44px}.kb-link{margin-top:10px}.kb-toggle button{min-height:44px}.kb-stepper button{width:44px;height:44px}.kb-stepper input{height:44px}
  .kb-h1{font-size:28px}.kb-h2{font-size:24px;margin-bottom:12px}.kb-sub{font-size:15px;margin-bottom:22px}
  .kb-start{padding-top:56px}
  .kb-choices{grid-template-columns:1fr;gap:10px;width:100%}
  .kb-choice{min-height:0;flex-direction:row;flex-wrap:wrap;align-items:center;padding:14px 16px!important;column-gap:16px}
  .kb-choice__icon{width:46px;height:46px;font-size:20px;margin:0;grid-row:span 2}
  .kb-choice{display:grid;grid-template-columns:46px 1fr;row-gap:2px}
  .kb-choice__title{font-size:17px;margin:0}.kb-choice__text{font-size:13px;margin:0;grid-column:2}
  .kb-link{font-size:13px;margin-top:18px}
  .kb-split,.kb-split--size,.kb-split--result{display:flex;flex-wrap:wrap;gap:0}
  .kb-split>*{width:100%}
  .kb-copy,.kb-visual{display:contents}
  .kb-split>*,.kb-copy>*,.kb-visual>*{width:100%}
  /* photo */
  .kb-photo .kb-back{order:0}.kb-photo .kb-eyebrow{order:1}.kb-photo .kb-h2{order:2}
  .kb-photo .kb-drop{order:3;height:auto;min-height:340px;margin-bottom:22px}
  .kb-photo .kb-sub{display:none}.kb-photo .kb-tips__title{order:4}.kb-photo .kb-tips{order:5}
  .kb-tips li{font-size:15px}
  /* size */
  .kb-size .kb-back{order:0;width:auto;flex:1;margin:0}
  .kb-size .kb-toggle{order:1;width:auto;margin:0}
  .kb-d{display:none!important}.kb-m{display:inline!important}
  .kb-size .kb-art{order:2;height:310px;margin-top:12px;justify-content:flex-start}
  .kb-size .kb-drawing{width:64%;justify-content:flex-start}
  .kb-drawing--res svg{height:100%}
  .kb-userphoto{max-width:64%}
  .kb-art__count{display:flex;flex-direction:column;position:absolute;left:68%;right:0;top:50%;transform:translateY(-50%)}
  .kb-art__count b{font-size:48px;line-height:1;color:var(--blue);font-weight:700}
  .kb-art__count span{font-size:18px;font-weight:600;margin:4px 0}
  .kb-art__count small{font-size:12px;color:var(--muted)}
  .kb-caption{display:none}
  .kb-size .kb-eyebrow{order:3;margin-top:14px}.kb-size .kb-h2{order:4}
  .kb-size .kb-count{order:5;margin:0 0 4px}
  .kb-count__num,.kb-count__unit{display:none}
  .kb-stepper{margin-left:0}
  .kb-size .kb-clampnote,.kb-size .kb-maxnote{order:5}
  .kb-size .kb-range{order:6;margin-bottom:34px;padding:0 10px}
  .kb-ticks{left:24px;right:24px}
  .kb-size .kb-kitbox{order:7;padding:14px}
  .kb-size .kb-actions{order:8}
  .kb-actions .kb-btn{width:100%}
  .kb-kitbox{gap:10px}.kb-kitbox__name{font-size:16px}.kb-ptable{min-width:0;font-size:13px}.kb-ptable td+td{padding-left:12px}
  /* result (bottom sheet) */
  .kb-result{padding:0;align-items:flex-end}
  .kb-result .kb-modal{border-radius:20px 20px 0 0;max-height:92vh;padding:18px 16px 22px;max-width:none;gap:0;display:flex;flex-wrap:wrap;align-content:flex-start}
  .kb .kb-x{top:10px;right:10px}
  .kb-kitimg,.kb-result .kb-kitimg{order:1;height:120px;margin:34px 0 10px;padding:8px}
  .kb-result .kb-h2{font-size:21px;margin-bottom:6px}.kb-result .kb-blue{font-size:17px}.kb-result .kb-eyebrow{margin-bottom:4px}
  .kb-result .kb-box{grid-template-columns:1fr 1fr;gap:2px 10px;margin-bottom:8px!important}.kb-result .kb-box li{font-size:13px}
  .kb-art,.kb-result .kb-art{height:auto;flex-direction:column;align-items:center;gap:6px;padding:8px!important}
  .kb-art-hubs{grid-template-columns:repeat(var(--hc,8),auto);gap:4px}.kb-art-hubs.is-many{--hc:8}.kb-art-hub{padding:3px;gap:2px}.kb-art-hub .kb-p-hub{height:14px}.kb-art-sen{grid-template-columns:repeat(4,7px);gap:1px}.kb-art-sen img{width:7px;height:7px}.kb-art-hub small{font-size:9px}.kb-art-g p{font-size:11px;text-align:center}.kb-art-g--gw img{height:34px}.kb-art-g--hub img{height:22px}.kb-art-g--sen img{height:14px}.kb-art-icons{gap:3px}.kb-art-g--sen .kb-art-icons{max-width:none}.kb-art-badge{font-size:11px;padding:2px 7px}
  .kb-result .kb-buy{gap:8px}.kb-result .kb-link{margin-top:6px}
  .kb-result .kb-copy>*{order:2}
  .kb-result .kb-copy>.kb-back{order:0}

  .kb-box{grid-template-columns:1fr;gap:4px}
  .kb-buy{gap:12px}.kb-buy>*{width:100%}.kb-buy__btns .kb-btn{width:100%}
  /* building */
  .kb-building{padding-bottom:150px}
  .kb-bgrid{display:block}
  .kb-bhead{flex-direction:column;align-items:stretch;gap:10px}
  .kb-h2--b{font-size:24px}
  .kb-bname{width:100%;font-size:13px}
  .kb-item{padding:10px;gap:10px;flex-wrap:wrap;position:relative}
  .kb-thumb{width:46px;height:52px}
  .kb-item__body{padding-right:70px}
  .kb-item__name{font-size:15px}
  .kb-item__side{position:static;width:100%;flex-direction:row;justify-content:flex-end}
  .kb-item__price{position:absolute;top:12px;right:12px;font-size:17px}
  .kb-item__acts button{width:44px;height:44px;font-size:16px}
  .kb-addrow{font-size:16px}
  .kb-total{position:fixed;left:0;right:0;bottom:0;z-index:50;border-radius:16px 16px 0 0;padding:12px 16px 14px;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:10px;box-shadow:0 -6px 20px rgba(15,30,40,.10)}
  .kb-total__meta,.kb-total__lines{display:none}
  .kb-total__title{font-size:15px;grid-column:1;grid-row:1}
  .kb-total .kb-ph{grid-column:1;grid-row:2;margin:0}
  .kb-total__sum{grid-column:2;grid-row:1/3;border:0;padding:0;margin:0}
  .kb-total__sum span{display:none}.kb-total__sum b{font-size:26px}
  .kb-total .kb-btn{grid-column:1/3;margin-top:10px;min-height:50px}
  .kb-total .kb-error{grid-column:1/3}
}

/* Flat breaker panel (no side door): keep the residential panel clear of the circuit count on phones */
@media (max-width:767px){.kb-size .kb-drawing--res svg{height:86%}}

/* Standard panel sizes (12/20/32/42, side by side above 42). One shared scale: bigger sizes are taller. */
.kb-drawing--std svg{height:100%;width:auto;max-width:100%}
.kb-panel-label{margin:8px 0 0!important;font-size:14px;font-weight:700;color:var(--ink);text-align:center;min-height:20px}
@media (max-width:767px){
  .kb-size .kb-panel-label{order:2;width:100%;text-align:left;margin-top:6px!important}
  .kb-size .kb-drawing--std svg{height:100%}
}
@media (max-width:767px){
  .kb-size .kb-drawing--std{margin:0!important}
  .kb-size .kb-drawing--std svg{margin:0}
  /* Two or more panels: use the full width, count moves below the drawing so nothing overlaps. */
  .kb-size .kb-art:has(.kb-drawing--wide){flex-direction:column;align-items:flex-start;height:auto}
  .kb-size .kb-art:has(.kb-drawing--wide) .kb-drawing{width:100%;height:240px}
  .kb-size .kb-art:has(.kb-drawing--wide) .kb-drawing svg{width:100%;height:100%}
  .kb-size .kb-art:has(.kb-drawing--wide) .kb-art__count{position:static;transform:none;flex-direction:row;align-items:baseline;gap:8px;margin-top:8px;flex-wrap:wrap}
}
