*{box-sizing:border-box}body{margin:0;font:16px/1.5 'Segoe UI',Arial,sans-serif;color:#203a35;background:#f5f2ec}button,select,input{font:inherit}button,select{border:1px solid #c7cdc7;border-radius:7px;padding:10px 14px;background:#fff;color:#203a35;cursor:pointer}button:hover{background:#e6ede6}button.active{background:#203e36;color:white;border-color:#203e36}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #bd793a;outline-offset:3px}header{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid #d7ddd7;background:#fff}.brand{display:flex;align-items:center;gap:12px}.mark{display:grid;place-items:center;width:42px;height:46px;background:#203e36;color:#e5c198;font:28px Georgia}.brand strong{font-size:16px;letter-spacing:2px}.brand small{display:block;font-size:14px;color:#667770}.badge,.eyebrow{font-size:12px;letter-spacing:1.7px;font-weight:600}main{display:grid;grid-template-columns:minmax(0,1fr) 340px;height:calc(100dvh - 88px)}#viewport{position:relative;overflow:hidden;background:#e1e7e4}canvas{display:block;width:100%;height:100%;touch-action:none}.viewtitle{position:absolute;top:30px;left:32px;pointer-events:none;z-index:1}.viewtitle span{font-size:12px;letter-spacing:2px}.viewtitle h1{font:32px/1.15 Georgia,serif;margin:8px 0;color:#1c342e}.viewbuttons{position:absolute;left:24px;bottom:62px;display:flex;gap:6px;flex-wrap:wrap;z-index:2}.hint{position:absolute;bottom:14px;left:26px;font-size:14px;color:#344a43;background:#ffffffe0;padding:5px 12px;border-radius:5px;pointer-events:none}aside{overflow:auto;padding:26px;border-left:1px solid #d1d9d2;background:#faf9f5}.asidehead h2{font:27px/1.15 Georgia;margin:10px 0}.asidehead p{color:#69766e;font-size:14px;margin-bottom:26px}label{display:block;font-size:14px;font-weight:600;margin:20px 0 8px}select{width:100%;font-size:14px}.note{font-size:12px;color:#68756e;margin-top:28px;padding-top:16px;border-top:1px solid #d8ddd6}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#e6eae6;z-index:9}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:8px;background:#203e36;color:white;display:none;z-index:30;max-width:90vw}.swatches{display:flex;gap:8px;flex-wrap:wrap}.swatches button{width:38px;height:38px;padding:0;border:2px solid white;box-shadow:0 0 0 1px #bbc5bc}.swatches button[aria-pressed=true]{box-shadow:0 0 0 3px #284737}.separator{border-top:1px solid #d8ddd6;margin-top:24px;padding-top:3px}.two{display:grid;grid-template-columns:1fr 1fr;gap:7px}.two button{font-size:14px}.controls{position:absolute;bottom:70px;right:24px;z-index:3;display:none;grid-template-columns:repeat(3,44px);gap:5px}.controls button{padding:7px;background:#ffffffdf}.controls button:nth-child(1){grid-column:2}.controls button:nth-child(2){grid-column:1}.controls button:nth-child(5){grid-column:2}#viewname{max-width:470px}.hidden{display:none!important}@media(max-width:800px){header{height:72px;padding:0 16px}.badge{display:none}.brand strong{font-size:13px;letter-spacing:1px}main{height:auto;display:flex;flex-direction:column}#viewport{height:62dvh;min-height:380px}aside{overflow:visible;border-left:none;padding:22px}.viewtitle{top:20px;left:20px}.viewtitle h1{font-size:25px}.viewbuttons{left:14px;bottom:64px;gap:4px}.viewbuttons button{font-size:13px;padding:8px}.hint{left:12px;bottom:8px;font-size:12px}.controls{right:10px;bottom:118px}.brand small{font-size:12px}}
.viewtitle{background:#f6f5eddd;padding:10px 14px;border-radius:4px}.viewtitle h1{font-size:26px}.viewtitle span{font-size:12px}#accent{float:right;height:32px;border:0;padding:0;background:none;width:50px}@media(max-width:800px){#viewport{position:sticky;top:0;z-index:5;height:54dvh;min-height:360px;flex-shrink:0}.viewtitle{top:12px;left:12px;padding:7px 10px}.viewtitle h1{font-size:20px;margin:3px 0}.hint{max-width:calc(100% - 24px)}aside{position:relative;z-index:1}.controls{bottom:118px}}
@media(max-width:800px){#viewport{position:relative;z-index:1}aside{z-index:0}}

body.embedded>header{display:none}body.embedded main{height:100dvh}body.embedded .asidehead{display:none}@media(max-width:800px){body.embedded main{height:auto}body.embedded #viewport{height:52dvh;min-height:270px}body.embedded aside{padding:18px}}

/* The view and controls own separate, stable areas of the screen. */
html,body{height:100%;overflow:hidden}main{min-height:0}aside{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#qualityStatus{margin:5px 0 15px}#referenceColors{margin-top:12px;width:100%}
@media(max-width:800px){main,body.embedded main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,55fr) minmax(0,45fr);height:calc(100dvh - 72px);overflow:hidden}body.embedded main{height:100dvh}#viewport,body.embedded #viewport{position:relative;top:auto;height:100%;min-height:0;max-height:none}aside,body.embedded aside{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:16px 20px}.asidehead{padding-bottom:8px}.viewtitle{top:14px;left:16px}.viewtitle h1{font-size:22px}.hint{font-size:11px;max-width:65%;bottom:4px}.viewbuttons{top:auto;bottom:32px}.controls{bottom:10px}.controls button{width:36px;height:36px}}
@media(max-height:500px)and(orientation:landscape){main,body.embedded main{grid-template-columns:minmax(0,1fr) minmax(240px,34%);grid-template-rows:minmax(0,1fr)}.asidehead h2{font-size:20px}}
#settingsHandle{display:none}#settingsBody [hidden]{display:none!important}.villa-price{padding:14px 0;border-bottom:1px solid #d8ddd6}.villa-price small{display:block;font-size:12px;color:#68756e}.villa-price strong{display:block;font-size:22px;margin:4px 0}.villa-price p{font-size:12px;margin:5px 0}#settingsContext{font-weight:600}
@media(max-width:800px) and (orientation:portrait),(max-width:600px){
 main,body.embedded main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--sheet-height,43%);height:calc(100dvh - 72px)}
 body.embedded main{height:100dvh}#settingsPanel,body.embedded #settingsPanel{display:flex;flex-direction:column;padding:0;height:100%;overflow:hidden;z-index:6;border-radius:18px 18px 0 0;box-shadow:0 -5px 20px #203a3520}
 #settingsHandle{display:flex;position:relative;align-items:center;justify-content:space-between;gap:12px;flex:0 0 64px;width:100%;padding:22px 20px 8px;border:0;border-radius:0;background:#faf9f5;touch-action:none;user-select:none;font-size:14px;cursor:ns-resize}
 .sheet-grip{position:absolute;top:9px;left:calc(50% - 22px);width:44px;height:4px;border-radius:3px;background:#80958a}#sheetAction{font-size:12px;white-space:nowrap}
 #settingsBody{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 20px max(20px,env(safe-area-inset-bottom));flex:1}#settingsPanel[data-collapsed=true] #settingsBody{visibility:hidden}#viewport,body.embedded #viewport{height:100%;min-height:0}body.embedded #settingsHandle{display:flex}.viewtitle h1{font-size:19px}
}
