/* Canopy studio. Existing site typography, colours and header are inherited. */
.studio-main{width:calc(100% - 8.4%);max-width:1440px;margin:0 auto;padding:42px 0 36px}
.studio-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:30px}
.studio-intro h1{font:400 clamp(32px,3vw,46px)/1.13 var(--serif);letter-spacing:-.65px;color:#f2e5cd;margin-top:13px}
.studio-intro>p{max-width:370px;font-size:12px;line-height:1.7;color:#aaa99f}
.studio-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:28px;align-items:start}
.studio-settings{background:#181817;border:1px solid #c9a46a35;border-radius:8px;padding:22px 20px 16px;min-width:0}
.studio-controls fieldset{border:0;min-width:0;padding:0;margin:0}
.studio-controls .studio-fieldset+.studio-fieldset{margin-top:25px;padding-top:23px;border-top:1px solid #d6bb8d22}
.studio-controls .studio-fieldset>legend{display:flex;align-items:center;gap:10px;padding:0;margin-bottom:15px;color:#e7e1d6;font-size:13px;font-weight:650;width:100%}
.studio-fieldset>legend>span:first-child{font-size:10px;letter-spacing:1px;color:#aa8b5f;font-weight:500}
.studio-shapes,.studio-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.studio-option{position:relative;cursor:pointer;min-width:0;display:block}
.studio-option>input{position:absolute;width:1px;height:1px;opacity:0;inset:0;padding:0;border:0;pointer-events:none}
.studio-option>span{border:1px solid #7d715536;border-radius:4px;background:#20201d;min-height:44px;padding:9px 4px;display:flex;justify-content:center;align-items:center;gap:5px;color:#bdbbb3;transition:background .15s,border-color .15s,color .15s}
.studio-option b{font-size:10px;font-weight:500;line-height:1.35;text-align:center;overflow-wrap:anywhere}
.studio-option>input:checked+span{border-color:#dfb878;background:#d9b27413;color:#efc88b;box-shadow:inset 0 0 0 1px #d5ac6320}
.studio-option:hover>span{border-color:#b5986599}
.studio-option>input:focus-visible+span{outline:2px solid #efc88b;outline-offset:3px}
.studio-shape>span{display:flex;flex-direction:column;min-height:82px;padding:8px 3px 10px;gap:7px}
.studio-shape svg{width:67px;max-width:100%;height:38px;stroke-width:1.5}
.studio-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:17px 15px}
.studio-dimension>label{font-size:11px;color:#c4c2b9;display:block;margin-bottom:7px;min-height:15px}
.studio-value{display:flex;align-items:center;border:1px solid #8575534d;background:#111210;border-radius:4px;overflow:hidden}
.studio-value input{width:100%;font-size:18px;font-weight:500;color:#eaddc4;border:0;border-radius:0;background:none;padding:8px 9px;min-height:41px;font-variant-numeric:tabular-nums;outline-offset:-1px;resize:none}
.studio-value>span{color:#7e7c72;font-size:11px;padding-right:10px}
.studio-dimension input[type=range]{appearance:none;-webkit-appearance:none;display:block;border:0;border-radius:0;box-shadow:none;background:transparent;padding:0;margin:2px 0 0;width:100%;height:28px;cursor:pointer;accent-color:#dfb878}
.studio-dimension input[type=range]::-webkit-slider-runnable-track{height:2px;background:#655339;border-radius:2px}
.studio-dimension input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#e5bf83;border:2px solid #181817;margin-top:-5px;box-shadow:0 0 0 1px #e5bf83}
.studio-dimension input[type=range]::-moz-range-track{height:2px;background:#655339}
.studio-dimension input[type=range]::-moz-range-thumb{width:9px;height:9px;border:1px solid #e5bf83;border-radius:50%;background:#e5bf83}
.studio-dimension small{display:block;color:#77776e;font-size:9px;line-height:1.4;margin-top:0}
.studio-hint{font-size:10px;line-height:1.5;color:#c3a36d;margin-top:10px}
.studio-controls .studio-subgroup{margin-top:15px}
.studio-controls .studio-subgroup:first-of-type{margin-top:0}
.studio-subgroup>legend{font-size:11px;color:#a8a79e;margin-bottom:8px;padding:0}
.studio-options .studio-option>span{flex-direction:column;gap:6px;min-height:62px;padding:8px 4px}
.studio-swatch{width:24px;height:17px;border-radius:3px;border:1px solid #ffffff30;box-shadow:0 2px 5px #0004;display:block}
.studio-roof-clear{background:linear-gradient(135deg,#e0e3d7,#a7b5ae)}
.studio-roof-bronze{background:linear-gradient(135deg,#c4a071,#6c4c2a)}
.studio-roof-smoke{background:linear-gradient(135deg,#899391,#424947)}
.studio-frame-graphite{background:#464b4a}.studio-frame-brown{background:#694633}.studio-frame-black{background:#131614}
.studio-ornaments{grid-template-columns:1fr 1fr}
.studio-ornaments .studio-option:last-child{grid-column:1/-1}
.studio-ornaments .studio-option>span{min-height:40px;padding:9px 7px}
.studio-reset{background:none;display:flex;align-items:center;gap:8px;justify-content:center;width:100%;min-height:40px;color:#8f8e84;font-size:10px;margin-top:20px;border-top:1px solid #d6bb8d22;padding-top:10px}
.studio-reset>span:first-child{font-size:18px}
.studio-reset:hover{color:var(--gold)}
.studio-result{position:sticky;top:20px;min-width:0}
.studio-paper{color-scheme:light;background:#eee9dd;border:1px solid #c8b99c;border-radius:8px;overflow:hidden;box-shadow:0 18px 50px #0003;color:#393c34}
.studio-paper-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 21px 13px;color:#665f4e;font-size:11px;border-bottom:1px solid #99876124}
.studio-paper-heading>span:first-child{text-transform:uppercase;font-size:9px;letter-spacing:1.8px;font-weight:700}
.studio-paper-note{font-size:9px;color:#918773}
.studio-viewbar{display:flex;justify-content:center;gap:3px;margin:15px auto 0;padding:3px;border:1px solid #b3a68d66;border-radius:5px;background:#e3ddcf;width:max-content;max-width:calc(100% - 30px)}
.studio-viewbar button{background:transparent;color:#77705f;font-size:11px;padding:10px 18px;min-height:40px;border-radius:3px;white-space:normal;line-height:1.4}
.studio-viewbar button[aria-pressed=true]{color:#33382f;background:#fbf8ef;box-shadow:0 1px 5px #57492c16}
.studio-viewbar button:hover{color:#342f23}
.studio-viewbar button:focus-visible{outline-color:#977139;outline-offset:-2px}
.studio-preview{width:100%;aspect-ratio:900/650;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,#fff9ed3b,transparent 67%)}
.studio-preview>svg{width:100%;height:auto;display:block;max-height:none;stroke:none;overflow:visible}
.studio-view-settings{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 20px 13px;border-top:1px solid #99876126;font-size:10px}
.studio-check{display:flex!important;align-items:center;gap:8px;cursor:pointer;min-height:38px;color:#716950;min-width:0}
.studio-check input{width:15px;height:15px;margin:0;padding:0;accent-color:#8c6c3e;flex-shrink:0;box-shadow:none}
.studio-orbit{display:flex;align-items:center;gap:10px;min-width:0;color:#716950}
.studio-orbit label{font-size:10px}
.studio-orbit input{width:90px;min-width:36px;height:26px;padding:0;background:transparent;border:0;accent-color:#8c6c3e}
.studio-orbit button{background:transparent;border:1px solid #b8ad9760;width:36px;height:36px;border-radius:50%;color:#786347;font-size:20px;flex-shrink:0}
.studio-orbit button:hover{background:#d6c5a653}
.studio-orbit input:disabled{opacity:.35;cursor:not-allowed}
.studio-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0 0;padding:0;border-bottom:1px solid #bda47730}
.studio-stats>div{padding:0 14px 15px;border-left:1px solid #bda47730;min-width:0}
.studio-stats>div:first-child{padding-left:0;border-left:0}
.studio-stats>div:last-child{padding-right:0}
.studio-stats dt{font-size:10px;font-weight:400;line-height:1.45;color:#9b9b90;min-height:30px}
.studio-stats dd{margin:7px 0 0;font-family:var(--serif);font-size:29px;line-height:1.15;color:#ead3a9;white-space:nowrap;font-variant-numeric:tabular-nums}
.studio-stats dd>span{font-family:var(--sans);font-size:11px;color:#8e8d80;margin-left:1px}
.studio-geometry-note{font-size:9px;color:#77796f;margin-top:8px}
.studio-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px;margin-top:22px}
.studio-actions .gold-button,.studio-button{padding:12px 13px;min-height:47px;border-radius:4px;display:flex;align-items:center;justify-content:center;gap:12px;line-height:1.4;text-transform:none;letter-spacing:0;font-size:11px;font-weight:600}
.studio-actions .gold-button{box-shadow:0 2px 12px #cfa46515}
.studio-actions button>span:last-child:not(:first-child){font-size:17px;flex-shrink:0}
.studio-button{background:#20201c;color:#d4c6ac;border:1px solid #b79a635c}
.studio-button:hover{background:#2a2921;border-color:#c8a96c}
.studio-secondary-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:5px}
.studio-secondary-actions button{min-height:40px;padding:8px 0;font-size:10px;color:#ad9876;background:none;text-decoration:underline;text-underline-offset:4px;text-align:left}
.studio-secondary-actions button:last-child{text-align:right}
.studio-secondary-actions button:hover{color:#e5bd7c}
.studio-status{font-size:11px;line-height:1.6;color:#e0bb7f;margin-top:10px}
.studio-status:empty{display:none}
.studio-share{margin-top:12px;padding:13px 14px;border:1px solid #9c835d50;border-radius:5px;background:#1b1c18}
.studio-share label{font-size:10px;color:#b8ad96;margin-bottom:7px;display:block}
.studio-share input{font-size:11px;padding:10px;background:#10120f;color:#e3d7bf;width:100%}
.studio-project-note{font-size:10px;line-height:1.6;color:#8b8d82;max-width:640px;margin-top:10px}
.studio-saved{margin-top:46px;border-top:1px solid #b5a0802e;padding-top:32px}
.studio-saved-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:23px}
.studio-saved-heading h2{font:400 32px/1.2 var(--serif);color:#eadbc1;margin-top:8px}
.studio-saved-heading>p{max-width:370px;font-size:11px;line-height:1.6;color:#97998d}
.studio-saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.saved-card{border:1px solid #a9906942;border-radius:7px;overflow:hidden;background:#181916;min-width:0}
.saved-preview{aspect-ratio:1.7;background:#e9e3d6;display:grid;place-items:center;overflow:hidden}
.saved-preview>svg{display:block;width:100%;height:100%;stroke:none}
.saved-info{padding:16px 17px 8px}
.saved-info h3,.saved-info strong{font:400 22px/1.3 var(--serif);color:#e4d2ad;display:block}
.saved-info p{font-size:11px;color:#a09f92;line-height:1.5;margin-top:7px}
.saved-info small{font-size:9px;color:#777a6e;display:block;margin-top:8px}
.saved-actions{display:flex;justify-content:space-between;gap:12px;padding:0 17px 10px}
.saved-actions button{min-height:40px;background:none;color:#d4b17a;text-align:left;padding:10px 0;font-size:11px}
.saved-actions button:last-child{color:#888b7d}
.saved-actions button:hover{color:#f1d1a0}
.saved-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:130px;padding:25px;border:1px dashed #a58b5b40;border-radius:6px;background:#171814}
.saved-empty h3,.saved-empty strong{font:400 23px/1.3 var(--serif);color:#bcad91}
.saved-empty p{font-size:11px;color:#838779;line-height:1.6;margin-top:9px}
.studio-storage-note{font-size:10px;line-height:1.5;color:#73786a;margin-top:15px}
html[lang=ka] .studio-intro h1{font-size:clamp(28px,2.6vw,38px);line-height:1.4}
html[lang=ka] .studio-option b{font-size:9px}
html[lang=ka] .studio-viewbar button{font-size:10px}
html[lang=ka] .studio-stats dd{font-family:var(--sans);font-size:25px}
html[lang=ka] .studio-saved-heading h2{font-size:28px;line-height:1.4}
@media(min-width:1450px){.studio-layout{grid-template-columns:350px minmax(0,1fr);gap:34px}.studio-settings{padding:24px}.studio-controls .studio-fieldset+.studio-fieldset{margin-top:28px;padding-top:25px}.studio-preview{max-height:650px}.studio-intro{margin-bottom:35px}.studio-option b{font-size:11px}.studio-intro>p{max-width:440px;font-size:13px}}
@media(max-width:1100px){.studio-main{width:calc(100% - 46px)}.studio-layout{grid-template-columns:300px minmax(0,1fr);gap:20px}.studio-settings{padding:19px 16px 15px}.studio-intro{gap:25px}.studio-intro>p{max-width:310px;font-size:11px}.studio-option b{font-size:9px}.studio-viewbar button{padding:10px 12px;font-size:10px}.studio-view-settings{padding:8px 13px;gap:12px}.studio-orbit{gap:7px}.studio-orbit input{width:65px}.studio-stats>div{padding-inline:10px}.studio-stats dt{font-size:9px;min-height:39px}.studio-stats dd{font-size:26px}.studio-actions{grid-template-columns:1fr 1fr}.studio-actions .gold-button{grid-column:1/-1}.studio-actions .gold-button,.studio-button{font-size:10px;padding:11px 9px}.studio-saved-grid{gap:14px}}
@media(max-width:820px){.studio-main{width:calc(100% - 36px);padding-top:28px}.studio-intro{display:block;margin-bottom:24px}.studio-intro h1{font-size:35px}.studio-intro>p{max-width:600px;margin-top:13px;font-size:12px}.studio-layout{display:flex;flex-direction:column;gap:25px}.studio-result{order:1;position:static;width:100%}.studio-settings{order:2;width:100%;padding:23px}.studio-controls{display:grid;grid-template-columns:1fr 1fr;gap:25px}.studio-controls .studio-fieldset+.studio-fieldset{margin:0;padding:0;border:0}.studio-controls .studio-materials{grid-column:1/-1;padding-top:22px!important;border-top:1px solid #d6bb8d22!important;display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px}.studio-controls .studio-materials>legend{grid-column:1/-1}.studio-controls .studio-subgroup{margin:0}.studio-ornaments{grid-template-columns:1fr}.studio-ornaments .studio-option:last-child{grid-column:auto}.studio-reset{margin-top:20px}.studio-shape>span{min-height:96px}.studio-option b{font-size:10px}.studio-preview{max-height:530px}.studio-actions{grid-template-columns:1.2fr 1fr 1fr}.studio-actions .gold-button{grid-column:auto}.studio-stats dt{min-height:30px;font-size:10px}.studio-stats dd{font-size:29px}.studio-saved{margin-top:32px}.studio-saved-grid{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.studio-main{width:calc(100% - 28px);padding-top:24px}.studio-intro h1{font-size:31px;letter-spacing:-.5px;max-width:350px}.studio-intro>.eyebrow{font-size:8px}.studio-intro>p{font-size:11px;line-height:1.7}.studio-paper-heading{padding:14px 14px 10px}.studio-paper-heading>span:first-child{font-size:8px;letter-spacing:1.2px}.studio-paper-note{font-size:8px}.studio-viewbar{display:grid;grid-template-columns:1.2fr 1fr 1fr;width:calc(100% - 24px);max-width:none;margin-top:10px}.studio-viewbar button{font-size:10px;padding:8px 5px;min-height:40px}.studio-preview{aspect-ratio:900/650}.studio-view-settings{display:flex;flex-wrap:wrap;gap:0 15px;padding:6px 12px 9px}.studio-check{font-size:9px;flex:1}.studio-orbit{gap:6px}.studio-orbit label{font-size:9px}.studio-orbit input{width:58px}.studio-orbit button{width:32px;height:32px;font-size:18px}.studio-stats{grid-template-columns:1fr 1fr;margin-top:17px;gap:13px 0;padding-bottom:14px}.studio-stats>div{padding:0 13px!important}.studio-stats>div:nth-child(odd){border-left:0;padding-left:0!important}.studio-stats dt{font-size:10px;min-height:28px;max-width:150px}.studio-stats dd{font-size:28px;margin-top:5px}.studio-actions{grid-template-columns:1fr 1fr;margin-top:18px}.studio-actions .gold-button{grid-column:1/-1}.studio-actions .gold-button,.studio-button{min-height:47px;font-size:11px}.studio-secondary-actions{align-items:flex-start;gap:15px}.studio-secondary-actions button{font-size:9px;line-height:1.5}.studio-project-note{font-size:9px}.studio-settings{padding:21px 17px 14px}.studio-controls{display:block}.studio-controls .studio-fieldset+.studio-fieldset{margin-top:23px;padding-top:23px;border-top:1px solid #d6bb8d22}.studio-controls .studio-materials{display:block;padding-top:23px!important}.studio-controls .studio-subgroup{margin-top:16px}.studio-controls .studio-subgroup:first-of-type{margin-top:0}.studio-option b{font-size:10px}.studio-shape>span{min-height:85px}.studio-options .studio-option>span{min-height:61px}.studio-ornaments{grid-template-columns:1fr 1fr}.studio-ornaments .studio-option:last-child{grid-column:1/-1}.studio-ornaments .studio-option>span{min-height:42px}.studio-dimensions{gap:18px 17px}.studio-dimension>label{font-size:11px}.studio-dimension small{font-size:9px}.studio-saved-heading{display:block;margin-bottom:19px}.studio-saved-heading h2{font-size:30px}.studio-saved-heading>p{margin-top:12px;font-size:11px}.studio-saved-grid{grid-template-columns:1fr;gap:17px}.saved-preview{aspect-ratio:1.7}.studio-storage-note{font-size:9px}html[lang=ka] .studio-intro h1{font-size:27px;line-height:1.45}html[lang=ka] .studio-option b{font-size:9px}html[lang=ka] .studio-viewbar button{font-size:9px}html[lang=ka] .studio-check{font-size:8px}html[lang=ka] .studio-orbit label{font-size:8px}}
@media print{body{background:#fff!important;color:#111!important}.site-header,.studio-intro,.studio-layout,.studio-saved,.footer{display:none!important}.studio-main{width:100%;max-width:none;padding:0;margin:0}#print-sheet{display:block!important;color:#111}#print-sheet svg{display:block;width:100%;height:auto;stroke:none;max-height:45vh}#print-sheet h1,#print-sheet h2{color:#111;font-family:var(--serif);font-weight:400}#print-sheet h1{font-size:26pt;margin-bottom:12pt}#print-sheet h2{font-size:18pt;margin:14pt 0 8pt}#print-sheet p,#print-sheet td,#print-sheet th{font-size:10pt;line-height:1.5}#print-sheet table{width:100%;border-collapse:collapse;margin:12pt 0}#print-sheet th,#print-sheet td{text-align:left;border-bottom:1px solid #ccc;padding:6pt}#print-sheet th{font-weight:500;width:45%}#print-sheet .print-note{font-size:9pt;color:#666;margin-top:14pt}#print-sheet>section,#print-sheet>figure{break-inside:avoid}.skip-link{display:none!important}@page{size:A4 portrait;margin:14mm}}
@media(prefers-reduced-motion:reduce){.studio-option>span{transition:none}}

.studio-header .header-inner{max-width:1480px}.studio-back{margin-left:auto;margin-right:16px;color:#c4b394;display:flex;align-items:center;gap:10px;font-size:12px;min-height:44px}.studio-header .language-switch{margin-left:0}.studio-header .language-options{right:0}.studio-page .site-header{height:82px}.studio-page input[type=radio]{accent-color:#dbb475}.studio-page .footer{margin-top:10px}
@media(max-width:600px){.studio-page .site-header{height:72px}.studio-back{font-size:10px;margin-right:8px;gap:6px}.studio-header .brand-text>span{font-size:13px}html[lang=ka] .studio-header .brand-text>span{font-size:11px}}
@media print{#print-sheet>svg{max-height:115mm}#print-sheet dl{display:grid;grid-template-columns:repeat(3,1fr);gap:12pt;margin:15pt 0}#print-sheet dl>div{border-bottom:1px solid #ddd;padding-bottom:5pt}#print-sheet dt{font-size:8pt;color:#666}#print-sheet dd{font-size:10pt;margin:3pt 0 0}#print-sheet>p{font-size:9pt;margin-bottom:6pt}#print-sheet h1{font-size:22pt;margin-bottom:6pt}}

/* Keep the drawing visible while adjusting parameters on a phone. */
@media screen and (max-width:820px){
  .studio-layout{gap:16px;isolation:isolate}
  .studio-result{display:contents;position:static}
  .studio-result>*{width:100%;min-width:0}
  .studio-paper{order:1;position:sticky;top:8px;z-index:8;box-shadow:0 8px 24px #0006}
  .studio-paper-heading{display:none}
  .studio-viewbar{margin-top:8px}
  .studio-preview{height:clamp(180px,45vw,270px);max-height:none;aspect-ratio:auto}
  .studio-preview>svg{width:100%;height:100%;max-height:100%}
  .studio-settings{order:2}
  .studio-stats{order:3;margin-top:0}
  .studio-geometry-note{order:4;margin-top:-7px}
  .studio-actions{order:5;margin-top:0}
  .studio-secondary-actions{order:6;margin-top:-10px}
  .studio-status{order:7;margin-top:0}
  .studio-share{order:8;margin-top:0}
  .studio-project-note{order:9;margin-top:0}
  .studio-controls input,.studio-controls fieldset{scroll-margin-top:calc(clamp(180px,45vw,270px) + 130px)}
}

/* Product selection and expanded materials. */
.studio-page [hidden]{display:none!important}
.studio-products{border:0;padding:0;margin:0 0 28px}
.studio-products legend{font-size:11px;color:#a9a393;margin-bottom:10px}
.studio-products>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.studio-products .studio-option>span{justify-content:flex-start;gap:20px;padding:16px 23px;min-height:74px}
.studio-products svg{width:65px;height:38px;stroke-width:1.3;color:#c9aa76;flex-shrink:0}
.studio-products b{font-size:18px;font-family:var(--serif);font-weight:400;text-align:left}
.studio-two{grid-template-columns:1fr 1fr}
.studio-settings .studio-shapes{grid-template-columns:repeat(3,minmax(0,1fr))}
.studio-palette .studio-option>span{min-height:56px;padding:7px 3px;gap:5px}
.studio-palette .studio-option:last-child{grid-column:1/-1}
.studio-palette .studio-option:last-child>span{flex-direction:row;min-height:38px;gap:10px}
.studio-palette-note{font-size:10px;line-height:1.55;color:#96958a;margin-top:11px}
.studio-custom-color{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px;padding:10px;border:1px solid #b79a6350;border-radius:4px}
.studio-custom-color label{font-size:10px;color:#c4b394;flex-basis:100%}
.studio-custom-color input[type=color]{width:52px;height:34px;padding:2px;cursor:pointer;background:#171815}
.studio-custom-color output{font-size:12px;font-variant-numeric:tabular-nums;color:#dfc29a}
.studio-plan-note{font-size:11px;line-height:1.5;color:#776a51;padding:0 22px 12px}
.studio-controls fieldset[data-scope=gate]{margin-top:0;padding-top:0;border:0}
.studio-page .studio-stats dd{font-size:27px}
html[lang=ka] .studio-products b{font:500 14px var(--sans)}
@media(min-width:821px){.studio-layout{grid-template-columns:350px minmax(0,1fr)}.studio-option b{font-size:10px}.studio-settings{padding-inline:20px}}
@media(min-width:541px) and (max-width:820px){.studio-controls .studio-materials{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-roof-group{grid-column:1/-1}}
@media(max-width:540px){.studio-products{margin-bottom:20px}.studio-products>div{gap:6px}.studio-products .studio-option>span{padding:9px 4px;min-height:72px;gap:4px;flex-direction:column}.studio-products svg{width:42px;height:27px}.studio-products b{font:500 12px var(--sans)}html[lang=ka] .studio-products b{font-size:10px}.studio-settings .studio-shape>span{min-height:88px}.studio-plan-note{font-size:9px;padding:0 13px 8px}.studio-palette-note{font-size:10px}.studio-settings .studio-dimension>label{min-height:30px}.studio-page .studio-stats dd{font-size:26px}}
@media print{.studio-products{display:none!important}}

.studio-products .studio-option b{font-size:18px}
@media(max-width:540px){.studio-products .studio-option b{font-size:12px}html[lang=ka] .studio-products .studio-option b{font-size:10px}}

/* Product details, ornament library and explicit geometric frame layout. */
.studio-products>div{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.studio-products .studio-option>span{padding:14px 12px;gap:10px;min-height:85px}
.studio-products svg{width:43px;height:34px}
.studio-products .studio-option b{font-size:16px;line-height:1.3;overflow-wrap:normal}
.studio-controls fieldset[data-scope=door],.studio-controls fieldset[data-scope=railing]{margin-top:0;padding-top:0;border:0}
.studio-patterns{grid-template-columns:1fr 1fr}
.studio-patterns .studio-option>span{padding:7px;gap:7px}
.studio-patterns i{display:block;width:100%;height:48px;overflow:hidden;border-radius:3px;background:#eee7d9}
.studio-patterns svg{display:block;width:100%;height:100%;stroke:none}
.pattern-enlarge{width:100%;padding:12px 0 0;background:none;color:#d4b17a;font-size:11px;text-align:left;display:flex;justify-content:space-between}
.pattern-dialog{width:min(900px,calc(100vw - 30px));max-height:90vh;overflow:auto;border:1px solid #b69b6c;background:#191a17;color:#e9d9bd;border-radius:9px;padding:24px;margin:auto;box-shadow:0 20px 100px #0009}
.pattern-dialog::backdrop{background:#000c;backdrop-filter:blur(5px)}
.pattern-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.pattern-dialog-heading h2{font:400 26px/1.4 var(--serif)}
.pattern-dialog-heading button{background:transparent;color:#d6b77f;font-size:30px;width:44px;height:44px;flex-shrink:0;border:1px solid #a78b604d;border-radius:50%}
#pattern-large>svg{width:100%;height:auto;display:block;stroke:none;border-radius:4px}
.pattern-dialog>p{font-size:12px;line-height:1.6;color:#aaa99f;margin-top:16px}
.layout-result{border:1px solid #9e84523d;border-radius:6px;background:#1b1c18;margin-top:15px;padding:16px 18px}
.layout-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.layout-heading h2{font:400 23px/1.2 var(--serif);color:#dfc69b}
.layout-heading>span{font-size:9px;color:#a18f70}
#layout-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#layout-metrics dt{font-size:10px;color:#b7b4a7;line-height:1.5}
#layout-metrics dd{font-size:23px;line-height:1.3;color:#e5cb9f;margin:5px 0 0;font-variant-numeric:tabular-nums}
.layout-result>p{font-size:10px;color:#92958a;line-height:1.6;margin-top:5px}
.layout-result .layout-positions{margin:12px 0 8px;padding-top:10px;border-top:1px solid #ac96622b}
.layout-positions span{display:block;font-size:9px;color:#a3977f}
.layout-positions strong{display:block;color:#c8c1ad;font-size:11px;line-height:1.7;font-weight:500;overflow-wrap:anywhere}
.code-details{margin-top:12px;border-top:1px solid #ac96622b;padding-top:11px;font-size:10px;line-height:1.65;color:#a5a79b}
.code-details summary{color:#d2b782;cursor:pointer;min-height:28px}
.code-details ul{margin:6px 0 12px;padding-left:18px}
.code-details a{color:#cab48b;text-decoration:underline;text-underline-offset:3px}
.code-details p+p{margin-top:8px}
.studio-geometry-note{line-height:1.6;color:#b39c76;font-size:10px}
.drawing-layout-label{text-align:center;font-size:11px;line-height:1.5;color:#786647;padding:10px 12px 0}
@media(max-width:1100px){.studio-products .studio-option>span{flex-direction:column;gap:5px;padding:10px 5px}.studio-products .studio-option b{text-align:center;font-size:14px}.studio-products svg{height:29px}#layout-metrics{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.layout-result{order:4;margin-top:0}.studio-controls>.studio-fieldset[data-scope=canopy]:last-child{grid-column:1/-1;padding-top:20px;border-top:1px solid #d6bb8d22}}
@media(max-width:540px){.studio-products>div{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-products .studio-option>span{min-height:76px}.studio-products .studio-option b{font:500 11px/1.35 var(--sans)}.studio-products svg{height:25px}.layout-heading{align-items:flex-start}.layout-heading h2{font-size:21px}.layout-heading>span{font-size:8px}.pattern-dialog{padding:15px}.pattern-dialog-heading h2{font-size:21px}.layout-result{padding:15px}.studio-patterns i{height:58px}}
@media print{.pattern-dialog{display:none!important}}

.studio-custom-pattern{grid-column:1/-1}
.studio-custom-pattern>span{flex-direction:row!important;justify-content:flex-start;padding:8px!important;gap:12px!important}
.studio-custom-pattern i{width:90px!important;height:45px!important;flex-shrink:0}
.pattern-editor-open{width:100%;margin-top:12px;min-height:42px}
.custom-pattern-editor{width:min(1160px,calc(100vw - 24px));padding:25px}
.custom-pattern-editor .eyebrow{margin:0 0 6px;font-size:9px}
.custom-pattern-editor .editor-help{margin:0 0 18px;max-width:760px;font-size:12px;color:#b5b3a8;line-height:1.6}
.editor-workspace{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:22px;align-items:start}
.custom-pattern-canvas{touch-action:none;border-radius:6px;overflow:hidden}
.custom-pattern-canvas svg{display:block;width:100%;height:auto;stroke:none}
.custom-pattern-canvas [data-editor-index]{cursor:grab}
.custom-pattern-canvas [data-editor-index]:active{cursor:grabbing}
.custom-pattern-canvas [data-editor-index]:focus{outline:none}
.custom-pattern-canvas [data-editor-index]:focus>rect{stroke:#986c26;stroke-width:2;stroke-dasharray:5 4}
.editor-tools{border:0;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.editor-tools legend{font-size:10px;color:#a99c84;margin-bottom:10px}
.editor-tools button{background:#24251f;color:#d7c29d;border:1px solid #8f79574d;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border-radius:4px;font-size:10px;line-height:1.4;min-height:68px}
.editor-tools button>span:first-child{font:400 27px/1 Georgia,serif;color:#dfbd7f}
.editor-tools button:disabled{opacity:.35;cursor:not-allowed}
.editor-properties{padding:16px;border:1px solid #9d85544d;background:#12130f;border-radius:5px}
.editor-properties h3{font:400 19px/1.3 var(--serif);color:#e3cea8}
#selected-element-name{font-size:11px;color:#ab9875;margin-top:5px;margin-bottom:15px}
#element-controls{border:0;padding:0;margin:0}
#element-controls label{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#bab5a5;margin:13px 0 4px}
#element-controls output{font-variant-numeric:tabular-nums;color:#e3c58e;white-space:nowrap}
#element-controls input[type=range]{appearance:auto;width:100%;height:28px;padding:0;margin:0;border:0;background:none;box-shadow:none;accent-color:#d8b37a;cursor:pointer}
#element-controls button{display:block;width:100%;border:1px solid #a18a594d;color:#cfb78d;background:#20211a;font-size:11px;min-height:38px;padding:7px;margin-top:10px;border-radius:3px}
#element-controls button[aria-pressed=true]{border-color:#e1bd7e;background:#5a482837}
#element-controls:disabled{opacity:.4}
.editor-count{font-size:10px;color:#908a7a;margin-top:13px}
.editor-count strong{color:#d2bb92;font-weight:600}
.editor-auto,#editor-empty{font-size:10px;line-height:1.6;color:#a99b80;margin-top:10px}
.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;border-top:1px solid #9d855433;padding-top:16px}
.editor-footer>div{display:flex;flex-wrap:wrap;gap:7px 17px}
.editor-footer>div button{background:transparent;color:#c4ac82;font-size:10px;padding:8px 0;min-height:36px;text-decoration:underline;text-underline-offset:3px}
.editor-footer button:disabled{opacity:.35;cursor:not-allowed}
.editor-footer .gold-button{min-width:125px;min-height:43px;padding:10px 20px;text-transform:none}
#ornament-editor-status{color:#ddbe81;min-height:0}
#ornament-editor-status:empty{display:none}
@media(max-width:700px){.custom-pattern-editor{padding:16px;max-height:94dvh}.editor-workspace{grid-template-columns:1fr;gap:16px}.editor-properties{padding:12px}.editor-properties h3{font-size:18px}#element-controls{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}#element-controls label{grid-column:1/-1;margin-top:8px}#element-controls input[type=range]{grid-column:1/-1}#selected-element-name{margin-bottom:7px}.editor-tools{gap:5px}.editor-tools button{font-size:9px;min-height:60px}.editor-footer{align-items:flex-end}.editor-footer>div{gap:3px 12px}.editor-footer .gold-button{min-width:95px}.custom-pattern-editor .editor-help{font-size:11px}.custom-pattern-editor .pattern-dialog-heading h2{font-size:24px}.custom-pattern-editor .pattern-dialog-heading{margin-bottom:12px}.custom-pattern-editor>p{font-size:10px}.editor-count{margin-top:9px}}

/* Keep all seven product types visible without squeezing their labels. */
.studio-products>div{grid-template-columns:repeat(4,minmax(0,1fr))}
.studio-products .studio-option[hidden],.studio-shapes .studio-option[hidden]{display:none}
@media(min-width:821px) and (max-width:1100px){.studio-products>div{grid-template-columns:repeat(4,minmax(0,1fr))}}
