:root{color-scheme:light;--scene:#e5e3df;--swatch:#ece8e2;--canvas:#f5f5f7;--surface:#fff;--raised:#ededf2;--text:#1d1d1f;--muted:#636366;--blue:#0062cc;--pressed:#004a99;--control:#76767a;--on-blue:#fff;--line:#d9d9de;--success:#246b3c;--warning:#8b4a00;--danger:#b42318;font:17px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--canvas);color:var(--text)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--scene:#2a2a2c;--swatch:#2c2c2e;--canvas:#000;--surface:#1c1c1e;--raised:#2c2c2e;--text:#f5f5f7;--muted:#aeaeb2;--blue:#4c9aff;--pressed:#72b2ff;--control:#8e8e93;--on-blue:#000;--line:#48484a;--success:#72d58c;--warning:#ffcc80;--danger:#ff8a80}}
:root[data-theme=dark]{color-scheme:dark;--scene:#2a2a2c;--swatch:#2c2c2e;--canvas:#000;--surface:#1c1c1e;--raised:#2c2c2e;--text:#f5f5f7;--muted:#aeaeb2;--blue:#4c9aff;--pressed:#72b2ff;--control:#8e8e93;--on-blue:#000;--line:#48484a;--success:#72d58c;--warning:#ffcc80;--danger:#ff8a80}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:transparent;color:var(--blue);min-height:48px;border-radius:999px;padding:10px 16px;font-weight:600}button:disabled{opacity:.45;cursor:default}a{color:var(--blue)}button:hover:not(:disabled){background:var(--raised)}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}button.primary{background:var(--blue);color:var(--on-blue);border-radius:999px;min-height:52px;padding:12px 20px;font-weight:600}button.primary:hover{filter:brightness(.95);background:var(--blue)}
button.primary:active:not(:disabled),a.button.primary:active{background:var(--pressed);filter:none}
button:active:not(:disabled):not(.primary){filter:brightness(.94)}.secondary{background:var(--raised);color:var(--blue);border-radius:999px;min-height:52px}.danger{color:var(--danger)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:34px;line-height:1.2;letter-spacing:-.4px;font-weight:700}h2{font-size:22px;line-height:1.25;font-weight:600}h3{font-size:17px;font-weight:600}p{color:var(--muted);font-size:15px}small,.small{font-size:13px;color:var(--muted)}svg.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}#app{max-width:1200px;margin:auto;min-height:100dvh}#header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 10px;min-height:78px}.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:650;font-size:15px;line-height:1.15}.brand .icon{width:31px;height:31px;color:var(--blue)}.languages{display:flex;border:1px solid var(--line);border-radius:999px;padding:2px}.languages button{min-height:38px;min-width:40px;padding:4px 8px;font-size:12px;border-radius:999px;color:var(--muted)}.languages button.active{background:var(--surface);color:var(--blue);box-shadow:0 1px 3px #0000000c}#page{max-width:920px;margin:auto;padding:22px 20px 118px}.stack{display:grid;gap:20px}.tight{display:grid;gap:12px}.eyebrow{color:var(--blue);font-size:12px;font-weight:650;letter-spacing:1.5px;text-transform:uppercase}.heading{display:grid;gap:8px;margin-bottom:24px}.card{background:var(--surface);border:1px solid transparent;border-radius:24px;padding:16px}.card h3{margin-bottom:8px}.row{display:flex;gap:12px;align-items:center;justify-content:space-between}.row.start{justify-content:flex-start}.wrap{flex-wrap:wrap}.row>div{min-width:0}.row .grow{flex:1}.grow{flex:1}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.full{width:100%}.center{text-align:center}.muted{color:var(--muted)}.blue{color:var(--blue)}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:12px;background:var(--raised);font-size:13px;color:var(--muted);padding:6px 8px}.pill.warning{color:var(--warning)}.line{border-top:1px solid var(--line);margin:14px 0}.list{display:grid;gap:10px}.list-button{display:flex;text-align:left;align-items:center;gap:12px;width:100%;padding:16px;color:var(--text);background:var(--surface);border-radius:16px;font-weight:400}.list-button strong{font-weight:400}
.list-button small{display:block;font-weight:400;margin-top:4px;font-size:15px;color:var(--muted)}.list-button .icon{color:var(--blue)}.list-button .trailing{margin-left:auto}
.list-button>.icon:last-child{color:var(--muted);width:20px;height:20px}.list-button.active{outline:2px solid var(--blue)}.note{font-size:15px;color:var(--muted);line-height:1.3}.notice{padding:16px;background:var(--raised);border-radius:16px;font-size:15px;color:var(--muted)}.warning{color:var(--warning)}.error{color:var(--danger);font-size:14px}.success{color:var(--success)}label{display:grid;gap:6px;font-size:13px;font-weight:400;color:var(--muted);min-width:0}input,select,textarea{width:100%;min-width:0;padding:12px;border:1px solid var(--control);border-radius:16px;background:var(--surface);color:var(--text);min-height:52px;font-size:17px}
:is(input,select,textarea):focus{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue);outline:none}
:is(input,select,textarea):focus-visible{outline:none}
:is(input,select,textarea)[aria-invalid=true]{border-color:var(--danger)}input[type=checkbox]{appearance:none;-webkit-appearance:none;flex-shrink:0;width:52px;min-height:32px;height:32px;padding:0;border:0;border-radius:999px;background:var(--line);position:relative;cursor:pointer;transition:background .15s}
input[type=checkbox]::after{content:"";position:absolute;left:3px;top:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
input[type=checkbox]:checked{background:var(--blue)}
input[type=checkbox]:checked::after{transform:translateX(20px)}
input[type=checkbox]:focus-visible{outline:3px solid var(--blue);outline-offset:3px}input[type=color]{padding:4px}textarea{min-height:90px;resize:vertical}.check{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;font-size:17px;color:var(--text)}
.check input{order:2}.field-unit{position:relative}.field-unit input{padding-right:44px}.field-unit span{position:absolute;right:14px;top:15px;color:var(--muted);font-size:15px}.steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.step{font-size:13px;color:var(--muted);padding-bottom:7px;border-bottom:2px solid var(--line);flex:1}.step.current{color:var(--blue);border-color:var(--blue)}.wizard-footer{display:flex;gap:10px;margin-top:24px}.wizard-footer .primary{flex:1}.hero-scene{height:310px;border-radius:24px;background:var(--scene);overflow:hidden;position:relative}.hero-scene canvas{width:100%;height:100%;display:block}.hero-scene .pill{position:absolute;left:12px;right:12px;bottom:12px;z-index:1;background:var(--raised);color:var(--muted)}.hero-copy{padding:22px 0 4px}.hero-copy h1{max-width:500px}.room-preview{height:220px;border-radius:24px;overflow:hidden;background:var(--scene)}.room-preview canvas{display:block;width:100%;height:100%}.dimensions{display:flex;gap:10px;justify-content:space-between;padding:16px 0}.dimensions strong{font-size:17px}.dimensions span{display:block;font-size:12px;color:var(--muted)}.photo-list{display:flex;gap:8px;overflow:auto}.photo-ref{min-width:90px;max-width:140px}.photo-ref img{width:100%;height:86px;object-fit:cover;border-radius:14px}.photo-ref button{font-size:12px;min-height:44px;width:100%;overflow:hidden;text-overflow:ellipsis}.product-card{display:grid;gap:8px;background:var(--surface);border-radius:24px;overflow:hidden;text-align:left;color:var(--text);padding:12px;font-weight:400}.product-card .product-art{height:145px;position:relative;background:var(--swatch)}.product-card .product-art canvas{width:100%;height:100%;display:block}.product-card .product-body{display:grid;gap:4px;padding:0 4px 4px}.product-card strong{display:block;font-size:22px;font-weight:600;line-height:1.25}.product-card small{display:block;font-size:13px;color:var(--muted)}.product-swatch{height:110px;background:var(--raised);display:grid;place-items:center}.product-swatch .icon{width:64px;height:64px;color:#9e8b73}.chips{display:flex;gap:8px;overflow:auto;margin:12px 0 16px;padding:2px;scrollbar-width:none}.chip{white-space:nowrap;background:var(--raised);border-radius:999px;font-size:15px;font-weight:600;min-height:44px;padding:8px 18px;color:var(--blue)}.chip.active{background:var(--blue);border-color:var(--blue);color:var(--on-blue)}#nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;gap:4px;background:var(--surface);padding:8px 8px max(8px,env(safe-area-inset-bottom));z-index:10}#nav button,#editor-nav button{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px;font-weight:400;flex:1;padding:4px;min-height:52px;border-radius:16px;color:var(--muted);min-width:0;line-height:1.2}
#nav button:hover,#editor-nav button:hover{background:transparent}#nav button.active{color:var(--blue)}#nav button .icon{width:24px;height:24px}.editor-title{text-align:left;flex:1;min-width:0}.editor-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:28px;line-height:1.25;font-weight:700}.editor-title small{font-size:13px}.icon-button{padding:10px;display:inline-flex;align-items:center;justify-content:center;min-width:44px}.editor-mode #header{padding:12px 20px;min-height:72px}.editor-mode #app{height:100dvh;display:flex;flex-direction:column}.editor-mode #editor{display:flex;flex-direction:column;min-height:0;flex:1}#scene-wrap{position:relative;min-height:150px;flex:1;overflow:hidden;background:var(--scene)}#scene{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%;touch-action:none}#scene-actions{position:absolute;right:16px;top:16px;display:flex;gap:4px;padding:2px 5px;background:var(--surface);border-radius:999px}#scene-actions button{min-height:42px;min-width:42px;padding:7px}#scene-caption{position:absolute;left:16px;bottom:12px;right:16px;display:flex;justify-content:space-between;gap:8px;pointer-events:none}#scene-caption>*{pointer-events:auto;background:var(--surface)}#scene-caption .pill{font-size:11px;align-self:center}#scene-caption button{border-radius:999px;font-size:13px}#editor-hint{text-align:center;color:var(--muted);font-size:13px;padding:12px 16px 2px}#editor-nav{display:flex;gap:4px;margin:12px 20px max(16px,env(safe-area-inset-bottom));border-radius:24px;background:var(--surface);padding:8px}#editor-nav button{color:var(--text)}#editor-nav .icon{color:var(--text);width:24px;height:24px}#sheet{flex-shrink:0;max-height:51dvh;min-height:0;overflow:auto;background:var(--surface);padding:8px 20px 20px;border-radius:28px 28px 0 0;border-top:1px solid var(--line);scroll-padding:16px}#sheet::before{content:'';display:block;width:35px;height:4px;border-radius:99px;background:var(--line);margin:0 auto 10px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.sheet-heading h2{font-size:22px;font-weight:600}.sheet-heading button{margin-right:-10px}.sheet-actions{display:flex;gap:10px;margin-top:18px}.sheet-actions>*{flex:1}.sheet-open #editor-hint{display:none}.sheet-open #editor-nav{margin-top:8px;margin-bottom:8px;padding:2px 6px}.sheet-open #editor-nav button{font-size:12px;padding:3px;min-height:44px}.sheet-open #editor-nav .icon{width:22px;height:22px}#save-error{background:var(--raised);color:var(--danger);padding:10px 16px;font-size:13px}#save-error button{min-height:40px;font-size:13px}#graphics-error{position:absolute;inset:0;background:var(--surface);display:grid;place-content:center;text-align:center;padding:20px;z-index:5}#toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:var(--text);color:var(--canvas);padding:12px 18px;border-radius:18px;font-size:14px;box-shadow:0 5px 20px #0002;z-index:30}.swatches{display:flex;gap:10px;margin:12px 0}.swatches button{width:48px;height:48px;min-height:48px;border-radius:50%;border:3px solid var(--surface);outline:1px solid var(--line)}.cost-line{padding:14px 0;border-bottom:1px solid var(--line)}.cost-line:last-child{border:0}.cost-total{font-size:34px;font-weight:700;font-variant-numeric:tabular-nums}.empty{padding:30px 12px;text-align:center}.empty>.icon{width:45px;height:45px;color:var(--blue);margin-bottom:15px}.footer-note{margin-top:25px;text-align:center;font-size:12px;color:var(--muted)}.file-label{display:flex;gap:10px;align-items:center;padding:12px;border:1px dashed var(--line);border-radius:16px;cursor:pointer}.file-label input{max-width:100%;font-size:13px}.list-row{background:var(--surface);padding:16px;border-radius:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:760px){#page{padding-top:36px}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}.hero-scene{height:430px}.hero-copy h1{font-size:48px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#header{padding-left:32px;padding-right:32px}#editor{position:relative}#sheet{position:absolute;right:20px;top:20px;bottom:105px;width:360px;max-height:none;border-radius:28px;border:1px solid var(--line);z-index:2}.sheet-open #scene-wrap{margin-right:395px}.sheet-open #editor-nav{margin:12px 16px 16px;padding:9px 10px}.sheet-open #editor-nav button{padding:8px;font-size:12px}.sheet-open #editor-nav .icon{width:25px;height:25px}#editor-nav{max-width:440px;width:calc(100% - 32px);align-self:center}.editor-mode #header{min-height:80px}.room-preview{height:280px}}
@media(max-height:560px){#sheet{max-height:42dvh}#editor-nav{margin:2px 10px!important;padding:0!important}#editor-hint{display:none}#header{min-height:58px!important}#scene-wrap{min-height:90px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s,opacity .12s}.card{animation:appear .2s ease-out}@keyframes appear{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:none}}}

.product-swatch img{width:100%;height:100%;object-fit:contain;display:block}.product-swatch:has(img){height:150px;background:var(--swatch)}
/* Text can grow without forcing an off-screen action. Panels remain scrollable. */
button,.list-button,.card{overflow-wrap:anywhere;min-width:0}.row{min-width:0}.row>strong,.row>p{min-width:0}.grid>*{min-width:0}#scene-caption{flex-wrap:wrap}#scene-caption .pill{max-width:100%}#editor-nav button{overflow-wrap:anywhere}#header>.icon-button{flex-shrink:0}#editor-nav{flex-shrink:0}
.welcome{max-width:620px;margin:auto}.welcome .hero-scene{height:300px}.welcome .hero-copy{padding-top:24px;gap:20px}.home-project{padding:0;overflow:hidden;max-width:700px;margin:auto}.home-project .hero-scene{border-radius:16px;height:240px}
@media(min-width:760px){.welcome{display:grid;grid-template-columns:1fr 1fr;gap:35px;max-width:none;align-items:center}.welcome .hero-scene{margin:0;height:480px;border-radius:26px}.welcome .hero-copy{padding:0}.home-project .hero-scene{height:360px}}
/* Photo try-on: the photo keeps its aspect ratio, so pointer mapping uses the drawn box. */
.tryon-top{display:flex;align-items:center;gap:12px;margin:0 0 16px}.tryon-top h1{font-size:28px;letter-spacing:0;line-height:1.25}
.tryon-stage{position:relative;display:grid;place-items:center;background:#111;border-radius:22px;overflow:hidden;margin:0 -4px 12px}
.tryon-stage canvas{display:block;width:auto;height:auto;max-width:100%;max-height:62dvh;touch-action:none;cursor:grab}
.tryon-stage .tryon-badge{position:absolute;left:12px;top:12px;background:#000000a8;color:#fff}
.tryon-product{display:flex;gap:12px;align-items:center;background:var(--surface);border-radius:16px;padding:12px}.tryon-product img,.tryon-product .icon{width:64px;height:64px;object-fit:contain;border-radius:12px;background:var(--swatch);flex-shrink:0}.tryon-product small{display:block;color:var(--muted)}
.tryon-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:6px 0}.tryon-controls .icon-button{background:var(--surface);border-radius:999px;min-width:52px;min-height:52px}
.tryon-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.picker-item{display:grid;gap:4px;justify-items:center;text-align:center;background:var(--surface);border-radius:16px;padding:12px;color:var(--text);font-size:13px;font-weight:400}.picker-item img,.picker-item .icon{width:100%;height:80px;object-fit:contain}.picker-item small{font-size:12px}.picker-item.active{outline:2px solid var(--blue)}
.tryon-actions{margin:14px 0}
.primary-file{border:0;background:var(--blue);color:var(--on-blue);border-radius:24px;padding:16px;font-weight:600}.primary-file input{color:var(--on-blue)}
.status-pill{justify-self:start;border-radius:12px;padding:8px;font-size:13px;background:var(--raised);color:var(--warning)}
.inquiry-text{white-space:pre-wrap;margin:0;font:14px/1.5 ui-monospace,SFMono-Regular,monospace;color:var(--text)}
a.button{display:flex;align-items:center;justify-content:center;text-decoration:none;min-height:52px;border-radius:999px;font-weight:600}a.button.primary{background:var(--blue);color:var(--on-blue)}
.product-swatch.large,.product-swatch.large:has(img){height:240px;border-radius:18px;overflow:hidden}
textarea{width:100%;border:1px solid var(--control);border-radius:16px;padding:12px;background:var(--surface);color:var(--text)}
.chips.center{flex-wrap:wrap;justify-content:center;overflow:visible}

.chips>*{flex-shrink:0}.product-swatch{background:var(--swatch)}.picker-item img{background:var(--swatch);border-radius:12px}

/* Figma Foundations (MY PH): screen headers, back buttons, segments, text buttons without icons. */
#header:empty{display:none}
.languages{border:0;background:var(--raised);border-radius:12px;padding:4px;gap:4px}
.languages button{min-height:40px;min-width:44px;border-radius:9px;font-size:15px;font-weight:400;color:var(--muted)}
.languages button.active{background:var(--surface);color:var(--text);box-shadow:none}
.welcome-top{display:flex;justify-content:flex-end;margin-bottom:12px}
.heading>.row{align-items:center}
.heading.back{grid-template-columns:48px minmax(0,1fr);column-gap:12px;align-items:center}
.heading.back>:not(.icon-button){grid-column:2}
.heading.back h1{font-size:28px;line-height:1.25;letter-spacing:0}
.heading.back>.icon-button{grid-row:1}
.heading .subtitle,.section-label{font-size:13px;color:var(--muted)}
.section-label{text-transform:uppercase;letter-spacing:.4px;margin:8px 0}
:is(.heading,.tryon-top,#header)>.icon-button{width:48px;height:48px;min-width:48px;padding:0;border-radius:50%;background:var(--raised);color:var(--text)}
:is(.heading,.tryon-top,#header)>.icon-button .icon{width:22px;height:22px}
:is(button.primary,button.secondary,a.button):not(.icon-button)>.icon{display:none}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.product-swatch{border-radius:16px;overflow:hidden}
.product-price{font-size:17px;color:var(--text)}
.product-price.unknown{color:var(--muted)}
#page{padding-bottom:110px}
@media(min-width:760px){.heading.back h1{font-size:34px}#nav{left:50%;right:auto;transform:translateX(-50%);width:min(100%,600px);bottom:12px;border-radius:24px;box-shadow:0 2px 12px #0000001a}}
@media(max-width:759px){.product-grid{grid-template-columns:1fr}.product-card .product-art,.product-swatch:has(img){height:180px}}
.product-price-large{font-size:34px;font-weight:700;font-variant-numeric:tabular-nums}
.primary-file input::file-selector-button{border:0;border-radius:999px;background:var(--surface);color:var(--blue);font:600 15px system-ui,sans-serif;padding:8px 14px;margin-right:10px;cursor:pointer}
.primary-file input{background:transparent;border:0;min-height:44px;padding:0}
/* Processing wait: spinner and elapsed seconds over the photo; the status line below is announced once. */
.stage-busy{position:absolute;inset:auto 12px 12px;display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;background:#000000cc;color:#fff;border-radius:14px;padding:10px 14px;font-size:15px;font-variant-numeric:tabular-nums}.stage-busy[hidden]{display:none}.stage-bar{grid-column:1/-1;grid-row:2;height:8px;border-radius:999px;background:#ffffff33;overflow:hidden}.stage-bar i{display:block;height:100%;width:0;background:var(--accent,#7fd1ff);border-radius:inherit;transition:width .9s linear}
.consent-busy{display:flex;align-items:center;gap:10px;min-height:24px}.consent-busy .stage-busy{position:static;background:var(--raised);color:var(--text);width:100%}.consent-busy .stage-bar{background:#00000022}
.spinner{width:18px;height:18px;border-radius:50%;border:2.5px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite;flex-shrink:0}
@keyframes spin{to{transform:rotate(360deg)}}
body[data-busy=true]{cursor:progress}
.trap{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.product-swatch{position:relative}.product-swatch .demo-tag{position:absolute;left:8px;top:8px;right:auto;bottom:auto;font-size:12px;padding:3px 8px;background:var(--surface)}
.factory-name{display:block;color:var(--blue)}
.status-pill.sent{color:var(--success)}
.factory-contact a{font-weight:600;font-size:17px;text-decoration:none;min-height:32px;display:flex;align-items:center}
/* Nalog fabrike */
.factory-auth{max-width:460px;margin:auto}.factory-auth>.row:first-child{justify-content:space-between}
.link{padding:8px 0;min-height:44px}
.segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--raised);border-radius:14px;padding:4px}.segmented button{min-height:42px;border-radius:10px;color:var(--muted);font-weight:500}.segmented button.active{background:var(--surface);color:var(--text);font-weight:600}
button.full{width:100%}
.factory-title{min-width:0}.factory-title small{display:block;font-size:13px;color:var(--muted)}.factory-title strong{display:block;font-size:24px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#nav .count{display:inline-block;min-width:20px;padding:0 6px;border-radius:999px;background:var(--danger);color:#fff;font-size:12px;font-weight:600;line-height:20px}
.badge{display:inline-block;border-radius:8px;padding:3px 8px;font-size:12px;font-weight:600;background:var(--raised);color:var(--muted);margin-bottom:6px}.badge.new{background:var(--blue);color:var(--on-blue)}.badge.contacted{color:var(--success)}.badge.draft{color:var(--warning)}
.inquiry.new{border-color:var(--blue)}.inquiry .contact a{font-size:17px;font-weight:600;text-decoration:none}.inquiry .comment{color:var(--text);background:var(--raised);border-radius:12px;padding:10px 12px;white-space:pre-wrap}
.inquiry-image img{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:14px}
.factory-thumb{width:64px;height:64px;border-radius:12px;background:var(--swatch);overflow:hidden;display:grid;place-items:center;flex-shrink:0}.factory-thumb img{width:100%;height:100%;object-fit:cover}
.list-button .badge{margin:6px 0 0}
.factory-photo img{display:block;width:100%;max-height:240px;object-fit:contain;border-radius:14px;background:var(--swatch)}
.segmented.three{grid-template-columns:repeat(3,1fr)}.segmented.three button{font-size:14px;padding:0 4px}.row.wrap{flex-wrap:wrap;justify-content:flex-start;gap:8px}
.model-preview{width:100%;aspect-ratio:4/3;border-radius:14px;background:var(--swatch);overflow:hidden;touch-action:none}.model-preview canvas{display:block;width:100%;height:100%}.model-status{display:flex;gap:10px;align-items:center;color:var(--blue);background:var(--raised);border-radius:14px;padding:12px 14px}
.row.start{align-items:flex-start}
.chip.add{background:var(--blue);color:var(--on-blue);box-shadow:0 1px 4px #0003}.chip.add:disabled{opacity:.45}
/* Buttons: labels are never cut mid-word; rows wrap instead of squeezing a label. */
button,a.button,.chip,.badge,.picker-item,.list-button{overflow-wrap:normal;word-break:normal;hyphens:manual}
.sheet-actions,.grid.three{display:flex;flex-wrap:wrap;gap:10px}
.grid.three>button{flex:1 1 auto;min-width:max-content;padding-left:14px;padding-right:14px}
#sheet .product-grid{grid-template-columns:1fr}
/* Own-background buttons keep their colours on hover (the generic button:hover is more specific than .chip.active). */
button.chip.active:hover:not(:disabled),button.chip.add:hover:not(:disabled){background:var(--blue);color:var(--on-blue);filter:brightness(.95)}
.segmented button.active:hover:not(:disabled),.languages button.active:hover:not(:disabled){background:var(--surface)}
.primary-file:hover:not(:disabled){background:var(--blue)}
.row>button,.row>.chip{flex-shrink:0}.heading .row{flex-wrap:wrap;gap:8px 12px}
.grid.three>button br{display:none}.grid.three>button{min-height:52px}
/* First-run tour (v1-tour.js) */
.tour-root{position:fixed;inset:0;z-index:2000}
.tour-spot{position:fixed;border-radius:14px;box-shadow:0 0 0 9999px rgba(0,0,0,.6);outline:2px solid var(--blue);pointer-events:none;transition:left .2s,top .2s,width .2s,height .2s}
.tour{position:fixed;background:var(--surface);color:var(--text);border-radius:16px;padding:14px 16px;box-shadow:0 8px 32px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:8px}
.tour-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.tour-title{font-size:17px}.tour-count{color:var(--muted);font-size:15px}
.tour-text{margin:0;font-size:16px;line-height:1.35}
.tour-bar{display:flex;gap:8px;justify-content:flex-end;align-items:center}
.tour-bar button{min-height:44px;padding:0 16px;border-radius:999px;background:var(--raised);color:var(--blue);font-weight:600}
.tour-bar .tour-skip{margin-right:auto;background:transparent;color:var(--muted);font-weight:400;padding:0 8px}
.tour-bar .tour-next{background:var(--blue);color:var(--on-blue)}
@media(prefers-reduced-motion:reduce){.tour-spot{transition:none}}
.link-button{display:block;margin:0 auto;min-height:44px;padding:0 12px;background:transparent;color:var(--blue);text-decoration:underline;font-size:15px}
/* Wall and floor coverings: panel under the photo, covering rows with a highlighted price per m2. */
.surface-panel{margin:0 0 12px}.surface-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.surface-head h3{font-size:20px;line-height:1.25}
.surface-head .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;background:var(--raised);color:var(--text)}
.cover-list{display:grid;gap:8px}
.cover-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 12px;border-radius:16px;background:var(--surface);color:var(--text);text-align:left;font-weight:500}
.cover-row.active{outline:2px solid var(--blue)}.cover-row:disabled{opacity:.45}
.cover-swatch{flex:0 0 44px;width:44px;height:44px;border-radius:10px;background-size:cover;background-position:center;box-shadow:inset 0 0 0 1px #00000026}
.cover-swatch.none{background:linear-gradient(to top right,transparent calc(50% - 1px),#8e8e93 50%,transparent calc(50% + 1px)),var(--raised)}
.cover-name{flex:1 1 auto;min-width:0;display:grid;gap:2px;font-size:16px;line-height:1.2}.cover-name small{font-size:12px;font-weight:400;color:var(--muted)}
.price-m2{flex:0 0 auto;font-size:15px;font-weight:700;line-height:1.2;color:var(--on-blue);background:var(--blue);border-radius:10px;padding:4px 8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.cover-current{display:grid;gap:8px;padding:12px;border-radius:16px;background:var(--surface)}.cover-sum{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cover-total{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}.cover-grand{font-size:15px}.cover-grand strong{font-variant-numeric:tabular-nums}
@media(max-width:380px){.cover-row{flex-wrap:wrap}}
/* Preuredi sobu: one-tap restyle, style cards, before / after slider, quote of the room. */
.restyle{display:grid;gap:10px;margin:0 0 12px}
.restyle-main{display:grid;gap:2px;justify-items:center;width:100%;min-height:68px;padding:12px 18px;border-radius:22px;background:linear-gradient(135deg,#0a84ff,#5e5ce6);color:#fff;box-shadow:0 6px 18px #0a84ff55;text-align:center}
.restyle-main:hover:not(:disabled){background:linear-gradient(135deg,#0a84ff,#5e5ce6);filter:brightness(1.06)}
.restyle-main.active{box-shadow:0 0 0 3px var(--blue)}
.restyle-title{display:inline-flex;align-items:center;gap:8px;font-size:19px;font-weight:700}.restyle-title .icon{display:inline-block!important;width:22px;height:22px}
.restyle-main small{font-size:13px;font-weight:400;opacity:.92;line-height:1.25}
.restyle-active{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border-radius:16px;padding:6px 8px 6px 16px}
.restyle-chips{margin:0}
.restyle-panel{margin:0 0 12px}
.style-grid{display:grid;gap:10px}
.style-card{display:grid;grid-template-columns:132px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;row-gap:2px;align-items:center;text-align:left;padding:10px;border-radius:18px;background:var(--surface);color:var(--text);min-height:92px;box-shadow:inset 0 0 0 1px var(--line)}
.style-card.active{box-shadow:inset 0 0 0 2px var(--blue)}
.style-card .style-thumb{grid-row:1/3}.style-name{font-size:19px;font-weight:700;align-self:end}.style-card small{align-self:start;font-size:14px;color:var(--muted);line-height:1.25}
.style-thumb{position:relative;display:block;width:100%;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--swatch)}
.style-thumb i{position:absolute;display:block;background-position:center}
.style-thumb .st-wall{left:0;top:0;width:64%;height:66%}.style-thumb .st-acc{left:64%;top:0;width:36%;height:66%;box-shadow:inset 8px 0 10px -8px #0004}
.style-thumb .st-floor{left:0;top:66%;width:100%;height:34%;box-shadow:inset 0 8px 10px -8px #0005}
.style-thumb .st-win{left:11%;top:11%;width:22%;height:36%;border-radius:2px;box-shadow:0 0 0 3px #fff9,inset -5px 0 6px -4px #0003}
.style-thumb .st-bed{left:50%;top:44%;width:34%;height:30%;border-radius:5px 5px 3px 3px;box-shadow:0 3px 4px #0004}
.style-thumb .st-ns{top:52%;width:9%;height:18%;border-radius:2px;box-shadow:0 2px 3px #0004}.style-thumb .st-ns1{left:39%}.style-thumb .st-ns2{left:86%}
@media(min-width:760px){.style-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.style-card{grid-template-columns:1fr;grid-template-rows:auto auto auto;row-gap:6px}.style-card .style-thumb{grid-row:auto}.style-name{align-self:auto}}
@media(max-width:380px){.style-card{grid-template-columns:104px minmax(0,1fr)}}
.compare-label{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;font-weight:600;font-size:15px;padding:0 6px}
.compare-label input[type=range]{width:100%;min-height:44px;accent-color:var(--blue);padding:0;background:transparent;border:0}
.quote-card h3{font-size:17px;margin-top:6px}.quote-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.quote-list li{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.quote-list li:last-child{border-bottom:0}
.q-name{display:grid;gap:2px;min-width:0;font-size:16px;line-height:1.25}.q-name small{font-size:13px;color:var(--muted)}
.q-sum{flex:0 0 auto;font-variant-numeric:tabular-nums;font-size:16px;text-align:right;max-width:46%}
.quote-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:8px;padding-top:12px;border-top:2px solid var(--text);font-size:17px}.quote-total strong{font-size:24px;font-variant-numeric:tabular-nums}
.quote-images{align-items:start}.quote-images figure{margin:0;display:grid;gap:4px}.quote-images img{width:100%;border-radius:12px;display:block}.quote-images figcaption{font-size:13px;color:var(--muted);text-align:center}
.room-record .inquiry-text{font-size:13px}
.room-list .quote-list li{padding:6px 0}
.restyle-main small,.restyle-main .restyle-title{color:#fff}
