:root {
  --ink:#1e201d;
  --muted:#6d6c65;
  --paper:#f5f2ea;
  --card:#fffefa;
  --line:rgba(30,32,29,.13);
  --olive:#66705a;
  --clay:#a77956;
  --night:#171a18;
  --display:Georgia,"Times New Roman",serif;
  --sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:var(--sans); }
button,input,select,textarea { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
.studio-nav { position:sticky; top:0; z-index:40; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:26px; min-height:74px; padding:0 34px; border-bottom:1px solid rgba(255,255,255,.09); color:#fff; background:rgba(23,26,24,.94); backdrop-filter:blur(18px); }
.studio-brand { color:inherit; font-family:var(--display); font-size:31px; line-height:1; text-decoration:none; }
.studio-nav-copy { display:grid; gap:2px; padding-left:24px; border-left:1px solid rgba(255,255,255,.18); }
.studio-nav-copy span { font-size:10px; font-weight:800; letter-spacing:2.1px; }
.studio-nav-copy small { color:rgba(255,255,255,.62); font-size:11px; }
.studio-nav nav { display:flex; align-items:center; gap:22px; }
.studio-nav nav a { color:rgba(255,255,255,.78); font-size:12px; font-weight:700; text-decoration:none; }
.studio-nav nav a:hover { color:#fff; }
.studio-nav .studio-nav-cta { padding:12px 18px; border-radius:999px; color:var(--night); background:#fff; }
.studio-shell { overflow:hidden; }
.studio-hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr); gap:46px; align-items:center; padding:38px clamp(24px,5vw,78px) 36px; background:radial-gradient(circle at 82% 8%,rgba(167,121,86,.24),transparent 31%),linear-gradient(135deg,#1d211e 0%,#272a25 56%,#3a3028 100%); color:#fff; }
.studio-eyebrow { margin:0 0 18px; color:#bd987a; font-size:11px; font-weight:850; letter-spacing:2.4px; }
.studio-hero h1,.studio-connection h2,.studio-inquiry h2 { max-width:18ch; margin:0; font-family:var(--display); font-size:clamp(38px,4.2vw,58px); font-weight:400; line-height:1; letter-spacing:-.035em; }
.studio-hero > div > p:not(.studio-eyebrow) { max-width:760px; margin:13px 0 0; color:rgba(255,255,255,.68); font-size:13px; line-height:1.6; }
.studio-hero-link { display:inline-flex; gap:10px; align-items:center; margin-top:16px; color:#f3dfc7; font-size:11px; font-weight:800; text-decoration:none; }
.studio-hero-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.studio-hero-steps span { display:grid; min-height:65px; padding:11px 15px; align-content:space-between; border:1px solid rgba(255,255,255,.13); border-radius:14px; color:rgba(255,255,255,.8); background:rgba(255,255,255,.05); font-size:11px; }
.studio-hero-steps b { color:#d4b696; font-size:11px; letter-spacing:1.5px; }
.studio-workspace { display:grid; grid-template-columns:minmax(250px,320px) minmax(520px,1fr) minmax(260px,330px); gap:16px; max-width:1800px; margin:0 auto; padding:18px; }
.studio-panel,.studio-stage-card { border:1px solid var(--line); border-radius:24px; background:var(--card); box-shadow:0 18px 55px rgba(37,33,28,.07); }
.studio-panel { padding:22px; }
.studio-panel-head { display:grid; gap:5px; margin-bottom:18px; }
.studio-panel-head span,.studio-stage-toolbar span { color:#9a7153; font-size:9px; font-weight:850; letter-spacing:1.8px; }
.studio-panel-head strong,.studio-stage-toolbar strong { font-family:var(--display); font-size:23px; font-weight:400; }
.studio-photo-drop { position:relative; display:block; min-height:190px; overflow:hidden; border:1px dashed rgba(30,32,29,.3); border-radius:18px; background:#ebe8df; cursor:pointer; }
.studio-photo-drop input { position:absolute; width:1px; height:1px; opacity:0; }
.studio-photo-drop img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.studio-photo-empty { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:8px; padding:22px; text-align:center; }
.studio-photo-empty::before { content:"+"; display:grid; width:44px; height:44px; place-items:center; border-radius:50%; color:#fff; background:var(--night); font-size:24px; font-weight:300; }
.studio-photo-empty b { font-size:13px; }
.studio-photo-empty small { color:var(--muted); font-size:10px; }
.studio-photo-empty em,.studio-photo-change { color:#8b6549; font-size:11px; font-style:normal; font-weight:800; }
.studio-photo-change { position:absolute; right:10px; bottom:10px; padding:8px 11px; border-radius:999px; color:#fff; background:rgba(23,26,24,.78); }
.studio-privacy { display:flex; gap:7px; margin:10px 2px 18px; color:var(--muted); font-size:10px; line-height:1.5; }
.studio-privacy span { color:var(--olive); font-weight:900; }
.studio-analysis { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 0 18px; padding:14px; border-radius:15px; background:#f1eee6; }
.studio-analysis > div { display:grid; gap:3px; }
.studio-analysis span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:1px; }
.studio-analysis strong { font-size:12px; }
.studio-analysis .studio-palette { grid-column:1/-1; display:flex; flex-direction:row; gap:7px; padding-top:6px; }
.studio-palette i { width:28px; height:20px; border:1px solid rgba(0,0,0,.09); border-radius:8px; box-shadow:0 2px 7px rgba(0,0,0,.08); }
.studio-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.studio-panel label,.studio-inquiry form label { display:grid; gap:6px; }
.studio-panel label > span,.studio-inquiry form label > span,.studio-dimensions legend { color:#56564f; font-size:10px; font-weight:800; letter-spacing:.5px; }
.studio-panel select,.studio-panel input,.studio-inquiry input,.studio-inquiry textarea { width:100%; border:1px solid var(--line); border-radius:12px; outline:0; color:var(--ink); background:#fff; }
.studio-panel select,.studio-panel input,.studio-inquiry input { min-height:44px; padding:0 11px; }
.studio-panel select:focus,.studio-panel input:focus,.studio-inquiry input:focus,.studio-inquiry textarea:focus { border-color:#8d6c52; box-shadow:0 0 0 3px rgba(141,108,82,.12); }
.studio-dimensions { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:16px 0; padding:0; border:0; }
.studio-dimensions legend { margin-bottom:8px; }
.studio-dimensions label { position:relative; }
.studio-dimensions input { padding-right:25px; }
.studio-dimensions em { position:absolute; right:9px; bottom:13px; color:#88847d; font-size:10px; font-style:normal; }
.studio-advanced { margin:14px 0; border:1px solid var(--line); border-radius:12px; background:#f8f6f1; }
.studio-advanced summary { padding:12px; color:#625d55; font-size:10px; font-weight:800; cursor:pointer; }
.studio-advanced .studio-dimensions { margin:0; padding:4px 12px 13px; }
.studio-primary { min-height:48px; width:100%; border:0; border-radius:14px; color:#fff; background:var(--night); font-size:11px; font-weight:850; letter-spacing:.6px; }
.studio-primary:hover { background:#3b403b; }
.studio-status,.studio-form-status { min-height:16px; margin:10px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.studio-form-status.is-error { color:#a73f35; }
.studio-form-status.is-success { color:#4d6c45; }
.studio-stage-card { min-width:0; overflow:hidden; background:#242722; }
.studio-stage-toolbar,.studio-stage-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:72px; padding:13px 18px; color:#fff; }
.studio-stage-toolbar > div:first-child { display:grid; gap:4px; }
.studio-stage-toolbar strong { font-size:20px; }
.studio-view-actions,.studio-stage-footer > div { display:flex; gap:8px; }
.studio-view-actions button,.studio-stage-footer button { min-height:36px; padding:0 12px; border:1px solid rgba(255,255,255,.18); border-radius:999px; color:rgba(255,255,255,.8); background:rgba(255,255,255,.06); font-size:10px; font-weight:750; }
.studio-view-actions button:hover,.studio-stage-footer button:hover { border-color:rgba(255,255,255,.5); color:#fff; }
.studio-canvas-wrap { position:relative; height:clamp(520px,63vh,760px); overflow:hidden; background:radial-gradient(circle at 50% 35%,#474b43 0%,#272a26 68%,#1f211e 100%); }
#roomCanvas { display:block; width:100%; height:100%; touch-action:none; }
.studio-canvas-help { position:absolute; right:14px; bottom:12px; display:flex; gap:8px; pointer-events:none; }
.studio-canvas-help span { padding:7px 9px; border:1px solid rgba(255,255,255,.11); border-radius:999px; color:rgba(255,255,255,.64); background:rgba(16,18,16,.58); backdrop-filter:blur(8px); font-size:9px; }
.studio-selected-card { position:absolute; top:14px; left:14px; width:min(270px,calc(100% - 28px)); padding:14px; border:1px solid rgba(255,255,255,.16); border-radius:16px; color:#fff; background:rgba(22,24,21,.82); box-shadow:0 16px 38px rgba(0,0,0,.24); backdrop-filter:blur(16px); }
.studio-selected-card > div:first-child { display:grid; gap:3px; margin-bottom:11px; }
.studio-selected-card span { color:#c9ad91; font-size:8px; font-weight:850; letter-spacing:1.5px; }
.studio-selected-card strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.studio-selected-product { display:grid; grid-template-columns:40px 1fr; gap:9px; align-items:center; margin-bottom:10px; }
.studio-selected-product img { width:40px; height:40px; border-radius:8px; object-fit:cover; background:#f1eee6; }
.studio-selected-product a { color:#f3dfc7; font-size:10px; font-weight:700; text-decoration:none; }
.studio-transform-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.studio-transform-grid button { min-height:34px; border:1px solid rgba(255,255,255,.14); border-radius:9px; color:#fff; background:rgba(255,255,255,.08); font-size:10px; }
.studio-transform-grid button:nth-child(n+5) { grid-column:span 2; }
.studio-transform-grid .danger { grid-column:1/-1; color:#ffbcb4; }
.studio-stage-footer { min-height:60px; }
.studio-stage-footer > span { color:rgba(255,255,255,.66); font-size:10px; }
.studio-model-note { margin:0; padding:0 18px 13px; color:rgba(255,255,255,.5); font-size:9px; line-height:1.4; }
.studio-placed-products { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:9px; padding:3px 18px 14px; }
.studio-placed-product { display:grid; grid-template-columns:58px minmax(0,1fr); gap:10px; align-items:center; min-width:0; padding:8px; border:1px solid rgba(255,255,255,.15); border-radius:11px; color:#fff; background:rgba(255,255,255,.06); text-decoration:none; }
.studio-placed-product:hover { border-color:#c9ad91; }
.studio-placed-product img { display:block; width:58px; height:58px; border-radius:7px; background:#fff; object-fit:contain; }
.studio-placed-product span { display:grid; min-width:0; gap:3px; }
.studio-placed-product small { color:#c9ad91; font-size:8px; font-weight:800; letter-spacing:.5px; }
.studio-placed-product strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.studio-placed-product em { overflow:hidden; color:rgba(255,255,255,.6); font-size:9px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.studio-board-result { display:grid; grid-template-columns:minmax(0,180px) 1fr; gap:10px 16px; align-items:center; margin:0 18px 14px; padding:12px; border:1px solid rgba(255,255,255,.19); border-radius:12px; color:#fff; background:#31382f; }
.studio-board-result[hidden] { display:none; }
.studio-board-result img { grid-row:span 2; width:100%; max-height:145px; object-fit:contain; background:#edeae4; }
.studio-board-result a { justify-self:start; padding:11px 15px; border-radius:999px; color:#1f2b20; background:#e3cbb0; font-size:11px; font-weight:800; text-decoration:none; }
.studio-board-result span { color:rgba(255,255,255,.7); font-size:10px; }
.studio-hero-link + .studio-hero-link { margin-left:20px; }
.studio-architecture { max-width:1800px; margin:0 auto; padding:62px 24px; }
.studio-architecture-head { display:flex; justify-content:space-between; align-items:center; gap:38px; padding:28px; border:1px solid var(--line); border-radius:22px; background:#fffefa; }
.studio-architecture-head h2 { margin:0; font:400 clamp(28px,3.2vw,46px)/1.04 var(--display); }
.studio-architecture-head p:not(.studio-eyebrow) { max-width:700px; margin:14px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
.studio-architecture-head button { flex:0 0 230px; }
.studio-architecture-toolbar { display:flex; gap:18px; align-items:center; padding:15px 4px; font-size:11px; }
.studio-architecture-toolbar p { flex:1; margin:0; color:var(--muted); }
.studio-architecture-toolbar a { color:#79583f; font-weight:750; text-decoration:none; }
.studio-architecture-toolbar button { padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:#fffefa; font-size:11px; }
#spacePlannerFrame { display:block; width:100%; height:min(850px,85dvh); min-height:600px; border:1px solid var(--line); border-radius:18px; background:#e9ebe7; }
.studio-architecture-note { margin:15px 4px 0; color:var(--muted); font-size:10px; line-height:1.6; }
@media(max-width:760px) {
  .studio-architecture { padding:44px 10px; }
  .studio-architecture-head { display:grid; gap:20px; padding:22px; }
  .studio-architecture-head button { width:100%; }
  .studio-architecture-toolbar { flex-wrap:wrap; }
  .studio-architecture-toolbar p { flex-basis:100%; }
  .studio-hero-link + .studio-hero-link { margin-left:0; }
  #spacePlannerFrame { min-height:650px; height:82dvh; }
}
.studio-products-panel { min-height:0; }
.studio-match-summary { margin:-4px 0 13px; padding:11px; border-radius:12px; color:#716a60; background:#f3f0e8; font-size:10px; line-height:1.55; }
.studio-product-list { display:grid; max-height:calc(63vh + 42px); gap:10px; overflow:auto; padding-right:3px; scrollbar-width:thin; }
.studio-product-card { display:grid; grid-template-columns:92px minmax(0,1fr); gap:11px; overflow:hidden; min-height:110px; padding:9px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.studio-product-card img { width:92px; height:92px; border-radius:11px; object-fit:cover; background:#eeeae0; }
.studio-product-card > div { display:flex; min-width:0; flex-direction:column; }
.studio-product-card small { color:#9a7153; font-size:8px; font-weight:850; letter-spacing:.9px; text-transform:uppercase; }
.studio-product-card strong { display:-webkit-box; margin:5px 0; overflow:hidden; font-size:12px; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.studio-product-card p { display:-webkit-box; margin:0 0 7px; overflow:hidden; color:#79746b; font-size:9px; line-height:1.4; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.studio-product-actions { display:grid; grid-template-columns:1fr auto; gap:6px; align-items:center; margin-top:auto; }
.studio-product-card button { min-height:28px; margin-top:auto; border:0; border-radius:8px; color:#fff; background:var(--night); font-size:9px; font-weight:800; }
.studio-product-actions a { padding:7px 2px; color:#76533e; font-size:9px; font-weight:800; text-decoration:none; }
.studio-product-card button.added { color:#4f614a; background:#e5ebdf; }
.studio-connection { padding:100px clamp(24px,6vw,100px); background:#e8e2d6; }
.studio-connection > div:first-child { display:flex; justify-content:space-between; gap:34px; align-items:end; margin-bottom:48px; }
.studio-connection h2,.studio-inquiry h2 { max-width:13ch; font-size:clamp(42px,5.6vw,76px); }
.studio-connection-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.studio-connection-grid article { display:grid; min-height:220px; padding:24px; align-content:space-between; border-radius:22px; background:#f7f4ed; }
.studio-connection-grid b { color:#9a7153; font-size:11px; letter-spacing:1.5px; }
.studio-connection-grid strong { align-self:end; font-family:var(--display); font-size:25px; font-weight:400; }
.studio-connection-grid p { margin:0; color:#6d6860; font-size:11px; line-height:1.65; }
.studio-inquiry { display:grid; grid-template-columns:minmax(0,.85fr) minmax(520px,1.15fr); gap:80px; padding:100px clamp(24px,6vw,100px); color:#fff; background:#1f221f; }
.studio-inquiry-copy > p:not(.studio-eyebrow) { max-width:620px; margin:28px 0; color:rgba(255,255,255,.62); line-height:1.75; }
.studio-inquiry-summary { padding:16px; border:1px solid rgba(255,255,255,.12); border-radius:15px; color:rgba(255,255,255,.74); background:rgba(255,255,255,.04); font-size:11px; line-height:1.7; white-space:pre-line; }
.studio-inquiry form { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:26px; border:1px solid rgba(255,255,255,.1); border-radius:24px; background:rgba(255,255,255,.05); }
.studio-inquiry form label > span { color:rgba(255,255,255,.68); }
.studio-inquiry input,.studio-inquiry textarea { border-color:rgba(255,255,255,.15); color:#fff; background:rgba(0,0,0,.13); }
.studio-inquiry textarea { min-height:110px; padding:12px; resize:vertical; }
.studio-inquiry .full { grid-column:1/-1; }
.studio-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:92px; padding:22px clamp(24px,5vw,78px); color:rgba(255,255,255,.7); background:#151715; font-size:11px; }
.studio-footer a { color:#fff; text-decoration:none; }
@media (max-width:1260px) {
  .studio-workspace { grid-template-columns:300px minmax(520px,1fr); }
  .studio-products-panel { grid-column:1/-1; }
  .studio-product-list { grid-template-columns:repeat(3,1fr); max-height:none; }
}
@media (max-width:940px) {
  .studio-nav { grid-template-columns:auto 1fr; padding:0 20px; }
  .studio-nav-copy { display:none; }
  .studio-nav nav a:not(.studio-nav-cta) { display:none; }
  .studio-hero { grid-template-columns:1fr; gap:22px; padding-top:35px; }
  .studio-workspace { grid-template-columns:1fr; padding:10px; }
  .studio-stage-card,.studio-products-panel { grid-column:auto; }
  .studio-setup-panel { order:2; }
  .studio-stage-card { order:1; }
  .studio-products-panel { order:3; }
  .studio-product-list { grid-template-columns:repeat(2,1fr); }
  .studio-connection-grid { grid-template-columns:repeat(2,1fr); }
  .studio-inquiry { grid-template-columns:1fr; gap:46px; }
}
@media (max-width:620px) {
  .studio-nav { min-height:64px; }
  .studio-brand { font-size:27px; }
  .studio-nav .studio-nav-cta { padding:10px 13px; }
  .studio-hero { padding:34px 20px 30px; }
  .studio-hero h1 { font-size:37px; }
  .studio-hero-steps { gap:7px; }
  .studio-hero-steps span { min-height:61px; padding:10px; }
  .studio-panel { padding:17px; border-radius:19px; }
  .studio-field-grid { grid-template-columns:1fr; }
  .studio-stage-toolbar { display:grid; }
  .studio-view-actions { overflow:auto; }
  .studio-canvas-wrap { height:58vh; min-height:430px; }
  .studio-canvas-help { display:none; }
  .studio-stage-footer { align-items:flex-start; flex-direction:column; }
  .studio-product-list { grid-template-columns:1fr; }
  .studio-connection,.studio-inquiry { padding:70px 20px; }
  .studio-connection > div:first-child { display:block; }
  .studio-connection-grid { grid-template-columns:1fr; }
  .studio-connection-grid article { min-height:175px; }
  .studio-inquiry form { grid-template-columns:1fr; padding:18px; }
  .studio-inquiry form label,.studio-inquiry .full { grid-column:1; }
  .studio-footer { align-items:flex-start; flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
