.stepper input.stepper-count{width:32px;min-width:28px;padding:0;text-align:center;height:27px;border:0;border-radius:0;background:transparent;font-size:10px}.stepper input.stepper-count::-webkit-inner-spin-button{display:none}.factory-files a{display:inline-flex;align-items:center;gap:8px}.modal-header .icon-button{flex-shrink:0}
.stepper input.stepper-count:focus{border:1px solid var(--accent);outline:0}.stepper input.stepper-count{font-size:12px;color:var(--text);width:38px}#rib-settings{scroll-margin-top:8px}#toast .subtle-link{margin-left:10px;color:var(--accent);font-weight:600;white-space:nowrap}@media(max-width:600px){.stage-tools{gap:0!important}.stage-tools .tool-separator{display:none}.stage-tools .icon-button{width:27px;padding:4px}}
.guide-edition{min-width:0;margin:4px 0 0;padding:0;border:0}.guide-edition legend{padding:0;margin-bottom:9px;color:var(--muted);font-size:11px}.guide-edition-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.guide-edition-option{position:relative;display:block;min-width:0;cursor:pointer}.guide-edition-option>input[type=radio]{position:absolute;inset:0 auto auto 0;width:1px;height:1px;padding:0;margin:0;opacity:0}.guide-edition-card{display:flex;align-items:center;gap:11px;min-width:0;min-height:54px;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:var(--input);color:var(--muted);font-size:12px;transition:background .16s,border-color .16s,color .16s}.guide-edition-card>svg{width:21px;height:23px;flex-shrink:0}.guide-edition-card>span{overflow-wrap:anywhere}.guide-edition-check{width:15px;height:15px;flex-shrink:0;margin-left:auto;border:1px solid var(--muted);border-radius:50%;display:grid;place-items:center}.guide-edition-option:hover .guide-edition-card{background:var(--hover);color:var(--text)}.guide-edition-option>input:checked+.guide-edition-card{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--panel));color:var(--text)}.guide-edition-option>input:checked+.guide-edition-card .guide-edition-check{border-color:var(--accent)}.guide-edition-option>input:checked+.guide-edition-card .guide-edition-check:after{content:'';width:7px;height:7px;border-radius:50%;background:var(--accent)}.guide-edition-option>input:focus-visible+.guide-edition-card{outline:2px solid var(--accent);outline-offset:3px}.guide-edition-option>input:disabled+.guide-edition-card{opacity:.5;cursor:wait}[data-assembly-guides] .settings-grid>*{min-width:0}[data-assembly-guides] figure{max-width:100%}@media(max-width:480px){.guide-edition-options{grid-template-columns:minmax(0,1fr)}}

#modal[open]{display:flex;flex-direction:column;overflow:hidden}
#modal>.modal-header{flex:none}
#modal>#modal-content{min-height:0;overflow:auto;overscroll-behavior:contain}
#modal[data-window-sized]{container:dialog-window / size}
dialog[data-window-positioned]{position:fixed;inset:auto;margin:0}
.dialog-resize-handles{display:none;position:absolute;inset:0;pointer-events:none;z-index:12}
@media (any-pointer:fine){
  .dialog-resize-handles{display:block}
  #modal>.modal-header,.product-gallery header{cursor:grab;touch-action:none;user-select:none}
  #modal[data-window-dragging=move]>.modal-header,.product-gallery[data-window-dragging=move] header{cursor:grabbing}
}
.dialog-resize-handles span{position:absolute;pointer-events:auto;touch-action:none}
.dialog-resize-handles [data-window-edge=n],.dialog-resize-handles [data-window-edge=s]{left:16px;right:16px;height:7px;cursor:ns-resize}
.dialog-resize-handles [data-window-edge=e],.dialog-resize-handles [data-window-edge=w]{top:16px;bottom:16px;width:7px;cursor:ew-resize}
.dialog-resize-handles [data-window-edge=nw],.dialog-resize-handles [data-window-edge=ne],.dialog-resize-handles [data-window-edge=sw],.dialog-resize-handles [data-window-edge=se]{width:16px;height:16px}
.dialog-resize-handles [data-window-edge^=n]{top:0}
.dialog-resize-handles [data-window-edge^=s]{bottom:0}
.dialog-resize-handles [data-window-edge$=w]{left:0}
.dialog-resize-handles [data-window-edge$=e]{right:0}
.dialog-resize-handles [data-window-edge=nw],.dialog-resize-handles [data-window-edge=se]{cursor:nwse-resize}
.dialog-resize-handles [data-window-edge=ne],.dialog-resize-handles [data-window-edge=sw]{cursor:nesw-resize}
.dialog-resize-handles [data-window-edge=se]::after{content:'';position:absolute;right:3px;bottom:3px;width:9px;height:9px;background:repeating-linear-gradient(135deg,transparent 0 2px,var(--muted) 2px 3px,transparent 3px 4px);clip-path:polygon(100% 0,100% 100%,0 100%)}
.dialog-resize-handles [data-window-edge=se]:hover::after{background:repeating-linear-gradient(135deg,transparent 0 2px,var(--accent) 2px 3px,transparent 3px 4px)}

