/* Kandi's product-customizer workspace. Keep its design and order models intact. */
.top{padding:12px 20px;gap:8px;min-height:70px;background:var(--ink)}
.product-heading{display:flex;flex-direction:column;gap:3px;margin-right:auto}
.product-heading strong{font-size:16px;font-weight:650;letter-spacing:-.02em}
.product-heading>span{font-size:12px;color:var(--muted)}
.workspace-order{font:11px var(--mono);color:var(--muted);padding:0 12px}
.top>.btn{min-height:38px;justify-content:center}
.top>#addBtn{padding-inline:20px}
.work{grid-template-columns:280px minmax(0,1fr) 340px;border-top:1px solid var(--line)}
.side{padding:20px;gap:24px;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent;overscroll-behavior:contain}
.side.right{padding-top:0;gap:18px}
.side>.sec,.side>details{flex-shrink:0}
.panel-intro{border-bottom:1px solid var(--line);padding-bottom:16px}
.panel-intro .lbl{color:var(--lime)}
.panel-intro p{font-size:18px;line-height:1.3;letter-spacing:-.03em;margin:8px 0 0}
.sec h2,.dock h2{font:650 13px/1.4 var(--body);letter-spacing:0;text-transform:none}
.sec h2 small{font-size:10px}
.phrase-in input{font-size:14px;padding:10px;letter-spacing:.06em}
.phrase-in .sym{width:32px;flex-shrink:0}
.idea-section>summary{font-weight:600;font-size:13px;cursor:pointer;padding:4px 0 12px}
.idea-section>summary span{display:block;color:var(--muted);font-size:11px;font-weight:400;margin:3px 0 0 15px}
.idea-section>.sec{margin-top:4px}
.vibes{gap:5px}
.vibes button{font-size:11px;padding:5px 9px}
.feed{max-height:220px;scrollbar-width:thin}
.adult{font-size:11px;align-items:flex-start}
.name-in{font-size:12px}
.ph{padding:8px}
.center{grid-template-rows:minmax(240px,1fr) auto}
.stage{background:var(--stage)}
.stage .hud{top:16px;left:18px;right:18px;gap:6px}
.stage .hud .seg{border-radius:6px;background:var(--panel)}
.stage .hud .seg button{border-radius:4px;font-size:11px;padding:7px 10px}
.stage>#gpuChip{position:absolute;left:18px;top:62px;border:0;padding:0;font:10px var(--mono);pointer-events:none}
.stage .stats{left:18px;bottom:38px;font-size:10px;gap:10px}
.stage .tip{left:18px;right:auto;bottom:16px;font-size:11px;color:var(--muted)}
.dock{padding:16px 18px;gap:8px}
.dock-head h2{margin-right:4px}
.dock-head .hint{font-size:11px}
.strand{min-height:60px}
.dock-foot{gap:10px;row-gap:8px}
.dock-foot .lbl{color:var(--muted)}
.tabs{position:sticky;top:0;z-index:5;background:var(--panel);padding-top:12px;flex-shrink:0}
.tabs button{font:600 12px var(--body);letter-spacing:0;text-transform:none;min-height:40px}
.tabs button[aria-selected=true]{color:var(--lime)}
.detail{padding:12px;background:var(--ink);border:1px solid var(--line);border-radius:8px}
.grid{grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:7px}
.filters button{font-size:11px}
#pOrder>.sec>.hint{font-size:12px;line-height:1.6}
#pOrder .total{padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#pOrder .lab-booth-tools{padding:16px 0 0}
#pOrder .lab-booth-actions{position:static}
#pOrder .lab-booth-actions button,#pOrder .lab-booth-actions a{width:100%}
#pOrder .lab-save-status:empty{display:none}
.ci{grid-template-columns:minmax(0,1fr) auto auto;gap:10px}
.ci-t{grid-column:1/-1}
.ci-t b{white-space:normal;overflow-wrap:anywhere}
.order-quantity{flex-direction:row;justify-content:space-between}
.ci .x{min-width:32px;min-height:38px}
@media(min-width:1081px){html,body,.app{overflow:hidden}}
/* The flat preview keeps the same work area instead of leaving an empty canvas gap. */
.lab-2d .center{grid-template-rows:minmax(240px,1fr) auto}
.lab-2d .stage{max-height:none}
.lab-2d .stage .seg{display:none}
.lab-2d .stage .stats{bottom:16px}
#preview3dBtn{display:none;font-size:11px;min-height:32px}
.lab-2d #preview3dBtn{display:inline-flex}
@media(min-width:1081px) and (max-width:1250px){
 .work{grid-template-columns:250px minmax(0,1fr) 310px}
 .side{padding-inline:16px}
 .workspace-order{display:none}
 .stage .hud .seg button{padding-inline:7px}
}
@media(min-width:1081px) and (max-height:760px){
 .top{min-height:60px;padding-block:8px}
 .side{gap:16px;padding-top:14px}
 .side.right{padding-top:0}
 .panel-intro{display:none}
 .feed{max-height:160px}
 .dock{padding-block:10px}
}
@media(max-width:1080px){
 html,body{height:auto}
 .app{min-height:0}
 .work{grid-template-columns:minmax(0,1fr)}
 .center{grid-template-rows:auto auto}
 .stage{height:var(--kandi-stage-height,420px);min-height:320px}
 .side{overscroll-behavior:auto}
 .workspace-order{display:none}
 .top{gap:8px;padding:12px 16px}
 .product-heading{flex:1 1 100%;margin-bottom:4px}
 .top>#addBtn{margin-left:auto}
 .side.right{padding-top:0}
 .tabs{position:relative}
 .feed{max-height:240px}
 .lab-2d .center{grid-template-rows:280px auto!important}
 .lab-2d .stage{height:280px!important;min-height:280px!important}
}
@media(max-width:520px){
 .top>.btn{font-size:12px;min-height:40px;padding-inline:12px}
 .top>#addBtn{padding-inline:14px}
 .product-heading>span{font-size:11px}
 .stage .hud{left:12px;right:12px}
 .stage .hud .seg button{padding-inline:7px}
 .stage .hud .grow{display:none}
 .stage .hud{justify-content:space-between}
 .dock-head{gap:6px}
 .dock-head .hint{flex-basis:100%;order:1}
 .dock-head .grow{display:none}
 #clearPaint{margin-left:auto}
 .side{padding:18px 16px}
 .sym,.filters button,.vibes button{min-height:36px}
}

