@import url("mold.css?v=20261013small");
/* Термоформы: раскладка и поля — как у кликеров (clicker.css), свои только карточки форм и палитра. */
.thermogen-page [hidden]{display:none!important}
.thermo-field{display:block;margin:12px 0}.thermo-field .signgen-label{display:flex;align-items:center;gap:6px}
.thermo-field input[type=range]{width:100%;accent-color:var(--accent)}.thermo-field .gen-range{margin-top:5px}
.thermo-check{display:flex;gap:8px;align-items:center;margin:10px 0;font-size:.82rem;line-height:1.35}
.thermogen-page .gen-section{border:1px solid var(--border,rgba(255,255,255,.12));border-radius:14px;padding:12px;margin:14px 0}
.thermogen-page .gen-section>summary{cursor:pointer;font-weight:600;list-style:none}
/* стрелка раздела — свой значок, как у ваз (vase.css): браузерную прячем, иначе их две */
.thermogen-page .gen-section>summary::-webkit-details-marker{display:none}
.thermogen-page .gen-section__caret{display:inline-block;color:var(--accent);margin-right:8px;transition:transform .15s}
.thermogen-page .gen-section:not([open])>summary .gen-section__caret{transform:rotate(-90deg)}
.thermogen-page .moldgen-upload{margin-top:10px}#fileName{margin:6px 0 0;overflow-wrap:anywhere}
.thermo-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}
.thermo-thumb{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:8px}
/* катушки: кружок цвета + подпись, клик — выбрать свой цвет пластика */
.thermo-palette{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 2px}
.thermo-swatch{display:flex;align-items:center;gap:6px;padding:4px 8px 4px 4px;border:1px solid var(--border,#344154);border-radius:999px;font-size:.72rem;color:var(--text-muted,#a7b6c9);cursor:pointer}
.thermo-swatch input{width:22px;height:22px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.thermo-swatch input::-webkit-color-swatch-wrapper{padding:0}.thermo-swatch input::-webkit-color-swatch{border:1px solid #0006;border-radius:50%}
/* формы — сетка карточек с контуром, как миниатюры кликеров */
.thermo-shapes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:6px 0}
.thermo-shape{min-width:0;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px 3px;border:1px solid var(--border,#344154);border-radius:10px;background:#0b1220;color:var(--text,#e5e7eb);font:500 .66rem/1.25 Onest,sans-serif;cursor:pointer}
.thermo-shape svg{width:34px;height:34px;pointer-events:none}.thermo-shape svg path{fill:#00c9e926;stroke:var(--accent,#00c9e9);stroke-width:4}
.thermo-shape:hover,.thermo-shape[aria-checked=true]{border-color:var(--accent);background:#00c9e915}
.thermo-shape:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.thermogen-page .signgen-actions{display:grid;gap:8px}.thermogen-page .signgen-status[data-error=true]{color:#fda4af}
.thermo-stretch{font-weight:600}.thermo-stretch[data-level=warn]{color:#fbbf24}.thermo-stretch[data-level=bad]{color:#fda4af}
/* просмотр: место под строку итога, чтобы она не накрывала модель (как у кликеров) */
.thermogen-page .signgen-viewport{min-height:620px;display:flex;flex-direction:column}
.thermogen-page .moldgen-canvasbox{position:relative;inset:auto;flex:1;min-height:0;width:100%;margin-top:58px}
.thermogen-page .gen-viewbar{z-index:2;width:max-content}.thermogen-page .gen-seg{flex-wrap:wrap}
.thermogen-page .gen-readout{position:relative;inset:auto;flex:0 0 auto;width:100%;font-size:.78rem;max-height:180px;overflow:auto;padding:8px 18px}
@media(max-width:900px){.thermogen-page .signgen-viewport{min-height:560px}.thermogen-page .moldgen-canvasbox{margin-top:76px}.thermogen-page .gen-seg__btn{font-size:.68rem;padding:7px 9px}}
/* окно «Как это работает» — вид как у кликеров и коробок */
.thermogen-help__dialog{max-width:760px;max-height:min(86vh,820px);overflow-y:auto}
.thermogen-seo{padding:22px}.thermogen-seo h2{font:600 1rem Unbounded,system-ui,sans-serif;margin:22px 0 10px}.thermogen-seo h2:first-child{margin-top:0}
.thermogen-seo h3{font-size:.86rem;font-weight:600;margin:0 0 6px;color:var(--accent,#38bdf8)}
.thermogen-seo p,.thermogen-seo li{color:var(--text-muted,#94a3b8);font-size:.8rem;line-height:1.5;margin:0}.thermogen-seo__lead{margin-bottom:14px!important}
.thermogen-seo__grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.thermogen-seo__grid article{padding:12px 14px;border:1px solid var(--border,#1e293b);border-radius:12px;background:#0b1220}
.thermogen-seo__steps{padding-left:20px;display:grid;gap:6px}
.thermogen-seo__faq details{border-bottom:1px solid var(--border,#1e293b);padding:10px 0}.thermogen-seo__faq summary{cursor:pointer;font-size:.84rem;font-weight:600}.thermogen-seo__faq p{margin-top:6px}
@media(max-width:640px){.thermogen-seo__grid{grid-template-columns:1fr}}
.thermo-access,.thermogen-page .shadow-access{padding-block:28px}
/* Цвета поверх предпросмотра, как у топперов: столбик в левом нижнем углу, без карточек */
.thermo-scene{position:relative}
.thermo-palette--scene{position:absolute;left:18px;bottom:18px;z-index:4;flex-direction:column;gap:10px;margin:0;max-width:calc(100% - 36px)}
.thermo-palette--scene .thermo-swatch{padding:0;border:0;border-radius:0;gap:8px;font-size:.8rem;font-weight:600;color:#f5f7fa;text-shadow:0 1px 3px #000,0 0 5px #0008}
@media (max-width:600px){.thermo-palette--scene{left:12px;bottom:14px;gap:8px}.thermo-palette--scene .thermo-swatch{font-size:.72rem}}
/* Попап шрифта — поверх всего у кнопки, как у печенья (позицию ставит font-picker.js) */
.thermo-fontpop{position:fixed;top:0;left:0;right:auto;width:min(340px,calc(100vw - 16px));max-height:min(460px,calc(100vh - 32px))}
#textOpts .signgen-fontpick__btn{margin:0 0 10px}