.product-gallery:has(>.dialog-resize-handles)[open]{overflow:hidden}
.product-gallery>.product-gallery-content{max-height:inherit;overflow:auto}
.product-gallery[data-window-sized]>.product-gallery-content{height:100%;grid-template-rows:auto minmax(115px,1fr) auto auto}
.product-gallery[data-window-sized] .product-gallery-stage{min-height:0}
.product-gallery[data-window-sized] figure{height:100%}
#modal .account-window-back{margin-left:auto;margin-right:8px;min-width:max-content}
#modal .account-window-back[hidden]{display:none}
.account-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:8px;margin-top:16px}
.account-menu button{justify-content:flex-start;text-align:left;min-height:40px;white-space:normal;gap:8px}
.account-menu button svg{flex-shrink:0}
.order-dxf-group{border:1px solid var(--line);border-radius:8px;padding:10px;margin:10px 0}
.order-dxf-group details{margin-top:8px}
.order-dxf-sheet{display:inline-flex;margin:4px}

.accessory-card {
  --accessory-card-inset: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: var(--accessory-card-inset);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.accessory-card[data-own=true] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.accessory-card .accessory-preview-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 0;
  text-align: start;
  background: transparent;
}
.accessory-card .accessory-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: var(--input);
  color: var(--muted);
}
/* The thumbnail cannot contribute its intrinsic size to the card layout. */
.accessory-card .accessory-image [data-accessory-thumb],
.accessory-card .accessory-image img { position: absolute; inset: 0; }
.accessory-card .accessory-image [data-accessory-thumb] { display: grid; place-items: center; }
.accessory-card .accessory-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.accessory-card .accessory-card-title { color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.accessory-card .accessory-preview-button:hover .accessory-card-title { color: var(--accent); }
.accessory-card p { font-size: 12px; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.accessory-card small { font-size: 10px; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
#modal-content .accessory-card-price { color: var(--accent); font-size: 15px; font-weight: 700; }
.accessory-card-price small { font-weight: 500; }
.accessory-card > .accessory-card-action { margin-top: auto; min-height: 36px; padding: 6px 8px; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.price-dock[data-context=accessory] #total-price,
#accessory-workspace-details .pricing-lines > div:first-child b { color: var(--accent); }

.shop-caster-detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.shop-caster-detail img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; }
.shop-caster-detail p { margin: 0 0 12px; }
.shop-caster-detail dl { margin: 0 0 12px; }
.shop-caster-detail dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.shop-caster-detail dt { color: var(--muted); }
.shop-caster-detail dd { margin: 0; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .shop-caster-detail { grid-template-columns: 1fr; gap: 12px; }
  .shop-caster-detail img { max-height: 160px; object-fit: contain; }
}
@media (max-width: 600px) {
  .accessory-card { --accessory-card-inset: 9px; }
}

.head-actions .mobile-accessories { display: none; }
@media (max-width: 800px) {
  .head-actions .mobile-accessories { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 40px; }
}
@media (max-width: 360px) {
  .header .brand > span:not(.brand-mark) { display: none; }
}
