.tv,.tv *{box-sizing:border-box}
.tv{--tv-ink:#18343c;--tv-muted:#62777c;--tv-line:#d8e3e5;--tv-bg:#f5f8f7;--tv-primary:#007a77;--tv-primary2:#005d5a;color:var(--tv-ink);font:400 15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;width:100%;max-width:1850px;margin:24px auto 55px;padding:0 18px}
.tv button,.tv input,.tv textarea{font:inherit}
.tv button{cursor:pointer;touch-action:manipulation;transition:background .16s,color .16s;border:1px solid var(--tv-line);border-radius:10px;padding:10px 13px;background:#fff;color:var(--tv-ink);font-weight:600}
.tv button:focus-visible,.tv input:focus-visible,.tv textarea:focus-visible{outline:3px solid #7dd1ca;outline-offset:2px}
.tv button:hover{border-color:var(--tv-primary)}
.tv button:disabled{opacity:.55;cursor:wait}
.tv .tv-intro{margin-bottom:22px}.tv .tv-intro h2{font-size:clamp(25px,3vw,40px);letter-spacing:-.035em;margin:5px 0 9px;line-height:1.1;color:var(--tv-ink)}
.tv .tv-intro p{margin:0;color:var(--tv-muted)}.tv .tv-kicker{display:block;font-size:11px;letter-spacing:.12em;color:var(--tv-primary);font-weight:800}
.tv-workspace{display:grid;grid-template-columns:minmax(295px,340px) minmax(0,1fr);gap:17px;align-items:start}
.tv-sidebar{background:#fff;border:1px solid var(--tv-line);border-radius:17px;padding:17px;display:grid;gap:14px}
.tv-upload{display:grid;gap:8px;background:#eef7f5;border:1px dashed #82b6b1;padding:15px;border-radius:12px;cursor:pointer}
.tv-upload input[type=file]{width:100%;max-width:100%;color:var(--tv-ink);font-size:13px}
.tv-upload input[type=file]::file-selector-button{padding:9px 12px;border:1px solid #add0c9;background:#fff;border-radius:8px;margin-right:10px;color:var(--tv-ink)}
.tv-upload-hint{color:var(--tv-muted);font-size:12px}.tv-label{font-weight:750;font-size:15px;color:var(--tv-ink)}
.tv-block{border-top:1px solid var(--tv-line);padding-top:14px;display:grid;gap:10px}.tv-block p{font-size:12px;color:var(--tv-muted);margin:0;line-height:1.5}
.tv-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.tv .tv-tools button{padding:8px 5px;font-size:12px}
.tv .tv-tools button.is-active,.tv .tv-material.is-selected{border-color:var(--tv-primary);background:#e5f7f2;color:#005b58;box-shadow:inset 0 0 0 1px var(--tv-primary)}
.tv-controls{display:flex;gap:7px}.tv .tv-controls button{font-size:12px;padding:8px 9px;flex:1}
.tv .tv-slider{display:grid;grid-template-columns:1fr auto;gap:5px;align-items:center;color:var(--tv-muted);font-size:12px}
.tv-slider input{grid-column:1/-1;width:100%;accent-color:var(--tv-primary);height:22px;margin:0}
.tv-slider output{font-weight:700;font-variant-numeric:tabular-nums}
.tv-materials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tv .tv-material{padding:6px;display:flex;align-items:center;gap:7px;text-align:left;min-height:54px;font-size:11px;line-height:1.2}
.tv-swatch{display:block;width:42px;height:42px;flex:0 0 42px;background-color:#b0a090;background-size:cover;border:1px solid #0001;border-radius:7px}
.tv-stage{min-width:0;border:1px solid var(--tv-line);background:#fff;border-radius:17px;padding:14px;display:flex;flex-direction:column;gap:10px}
.tv-stage-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tv-stage-header strong{font-size:15px}
.tv-view-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tv .tv-view-tools button{padding:6px 12px;min-width:38px;font-size:13px}
.tv .tv-view-tools button.is-active,.tv .tv-view-tools button[aria-pressed=true]{background:#e5f7f2;border-color:var(--tv-primary);color:var(--tv-primary2)}
.tv-view-tools output{min-width:48px;font-size:12px;text-align:center;font-weight:700;color:var(--tv-muted)}
.tv-canvas-wrap{position:relative;overflow:hidden;background:#e9efee;border-radius:12px;height:clamp(430px,74dvh,900px);min-height:430px;display:flex;justify-content:center;align-items:center}
.tv canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;cursor:crosshair;touch-action:none;transform-origin:center center;flex:none}
.tv-stage-help{font-size:12px;color:var(--tv-muted);margin:0}
.tv-editor-feedback{min-height:26px;color:#465f61;font-size:13px;padding:3px 2px}
.tv-editor-feedback.tv-error{color:#af2930;font-weight:700}
.tv-editor-feedback.tv-success{color:#007358;font-weight:700}
.tv-empty{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:9px;background:#f1f3f3;color:var(--tv-muted);text-align:center;padding:22px;pointer-events:none}
.tv-empty[hidden]{display:none}.tv-empty strong{color:var(--tv-ink);font-size:18px}.tv-empty-icon{font-size:42px;color:#5aa49c}
.tv-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tv-compare{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--tv-muted)}.tv-compare input{accent-color:var(--tv-primary);width:130px}
.tv-buttons{display:flex;gap:8px}.tv .tv-buttons button{font-size:12px;padding:8px 10px}
.tv-variants{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--tv-muted)}
.tv .tv-variant{padding:4px;display:flex;align-items:center;gap:6px;font-size:10px;font-weight:600}
.tv-variant img{object-fit:cover;width:46px;height:33px;border-radius:4px}
.tv .tv-variant.is-selected{border-color:var(--tv-primary);background:#e5f7f2}
.tv-enquiry{margin-top:18px;border:1px solid var(--tv-line);background:#fff;border-radius:17px;padding:22px}
.tv-enquiry h3{margin:0 0 6px;font-size:20px}.tv-enquiry>p{color:var(--tv-muted);font-size:13px;margin:0 0 16px}
.tv-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tv-enquiry form{display:grid;gap:14px}
.tv-enquiry label{display:grid;gap:5px;font-weight:600;font-size:13px}
.tv-enquiry input:not([type=checkbox]),.tv-enquiry textarea{width:100%;border:1px solid #becdce;border-radius:8px;padding:10px;color:var(--tv-ink);background:#fff;min-height:42px}
.tv-enquiry .tv-consent{display:flex;gap:9px;align-items:flex-start;font-weight:400;font-size:12px;color:var(--tv-muted)}
.tv-consent input{margin:2px 0 0;flex:0 0 auto;accent-color:var(--tv-primary)}
.tv .tv-primary{background:var(--tv-primary);color:white;border-color:var(--tv-primary);padding:13px 18px;font-size:15px;width:max-content;max-width:100%}
.tv .tv-primary:hover{background:var(--tv-primary2);color:#fff}
.tv-feedback{min-height:20px;color:#435a63;font-size:13px}.tv-feedback.tv-error{color:#b01f27;font-weight:700}.tv-feedback.tv-success{color:#007358;font-weight:700}
.tv-materials-empty{grid-column:1/-1;font-size:13px;color:var(--tv-muted);line-height:1.45}
.tv-app-page{margin:0;background:#f3f7f6;color:#18343c}
.tv-app-page #wpadminbar{display:none!important}
.tv-app-page .tv{margin-top:12px}
.tv-skip-link{position:absolute;left:-9999px;top:0;background:#fff;padding:10px;z-index:999}
.tv-skip-link:focus{left:15px;top:15px}
@media(max-width:850px){.tv-workspace{display:flex;flex-direction:column}.tv-sidebar{display:contents}.tv-sidebar>.tv-upload{order:1;width:100%}.tv-sidebar>.tv-block:first-of-type{order:2;width:100%;background:#fff;border:1px solid var(--tv-line);border-radius:15px;padding:14px}.tv-stage{order:3;width:100%}.tv-sidebar>.tv-block:last-of-type{order:4;width:100%;background:#fff;border:1px solid var(--tv-line);border-radius:15px;padding:14px}.tv-canvas-wrap{height:clamp(350px,62dvh,720px);min-height:350px}}
@media(max-width:570px){.tv{margin:15px auto 40px;padding:0 10px}.tv-stage{padding:9px}.tv-canvas-wrap{height:clamp(300px,50dvh,510px);min-height:300px}.tv-form-grid{grid-template-columns:1fr}.tv-enquiry{padding:15px}.tv-bottom{align-items:stretch}.tv-compare{flex:1;justify-content:space-between}.tv-compare input{flex:1;max-width:220px}.tv-buttons{width:100%}.tv .tv-buttons button{flex:1}.tv-materials{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-stage-header{align-items:flex-start}.tv-view-tools{gap:4px}}
/* View transform uses an unconstrained absolute canvas; sizing is owned by fitCanvas. */
.tv canvas{position:absolute;left:50%;top:50%;max-width:none;max-height:none;transform-origin:center center}.tv select,.tv input[type=number]{font:inherit;color:var(--tv-ink);background:#fff;border:1px solid #becdce;border-radius:8px;padding:8px;width:100%;min-width:0}.tv-controls>label{flex:1;min-width:0;font-size:11px}.tv-scene-picker{display:grid;gap:9px;min-width:0}.tv-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tv-scenes button{padding:4px;display:grid;text-align:left;gap:5px;font-size:11px;min-width:0}.tv-scenes img{width:100%;height:66px;object-fit:cover;border-radius:6px}.tv-buttons{flex-wrap:wrap}.tv-projects{padding:14px;border:1px solid var(--tv-line);border-radius:10px}.tv-projects[hidden],.tv-paid[hidden]{display:none}.tv-project-row{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid var(--tv-line)}.tv-project-row strong{width:100%;font-size:13px}.tv-project-row label{display:flex;align-items:start;gap:7px;width:100%;font-size:12px}.tv-project-row input{margin-top:3px;flex-shrink:0}.tv-project-row button{font-size:12px}.tv-paid{padding:12px;border:1px solid #e1cc9e;border-radius:10px;background:#fff9eb;font-size:12px}.tv-paid p{margin:0 0 10px}.tv-stage:fullscreen{width:100vw;height:100dvh;max-width:none;border-radius:0;padding:15px;overflow:auto;background:#fff}.tv-stage:fullscreen .tv-canvas-wrap{min-height:250px;flex:1;height:auto}.tv-stage:fullscreen .tv-stage-header{flex-shrink:0}.tv-stage:fullscreen .tv-projects{max-width:100%}
@media(max-width:850px){.tv-sidebar>.tv-scene-picker{order:0;width:100%;padding:14px;background:#fff;border:1px solid var(--tv-line);border-radius:14px}.tv-scenes{grid-template-columns:repeat(3,minmax(0,1fr))}.tv-scenes img{height:85px}.tv-stage:fullscreen .tv-canvas-wrap{min-height:180px}}@media(max-width:570px){.tv-scenes{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-buttons button{flex:1 1 40%}.tv-stage:fullscreen{padding:8px}.tv-stage:fullscreen .tv-view-tools button{padding:5px 7px;font-size:11px}}
.tv-project-name{display:grid;gap:4px;font-size:12px;min-width:0;flex:1}.tv-project-name input{padding:8px;border:1px solid var(--tv-line);border-radius:8px;width:100%;min-width:100px}.tv-scene-picker summary{cursor:pointer}.tv-variants>button:not(.tv-variant){font-size:10px;padding:5px}
.tv-tools{grid-template-columns:repeat(2,minmax(0,1fr))}

/* 0.4.0: photo-first gallery and project entry points. */
.tv-start-guide{display:flex;flex-wrap:wrap;align-items:center;gap:9px 14px;background:#e5f4ef;border:1px solid #c6e0d8;border-radius:14px;padding:13px 17px;margin:0 0 15px}.tv-start-guide strong{white-space:nowrap}.tv-start-guide span{flex:1;min-width:210px;color:#3d6160;font-size:13px}
.tv-scene-picker{display:block;background:#fff;border:1px solid var(--tv-line);border-radius:17px;padding:18px;margin-bottom:17px;scroll-margin-top:20px}
.tv-gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}.tv-gallery-heading h3{margin:0;font-size:20px;line-height:1.25}.tv-gallery-heading p{margin:5px 0 0;color:var(--tv-muted);font-size:13px}.tv-gallery-heading label{display:grid;gap:5px;font-size:12px;font-weight:650;min-width:185px}
.tv-scenes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.tv-scenes button{display:grid;gap:5px;padding:6px;text-align:left;font-size:12px;min-width:0}.tv-scenes img{display:block;width:100%;height:115px;object-fit:cover;border-radius:8px}.tv-scenes button:focus-visible,.tv-scenes button:hover{border-color:var(--tv-primary)}
.tv-project-shortcuts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px;background:#f0f8f5;border:1px solid #cee6de;border-radius:11px}.tv-project-shortcuts strong{font-size:14px}.tv-project-shortcuts span{font-size:12px;color:var(--tv-muted);flex:1;min-width:155px}.tv .tv-project-shortcuts button{font-size:12px;padding:8px 12px}.tv .tv-project-shortcuts .tv-primary{font-size:13px;padding:9px 13px}
.tv-material strong,.tv-material small{display:block}.tv-material small{font-size:10px;color:var(--tv-muted);font-weight:400;margin-top:4px}.tv .tv-material{min-height:65px}.tv-swatch{width:54px;height:54px;flex-basis:54px}
@media(max-width:1250px){.tv-scenes{grid-template-columns:repeat(4,minmax(0,1fr))}.tv-scenes img{height:105px}}
@media(max-width:850px){.tv-scenes{grid-template-columns:repeat(3,minmax(0,1fr))}.tv-scenes img{height:100px}}
@media(max-width:570px){.tv-scene-picker{padding:12px}.tv-scenes{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tv-scenes img{height:110px}.tv-gallery-heading label{width:100%}.tv-project-shortcuts span{width:100%;flex-basis:100%}}

.tv.tv-mask-editor-mode .tv-start-guide,.tv.tv-mask-editor-mode .tv-scene-picker,.tv.tv-mask-editor-mode .tv-project-shortcuts{display:none!important}
/* Trade Visualizer 0.5.0 — controls belong to the image, not an invisible sidebar */
.tv{margin:10px auto 28px;padding:0 11px}.tv .tv-intro{margin-bottom:8px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.tv .tv-intro h2{font-size:26px;margin:3px 0}.tv .tv-intro p{font-size:12px}
.tv .tv-start-guide{padding:7px 10px;margin-bottom:9px;gap:6px 12px}.tv-start-guide span{font-size:12px}.tv .tv-start-guide button{padding:7px 10px;font-size:12px}
.tv .tv-scene-picker{padding:9px 11px;margin-bottom:9px}.tv-gallery-heading{margin-bottom:7px;align-items:center}.tv-gallery-heading h3{font-size:16px}.tv-gallery-heading p{font-size:11px;margin:0}.tv-gallery-heading label{min-width:150px}
.tv .tv-scenes{display:flex;overflow-x:auto;overscroll-behavior-x:contain;gap:7px;padding:2px 1px 7px;scrollbar-width:thin}.tv .tv-scenes button{flex:0 0 168px;padding:4px;font-size:11px;text-align:left}.tv .tv-scenes img{height:77px}
.tv .tv-workspace{display:block}.tv .tv-sidebar{display:none}.tv .tv-stage{padding:9px;gap:7px}.tv-stage-header{gap:8px}.tv-stage-title{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.tv-stage-title>.tv-upload{display:flex;align-items:center;gap:7px;border:0;padding:3px 7px;background:#eef7f5}.tv-stage-title .tv-label{font-size:12px}.tv-stage-title .tv-upload-hint{display:none}.tv-stage-title .tv-upload input[type=file]{width:188px;max-width:188px;font-size:11px}.tv-stage-title .tv-upload input[type=file]::file-selector-button{padding:5px}
.tv-view-tools{gap:4px}.tv .tv-view-tools button{padding:6px 8px;font-size:11px}.tv-view-tools output{min-width:38px}.tv-project-shortcuts{padding:5px 9px;gap:7px}.tv-project-shortcuts strong{font-size:12px}.tv .tv-project-shortcuts button{padding:6px 9px}
.tv .tv-editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px;position:sticky;top:0;z-index:25;background:#fff;border:1px solid #bbdcd7;border-radius:11px;padding:6px;box-shadow:0 3px 12px #163d3d13}
.tv .tv-current-mode{font-size:11px;white-space:nowrap;color:#006c68;background:#e4f5ef;border-radius:7px;padding:8px 10px}.tv .tv-mode-help{order:10;flex:1 0 100%;font-size:11px;margin:0;color:#49696b;line-height:1.2}
.tv .tv-editor-toolbar .tv-tools{display:flex;flex-wrap:wrap;gap:4px}.tv .tv-editor-toolbar .tv-tools button{font-size:12px;font-weight:750;padding:9px 11px;border:2px solid #b9cdd0}.tv .tv-editor-toolbar .tv-tools button.is-active{background:#007a77;color:#fff;border:2px solid #005d5a;box-shadow:0 1px 5px #005d5a5e}
.tv-editor-toolbar .tv-controls{gap:3px}.tv .tv-editor-toolbar .tv-controls button{padding:7px 8px;white-space:nowrap;font-size:11px}.tv .tv-editor-toolbar .tv-brush-control{display:flex;align-items:center;gap:4px;font-size:11px}.tv-editor-toolbar .tv-brush-control input{grid-column:auto;width:70px}
.tv .tv-canvas-wrap{height:clamp(360px,58dvh,670px);min-height:360px}.tv-canvas-compare{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);z-index:5;background:#fffffff0;border:1px solid #91b9b3;border-radius:22px;padding:6px 12px;box-shadow:0 3px 13px #173d3d30}.tv-canvas-compare .tv-compare{font-weight:750;color:#26484a}.tv-canvas-compare input{width:clamp(120px,18vw,260px)}
.tv .tv-material-panel{display:flex;align-items:center;flex-wrap:wrap;gap:7px 15px;background:#f8faf9;border:1px solid #d8e5e3;border-radius:10px;padding:6px 9px}.tv-material-head{display:grid;gap:1px;min-width:145px}.tv-material-head strong{font-size:12px}.tv-material-head small{font-size:10px;color:var(--tv-muted)}
.tv .tv-material-panel .tv-materials{display:flex;gap:5px;flex:1;flex-wrap:wrap}.tv .tv-material-panel .tv-material{padding:3px;min-height:43px;font-size:11px;flex:1 1 147px;max-width:220px}.tv .tv-material-panel .tv-swatch{width:38px;height:38px;flex-basis:38px}
.tv .tv-material-settings{width:100%;font-size:12px;border-top:1px solid #d8e3e5;padding:4px 2px}.tv-material-settings summary{cursor:pointer;color:#007a77;font-weight:700}.tv-setting-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px;padding:10px 0}.tv-setting-grid>label,.tv-setting-grid>div{font-size:12px}.tv-setting-grid>.tv-controls{grid-column:span 2}
.tv .tv-stage-help,.tv .tv-editor-feedback,.tv .tv-feedback{display:none!important}.tv-bottom{gap:6px}.tv .tv-project-name{max-width:340px}.tv .tv-buttons button{padding:6px 10px}
.tv .tv-enquiry{padding:13px;margin-top:9px}.tv-enquiry h3{font-size:17px}.tv-enquiry>p{margin-bottom:9px}.tv .tv-enquiry form{gap:9px}.tv .tv-enquiry textarea{min-height:68px;resize:vertical}.tv .tv-enquiry .tv-consent{align-items:center;font-size:12px;display:flex;flex-wrap:wrap;gap:6px}.tv .tv-enquiry .tv-consent span{color:#768a8d}
.tv .tv-public-privacy{border:1px solid #dce7e5;border-radius:9px;padding:8px 10px;font-size:12px}.tv-public-privacy summary{cursor:pointer;font-weight:650}.tv-public-privacy p{font-size:11px;color:var(--tv-muted)}.tv .tv-quote-connect{background:#eef7f5;border-radius:9px;padding:8px 11px;display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center;margin-bottom:10px;font-size:12px}.tv-quote-connect strong{font-size:13px}.tv-quote-connect output{color:#006b5e;font-weight:700}.tv-quote-connect span{color:var(--tv-muted)}
.tv .tv-toast{position:fixed;top:clamp(12px,4vh,42px);right:16px;z-index:2147483600;max-width:min(455px,calc(100vw - 32px));min-width:min(330px,calc(100vw - 32px));display:flex;align-items:start;gap:12px;background:white;color:var(--tv-ink);border:1px solid #a5d6cc;border-left:6px solid #009c83;border-radius:15px;box-shadow:0 16px 50px #183f3e45;padding:16px;animation:tvToastIn .18s ease-out}.tv .tv-toast[hidden]{display:none!important}
.tv-toast>span{display:grid;place-items:center;flex:0 0 35px;height:35px;background:#d9f7eb;color:#007658;border-radius:50%;font-size:23px;font-weight:bold}.tv-toast>div{flex:1}.tv-toast strong{font-size:16px}.tv-toast p{font-size:13px;margin:5px 0 0;overflow-wrap:anywhere}.tv .tv-toast>button{border:0;font-size:24px;padding:0;line-height:1;flex:0 0 24px}.tv .tv-toast-next{display:block;margin-top:9px;background:#007a77;color:white;padding:7px 11px;font-size:12px}.tv .tv-toast-next[hidden]{display:none!important}.tv .tv-toast.tv-toast-error{border-left-color:#d12c42}.tv .tv-toast.tv-toast-error>span{background:#fee3e6;color:#b21d33}@keyframes tvToastIn{from{transform:translateY(-13px);opacity:.4}to{transform:none;opacity:1}}
.tv .tv-confirm{border:0;max-width:min(430px,calc(100vw - 32px));padding:23px;border-radius:16px;box-shadow:0 20px 70px #102b3655;color:var(--tv-ink)}.tv .tv-confirm::backdrop{background:#00191d88}.tv-confirm h3{font-size:19px;margin:0 0 10px}.tv-confirm p{font-size:14px}.tv-confirm>div{display:flex;gap:9px;justify-content:flex-end}.tv-app-page .tv{margin-top:4px}.tv-stage:fullscreen .tv-editor-toolbar{top:0}.tv-stage:fullscreen .tv-canvas-wrap{height:auto;flex:1}
@media(max-width:900px){.tv-setting-grid{grid-template-columns:repeat(2,minmax(110px,1fr))}.tv-stage-title{width:100%}}
@media(max-width:600px){.tv{padding:0 8px}.tv .tv-intro h2{font-size:23px}.tv .tv-start-guide span{min-width:0;width:100%}.tv .tv-scenes button{flex-basis:145px}.tv .tv-scenes img{height:70px}.tv .tv-editor-toolbar .tv-tools{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tv .tv-editor-toolbar .tv-tools button{padding:9px 5px}.tv .tv-editor-toolbar .tv-current-mode{padding:4px 7px}.tv .tv-editor-toolbar .tv-controls{flex:1 1 40%}.tv .tv-canvas-wrap{min-height:300px;height:clamp(300px,49dvh,480px)}.tv .tv-compare input{width:125px}.tv .tv-setting-grid{grid-template-columns:repeat(2,minmax(110px,1fr))}.tv .tv-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-stage-header{gap:5px}.tv-stage-title .tv-upload input[type=file]{max-width:175px}.tv-quote-connect{display:block}}
/* Keep finish choices next to the edit tools, visibly above the photo. */
.tv .tv-material-panel{position:relative;order:0}.tv .tv-editor-toolbar{order:0}.tv .tv-canvas-wrap{order:0}
.tv .tv-bottom [data-tv="saveProject"],.tv .tv-bottom [data-tv="openProjects"]{display:none}

/* 0.6.0 - large photograph and its product controls stay adjacent. */
.tv .tv-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,335px);gap:12px;align-items:start;min-width:0}
.tv .tv-workbench>.tv-canvas-wrap{grid-column:1;grid-row:1;height:clamp(480px,75dvh,900px);min-height:480px;margin:0}
.tv .tv-workbench>.tv-floor-side{grid-column:2;grid-row:1;min-width:0;align-self:stretch;max-height:clamp(480px,75dvh,900px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;display:flex;flex-direction:column;gap:9px}
.tv .tv-workbench .tv-material-panel{display:block;padding:12px;min-width:0;background:#fff;border:1px solid #d4e5e1}
.tv .tv-workbench .tv-material-head strong{font-size:16px}.tv .tv-workbench .tv-material-head small{font-size:11px}
.tv .tv-workbench .tv-materials{display:grid;grid-template-columns:1fr;gap:9px;margin-top:10px}
.tv .tv-workbench .tv-material{display:flex;align-items:center;width:100%;max-width:none;min-height:82px;padding:7px;text-align:left;border-radius:10px;font-size:14px;gap:10px}
.tv .tv-workbench .tv-material .tv-swatch{width:100px;height:68px;flex:0 0 100px;background-size:cover;border-radius:8px}
.tv .tv-workbench .tv-material strong{font-size:14px}.tv .tv-workbench .tv-material small{font-size:11px;line-height:1.35}
.tv .tv-workbench .tv-material-settings{margin-top:12px;padding-top:9px;border-top:1px solid #dce6e3}
.tv .tv-workbench .tv-setting-grid{display:grid;grid-template-columns:1fr;gap:10px}.tv .tv-workbench .tv-setting-grid>.tv-controls{grid-column:auto}
.tv .tv-workbench .tv-setting-grid>.tv-controls label{flex:1;min-width:0}.tv .tv-workbench .tv-setting-grid input,.tv .tv-workbench .tv-setting-grid select{max-width:100%}
.tv .tv-advanced-tools{display:block;border:1px solid #d5e5e2;border-radius:11px;padding:11px;background:#f5faf8}
.tv .tv-advanced-tools>summary{font-size:13px;font-weight:750;cursor:pointer;line-height:1.4;color:#125a54}
.tv .tv-advanced-tools .tv-editor-toolbar{display:flex;flex-direction:column;align-items:stretch;position:static;box-shadow:none;border:0;padding:10px 0 2px;background:transparent;gap:8px}
.tv .tv-advanced-tools .tv-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.tv .tv-advanced-tools .tv-tools button{font-size:12px;white-space:normal;padding:9px 6px}
.tv .tv-advanced-tools .tv-mode-help{order:0;flex:initial}.tv .tv-advanced-tools .tv-brush-control input{width:100%}
.tv .tv-canvas-wrap canvas{max-width:none}.tv .tv-workbench .tv-canvas-compare{bottom:12px}
.tv .tv-gallery-summary{display:list-item;cursor:pointer;font-size:14px;font-weight:750;padding:5px 7px;color:#125a54}
.tv .tv-scene-picker[open] .tv-gallery-heading{padding-top:8px}.tv .tv-scenes button{flex-basis:146px}.tv .tv-scenes img{height:72px}
.tv .tv-scene-picker:not([open]){padding:7px 12px}.tv .tv-start-guide{padding:6px 10px}.tv .tv-stage-header{padding:4px 0}.tv .tv-stage-header strong{white-space:nowrap}
.tv .tv-project-shortcuts{align-self:flex-start;padding:4px 7px;background:#f7faf9;border-color:#e0e9e5}.tv .tv-view-tools{flex-wrap:wrap;gap:5px}
@media(max-width:900px){.tv .tv-workbench{grid-template-columns:1fr}.tv .tv-workbench>.tv-canvas-wrap{grid-column:1;grid-row:1;height:min(63dvh,680px);min-height:350px}.tv .tv-workbench>.tv-floor-side{grid-column:1;grid-row:2;max-height:none;overflow:visible}.tv .tv-workbench .tv-materials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tv .tv-workbench .tv-material{min-height:74px}.tv .tv-workbench .tv-material .tv-swatch{width:75px;height:60px;flex-basis:75px}.tv .tv-workbench .tv-setting-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.tv .tv-workbench>.tv-canvas-wrap{height:57dvh;min-height:300px}.tv .tv-workbench .tv-materials{grid-template-columns:1fr 1fr}.tv .tv-workbench .tv-material{flex-direction:column;align-items:stretch;text-align:center;font-size:12px}.tv .tv-workbench .tv-material .tv-swatch{width:100%;height:76px;flex-basis:auto}.tv .tv-view-tools button{font-size:11px}.tv .tv-workbench .tv-setting-grid{grid-template-columns:1fr}}

.tv .tv-view-more{position:relative;z-index:35}.tv .tv-view-more summary{font-weight:700;color:#234f4a;font-size:12px;cursor:pointer;padding:7px 10px;border:1px solid #d5e3e0;border-radius:9px}.tv .tv-view-more[open]{padding-bottom:4px}.tv .tv-view-more[open] button{display:inline-flex;white-space:nowrap;margin:3px}.tv .tv-view-more[open] {background:#fff}.tv .tv-advanced-tools[open]{scroll-margin-top:20px}
@media(max-width:900px){.tv .tv-workbench>.tv-canvas-wrap{height:auto;aspect-ratio:1.57;min-height:0}}
@media(max-width:560px){.tv .tv-workbench>.tv-canvas-wrap{height:auto;aspect-ratio:1.57;min-height:0}.tv .tv-start-guide{padding:6px 8px;gap:4px}.tv .tv-start-guide span{display:none}.tv .tv-start-guide strong{margin-right:auto}.tv .tv-start-guide button{font-size:11px;padding:6px}}

/* 0.7.0: distinguish published physical products from optional sample colours. */
.tv .tv-catalogue-heading{display:block;font-size:13px;margin:6px 0 8px;color:#153f3d}
.tv .tv-demo-products{border-top:1px solid #d5e4e0;margin-top:12px;padding:12px 0 2px}
.tv .tv-demo-products>summary{cursor:pointer;font-size:12px;line-height:1.45;font-weight:700;color:#695537}
.tv .tv-demo-products .tv-demo-list{display:grid;gap:9px;margin-top:12px}
.tv .tv-demo-products .tv-material{opacity:.86}
.tv .tv-workbench .tv-material-panel .tv-material-head small{display:block}

/* 0.8.0: keep editing tools out of regular customer view */
.tv .tv-brush-control[hidden]{display:none!important}
.tv .tv-advanced-tools:not([open]){padding:9px 12px;background:#fbfdfc}
.tv .tv-workbench{grid-template-columns:minmax(0,1fr) minmax(305px,350px)}
.tv .tv-workbench>.tv-canvas-wrap{height:clamp(570px,77dvh,930px);min-height:570px}
.tv .tv-workbench>.tv-floor-side{max-height:clamp(570px,77dvh,930px)}
@media(max-width:900px){.tv .tv-workbench{grid-template-columns:1fr}.tv .tv-workbench>.tv-canvas-wrap{height:auto;aspect-ratio:1.57;min-height:0}.tv .tv-workbench>.tv-floor-side{max-height:none}}

/* 0.8.0: keep editing tools out of regular customer view */
.tv .tv-brush-control[hidden]{display:none!important}
.tv .tv-advanced-tools:not([open]){padding:9px 12px;background:#fbfdfc}
.tv .tv-workbench{grid-template-columns:minmax(0,1fr) minmax(305px,350px)}
.tv .tv-workbench>.tv-canvas-wrap{height:clamp(570px,77dvh,930px);min-height:570px}
.tv .tv-workbench>.tv-floor-side{max-height:clamp(570px,77dvh,930px)}
@media(max-width:900px){.tv .tv-workbench{grid-template-columns:1fr}.tv .tv-workbench>.tv-canvas-wrap{height:auto;aspect-ratio:1.57;min-height:0}.tv .tv-workbench>.tv-floor-side{max-height:none}}
