@import url("base.css");

.app { height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--stage-b)); z-index: 5;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-logo { display: block; height: 36px; width: auto; max-width: 170px; object-fit: contain; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--display); font-size: 19px; letter-spacing: .06em; font-style: italic; }
.brand-text small { font-size: 9.5px; letter-spacing: .5em; color: var(--muted); margin-top: 4px; font-weight: 700; position: relative; padding-left: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

.stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, var(--stage-a) 0%, var(--stage-b) 55%, var(--stage-b) 100%);
}
.stage::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(0deg, rgba(var(--accent-rgb), .08), transparent); pointer-events: none;
}
#cv, #gl, #ov { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#cv, #gl { cursor: grab; }
#ov { pointer-events: none; }
#cv.grabbing, #gl.grabbing { cursor: grabbing; }
#cv.move, #gl.move { cursor: move; }
#cv.rotate, #cv.scale, #gl.rotate, #gl.scale { cursor: crosshair; }
.loading3d { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; gap: 12px; align-items: center; color: var(--silver); background: rgba(var(--panel-rgb), .9); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 18px; font-weight: 600; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--red-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.floating { box-shadow: var(--shadow); background: rgba(var(--panel-rgb), .88); backdrop-filter: blur(10px); }
.layouts { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 20px); overflow-x: auto; scrollbar-width: none; }
.layouts button { white-space: nowrap; }
.zoom { position: absolute; top: 16px; left: 16px; z-index: 3; display: grid; gap: 2px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }

.empty {
  position: absolute; left: 50%; top: 72px; transform: translateX(-50%); pointer-events: none; z-index: 2;
  display: flex; gap: 12px; align-items: center; color: var(--silver); width: max-content; max-width: calc(100% - 24px);
  background: rgba(var(--panel-rgb), .86); border: 1px solid var(--line); border-radius: 14px; padding: 8px 16px 8px 8px;
  opacity: 0; transition: opacity .3s; text-align: left; font-size: 13px; line-height: 1.35;
}
.empty.show { opacity: 1; }
.empty img { flex: none; width: 40px; height: 40px; border-radius: 9px; object-fit: contain; }
.empty:has(> img[hidden]) { padding-left: 16px; }
.empty span { color: var(--muted); font-size: 12px; }
@media (min-width: 761px) { body.panel-open #cv, body.panel-open #gl, body.panel-open #ov { width: calc(100% - 380px); } }

.dock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; display: grid; gap: 10px; justify-items: center; max-width: calc(100% - 16px); }
.dock .seg.views button { padding: 7px 14px; }
.dock .tools button { padding: 10px 18px; }
.dock .tools em { font-style: normal; font-size: 10.5px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; background: var(--red); color: var(--on-primary); border-radius: 9px; }
.dock .tools button.on em { background: var(--bg); color: var(--text); }
.estimate { font-size: 12px; color: var(--silver); background: rgba(var(--panel-rgb), .85); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; }
.estimate b { color: var(--hi); }