/* Shape and finish buttons disclose their matching bead tray. */
.tray-drawer{border-top:1px solid var(--line);padding-top:12px}
#shapeF button::after,#finishF button::after{content:" +";opacity:.6}
#shapeF button[aria-expanded=true][aria-pressed=true]::after,#finishF button[aria-expanded=true][aria-pressed=true]::after{content:" −"}

/* Phone chrome is intentionally smaller than the desktop product toolbar. */
.mobile-product-terms{display:none}
@media(max-width:600px){
 .top{min-height:56px;padding:6px 12px;gap:6px}
 .top>.product-heading{display:none}
 .top>.btn{min-height:44px;font-size:12px;padding:8px 12px;justify-content:center}
 .top>#addBtn{flex:1;margin-left:0;padding-inline:10px}
 .top>#cancelEdit:not([hidden]){order:5;flex-basis:100%}
 .stage>#gpuChip{display:none}
 .mobile-product-terms{display:block;position:absolute;top:62px;left:12px;font:11px/1.4 var(--body);color:var(--muted);pointer-events:none}
}
@media(max-width:600px){
 .stage .hud{gap:4px;flex-wrap:nowrap}
 .stage .hud .btn.sm{font-size:10px;padding:7px 6px;white-space:nowrap}
 .stage .hud .seg button{font-size:10px;padding:7px 6px;white-space:nowrap}
}
