*{box-sizing:border-box}body{margin:0;background:#0b121c;color:#f3f6fb;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}a{color:#ffc266;text-underline-offset:3px}.shell{max-width:1100px;margin:auto;padding-left:24px;padding-right:24px}.site-header{background:#101a29;border-bottom:1px solid #27364a}.nav{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:76px}.brand{text-decoration:none;display:inline-flex;align-items:center;gap:12px;font-size:1.45rem;font-weight:800;color:#fff;letter-spacing:.01em}.nav-actions{display:flex;flex-wrap:wrap;gap:24px}.nav-actions a{color:#e2e9f4;text-decoration:none}.nav-actions a:hover{text-decoration:underline}.breadcrumbs{font-size:.87rem;color:#9eafc7;padding-top:32px;padding-bottom:12px}.hero{display:grid;grid-template-columns:1.5fr .85fr;gap:42px;align-items:center;padding:28px 0 40px}.kicker{display:inline-block;color:#ffc46d;letter-spacing:.06em;text-transform:uppercase;font-weight:700;font-size:.76rem}.hero h1{font-size:clamp(2rem,4.5vw,3.35rem);line-height:1.14;letter-spacing:-.025em;margin:14px 0 18px}.lead{color:#c5d1df;font-size:1.1rem;max-width:670px}.format-list{display:flex;gap:8px;flex-wrap:wrap;margin:25px 0}.format-list span{padding:6px 12px;border:1px solid #3b5269;border-radius:9px;font-size:.84rem;color:#d6e5f4}.purchase{padding-top:12px}.price-line{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}.price{font-size:2.2rem;font-weight:800}.price-note{font-size:.87rem;color:#b1c1d5}.buy{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:#ffbd54;border-radius:12px;color:#142033;text-decoration:none;font-weight:800;padding:14px 26px;margin-top:15px;min-height:50px}.buy:hover{background:#ffd080}.fine{font-size:.82rem;color:#a5b6c7;max-width:510px}.visual{background:linear-gradient(145deg,#15273b,#132032);border:1px solid #30455e;border-radius:22px;text-align:center;padding:54px 20px;display:flex;flex-direction:column;align-items:center;gap:9px}.visual p{color:#bac9d9;margin:0}.visual strong{font-size:3.6rem;line-height:1.1;color:#ffc166}.visual span{color:#c6d4e2}.section{padding:28px 0}.section h2,.end-cta h2{font-size:clamp(1.45rem,2.5vw,2rem);line-height:1.22;letter-spacing:-.02em;margin:0 0 22px}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.panel{background:#142130;border:1px solid #2a3e54;border-radius:18px;padding:24px}.panel h3{margin:0 0 8px;font-size:1.14rem}.panel p{margin:0;color:#c1ccda}.two-col{display:grid;grid-template-columns:1.1fr 1fr;gap:25px}.two-col>div:first-child p{color:#d1dce7}.muted-panel h2{margin-bottom:16px}.muted-panel p+p{margin-top:12px}.section details{border:1px solid #2c4158;border-radius:12px;padding:15px 19px;margin-bottom:10px;background:#111e2c}.section summary{cursor:pointer;font-weight:650}.section details p{color:#c2d0e0}.end-cta{margin:22px 0 65px;padding:26px;background:#18293d;border:1px solid #375169;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:22px}.end-cta h2{margin-bottom:7px}.end-cta p{margin:0;color:#c8d6e3}.end-cta .buy{flex-shrink:0;margin:0}.footer{border-top:1px solid #2c3a48;background:#101927;padding:25px 0}.footer>.shell{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap;color:#a9b9ca;font-size:.87rem}.footer nav{display:flex;flex-wrap:wrap;gap:15px}@media(max-width:780px){.hero{grid-template-columns:1fr;gap:20px}.visual{padding:24px;flex-direction:row;justify-content:space-between}.visual strong{font-size:2rem}.visual img{width:55px;height:55px}.features{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.end-cta{flex-direction:column;align-items:flex-start}.nav-actions{gap:12px}.nav-actions a{font-size:.86rem}}@media(max-width:410px){.shell{padding-left:17px;padding-right:17px}.nav{align-items:flex-start;flex-direction:column;padding-top:14px;padding-bottom:14px;gap:6px}.hero h1{font-size:2rem}.buy{width:100%}.visual{gap:12px;flex-wrap:wrap;justify-content:center}.visual span{display:none}}

.visual .visual-product{display:block;max-width:100%;width:100%;height:auto;max-height:275px;object-fit:contain;border-radius:12px;background:#0d1b2a}
@media(max-width:780px){.visual .visual-product{max-width:210px;max-height:180px;width:60%;height:auto}}

/* Universal project landing details */
.visual strong.visual-headline{font-size:2.4rem;color:#ffbd54}
.product-description{color:#ccdae6;line-height:1.75;overflow-wrap:anywhere}
.product-description p{margin:0 0 15px}
.product-description ul{padding-left:22px;margin:7px 0 18px}
.product-description li{margin-bottom:8px}
.seo-home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin:23px 0}
.seo-home-card{padding:16px;display:flex;flex-direction:column;gap:7px;background:#162739;border:1px solid #36516a;border-radius:15px;text-decoration:none;color:#f3f6fb}
.seo-home-card:hover{border-color:#ffbd54}
.seo-home-card img{width:100%;height:170px;object-fit:contain;background:#102134;border-radius:8px}
.seo-home-card span{font-size:13px;color:#c0d0e0}
.dynamic-desc{white-space:pre-line;color:#d5dfe9;overflow-wrap:anywhere}


/* CADSTEEL: large square photo FIRST on mobile product landing pages.
   Applied to all static SEO pages and dynamically generated product pages. */
@media (max-width: 780px) {
  .breadcrumbs {padding-top:16px;padding-bottom:10px;line-height:1.45}
  .breadcrumbs .breadcrumb-current,.breadcrumbs .breadcrumb-separator {display:none}
  .hero {display:flex;flex-direction:column;gap:18px;align-items:stretch;padding:4px 0 30px}
  .hero .visual {
    order:-1;
    box-sizing:border-box;
    width:100%;
    aspect-ratio:1 / 1;
    padding:12px;
    margin:0;
    border:1px solid #3a5068;
    border-radius:18px;
    background:linear-gradient(145deg,#192c40,#112030);
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
  }
  .hero .visual .visual-product {
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:contain;
    object-position:center;
    background:transparent;
    border-radius:12px;
  }
  .hero .visual > img:not(.visual-product) {width:48%;height:48%;object-fit:contain}
  .hero .visual > p,.hero .visual > strong,.hero .visual > span {display:none}
  .hero .hero-copy {min-width:0;order:0}
  .hero .hero-copy h1 {margin:12px 0 14px;font-size:clamp(1.8rem,8vw,2.5rem);line-height:1.16}
  .hero .hero-copy .lead {margin:0;font-size:1rem;line-height:1.6}
  .hero .format-list {margin:18px 0 14px}
}
@media(max-width:410px) {
  .hero .visual {border-radius:16px;padding:10px}
  .hero {gap:15px;padding-bottom:24px}
}

/* Buttons on indexed product pages add straight to the same cart as the shop. */
button.buy{font:inherit;font-weight:800;border:0;cursor:pointer;text-align:center}
button.buy:focus-visible{outline:3px solid #f5e1b7;outline-offset:3px}
button.buy:disabled{opacity:.65;cursor:not-allowed}
.seo-cart-error{display:block;margin:10px 0;color:#ffd4c3;font-size:.9rem}

/* Live Supabase product image gallery. Shared by all /projects/... pages. */
.hero .visual {min-width:0;padding:18px;align-items:stretch}
.seo-gallery{display:flex;flex-direction:column;gap:10px;width:100%;min-width:0}
.seo-gallery-initial{min-height:230px;aspect-ratio:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#b8c9da;background:#0e1a28;border-radius:13px}
.seo-gallery-initial img{width:78px;height:78px}
.seo-gallery-initial span{font-size:.9rem}
.seo-gallery-stage{position:relative;isolation:isolate;overflow:hidden;width:100%;aspect-ratio:1/1;border:1px solid #304961;border-radius:14px;background:#0c1825}
.seo-gallery-open{display:block;cursor:zoom-in;width:100%;height:100%;padding:8px;border:0;background:transparent;touch-action:pan-y}
.hero .visual .seo-gallery-open .seo-gallery-image{width:100%;height:100%;max-width:none;max-height:none;display:block;object-fit:contain;object-position:center;border-radius:9px;background:transparent}
.seo-gallery-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:40px;height:48px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #5b7089;background:#101e2dd9;color:#fff;border-radius:10px;font-size:2.2rem;line-height:1;cursor:pointer}
.seo-gallery-arrow:hover,.seo-gallery-modal-arrow:hover{background:#314b67}
.seo-gallery-prev{left:9px}.seo-gallery-next{right:9px}
.hero .visual .seo-gallery-count{display:block;position:absolute;bottom:12px;right:12px;z-index:2;background:#06111bdb;border:1px solid #3f536a;padding:2px 10px;border-radius:999px;color:#e9f4ff;font-weight:700;font-size:.8rem;line-height:1.5}
.seo-gallery-thumbnails,.seo-gallery-modal-thumbnails{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;max-width:100%;width:100%;padding:3px 2px 9px;scrollbar-width:thin;scrollbar-color:#5d7894 transparent;touch-action:pan-x}
.seo-gallery-thumb{padding:2px;flex:0 0 73px;width:73px;height:73px;border:2px solid #40546c;border-radius:10px;background:#0d1b2a;scroll-snap-align:center;cursor:pointer;overflow:hidden}
.seo-gallery-thumb:hover{border-color:#d8a75c}
.seo-gallery-thumb.selected{border-color:#ffbd54;box-shadow:0 0 0 1px #ffbd54}
.hero .visual .seo-gallery-thumb img,.seo-gallery-modal-thumbnails .seo-gallery-thumb img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;border-radius:6px}
.hero .visual .seo-gallery-hint{margin:0;text-align:center;font-size:.78rem;color:#aebfd2}
.hero .visual .seo-gallery-status{margin:0;text-align:center;font-size:.92rem;color:#c0d0e0}
.seo-gallery-retry{margin-left:8px;border:1px solid #dca852;background:transparent;color:#ffcb73;border-radius:7px;padding:4px 10px;cursor:pointer}
.seo-gallery-dialog{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#07101af7;color:#fff;overflow:hidden}
.seo-gallery-dialog::backdrop{background:rgba(0,0,0,.88)}
.seo-gallery-dialog[open]{display:block}
.seo-gallery-modal{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;max-height:100%;padding:12px 18px;gap:12px}
.seo-gallery-modal-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#e2edf7;font-size:.93rem}
.seo-gallery-close{padding:9px 15px;border:1px solid #4b5b6b;border-radius:9px;background:#1a2b3e;color:#fff;font-size:1.1rem;cursor:pointer}
.seo-gallery-modal-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;flex:1;touch-action:pan-y}
.seo-gallery-modal-image{display:block;max-width:100%;max-height:100%;height:100%;width:100%;object-fit:contain;user-select:none;-webkit-user-select:none}
.seo-gallery-modal-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;border:1px solid #465f75;border-radius:12px;background:#152536d9;color:#fff;font-size:2.7rem;cursor:pointer;line-height:1;padding:4px 14px 8px}
.seo-gallery-modal-prev{left:0}.seo-gallery-modal-next{right:0}
.seo-gallery-modal-thumbnails{justify-content:center;flex-shrink:0;min-height:0}
.seo-gallery-dialog button:focus-visible,.seo-gallery button:focus-visible{outline:3px solid #ffbd54;outline-offset:2px}
[hidden]{display:none!important}
@media(max-width:780px){
  .hero .visual{order:-1;aspect-ratio:auto;height:auto;overflow:visible;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:10px;gap:0}
  .hero .visual .seo-gallery{width:100%;height:auto;display:flex;gap:9px}
  .hero .visual .seo-gallery-stage{width:100%;aspect-ratio:1/1}
  .hero .visual .seo-gallery-open .seo-gallery-image{width:100%;height:100%;max-width:none;max-height:none}
  .hero .visual .seo-gallery-count{display:block}
  .hero .visual .seo-gallery-initial{width:100%;aspect-ratio:1/1}
  .hero .visual .seo-gallery-initial img{width:78px;height:78px}
  .hero .visual .seo-gallery-initial span{display:block}
  .hero .visual .seo-gallery-thumb img{width:100%;height:100%;max-width:none;max-height:none}
  .hero .visual .seo-gallery-status,.hero .visual .seo-gallery-hint{display:block}
  .seo-gallery-arrow{width:34px;height:44px;font-size:2rem}
  .seo-gallery-thumb{flex-basis:65px;width:65px;height:65px}
  .seo-gallery-modal{padding:10px;gap:10px}
  .seo-gallery-modal-arrow{font-size:2rem;padding:4px 10px}
  .seo-gallery-modal-thumbnails{justify-content:flex-start}
}
.seo-gallery:not(.seo-gallery-loaded) .seo-gallery-open{cursor:default}
.seo-gallery:not(.seo-gallery-loaded) .seo-gallery-open img{width:25%!important;height:25%!important;max-width:96px!important;max-height:96px!important;margin:auto}

/* CADSTEEL fullscreen zoom for the current product images */
.seo-gallery-modal-bar{flex-wrap:wrap;min-height:46px}
.seo-gallery-modal-count{font-weight:750;font-variant-numeric:tabular-nums}
.seo-gallery-zoom-tools{display:flex;align-items:center;justify-content:center;gap:7px;margin-left:auto}
.seo-gallery-zoom-btn{display:grid;place-items:center;min-width:42px;height:42px;padding:0 10px;background:#1b2e42;border:1px solid #526980;color:#fff;border-radius:9px;font-size:23px;font-weight:750;cursor:pointer;line-height:1}
.seo-gallery-zoom-btn:hover:not(:disabled){background:#344d67;border-color:#ffc266}
.seo-gallery-zoom-btn:disabled{opacity:.45;cursor:default}
.seo-gallery-zoom-reset{min-width:64px;font-size:13px;font-variant-numeric:tabular-nums}
.seo-gallery-modal-stage{overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:zoom-in;background:#07111d}
.seo-gallery-modal-stage.zoomed{cursor:grab}
.seo-gallery-modal-stage.zoomed:active{cursor:grabbing}
.seo-gallery-modal-image{pointer-events:none;transform-origin:center center;will-change:transform;max-width:none;max-height:none}
.seo-gallery-modal-help{margin:0;color:#b9c9d9;text-align:center;font-size:12px;line-height:1.35}
.seo-gallery-zoom-btn:focus-visible{outline:3px solid #ffbd54;outline-offset:2px}
@media(max-width:780px){
 .seo-gallery-modal{padding:8px;gap:8px}
 .seo-gallery-modal-bar{gap:7px}
 .seo-gallery-zoom-tools{gap:4px}
 .seo-gallery-zoom-btn{min-width:35px;height:36px;font-size:21px;padding:0 6px}
 .seo-gallery-zoom-reset{min-width:52px;font-size:12px}
 .seo-gallery-close{padding:7px 10px;font-size:15px}
 .seo-gallery-modal-help{font-size:10px}
}
@media(max-width:345px){.seo-gallery-modal-help{display:none}}
/* Safe file manifest, specifications, reviews, optional 3D demonstration */
.extras-section {scroll-margin-top:25px}
.extras-subtext{color:#b4c0cd;line-height:1.65}
.extras-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.extras-file{border:1px solid #405167;background:#152535;padding:13px 14px;border-radius:11px;display:flex;align-items:center;gap:12px;overflow-wrap:anywhere;color:#ecf0f5}
.extras-extension{background:#304657;color:#ffbd68;border:1px solid #5b7185;font-weight:800;font-size:12px;border-radius:6px;padding:6px;min-width:46px;text-align:center}
.extras-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;background:#152535;border:1px solid #374b5f;border-radius:14px;padding:10px 18px}
.extras-specs div{padding:12px 2px;border-bottom:1px solid #374b5f;display:flex;justify-content:space-between;gap:10px}
.extras-specs dt{color:#aabaca}.extras-specs dd{margin:0;text-align:right;font-weight:650}
.extras-reviews{display:grid;gap:12px}.extras-review{background:#152535;padding:16px;border:1px solid #374b5f;border-radius:11px}.extras-review strong{color:#ffbe69}.extras-review p{margin:9px 0}.extras-review small{color:#9aafc2}
.extras-link{display:inline-block;margin-top:16px;color:#ffbb62;font-weight:700}
.extras-review-cta{margin-top:16px}
@media(max-width:620px){.extras-file-grid,.extras-specs{grid-template-columns:1fr}.extras-file{font-size:13px}}
.buy-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.buy-actions .buy{margin-top:12px}
.buy-secondary{background:transparent;border:1px solid #d6a153!important;color:#ffd093}.buy-secondary:hover{background:#304054}
.seo-home-links{padding:20px 0 45px}
@media(max-width:620px){.buy-actions,.buy-actions .buy{width:100%}}
.guide-article{max-width:940px;margin:0 auto}.guide-article h1{font-size:clamp(29px,4vw,44px);line-height:1.15}.guide-article .lead{margin:20px 0 30px}.guide-section{margin:16px 0}.guide-section h2{margin:0 0 10px}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.guide-grid a{color:#ffc574}.guide-grid p{margin:12px 0}
@media(max-width:650px){.guide-grid{grid-template-columns:1fr}}

/* CADSTEEL GLB preview diagnostics */
.cadsteel-3d-status{color:#d8e7f3;background:#183047;border:1px solid #35516d;padding:11px 14px;border-radius:10px;font-size:14px;line-height:1.5}
.cadsteel-3d-holder{width:100%;max-width:640px;min-height:20px;margin:14px auto}
.cadsteel-model-element{display:block;width:100%;height:100%;max-height:none;background:#142332;border-radius:inherit}
.cadsteel-3d-download{color:#ffcf7e;text-decoration:underline}

/* 3D viewer stable placeholder: visible even if public metadata fails. */
.cadsteel-3d-section{background:linear-gradient(135deg,#122132,#1a3043);border:1px solid #38546c;border-radius:16px;padding:20px;margin:24px 0;}
.cadsteel-3d-status{padding:10px 12px;background:#263a4b;border-radius:8px;color:#e2e9f1;line-height:1.5;}
.cadsteel-3d-holder{min-height:240px;}
.cadsteel-3d-download{color:#ffbe6b;font-weight:650;}
.cadsteel-3d-download:hover{text-decoration:underline;}
@media(max-width:620px){.cadsteel-3d-section{padding:14px;margin:16px 0}.cadsteel-3d-holder{min-height:220px}}


/* Square 3D view on desktop and mobile + native fullscreen, iOS-safe fallback. */
.cadsteel-3d-stage{
  position:relative;box-sizing:border-box;display:block;width:100%;aspect-ratio:1/1;
  border-radius:14px;overflow:hidden;background:#142332;border:1px solid #35516d;
}
.cadsteel-3d-stage .cadsteel-model-element{
  display:block!important;width:100%!important;height:100%!important;
  min-height:0!important;max-height:none!important;border-radius:inherit;
}
.cadsteel-3d-fullscreen-btn{
  position:absolute;z-index:15;top:12px;right:12px;
  min-height:44px;padding:9px 14px;border-radius:10px;
  border:1px solid rgba(212,230,245,.58);
  background:rgba(8,22,36,.92);color:#fff;
  font-family:inherit;font-size:14px;font-weight:700;line-height:1.3;cursor:pointer;
  box-shadow:0 3px 15px rgba(0,0,0,.2);
  touch-action:manipulation;
}
.cadsteel-3d-fullscreen-btn:hover{background:#2b4760;color:#fff}
.cadsteel-3d-fullscreen-btn:focus-visible{outline:3px solid #ffc575;outline-offset:3px}
.cadsteel-3d-stage:fullscreen,
.cadsteel-3d-stage.cadsteel-3d-fallback{
  box-sizing:border-box;width:100vw!important;height:100vh!important;height:100dvh!important;
  max-width:none!important;max-height:none!important;aspect-ratio:auto!important;
  border:none!important;border-radius:0!important;background:#101c29!important;
}
.cadsteel-3d-stage:fullscreen::backdrop{background:#101c29}
.cadsteel-3d-stage.cadsteel-3d-fallback{position:fixed!important;inset:0;z-index:2147483000}
.cadsteel-3d-stage:fullscreen .cadsteel-model-element,
.cadsteel-3d-stage.cadsteel-3d-fallback .cadsteel-model-element{border-radius:0!important}
.cadsteel-3d-stage:fullscreen .cadsteel-3d-fullscreen-btn,
.cadsteel-3d-stage.cadsteel-3d-fallback .cadsteel-3d-fullscreen-btn{
  top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));
}
@media(max-width:620px){
  .cadsteel-3d-fullscreen-btn{top:8px;right:8px;padding:8px 11px;min-height:42px;font-size:13px}
}

/* CADSTEEL: navigation built from verified Wordstat topics, no keyword stuffing */
.seo-directions{margin:24px 0 28px;padding:24px;border:1px solid #31506b;border-radius:16px;background:linear-gradient(130deg,#152b3d,#101a28)}
.seo-directions h2{margin:0 0 14px}
.seo-direction-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.seo-direction-list a{display:block;border:1px solid #33526b;background:#1c3346;padding:13px;border-radius:9px;color:#eaf4ff;line-height:1.35;text-decoration:none}
.seo-direction-list a:hover,.seo-context-links a:hover{color:#ffba5e;text-decoration:underline}
.seo-context-links{border-top:1px solid #28465a;padding-top:20px}
.seo-context-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:16px}
.seo-context-columns h3{margin:10px 0;font-size:1.04rem}
.seo-context-columns ul{padding-left:20px;line-height:1.8}
.seo-context-links a,.seo-guide-product a{color:#ffbb67}
@media(max-width:600px){.seo-directions{padding:16px}.seo-direction-list{grid-template-columns:1fr}}

/* HDRI is used for lighting only; keep the original CADSTEEL viewer background. */
.cadsteel-3d-stage,.cadsteel-model-element{background-color:#142332}
.cadsteel-model-element{--poster-color:#142332}


/* HDRI preset selector: stays inside the stage, including fullscreen. */
.cadsteel-3d-lighting-control{
  position:absolute;z-index:16;top:12px;left:12px;box-sizing:border-box;
  display:flex;flex-direction:column;gap:5px;width:232px;max-width:calc(100% - 168px);
  padding:9px 11px;border:1px solid rgba(212,230,245,.5);border-radius:10px;
  background:rgba(8,22,36,.94);color:#fff;box-shadow:0 3px 15px rgba(0,0,0,.24);
}
.cadsteel-3d-lighting-control label{font-size:12px;font-weight:700;line-height:1.25;color:#dce9f4}
.cadsteel-3d-lighting-control select{
  box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:7px 30px 7px 9px;
  border:1px solid #58748c;border-radius:7px;background:#1b3449;color:#fff;
  font-family:inherit;font-size:13px;font-weight:600;line-height:1.25;cursor:pointer;outline-offset:2px;
}
.cadsteel-3d-lighting-control select:focus-visible{outline:3px solid #ffc575}
.cadsteel-3d-lighting-control option{background:#1b3449;color:#fff}
@media(max-width:620px){
  .cadsteel-3d-lighting-control{top:8px;left:8px;width:220px;max-width:calc(100% - 154px);padding:7px 8px;gap:4px}
  .cadsteel-3d-lighting-control label{font-size:11px}
  .cadsteel-3d-lighting-control select{min-height:38px;font-size:12px}
  .cadsteel-3d-fullscreen-btn{top:8px;right:8px;padding:8px 10px;min-height:42px;font-size:12px}
}

/* Touch navigation: toolbar is separate from the unobstructed square viewport. */
.cadsteel-3d-stage{display:flex;flex-direction:column;aspect-ratio:auto}
.cadsteel-3d-toolbar{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:10px;padding:10px;background:#102030;flex:0 0 auto;
}
.cadsteel-3d-toolbar .cadsteel-3d-lighting-control{
  position:static;z-index:auto;width:auto;max-width:none;min-width:0;
  flex:1 1 150px;box-shadow:none;
}
.cadsteel-3d-toolbar .cadsteel-3d-fullscreen-btn{
  position:static;z-index:auto;flex:0 1 auto;white-space:normal;
}
.cadsteel-3d-viewport{
  position:relative;width:100%;aspect-ratio:1/1;flex:0 0 auto;min-height:0;
  overflow:hidden;touch-action:none;overscroll-behavior:contain;
}
.cadsteel-3d-viewport .cadsteel-model-element{
  position:absolute;inset:0;border-radius:0!important;touch-action:none;
}
.cadsteel-3d-stage:fullscreen .cadsteel-3d-viewport,
.cadsteel-3d-stage.cadsteel-3d-fallback .cadsteel-3d-viewport{
  flex:1 1 0;aspect-ratio:auto;
}
.cadsteel-3d-stage:fullscreen .cadsteel-3d-toolbar,
.cadsteel-3d-stage.cadsteel-3d-fallback .cadsteel-3d-toolbar{
  padding-top:max(10px,env(safe-area-inset-top));
  padding-left:max(10px,env(safe-area-inset-left));
  padding-right:max(10px,env(safe-area-inset-right));
}