.panel {
  position: absolute; z-index: 4; right: 16px; top: 74px; bottom: 16px; width: 348px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; animation: panel-in .22s ease both;
}
@keyframes panel-in { from { opacity: 0; transform: translateX(12px); } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 16px 10px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 17px; }
.panel-head p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.panel-body { padding: 18px 20px 22px; overflow-y: auto; flex: 1; }
.panel-body h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; font-weight: 700; display: flex; justify-content: space-between; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.sw {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); padding: 0; position: relative;
  box-shadow: inset 0 0 0 3px var(--panel), inset 0 -8px 12px rgba(0, 0, 0, .25); transition: transform .12s;
}
.sw:hover { transform: scale(1.06); }
.sw.on { border-color: var(--red-2); }
.sw.on::after { content: ""; position: absolute; right: -3px; top: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat; }
.sw-custom { background: conic-gradient(#d3202a, #e8a317, #2fbf71, #1c3f8f, #8a2be2, #d3202a); }
.sw-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.color-name { font-size: 12px; color: var(--silver); margin: -8px 0 16px; }

.drop-zone {
  border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 22px 14px; text-align: center; background: var(--bg-2);
  display: grid; gap: 8px; justify-items: center; width: 100%; color: var(--silver); transition: border-color .15s, background .15s;
}
.drop-zone:hover { border-color: var(--red); background: var(--red-soft); }
.drop-zone .i { width: 26px; height: 26px; font-size: 22px; color: var(--red-2); }
.drop-zone b { font-size: 14px; }
.drop-zone span { font-size: 12px; color: var(--muted); }
.stack { display: grid; gap: 10px; margin-bottom: 18px; }
.piece-switch { margin-bottom: 18px; }
.note { font-size: 12px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.note b { color: var(--silver); }

.layer {
  display: grid; grid-template-columns: 16px 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 8px 8px 6px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--bg-2); cursor: pointer;
}
.layer.sel { border-color: var(--red); background: var(--red-soft); }
.layer.drag-over { border-color: var(--silver); }
.layer.dim { opacity: .55; }
.layer .grip { color: var(--line-2); cursor: grab; }
.layer .thumb {
  width: 44px; height: 44px; border-radius: 9px; background: var(--bg-2) center/contain no-repeat; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--silver); font-weight: 700; font-family: Georgia, serif; font-size: 20px; overflow: hidden;
}
.layer .meta { min-width: 0; }
.layer .meta b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer .meta small { color: var(--muted); font-size: 11.5px; }
.layer .acts { display: flex; }
.layer .acts .icon-btn { width: 30px; height: 30px; }
.layer .acts .icon-btn .i { width: 16px; height: 16px; font-size: 13px; }
.empty-list { color: var(--muted); text-align: center; padding: 26px 8px; border: 1px dashed var(--line-2); border-radius: 12px; }

.slider-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 14px; align-items: center; }
.slider-row label { font-size: 12px; color: var(--silver); font-weight: 600; }
.slider-row output { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider-row input { grid-column: 1 / -1; }
.finish { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.finish button {
  border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 12px; padding: 10px 6px; font-weight: 600; font-size: 12.5px;
  display: grid; gap: 7px; justify-items: center; color: var(--silver);
}
.finish button.on { border-color: var(--red); background: var(--red-soft); color: var(--hi); }
.finish .ft { width: 38px; height: 26px; border-radius: 6px; background: #3a3a42; position: relative; overflow: hidden; }
.finish .ft.emb { background: repeating-linear-gradient(32deg, #d8d8dc 0 2px, #555 2px 4px, #bfbfc4 4px 6px); }
.finish .ft.vin { background: linear-gradient(135deg, #fff 0, #8d8d94 40%, #fff 55%, #555 100%); }
.finish .ft.org { background: #bdbdc4; }
.tools-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.style-btns { display: flex; gap: 6px; }
.style-btns .btn { width: 40px; padding: 0; }
.style-btns .btn.on { background: var(--text); color: var(--bg); }

.wa-fab {
  position: absolute; left: 16px; bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 26px; background: #25d366; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; box-shadow: 0 10px 28px rgba(37, 211, 102, .35), 0 4px 12px rgba(0, 0, 0, .5);
  transition: transform .15s, filter .15s;
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.gcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; align-content: start; }
.gthumb { background: radial-gradient(ellipse at 50% 40%, var(--stage-a), var(--stage-b)); }
.gthumb canvas { width: 100%; display: block; aspect-ratio: 360 / 400; }
.gmeta { padding: 8px 10px 4px; min-width: 0; }
.gmeta b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmeta small { color: var(--muted); font-size: 11.5px; display: block; line-height: 1.3; }
.gacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); padding: 6px 10px 10px; }
.gacts .btn { padding: 0 4px; white-space: nowrap; box-shadow: none; }
.gacts .btn:first-child:not(:last-child) { border-radius: 9px 0 0 9px; }
.gacts .btn:last-child:not(:first-child) { border-radius: 0 9px 9px 0; border-left: 0; }
@media (min-width: 761px) { .panel:has(.gallery) { width: 400px; } }
.home { position: fixed; inset: 0; z-index: 20; overflow-y: auto; background: radial-gradient(ellipse 70% 40% at 50% 0%, var(--glow) 0%, var(--bg) 70%); }
.home-top { position: sticky; top: 0; z-index: 2; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(clamp(14px, 4vw, 40px), calc((100% - 1240px) / 2 + clamp(14px, 4vw, 40px))); background: rgba(var(--panel-rgb), .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.home-body { max-width: 1240px; margin: 0 auto; padding: 38px clamp(14px, 4vw, 40px) 44px; }
.home-hero { text-align: center; margin-bottom: 34px; display: grid; gap: 10px; justify-items: center; }
.home-hero h1 { font-family: var(--display); font-size: clamp(26px, 4.4vw, 44px); line-height: 1.08; letter-spacing: .01em; max-width: 780px; }
.home-hero p { color: var(--muted); font-size: 15px; max-width: 560px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; justify-content: center; }
.hcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; }
.hcard:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.hcard .gthumb canvas { aspect-ratio: 360 / 400; }
.hcard .gthumb { position: relative; outline: none; }
.hdesc { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 12px; background: linear-gradient(180deg, transparent, rgba(var(--panel-rgb), .92) 34%); color: var(--text); font-size: 12.5px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; max-height: 100%; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .15s; }
.gthumb:hover .hdesc, .gthumb:focus .hdesc { opacity: 1; }
.hbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.hhead { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hbadge { padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); color: var(--silver); font-size: 11.5px; font-weight: 600; white-space: nowrap; cursor: help; outline: none; transition: border-color .12s; }
.hbadge:hover, .hbadge:focus { border-color: var(--red-2); }
.htip { position: absolute; left: 0; right: 0; bottom: calc(100% + 18px); z-index: 2; display: grid; gap: 3px; padding: 9px 12px; background: rgba(var(--panel-rgb), .96); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .12s; }
.hbadge:hover + .htip, .hbadge:focus + .htip { opacity: 1; }
.htip h3 { font-size: 13px; line-height: 1.3; }
.htip small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.price { font-family: var(--display); font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.price.promo { display: grid; justify-items: end; color: var(--good); line-height: 1.15; }
.price s { font: 500 11px var(--font); color: var(--muted); }
.price.none { font: 600 12px var(--font); color: var(--muted); }
.hacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); margin-top: auto; padding-top: 9px; }
.hacts .btn { height: 36px; padding: 0 8px; gap: 6px; font-size: 12.5px; white-space: nowrap; box-shadow: none; }
.hacts .btn:first-child { border-radius: 10px 0 0 10px; }
.hacts .btn:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.hacts .btn .i { width: 14px; height: 14px; font-size: 12px; flex: none; }
.hcard.blank { border-style: dashed; border-color: var(--line-2); background: transparent; justify-content: center; align-items: center; text-align: center; padding: 28px 20px; gap: 12px; min-height: 300px; }
.hcard.blank .plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red-2); }
.hcard.blank .plus .i { width: 28px; height: 28px; font-size: 24px; }
.hcard.blank p { color: var(--muted); font-size: 13px; }
.btn.wa { background: #25d366; color: #06210f; border-color: transparent; }
.btn.wa:hover { background: #2fe172; }
body.home-open .wa-fab { display: none; }
.home-actions { margin: 0; flex-wrap: nowrap; }
@media (min-width: 761px) {
  body.panel-open .toasts { right: 380px; }
  body:has(.panel:not([hidden]) .gallery) .toasts { right: 432px; }
  body:has(.wchat.right:not([hidden])) .toasts { right: 352px; }
}
@media (min-width: 761px) and (max-width: 1440px) { body.panel-open .toasts { bottom: 140px; } }
@media (min-width: 761px) and (max-width: 1100px) { .toasts { bottom: 140px; } }
@media (max-width: 640px) { .about-studio { display: none; } }
@media (max-width: 460px) { #homeAbout { display: none; } .wchat { bottom: 12px; } .wchat.right { right: 12px; } .wchat.left { left: 12px; } }
.about-text { margin: 0; max-height: min(66dvh, 560px); overflow-y: auto; padding-right: 6px; color: var(--silver); font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.wchat { --bg-2: #16231e; --text: #eef3f1; --line: #2c4a42; --muted: #8fa59d; --hi: #fff; color: #eef3f1; }
.theme-studio { flex: none; }
@media (max-width: 640px) { .theme-studio { display: none; } }
@media (max-width: 460px) { #homeCustomize span { display: none; } .topbar .brand-logo { max-width: 56px; } }
@media (max-width: 760px) { .wchat.in-studio { display: none; } }
.wchat-fab { position: fixed; bottom: 18px; z-index: 40; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--panel); color: #25d366; box-shadow: var(--shadow); cursor: pointer; opacity: .85; transition: opacity .15s, transform .15s; }
.wchat-fab:hover { opacity: 1; transform: translateY(-1px); }
.wchat-fab.left { left: 18px; }
.wchat-fab.right { right: 18px; }
.wchat-fab .i { width: auto; height: auto; font-size: 20px; }
@media (max-width: 760px) { .wchat-fab.in-studio { bottom: auto; top: 112px; left: 10px; } }
.wchat { position: fixed; bottom: 18px; z-index: 40; width: min(320px, calc(100vw - 24px)); background: #0f1a16; border: 1px solid #24403a; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; animation: pop .22s ease both; }
.wchat.right { right: 18px; }
.wchat.left { left: 18px; }
.wchat header { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px; background: #128c5e; color: #fff; }
.wchat header > div { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.wchat header b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wchat header small { font-size: 11.5px; opacity: .85; }
.wchat header .icon-btn { color: #fff; }
.wchat-av { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border-radius: 50%; font-size: 18px; }
.wchat-body { min-height: 92px; padding: 14px 12px; background: #0b1512; }
.wchat-msg { width: fit-content; max-width: 92%; padding: 8px 11px; background: #1c2c27; border-radius: 3px 11px 11px 11px; color: #eef3f1; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.wchat-msg.typing { display: flex; gap: 4px; padding: 12px; }
.wchat-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8fa59d; animation: wchat-dot 1s infinite; }
.wchat-msg.typing i:nth-child(2) { animation-delay: .15s; }
.wchat-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wchat-dot { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
.wchat-form { display: flex; gap: 6px; padding: 8px; background: #0f1a16; }
.wchat-form input { flex: 1; min-width: 0; height: 38px; border-radius: 19px; }
.wchat-send { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: #25d366; color: #06210f; cursor: pointer; }
.wchat-send:hover { background: #2fe172; }
.shop-menu { position: relative; margin: 0 auto 0 18px; flex: none; }
.shop-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--silver); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.shop-btn:hover, .shop-btn[aria-expanded="true"] { color: var(--hi); background: rgba(var(--ink), .07); }
.shop-btn i { font-size: 10px; transition: transform .15s; }
.shop-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.shop-drop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; padding: 5px; display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: var(--shadow); }
.shop-drop[hidden] { display: none; }
.shop-drop a { padding: 8px 11px; border-radius: 7px; color: var(--silver); font-size: 13.5px; text-decoration: none; }
.shop-drop button { padding: 8px 11px; border: 0; border-radius: 7px; background: none; color: var(--silver); font-size: 13.5px; text-align: left; cursor: pointer; }
.shop-drop button:hover { color: var(--hi); background: rgba(var(--ink), .07); }
.track-note { margin-top: 10px; text-align: center; }
.track-list { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; margin: 6px 0 16px; }
.track-list:empty { display: none; }
.track-card { margin-top: 10px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.track-list .track-card { margin-top: 0; }
.track-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.track-card p { margin: 3px 0 0; color: var(--silver); font-size: 13px; }
.track-card small { color: var(--muted); font-size: 11.5px; }
.track-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11px; color: var(--muted); text-align: center; }
.track-steps li { position: relative; display: grid; justify-items: center; gap: 5px; }
.track-steps li::before { content: ""; position: absolute; top: 5px; left: calc(-50% + 6px); width: calc(100% - 12px); height: 2px; background: var(--line-2); }
.track-steps li:first-child::before { display: none; }
.track-dot { position: relative; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line-2); }
.track-steps .is-done, .track-steps .is-now { color: var(--text); }
.track-steps .is-done::before, .track-steps .is-now::before { background: var(--good); }
.track-steps .is-done .track-dot { background: var(--good); border-color: var(--good); }
.track-steps .is-now .track-dot { background: var(--panel); border-color: var(--good); box-shadow: 0 0 0 3px rgba(95, 220, 154, .2); }
.track-wa { margin-top: 12px; height: 36px; font-size: 13px; }
.track-canceled { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--danger); font-size: 13px; }
.shop-drop a:hover { color: var(--hi); background: rgba(var(--ink), .07); }
@media (max-width: 900px) { .studio-menu { display: none; } }
@media (max-width: 460px) { .shop-menu { margin-left: 4px; } }
.belt-page { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 6px; }
.belt-media { display: grid; place-items: center; aspect-ratio: 5 / 4; padding: 24px; background: radial-gradient(ellipse at 50% 40%, var(--stage-a), var(--stage-b)); border: 1px solid var(--line); border-radius: 18px; }
.belt-svg { width: 100%; height: 100%; display: block; }
.belt-photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.belt-info { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.belt-info h1 { font-size: 24px; line-height: 1.15; margin: 0 0 6px; }
.belt-price { font-family: var(--display); font-size: 26px; margin-bottom: 8px; }
.belt-desc { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.belt-info h3 { margin: 14px 0 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.belt-info h3 b { color: var(--text); }
.belt-colors { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; }
.belt-colors .belt-color { padding: 3px; border-radius: 8px; }
@media (max-width: 760px) { .belt-colors { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); } }
.belt-color { aspect-ratio: 1; padding: 5px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; transition: border-color .12s; }
.belt-color:hover { border-color: var(--line-3); }
.belt-color.on { border-color: var(--red-2); box-shadow: 0 0 0 1px var(--red-2); }
.belt-media.is-3d { position: relative; padding: 0; overflow: hidden; }
.glb-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 2px; padding: 3px 10px 3px 6px; background: rgba(var(--panel-rgb), .7); border-radius: 99px; color: var(--silver); font-size: 11.5px; pointer-events: none; white-space: nowrap; }
.glb-hint .i { font-size: 11px; }
.glb-zoom { position: absolute; top: 10px; right: 10px; display: grid; gap: 2px; padding: 3px; background: rgba(var(--panel-rgb), .7); border: 1px solid var(--line); border-radius: 10px; }
.glb-zoom .icon-btn { width: 32px; height: 32px; }
.thumb-3d { color: var(--text); font-weight: 700; font-size: 13px; }
.hcard .gthumb, .shop-thumb-wrap, .gcard .gthumb, .belt-media { position: relative; }
.is-sold canvas, .is-sold .gthumb img, .is-sold .gthumb svg, .belt-media.is-sold img, .belt-media.is-sold svg { filter: grayscale(1); opacity: .45; }
.hcard.is-sold .hbody, .gcard.is-sold .gmeta { opacity: .6; }
.sold-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; background: rgba(var(--panel-rgb), .88); border: 1px solid var(--line-2); border-radius: 99px; color: var(--text); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.btn.sold-btn, .btn.sold-btn:disabled { background: var(--bg-2); border-color: var(--line-2); color: var(--silver); opacity: 1; cursor: not-allowed; box-shadow: none; }
.btn.sold-btn:hover { background: var(--bg-2); border-color: var(--line); }
.hacts .sold-btn:first-child { grid-column: 1 / -1; border-radius: 10px; }
.shop-card { color: inherit; text-decoration: none; }
.shop-thumb { aspect-ratio: 360 / 400; display: grid; place-items: center; padding: 14px; }
.shop-card .belt-price { margin: 4px 0 0; font-size: 18px; }
.belt-price.promo { color: var(--good); }
.belt-price s { display: block; font: 500 12px var(--font); color: var(--muted); }
.shop-noimg { color: var(--muted); font-size: 34px; opacity: .5; }
.shop-empty { padding: 50px 14px; text-align: center; color: var(--muted); }
.shop-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; color: var(--silver); font-size: 13px; text-decoration: none; }
.shop-back:hover { color: var(--hi); }
.shop-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-top: 8px; }
.shop-dot { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--line-2); }
.belt-err { min-height: 16px; margin: 0 0 8px; color: var(--danger); font-size: 12.5px; }
.belt-info .size-btns { margin-bottom: 10px; }
@media (max-width: 760px) { .belt-page { grid-template-columns: 1fr; gap: 14px; } .belt-info h1 { font-size: 20px; } }
.faq-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-acts .btn { flex: 1; white-space: nowrap; }
.tour { position: fixed; inset: 0; z-index: 90; background: transparent; }
.tour-hole { position: absolute; left: 0; top: 0; border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .68); outline: 2px solid var(--red-2); transition: transform .2s, width .2s, height .2s; pointer-events: none; }
.tour-hole[hidden] + .tour-card { box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .68); }
.tour-card { position: absolute; left: 0; top: 0; width: min(330px, calc(100vw - 24px)); padding: 16px 18px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); transition: transform .2s; }
.tour-count { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.tour-card h3 { margin: 3px 0 5px; font-size: 16px; }
.tour-card p { margin: 0; color: var(--silver); font-size: 13px; line-height: 1.45; }
.tour-acts { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
.tour-acts .tools-row { margin: 0; flex-wrap: nowrap; }
.tour-skip { padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.tour-skip:hover { color: var(--hi); }
.home-foot { border-top: 1px solid var(--line); padding: 20px clamp(14px, 4vw, 40px) 18px; max-width: 1240px; margin: 0 auto; display: grid; gap: 14px; font-size: 13px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot-identity { display: flex; align-items: center; gap: 10px; }
.foot-icon { width: 34px; height: 34px; flex: none; object-fit: contain; }
.foot-brand { display: grid; gap: 1px; }
.foot-brand b { color: var(--text); font-size: 14px; }
.foot-brand small, .foot-end small { font-size: 12px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.foot-links button, .foot-links a { padding: 0; border: 0; background: none; color: var(--silver); font-size: 13px; text-decoration: none; cursor: pointer; }
.foot-links button:hover, .foot-links a:hover { color: var(--hi); }
.foot-shop { margin: 0; }
.foot-links .shop-btn { height: auto; gap: 5px; }
.foot-links .shop-btn:hover, .foot-links .shop-btn[aria-expanded="true"] { background: none; color: var(--hi); }
.foot-links .shop-btn .i { width: auto; height: auto; font-size: 9px; }
.foot-links .shop-btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.foot-shop .shop-drop { top: auto; bottom: calc(100% + 8px); }
.foot-links .shop-drop a { padding: 8px 11px; }
.foot-socials { display: flex; gap: 6px; }
.foot-social { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--silver); text-decoration: none; transition: color .12s, background .12s; }
.foot-social:hover { color: var(--hi); background: rgba(var(--ink), .08); }
.top-socials { gap: 2px; align-items: center; }
@media (max-width: 640px) { .top-socials { display: none; } }
@media (max-width: 1040px) { .studio-socials { display: none; } }
.foot-copy a { color: var(--silver); text-decoration: none; }
.foot-copy a:hover { color: var(--hi); text-decoration: underline; }
.foot-end { padding-top: 12px; border-top: 1px solid var(--line); }
.foot-pays { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-pay { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.faq-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.faq-head h2 { margin: 0; }
.modal-card:has(.faq-list) { width: min(620px, 100%); }
.faq-list { max-height: min(62dvh, 520px); overflow-y: auto; margin-bottom: 14px; padding-right: 6px; display: grid; align-content: start; gap: 6px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { font-size: 11px; color: var(--muted); transition: transform .24s ease; }
.faq-item.is-open summary .i { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 12px 12px; color: var(--silver); font-size: 13px; line-height: 1.5; }
@media (max-width: 460px) { .home-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .hbody { padding: 10px; } .hdesc { padding: 18px 10px 8px; font-size: 11px; line-height: 1.3; } .hhead { gap: 4px; } .hbadge { padding: 2px 6px; font-size: 10.5px; } .price { font-size: 13.5px; } .hacts .btn { padding: 0 4px; font-size: 11.5px; } .hacts .btn .i { display: none; } .hcard.blank { min-height: 0; padding: 18px 10px; } }

.wa-fab:hover { transform: translateY(-2px); filter: brightness(1.06); }
.wa-fab i { font-size: 26px; }
@media (max-width: 760px) {
  .wa-fab { left: 10px; bottom: auto; top: 112px; width: 48px; height: 48px; padding: 0; justify-content: center; }
  .wa-fab span { display: none; }
}

.drop { position: absolute; inset: 12px; z-index: 6; border: 2px dashed var(--red-2); border-radius: 20px; background: rgba(var(--accent-rgb), .12); display: grid; place-items: center; font-weight: 700; pointer-events: none; }

.order-total { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 8px 0; }
.done .check { width: 56px; height: 56px; border-radius: 50%; background: rgba(47, 191, 113, .15); color: var(--ok); display: grid; place-items: center; }
.done .check .i { width: 28px; height: 28px; font-size: 24px; }
.done .code { font-family: var(--display); font-size: 26px; letter-spacing: .12em; }
a.btn { text-decoration: none; }

@media (max-width: 760px) {
  .topbar { padding: 0 10px; }
  .brand-text small { display: none; }
  .hide-sm { display: none; }
  .btn { padding: 0 12px; }
  .panel {
    right: 0; left: 0; top: auto; bottom: 0; width: 100%; height: min(44dvh, 400px);
    border-radius: 20px 20px 0 0; border-bottom: 0; animation: sheet-in .25s ease both;
  }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  body.panel-open #cv, body.panel-open #gl, body.panel-open #ov { height: auto; bottom: calc(min(44dvh, 400px) + 112px); }
  .dock { bottom: 12px; gap: 8px; }
  body.panel-open .dock { bottom: calc(min(44dvh, 400px) + 8px); }
  body.panel-open .estimate, body.panel-open .zoom { display: none; }
  .dock .seg.views button { padding: 6px 12px; }
  .empty { top: 62px; }
  .zoom { top: 62px; left: 10px; }
  .layouts { top: 10px; }
  .dock .tools button span { font-size: 12px; }
  .dock .tools button { padding: 9px 12px; }
}
@media (max-width: 460px) {
  .hide-xs, .top-actions .sep { display: none; }
  .brand-logo { max-width: 92px; }
  .brand-text b { font-size: 15px; }
  .top-actions { gap: 4px; }
  .top-actions .btn { padding: 0 10px; }
  .dock .tools button { padding: 9px 8px; gap: 5px; }
  .dock .tools button span { font-size: 11.5px; }
}

#gl.pick { cursor: pointer; }
.slot { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); margin-bottom: 8px; cursor: pointer; }
.slot:hover { border-color: var(--line-2); }
.slot.sel { border-color: var(--red); background: var(--red-soft); }
.slot .thumb { width: 40px; height: 40px; border-radius: 9px; background: var(--bg-2) center/contain no-repeat; border: 1px solid var(--line); display: grid; place-items: center; color: var(--silver); font-weight: 700; font-family: Georgia, serif; font-size: 18px; overflow: hidden; }
.slot .thumb.empty-slot { border: 1.5px dashed var(--line-2); background: transparent; }
.slot .thumb.round { border-radius: 50%; }
.slot .meta { min-width: 0; }
.slot .meta b { display: block; font-size: 13px; line-height: 1.2; }
.slot .meta small { color: var(--good); font-size: 12px; font-weight: 700; }
.slot .acts { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 150px; }
.slot .acts .btn { height: 28px; padding: 0 8px; font-size: 11.5px; gap: 4px; }
.slot .acts .btn .i { width: 14px; height: 14px; font-size: 12px; }
.slot .acts .icon-btn { width: 28px; height: 28px; }
.slot-total { margin: 14px 0 8px; }
@media (min-width: 761px) { body.panel-open .dock, body.panel-open .layouts { left: calc((100% - 380px) / 2); } body.panel-open .empty { left: calc((100% - 380px) / 2); } }
.order-color { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.order-color b { color: var(--text); }
.order-dot { width: 18px; height: 18px; flex: none; margin-left: auto; border-radius: 50%; border: 1px solid var(--line-2); }
.order-spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 12px; font-size: 13px; }
.order-spec dt { color: var(--muted); }
.order-spec dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.size-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.size-btn { min-width: 42px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-2); color: var(--silver); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.size-btn:hover { color: var(--hi); border-color: var(--line-3); }
.size-btn.on { background: var(--red-soft); border-color: var(--red-2); color: var(--hi); }
.panel-switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--silver); cursor: pointer; }
.panel-switch:hover { border-color: var(--line-2); }
.panel-switch input { flex: none; }

.stage-tip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; display: grid; grid-template-columns: auto auto; gap: 2px 14px; align-items: baseline; padding: 9px 13px; max-width: 280px; background: rgba(var(--panel-rgb), .94); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); opacity: 0; transition: opacity .12s; white-space: nowrap; }
.stage-tip.show { opacity: 1; }
.stage-tip b { font-size: 13px; color: var(--text); }
.stage-tip small { justify-self: end; font-size: 12px; font-weight: 700; color: var(--good); }
.stage-tip span { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.stage-tip span { white-space: normal; line-height: 1.35; }
.stage-tip small:empty { display: none; }
.stage-tip b:has(+ small:empty) { grid-column: 1 / -1; }

.done-receipt { margin-top: 10px; }
.estimate .est-hint { color: var(--muted); }
body.is-plain #tools [data-tab="adjust"], body.is-plain #tools [data-tab="gallery"], body.is-plain #layerCount { display: none; }
.plain-note { margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.plain-note p { margin: 0 0 10px; color: var(--silver); font-size: 13px; }
.order-sums { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); font-size: 13.5px; }
.order-sums dt { margin: 0; color: var(--silver); }
.order-sums dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.order-sums .sum-total { padding-top: 6px; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 15px; }
.hhead .price small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; text-align: right; }
.shop-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 14px; font-size: 13.5px; }
.shop-specs dt { color: var(--muted); }
.shop-specs dd { margin: 0; }
.size-btn.off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.belt-color.off { position: relative; opacity: .45; }
.belt-color.off::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--danger); transform: rotate(-35deg); }
.belt-media.zoomable { cursor: zoom-in; }
.lb-back { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 56px 64px; background: rgba(0, 0, 0, .88); animation: backdrop-in .2s ease both; }
.lb-back img { max-width: min(100%, calc(100vw - 128px)); max-height: calc(100vh - 112px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: pop .2s ease both; }
.lb-back .icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 13px; }
@media (max-width: 560px) { .lb-back { padding: 56px 10px; } .lb-back img { max-width: 100%; max-height: calc(100vh - 140px); } .lb-nav { top: auto; bottom: 8px; transform: none; } }
.hbadge.plain { border-color: rgba(var(--accent-rgb), .45); color: var(--text); }
.plain-card .gthumb::after { content: "Kimono liso"; position: absolute; left: 12px; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(var(--panel-rgb), .85); border: 1px solid var(--line-2); color: var(--silver); font-size: 11px; font-weight: 700; letter-spacing: .04em; pointer-events: none; }
