:root{--forest:#254937;--forest2:#315b45;--ink:#27362d;--muted:#778279;--line:#e4e9e3;--paper:#f6f8f4;--gold:#ba9260}*{box-sizing:border-box}body{margin:0;font:14px/1.5 Inter,'Segoe UI',Arial,sans-serif;background:var(--paper);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.topbar{display:flex;align-items:center;gap:20px;padding:13px 3.5%;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;white-space:nowrap}.brand .mark{width:43px;height:43px;border-radius:11px;background:var(--forest);display:grid;place-items:center;color:#f6ebd7;font-size:24px}.brand strong{display:block;font-size:20px;letter-spacing:-1px;line-height:1}.brand em{font-style:normal;color:#b38a5d}.brand small{display:block;letter-spacing:1.8px;font-size:8px;color:#879287;margin-top:6px}.nav{display:flex;gap:3px;align-items:center;overflow:auto;flex:1;scrollbar-width:thin}.nav a{white-space:nowrap;padding:9px 11px;border-radius:9px;font-size:12px;font-weight:750}.nav a:hover,.nav a.active{background:#e9f1e9;color:var(--forest)}.container{max-width:1640px;padding:25px 3%;margin:auto}.eyebrow{font-size:10px;font-weight:850;letter-spacing:2.3px;color:#68826f}.heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:7px 0 22px}.heading h1{font-size:clamp(26px,3.2vw,43px);line-height:1.08;letter-spacing:-1.4px;margin:7px 0}.heading p{color:#768177;margin:0;max-width:800px}.tag{font-size:11px;border-radius:40px;background:#e6eee5;border:1px solid #d4e2d3;padding:8px 12px;color:#41634b;font-weight:800;white-space:nowrap}.workarea{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(360px,.78fr);gap:17px;align-items:start}.viewer,.editor,.summary,.help{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 10px 35px #273f2d0a;overflow:hidden}.panelhead{padding:14px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.panelhead strong{font-size:14px}.panelhead span{font-size:11px;color:#748277}.scene{height:clamp(420px,42vw,610px);position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 25%,#fff,#e4eae1);touch-action:none}.scene canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.scene canvas:active{cursor:grabbing}.hint{position:absolute;left:15px;bottom:14px;background:#ffffffdd;border:1px solid #e2e9df;border-radius:30px;font-size:11px;color:#637466;padding:7px 11px;pointer-events:none}.view-badge{position:absolute;right:13px;top:13px;background:#2e503dc9;color:#fff;font-size:11px;padding:6px 10px;border-radius:9px;pointer-events:none}.tools{display:flex;gap:7px;flex-wrap:wrap;padding:12px 14px;border-top:1px solid var(--line)}.btn{padding:9px 13px;border:1px solid #dce6da;background:#fff;border-radius:9px;color:#385c44;font-weight:750;font-size:12px}.btn:hover{background:#edf4ec}.btn.primary{background:var(--forest);border-color:var(--forest);color:white}.btn.danger{color:#a24b40;border-color:#efdad4}.btn:disabled{opacity:.5;cursor:not-allowed}.editor{max-height:calc(100vh - 130px);min-height:500px;display:flex;flex-direction:column}.editorscroll{overflow-y:auto;overscroll-behavior:contain;padding:0 17px 15px;scrollbar-width:thin}.section{padding:17px 0;border-bottom:1px solid #e9ede8}.section:last-child{border:0}.section h3{font-size:14px;margin:0 0 11px}.section .sub{font-size:11px;color:#768279;margin:-4px 0 11px}.segment{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.segment button{padding:11px;border:1px solid #dae5d9;border-radius:10px;background:#fff;font-weight:800;font-size:12px;color:#3d5946}.segment button.active{background:#2e5a41;color:#fff;border-color:#2e5a41}.palette{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.addmod{display:flex;align-items:center;gap:9px;text-align:left;padding:10px;border:1px solid #dfe7dc;border-radius:10px;background:#fbfcfa}.addmod:hover{border-color:#80a78b;background:#f0f7f0}.addmod .symbol{width:34px;height:34px;border-radius:8px;background:#e4eee3;color:#315e43;display:grid;place-items:center;font-size:20px;flex-shrink:0}.addmod strong{display:block;font-size:11px}.addmod small{font-size:10px;color:#7c897d}.modlist{display:grid;gap:6px}.modrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px;border:1px solid #e0e7de;border-radius:10px;background:#fff}.modrow.active{border:2px solid #4b8260;background:#f1f7ef;padding:7px}.modselect{border:0;background:none;text-align:left;padding:2px;min-width:0}.modselect strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.modselect small{font-size:10px;color:#778679}.rowactions{display:flex;gap:3px}.mini{width:26px;height:27px;padding:0;border:1px solid #dce6db;border-radius:7px;background:#fff;color:#48634d;font-size:13px}.mini.remove{color:#a05c4c}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.field{display:flex;flex-direction:column;gap:4px}.field label{font-size:11px;font-weight:750;color:#55675b}.field input,.field select{width:100%;border:1px solid #d6e1d5;background:#fff;border-radius:9px;padding:9px 10px;min-width:0;color:#26392c}.field small{font-size:10px;color:#819083}.swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.swatch{border:2px solid transparent;background:#f7f9f6;border-radius:9px;padding:4px;min-width:0}.swatch.active{border-color:#2f6347;background:#eaf4ea}.swatch img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px;display:block}.swatch span{font-size:9px;line-height:1.2;display:block;margin-top:5px;min-height:23px}.check{display:flex;align-items:center;gap:8px;font-size:12px;margin:8px 0;color:#4a614f}.check input{accent-color:#2d6544}.status{padding:0 16px 13px;font-size:11px;color:#607e64;min-height:27px}.summary{padding:21px 25px;margin-top:16px}.summaryhead{display:flex;justify-content:space-between;gap:12px;align-items:center}.summaryhead h2{font-size:20px;margin:0}.summaryhead strong{font-size:28px;color:#2b5940}.summarytable{width:100%;border-collapse:collapse;margin:15px 0;font-size:12px}.summarytable th{text-align:left;background:#f0f5ef;padding:9px 10px;color:#506954}.summarytable td{border-bottom:1px solid #e9eee8;padding:9px 10px}.summarytable td:last-child{text-align:right;font-weight:750}.summarytable tfoot td{font-size:14px;background:#f6f9f5}.summary-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.notice{font-size:11px;color:#7c887e;margin:10px 0}.help{margin-top:16px;padding:17px 22px;color:#66796a;font-size:12px}.help strong{color:#31553c}.hidden{display:none!important}.divider-title{font-size:10px;font-weight:850;color:#7e9080;letter-spacing:1.4px;text-transform:uppercase;margin:13px 0 7px}.empty{font-size:12px;padding:12px;color:#78867b;background:#f7faf6;border-radius:8px}.framecol{display:flex;gap:7px}.framecol button{flex:1;border:1px solid #dbe5d9;border-radius:8px;padding:8px;background:#fff;font-size:11px}.framecol button.active{border-color:#315d44;background:#e9f2e8}.legend{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.legend span{padding:6px 9px;background:#edf3eb;border-radius:8px;font-size:10px;color:#5a775f}.shortcuts{font-size:11px;color:#879187}.layouttip{font-size:11px;padding:10px;background:#f1f5ef;color:#55725a;border-radius:9px;margin-top:9px}@media(max-width:1080px){.topbar{flex-wrap:wrap}.nav{order:3;width:100%}.workarea{grid-template-columns:1fr}.editor{max-height:660px}.scene{height:520px}}@media(max-width:620px){.container{padding:17px 12px}.heading{align-items:start}.tag{display:none}.scene{height:380px}.editor{max-height:610px}.summaryhead{align-items:start;flex-direction:column}.summaryhead strong{font-size:24px}.palette{grid-template-columns:1fr 1fr}.swatches{gap:3px}.summary{padding:14px}.summarytable{font-size:10px}.nav a{font-size:11px}}

/* V6.3 — prominently visible, accessible color/material tabs */
.color-studio{background:linear-gradient(140deg,#f4f7f0,#fff);border-bottom:1px solid #e2e9df;padding:13px 15px 14px;flex-shrink:0}
.color-studio-head{display:flex;justify-content:space-between;align-items:baseline;gap:9px;margin-bottom:9px;flex-wrap:wrap}
.color-studio-head strong{font-size:13px;color:#315540}.color-studio-head small{font-size:10px;color:#718477}
.color-tabs{display:flex;gap:5px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.color-tabs button{flex:1 0 auto;border:1px solid #d9e5d9;background:#fff;color:#46624e;border-radius:8px;padding:8px 9px;font-size:10px;font-weight:800;white-space:nowrap}
.color-tabs button.active,.color-tabs button[aria-selected="true"]{background:#2d5a41;border-color:#2d5a41;color:#fff}
.color-tabs button:focus-visible,.swatch:focus-visible,.counter-swatch:focus-visible,.chip:focus-visible{outline:3px solid #b9965c;outline-offset:2px}
.color-tab-panel{margin-top:8px}.color-help{font-size:10px;color:#637869;margin:0 0 8px}
.studio-swatches{grid-template-columns:repeat(5,minmax(0,1fr))}.studio-swatches .swatch img{aspect-ratio:1.3}
.color-selected{font-size:10px;color:#385a43;font-weight:800;margin-top:7px;min-height:16px}
.counter-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.counter-swatch{background:#fff;border:2px solid #e5ebe3;border-radius:9px;padding:5px;min-width:0;font-size:10px;color:#506452;font-weight:750}
.counter-swatch.active{border-color:#2d6845;background:#edf6ec}.counter-swatch .counter-preview{display:block;height:39px;border-radius:6px;margin-bottom:5px;border:1px solid #ddd}
.glass-label{font-size:10px;color:#4b6b53;font-weight:850;margin:7px 0 5px}.glass-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.chip{border:1px solid #dce5dc;border-radius:8px;background:#fff;padding:6px 4px;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;font-size:10px;color:#516752}
.chip.active{border:2px solid #326549;background:#e9f4e9;padding:5px 3px}.chip .dot{width:24px;height:24px;border-radius:7px;border:1px solid #a6b4ad;display:block}
@media(max-width:620px){.color-studio{padding:11px 10px}.color-tabs button{padding:7px}.color-studio-head small{display:none}.studio-swatches .swatch span{font-size:8px}}
