:root {
  --brand: #0f766e;
  --brand-600: #0d9488;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --accent: #f59e0b;
  --accent-50: #fffbeb;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --danger: #dc2626;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.boot { display: grid; place-items: center; height: 100vh; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.page { padding: 28px 0 60px; min-height: calc(100vh - 64px - 120px); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 600; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 24px; } .mt4 { margin-top: 36px; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: 8px; } .mb2 { margin-bottom: 16px; } .mb3 { margin-bottom: 24px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 20px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.sep { height: 1px; background: var(--line); margin: 16px 0; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.logo b { color: var(--brand); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-weight: 500; position: relative; }
.nav a:hover { background: #f3f4f6; text-decoration: none; }
.nav a.active { color: var(--brand); background: var(--brand-50); }
.badge-dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 22px; border: 1px solid var(--line); background: #fff; position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 13px; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 60; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: #f3f4f6; text-decoration: none; }
.burger { display: none; }
.only-sm { display: none; }
@media (max-width: 820px) { .only-sm { display: inline-flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--brand); color: #fff; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: #115e59; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.accent { background: var(--accent); color: #1f1300; }
.btn.accent:hover { background: #d98a06; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #f9fafb; border-color: #d1d5db; }
.btn.soft { background: var(--brand-50); color: var(--brand); }
.btn.soft:hover { background: var(--brand-100); }
.btn.danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn.danger:hover { background: #fef2f2; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.icon { padding: 7px; width: 34px; height: 34px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.card h3 { margin-bottom: 10px; }
.card-link { color: inherit; display: block; }
.card-link:hover { text-decoration: none; }

/* forms */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.field .hint { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 400; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
textarea.input { resize: vertical; min-height: 96px; }
.input.sm { padding: 6px 9px; font-size: 14px; border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.error { color: var(--danger); font-size: 14px; }
.seg { display: inline-flex; background: #f3f4f6; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--ink-2); font-size: 14px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 5px 11px; border-radius: 20px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: #cbd5e1; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #f3f4f6; color: var(--ink-2); white-space: nowrap; }
.badge.brand { background: var(--brand-50); color: var(--brand); }
.badge.accent { background: var(--accent-50); color: #b45309; }
.badge.ok { background: #dcfce7; color: #15803d; }
.badge.warn { background: #fef3c7; color: #a16207; }
.badge.gray { background: #f3f4f6; color: var(--muted); }
.badge.red { background: #fee2e2; color: #b91c1c; }
.palette { display: flex; gap: 0; border-radius: 6px; overflow: hidden; }
.palette i { width: 18px; height: 14px; display: block; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #ccfbf1 0, transparent 60%), radial-gradient(900px 400px at -10% 110%, #fef3c7 0, transparent 60%), #fff; border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: 46px; letter-spacing: -.03em; line-height: 1.07; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 18px; color: var(--ink-2); margin-bottom: 26px; max-width: 560px; }
.hero-3d { height: 440px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; background: #eef1f5; }
.hero-3d .tag { position: absolute; left: 16px; top: 16px; z-index: 2; }
.stats { display: flex; gap: 30px; margin-top: 30px; }
.stats b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 22px; }
.step .num { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.section { padding: 48px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.style-card { overflow: hidden; cursor: pointer; transition: .15s; border: 2px solid transparent; }
.style-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.style-card.on { border-color: var(--brand); }
.style-swatch { height: 86px; display: flex; }
.style-swatch i { flex: 1; }
.style-card .body { padding: 14px 16px 16px; }

/* order cards */
.ocard { overflow: hidden; display: flex; flex-direction: column; transition: .15s; height: 100%; }
.ocard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ocard .cover { aspect-ratio: 16 / 10; background: #e5e7eb; position: relative; overflow: hidden; }
.ocard .cover img { width: 100%; height: 100%; object-fit: cover; }
.ocard .cover .ph { position: absolute; inset: 0; display: flex; }
.ocard .cover .ph i { flex: 1; }
.ocard .cover .ph-icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; opacity: .85; }
.ocard .cover .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ocard .cover .badges .badge { background: rgba(255, 255, 255, .92); }
.ocard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ocard .title { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); }
.ocard .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.ocard .foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.price { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.price.sm { font-size: 15px; }

/* layout with sidebar */
.with-side { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.side { position: sticky; top: 84px; }
.filters .field { margin-bottom: 14px; }
.order-layout { display: grid; grid-template-columns: 1fr 370px; gap: 24px; align-items: start; }

/* viewer */
.viewer-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #eef1f5; border: 1px solid var(--line); }
.viewer { width: 100%; height: 520px; }
.viewer-wrap.fs .viewer { height: 100vh; }
.viewer-tools { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 3; flex-wrap: wrap; }
.viewer-tools > * { pointer-events: auto; }
.viewer-tools .seg { background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); }
.viewer-loading { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(17, 24, 39, .78); color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 13px; display: flex; gap: 8px; align-items: center; z-index: 3; }
.viewer-hint { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .9); padding: 6px 10px; border-radius: 8px; font-size: 12px; color: var(--muted); z-index: 2; }
.room-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.room-tab { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 12px; cursor: pointer; font-weight: 500; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.room-tab.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.room-tab .x { opacity: .5; padding: 0 2px; }
.room-tab .x:hover { opacity: 1; color: var(--danger); }
.sel-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px 10px; display: flex; gap: 8px; align-items: center; z-index: 4; max-width: calc(100% - 24px); }
.sel-bar .name { font-weight: 600; font-size: 14px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* materials legend */
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.legend .it { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.swatch { width: 44px; height: 44px; border-radius: 9px; background-size: cover; background-position: center; flex: none; border: 1px solid rgba(0, 0, 0, .06); }
.swatch.lg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
.legend .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.legend .nm { font-size: 13px; font-weight: 600; line-height: 1.25; }

/* editor */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.wstep { display: flex; gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.wstep .n { width: 26px; height: 26px; border-radius: 8px; background: #f3f4f6; display: grid; place-items: center; font-size: 13px; }
.wstep.on { color: var(--ink); border-color: var(--brand); }
.wstep.on .n { background: var(--brand); color: #fff; }
.wstep.done .n { background: var(--brand-100); color: var(--brand); }
.editor { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.editor .viewer { height: calc(100vh - 250px); min-height: 480px; }
.panel { max-height: calc(100vh - 190px); min-height: 540px; display: flex; flex-direction: column; overflow: hidden; }
.panel-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 6px; flex: none; }
.panel-tabs button { flex: 1; border: 0; background: none; padding: 12px 6px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.panel-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.panel-body { padding: 16px; overflow-y: auto; flex: 1; }
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mat { cursor: pointer; border-radius: 12px; padding: 4px; border: 2px solid transparent; }
.mat:hover { background: #f9fafb; }
.mat.on { border-color: var(--brand); background: var(--brand-50); }
.mat .nm { font-size: 12px; line-height: 1.25; margin-top: 5px; font-weight: 500; }
.mat .pr { font-size: 12px; color: var(--muted); }
.target-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.target-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 4px; cursor: pointer; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-2); }
.target-tabs button.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.target-tabs .swatch { width: 100%; height: 30px; border-radius: 6px; }
.flist { display: flex; flex-direction: column; gap: 6px; }
.fitem { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid transparent; }
.fitem:hover { background: #f9fafb; border-color: var(--line); }
.fitem.on { border-color: var(--accent); background: var(--accent-50); }
.fthumb { width: 52px; height: 52px; border-radius: 9px; background: #f3f4f6; display: grid; place-items: center; font-size: 24px; flex: none; overflow: hidden; }
.fthumb img { width: 100%; height: 100%; object-fit: cover; }
.fitem .nm { font-size: 13px; font-weight: 600; line-height: 1.25; }
.fitem .sub { font-size: 12px; color: var(--muted); }
.opening { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: #fafafa; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* estimate */
.est-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.est-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.est-table td { padding: 8px 10px; border-bottom: 1px solid #f1f2f4; vertical-align: top; }
.est-table tr.room td { background: #f9fafb; font-weight: 700; }
.est-table td.num, .est-table th.num { text-align: right; white-space: nowrap; }
.est-total { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.est-total .it { background: #f9fafb; border-radius: 12px; padding: 12px 14px; }
.est-total .it b { display: block; font-size: 18px; }
.est-total .it span { font-size: 12px; color: var(--muted); }
.bar { height: 10px; border-radius: 5px; overflow: hidden; display: flex; background: #f3f4f6; }

/* bids */
.bid { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bid + .bid { margin-top: 12px; }
.bid.accepted { border-color: #86efac; background: #f0fdf4; }
.stars { color: var(--accent); letter-spacing: 1px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* chat */
.chat { display: grid; grid-template-columns: 320px 1fr; gap: 0; height: calc(100vh - 180px); min-height: 480px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f3f4f6; color: inherit; }
.chat-item:hover { background: #f9fafb; text-decoration: none; }
.chat-item.on { background: var(--brand-50); }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #fafafa; }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); }
.msg .t { font-size: 11px; opacity: .65; margin-top: 3px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: min(860px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal .mhead { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal .mbody { padding: 20px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 200; box-shadow: var(--shadow-lg); font-size: 14px; max-width: calc(100% - 40px); }
.toast.error { background: var(--danger); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .ic { font-size: 42px; margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photos .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #e5e7eb; }
.photos img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.photos .del { position: absolute; right: 6px; top: 6px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.footer { border-top: 1px solid var(--line); background: #fff; padding: 26px 0; color: var(--muted); font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.demo-accs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-accs button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 13px; }
.demo-accs button:hover { border-color: var(--brand); background: var(--brand-50); }
.auth { max-width: 480px; margin: 0 auto; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick button { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; cursor: pointer; text-align: left; }
.role-pick button.on { border-color: var(--brand); background: var(--brand-50); }
.role-pick b { display: block; font-size: 15px; margin-bottom: 2px; }
.preview-3d { height: 380px; border-radius: 12px; overflow: hidden; background: #f3f4f6; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); z-index: 150; display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
  .panel { max-height: none; min-height: 0; }
  .editor .viewer { height: 460px; }
  .order-layout { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .legend { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .with-side { grid-template-columns: 1fr; }
  .side { position: static; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .burger { display: inline-flex; }
  .hero h1 { font-size: 34px; }
  .hero-3d { height: 320px; }
  .form-grid, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .est-total { grid-template-columns: 1fr 1fr; }
  .chat { grid-template-columns: 1fr; }
  .chat-list { display: none; }
  .viewer { height: 400px; }
  .header .container { gap: 10px; }
  .user-chip .nm { display: none; }
  .hide-sm { display: none; }
  .row.between { flex-wrap: wrap; }
  h1 { font-size: 25px; }
  .page { padding-top: 20px; }
  .header .new-btn { padding: 8px 13px; font-size: 18px; }
  .logo { font-size: 17px; }
  .hero-3d .tag { right: 16px; white-space: normal; }
}
