/* Homezi AI Design – app UI */
:root {
  --hz-bg: #f4f7f6; --hz-surface: #ffffff; --hz-line: #e1e8e5; --hz-line2: #cfd9d5;
  --hz-ink: #17211e; --hz-ink2: #3d4a46; --hz-muted: #6c7a76;
  --hz-pri: #0d6b5b; --hz-pri-d: #0a5246; --hz-pri-t: #e3f1ed; --hz-acc: #e8590c; --hz-acc-t: #fdeee5;
  --hz-err: #d63b2f; --hz-warn: #c98500; --hz-info: #2f7f9a;
  --hz-r: 12px; --hz-sh: 0 1px 2px rgba(16, 40, 34, .06), 0 6px 20px rgba(16, 40, 34, .07);
  --hz-font: "Be Vietnam Pro", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
html, body.hzd-body { margin: 0; height: 100%; background: var(--hz-bg); color: var(--hz-ink); font-family: var(--hz-font); font-size: 14px; -webkit-font-smoothing: antialiased; overflow: hidden; }
.hzd-app { height: 100dvh; }
.hzd-app *, .hzd-app *::before, .hzd-app *::after { box-sizing: border-box; }
.hzd-app [hidden] { display: none !important; }
.hzd-app button, .hzd-app input, .hzd-app select, .hzd-app textarea { font: inherit; color: inherit; }
.hzd-splash { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--hz-muted); }
.hzd-splash__spin, .hzd-spin { width: 28px; height: 28px; border: 3px solid var(--hz-pri-t); border-top-color: var(--hz-pri); border-radius: 50%; animation: hzdspin .8s linear infinite; }
.hzd-spin { width: 14px; height: 14px; border-width: 2px; display: inline-block; vertical-align: -2px; border-color: rgba(255,255,255,.4); border-top-color: #fff; }
@keyframes hzdspin { to { transform: rotate(360deg); } }
.hzd-i { flex: 0 0 auto; }

/* ---------- grid layout ---------- */
.hzd-shell { display: grid; height: 100dvh; grid-template-columns: 76px 330px minmax(0, 1fr) 0; grid-template-rows: 58px minmax(0, 1fr) 32px; grid-template-areas: "top top top top" "rail panel stage insp" "status status status status"; transition: grid-template-columns .2s; }
.hzd-shell.no-panel { grid-template-columns: 76px 0 minmax(0, 1fr) 0; }
.hzd-shell.has-inspector { grid-template-columns: 76px 330px minmax(0, 1fr) 270px; }
.hzd-shell.no-panel.has-inspector { grid-template-columns: 76px 0 minmax(0, 1fr) 270px; }
.hzd-top { grid-area: top; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--hz-surface); border-bottom: 1px solid var(--hz-line); min-width: 0; z-index: 5; }
.hzd-rail { grid-area: rail; display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; background: var(--hz-surface); border-right: 1px solid var(--hz-line); overflow-y: auto; scrollbar-width: none; }
.hzd-panel { grid-area: panel; background: var(--hz-surface); border-right: 1px solid var(--hz-line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.hzd-stage { grid-area: stage; position: relative; display: grid; grid-template-columns: 1fr 1fr; min-width: 0; min-height: 0; }
.hzd-stage[data-view="2d"], .hzd-stage[data-view="3d"] { grid-template-columns: minmax(0, 1fr); }
html:has(body.hzd-body) { margin-top: 0 !important; }
.hzd-inspector { grid-area: insp; background: var(--hz-surface); border-left: 1px solid var(--hz-line); overflow-y: auto; padding: 0 14px 16px; min-width: 0; }
.hzd-status { grid-area: status; display: flex; align-items: center; gap: 18px; padding: 0 14px; background: var(--hz-surface); border-top: 1px solid var(--hz-line); font-size: 12.5px; color: var(--hz-muted); white-space: nowrap; overflow: hidden; }
.hzd-st-note { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }

/* ---------- top bar ---------- */
.hzd-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--hz-ink); flex: 0 0 auto; }
.hzd-brand img { height: 26px; width: auto; }
.hzd-brand span { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--hz-pri), #14907a); padding: 3px 7px; border-radius: 6px; }
.hzd-name { border: 1px solid transparent; background: transparent; padding: 6px 8px; border-radius: 8px; font-weight: 600; font-size: 15px; min-width: 100px; width: 220px; flex: 0 1 220px; }
.hzd-name:hover, .hzd-name:focus { border-color: var(--hz-line2); background: #fff; outline: none; }
.hzd-savestate { font-size: 12px; color: var(--hz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.hzd-top__grp { display: flex; gap: 2px; }
.hzd-top__sp { flex: 1; }
.hzd-seg { display: inline-flex; padding: 3px; background: #eef3f1; border-radius: 10px; }
.hzd-seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--hz-ink2); cursor: pointer; white-space: nowrap; }
.hzd-seg button.is-on { background: #fff; color: var(--hz-pri-d); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hzd-credits { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--hz-acc-t); color: #b54409; text-decoration: none; font-weight: 600; white-space: nowrap; }
.hzd-credits.is-pro { background: linear-gradient(135deg, #fff1d6, #ffe0b8); }
.hzd-account { display: inline-flex; align-items: center; gap: 6px; color: var(--hz-ink2); text-decoration: none; font-weight: 500; max-width: 160px; white-space: nowrap; overflow: hidden; }
.hzd-account span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- buttons & inputs ---------- */
.hzd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--hz-line2); background: #fff; color: var(--hz-ink); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: .15s; }
.hzd-btn:hover { border-color: var(--hz-pri); color: var(--hz-pri-d); }
.hzd-btn:disabled { opacity: .5; cursor: not-allowed; }
.hzd-btn--accent { background: var(--hz-acc); border-color: var(--hz-acc); color: #fff; }
.hzd-btn--accent:hover { background: #cf4d07; border-color: #cf4d07; color: #fff; }
.hzd-btn--ghost { border-color: transparent; background: transparent; }
.hzd-btn--ghost:hover { background: #eef3f1; border-color: transparent; }
.hzd-btn--sm { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.hzd-btn--danger { color: var(--hz-err); border-color: #f2c9c5; margin-top: 12px; }
.hzd-ib { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--hz-ink2); cursor: pointer; }
.hzd-ib:hover { background: #eef3f1; color: var(--hz-ink); }
.hzd-chip { border: 1px solid var(--hz-line2); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hzd-chip.is-on { background: var(--hz-pri); border-color: var(--hz-pri); color: #fff; }
.hzd-link { border: 0; background: none; color: var(--hz-pri); font-weight: 600; cursor: pointer; padding: 0; }
.hzd-app label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--hz-ink2); margin: 0 0 10px; }
.hzd-app label small { font-weight: 400; color: var(--hz-muted); }
.hzd-app input[type=text], .hzd-app input:not([type]), .hzd-app input[type=number], .hzd-app input[type=search], .hzd-app input[type=date], .hzd-app select, .hzd-app textarea { width: 100%; min-height: 38px; border: 1px solid var(--hz-line2); border-radius: 9px; background: #fff; padding: 7px 10px; font-size: 13.5px; font-weight: 400; color: var(--hz-ink); }
.hzd-app textarea { resize: vertical; line-height: 1.45; }
.hzd-app input:focus, .hzd-app select:focus, .hzd-app textarea:focus { outline: none; border-color: var(--hz-pri); box-shadow: 0 0 0 3px var(--hz-pri-t); }
.hzd-app input[type=color] { width: 100%; height: 36px; border: 1px solid var(--hz-line2); border-radius: 9px; padding: 3px; background: #fff; }
.hzd-app input[type=range] { width: 100%; accent-color: var(--hz-pri); }
.hzd-app input[type=file] { font-size: 12.5px; margin-bottom: 10px; max-width: 100%; }
.hzd-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; cursor: pointer; }
.hzd-check input { accent-color: var(--hz-pri); width: 16px; height: 16px; }
.hzd-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin-bottom: 6px; }
.hzd-checks .hzd-check { margin-bottom: 6px; }
.hzd-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.hzd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
kbd { font-family: inherit; font-size: 11px; padding: 1px 5px; border: 1px solid var(--hz-line2); border-bottom-width: 2px; border-radius: 4px; background: #fff; }

/* ---------- rail & panel ---------- */
.hzd-rail button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: 0; border-radius: 10px; background: none; color: var(--hz-ink2); font-size: 10.5px; font-weight: 600; cursor: pointer; }
.hzd-rail button span { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hzd-rail button:hover { background: #f0f5f3; }
.hzd-rail button.is-on { background: var(--hz-pri-t); color: var(--hz-pri-d); }
.hzd-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 16px; border-bottom: 1px solid var(--hz-line); }
.hzd-panel__head h2 { margin: 0; font-size: 16px; }
.hzd-panel__body { overflow-y: auto; padding: 4px 16px 24px; flex: 1; }
.hzd-sec { padding: 14px 0; border-bottom: 1px solid var(--hz-line); }
.hzd-sec:last-child { border-bottom: 0; }
.hzd-sec h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 14px; }
.hzd-muted { color: var(--hz-muted); font-size: 12.5px; line-height: 1.5; margin: 0 0 10px; }
.hzd-note { font-size: 12px; line-height: 1.5; color: #5d5242; background: #fbf6ec; border: 1px solid #f0e3c8; border-radius: 9px; padding: 8px 10px; margin: 8px 0 0; }
.hzd-note--warn { background: var(--hz-acc-t); border-color: #f6cfb6; color: #8b3a0a; }
.hzd-cost { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.22); }
.hzd-btn:not(.hzd-btn--accent) .hzd-cost { background: var(--hz-acc-t); color: #b54409; }
.hzd-ok { color: var(--hz-pri); font-weight: 600; }
.hzd-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hzd-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--hz-line); border-radius: 10px; background: #fafcfb; cursor: pointer; text-align: left; }
.hzd-tpl:hover { border-color: var(--hz-pri); background: var(--hz-pri-t); }
.hzd-tpl span { font-size: 12px; color: var(--hz-muted); }
.hzd-underlay { margin-top: 8px; padding: 10px; background: #f5f8f7; border-radius: 10px; }
.hzd-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.hzd-tool { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--hz-line); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; font-size: 12.5px; font-weight: 600; }
.hzd-tool b { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 5px; background: #eef3f1; font-size: 11px; }
.hzd-tool.is-on { border-color: var(--hz-pri); background: var(--hz-pri-t); color: var(--hz-pri-d); }
.hzd-list { list-style: none; margin: 0; padding: 0; }
.hzd-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 6px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; }
.hzd-list button:hover { background: #f0f5f3; }
.hzd-list small { margin-left: auto; color: var(--hz-muted); }
.hzd-sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--hz-line2); }
.hzd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.hzd-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hzd-asset { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--hz-line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 12.5px; }
.hzd-asset:hover, .hzd-asset.is-on { border-color: var(--hz-pri); box-shadow: 0 0 0 3px var(--hz-pri-t); }
.hzd-asset small { color: var(--hz-muted); font-size: 11.5px; }
.hzd-asset .hzd-price { color: var(--hz-acc); font-weight: 600; }
.hzd-aicon { width: 44px; height: 44px; margin-bottom: 4px; }
.hzd-asset__add { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--hz-pri-t); color: var(--hz-pri-d); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hzd-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hzd-style { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--hz-line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font-size: 13px; }
.hzd-style.is-on { border-color: var(--hz-pri); box-shadow: 0 0 0 3px var(--hz-pri-t); }
.hzd-pal { display: grid; grid-template-columns: repeat(4, 1fr); height: 34px; border-radius: 7px; overflow: hidden; }
.hzd-sunread { font-size: 13px; background: #f5f8f7; padding: 8px 10px; border-radius: 9px; }
.hzd-score { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: #f5f8f7; margin-bottom: 12px; font-size: 12.5px; color: var(--hz-muted); }
.hzd-score b { font-size: 18px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.good { color: var(--hz-pri) !important; } .mid { color: var(--hz-warn) !important; } .bad { color: var(--hz-err) !important; }
.hzd-score b.good { background: var(--hz-pri-t); } .hzd-score b.mid { background: #fff4d6; } .hzd-score b.bad { background: #fde5e3; }
.hzd-issues { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hzd-issues li { border-left: 3px solid var(--hz-info); background: #f5f9fa; border-radius: 0 8px 8px 0; font-size: 12.5px; line-height: 1.45; }
.hzd-issues li.is-error { border-color: var(--hz-err); background: #fdf1f0; }
.hzd-issues li.is-warn { border-color: var(--hz-warn); background: #fdf8ec; }
.hzd-issues button, .hzd-issues span { display: block; width: 100%; padding: 7px 10px; border: 0; background: none; text-align: left; cursor: pointer; }
.hzd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 6px; }
.hzd-dot--err { background: var(--hz-err); } .hzd-dot--warn { background: var(--hz-warn); }
.hzd-total { padding: 14px; border-radius: 12px; background: linear-gradient(135deg, var(--hz-pri), #14907a); color: #fff; margin-bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.hzd-total b { font-size: 24px; }
.hzd-total small { opacity: .85; }
.hzd-bars { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.hzd-bars li { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 8px; }
.hzd-bars i { display: block; height: 8px; border-radius: 4px; background: var(--hz-pri); min-width: 2px; }
.hzd-detail details { border-bottom: 1px solid var(--hz-line); padding: 6px 0; font-size: 12.5px; }
.hzd-detail table { width: 100%; font-size: 12px; border-collapse: collapse; margin-top: 4px; }
.hzd-detail td { padding: 3px 0; border-bottom: 1px dashed var(--hz-line); }
.hzd-detail td:last-child { text-align: right; white-space: nowrap; }
.hzd-qres p { font-size: 13px; }
.hzd-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hzd-gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 9px; display: block; }
.hzd-render-big { width: 100%; border-radius: 10px; margin: 8px 0; }
.hzd-projects { display: flex; flex-direction: column; gap: 8px; }
.hzd-proj { display: flex; align-items: center; gap: 4px; border: 1px solid var(--hz-line); border-radius: 10px; padding: 6px; }
.hzd-proj.is-on { border-color: var(--hz-pri); background: var(--hz-pri-t); }
.hzd-proj > button:first-child { flex: 1; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; border: 0; background: none; text-align: left; cursor: pointer; min-width: 0; }
.hzd-proj img, .hzd-proj__ph { grid-row: span 2; width: 64px; height: 44px; object-fit: cover; border-radius: 7px; background: #eef3f1; display: block; }
.hzd-proj b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hzd-proj small { color: var(--hz-muted); }
.hzd-pro { background: #1f1f1f; color: #ffd27a; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }

/* ---------- stage ---------- */
.hzd-pane { position: relative; overflow: hidden; min-width: 0; min-height: 0; background: #fbfcfc; }
.hzd-pane--3d { border-left: 1px solid var(--hz-line); background: #e9f0ee; }
.hzd-stage[data-view="2d"] .hzd-pane--3d, .hzd-stage[data-view="3d"] .hzd-pane--2d { display: none; }
.hzd-svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.hzd-svg text { font-family: var(--hz-font); fill: #24302d; }
.hzd-room { cursor: move; transition: fill-opacity .1s; }
.hzd-room:hover { fill-opacity: .8; }
.hzd-wall { cursor: grab; }
.hzd-item { cursor: move; }
.hzd-item__lbl { fill: #1f2a27; font-weight: 600; paint-order: stroke; stroke: rgba(255,255,255,.85); }
.hzd-h { cursor: pointer; }
.hzd-pane--2d[data-tool="room"] .hzd-svg, .hzd-pane--2d[data-tool="poly"] .hzd-svg, .hzd-pane--2d[data-tool="wall"] .hzd-svg, .hzd-pane--2d[data-tool="door"] .hzd-svg, .hzd-pane--2d[data-tool="window"] .hzd-svg, .hzd-pane--2d[data-tool="measure"] .hzd-svg, .hzd-pane--2d[data-tool="place"] .hzd-svg { cursor: crosshair; }
.hzd-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.hzd-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--hz-muted); }
.hzd-float { position: absolute; display: flex; gap: 6px; z-index: 2; }
.hzd-float--tl { top: 10px; left: 10px; }
.hzd-float .hzd-ib { background: rgba(255,255,255,.92); box-shadow: var(--hz-sh); }
.hzd-float .hzd-chip { box-shadow: var(--hz-sh); }
.hzd-walkhud { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: rgba(23, 33, 30, .82); color: #fff; z-index: 3; max-width: calc(100% - 20px); }
.hzd-walkhud__room { font-weight: 700; }
.hzd-walkhud__help { font-size: 12px; opacity: .8; }
.hzd-walkhud select { width: auto; min-height: 32px; }
.hzd-pad { display: none; }

/* ---------- inspector ---------- */
.hzd-insp__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; position: sticky; top: 0; background: #fff; z-index: 1; }
.hzd-insp__head b { font-size: 15px; }
.hzd-measure { font-size: 13px; background: #f5f8f7; padding: 8px 10px; border-radius: 9px; margin: 0 0 10px; }

/* ---------- dropdown, toasts, modal ---------- */
.hzd-dd { position: relative; }
.hzd-dd__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 250px; background: #fff; border: 1px solid var(--hz-line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.14); padding: 6px; z-index: 20; }
.hzd-dd__menu button { display: block; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; font-size: 13.5px; }
.hzd-dd__menu button:hover { background: #f0f5f3; }
.hzd-dd__menu hr { border: 0; border-top: 1px solid var(--hz-line); margin: 4px 0; }
.hzd-toasts { position: fixed; right: 16px; bottom: 44px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.hzd-toast { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 11px; background: #17211e; color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: hzdin .2s ease; }
.hzd-toast.is-error { background: #a52a21; } .hzd-toast.is-warn { background: #8a5a00; } .hzd-toast.is-ok { background: var(--hz-pri-d); }
.hzd-toast a { color: #ffd9c2; font-weight: 700; white-space: nowrap; }
.hzd-toast button { margin-left: auto; border: 0; background: none; color: #fff; opacity: .7; cursor: pointer; font-size: 16px; line-height: 1; }
@keyframes hzdin { from { transform: translateY(8px); opacity: 0; } }
.hzd-modal { position: fixed; inset: 0; background: rgba(15, 25, 22, .45); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.hzd-modal[hidden] { display: none; }
.hzd-modal__box { background: #fff; border-radius: 16px; padding: 22px; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.hzd-modal__box h2 { margin: 0 0 10px; font-size: 19px; }
.hzd-share { display: flex; gap: 8px; margin: 10px 0; }

/* ---------- read-only share mode ---------- */
.is-readonly .hzd-edit-only, .is-readonly .hzd-name { pointer-events: none; }
.is-readonly .hzd-edit-only { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1480px) { .hzd-top .hzd-btn span { display: none; } }
@media (max-width: 1180px) {
  .hzd-savestate { display: none; }
  .hzd-name { width: 150px; }
  .hzd-shell, .hzd-shell.no-panel { grid-template-columns: 70px 300px minmax(0, 1fr) 0; }
  .hzd-shell.no-panel { grid-template-columns: 70px 0 minmax(0, 1fr) 0; }
  .hzd-shell.has-inspector { grid-template-columns: 70px 300px minmax(0, 1fr) 240px; }
  .hzd-shell.no-panel.has-inspector { grid-template-columns: 70px 0 minmax(0, 1fr) 240px; }
}
@media (max-width: 860px) {
  .hzd-shell, .hzd-shell.no-panel, .hzd-shell.has-inspector, .hzd-shell.no-panel.has-inspector { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px minmax(0, 1fr) 62px; grid-template-areas: "top" "stage" "rail"; }
  .hzd-top { gap: 4px; padding: 0 8px; }
  .hzd-brand span, .hzd-top__grp, .hzd-account span, .hzd-status { display: none; }
  .hzd-name { width: auto; flex: 1; min-width: 60px; font-size: 14px; }
  .hzd-top__sp { display: none; }
  .hzd-seg button { padding: 6px 8px; }
  .hzd-top > .hzd-btn[data-act="walk"], .hzd-top > .hzd-btn[data-act="share"] { padding: 0 8px; }
  .hzd-credits { padding: 6px 8px; }
  .hzd-rail { flex-direction: row; border-right: 0; border-top: 1px solid var(--hz-line); padding: 4px; overflow-x: auto; gap: 0; }
  .hzd-rail button { flex: 0 0 64px; padding: 6px 0; }
  .hzd-panel { position: fixed; left: 0; right: 0; bottom: 62px; max-height: 58dvh; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.18); z-index: 10; border: 0; }
  .hzd-shell.no-panel .hzd-panel { display: none; }
  .hzd-inspector { position: fixed; left: 0; right: 0; bottom: 62px; max-height: 50dvh; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.18); z-index: 11; border: 0; display: none; }
  .hzd-shell.has-inspector .hzd-inspector { display: block; }
  .hzd-stage { grid-template-columns: 1fr !important; grid-template-rows: 1fr 1fr; }
  .hzd-stage[data-view="2d"], .hzd-stage[data-view="3d"] { grid-template-rows: 1fr; }
  .hzd-pane--3d { border-left: 0; border-top: 1px solid var(--hz-line); }
  .hzd-walkhud__help { display: none; }
  .hzd-pad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 4px; width: 100%; justify-content: center; }
  .hzd-pad button { border: 0; border-radius: 10px; background: rgba(255,255,255,.18); color: #fff; font-size: 16px; touch-action: none; }
  .hzd-pad [data-pad="F"] { grid-column: 2; } .hzd-pad [data-pad="L"] { grid-column: 1; grid-row: 2; } .hzd-pad [data-pad="B"] { grid-column: 2; grid-row: 2; } .hzd-pad [data-pad="R"] { grid-column: 3; grid-row: 2; }
  .hzd-toasts { bottom: 74px; right: 8px; left: 8px; max-width: none; }
}
.hzd-app .hzd-top .hzd-name { width: 220px; flex: 0 1 220px; border-color: transparent; background: transparent; font-weight: 600; font-size: 15px; }
.hzd-app .hzd-top .hzd-name:hover, .hzd-app .hzd-top .hzd-name:focus { border-color: var(--hz-line2); background: #fff; }
@media (max-width: 860px) { .hzd-app .hzd-top .hzd-name { width: auto; flex: 1 1 auto; font-size: 14px; } }
@media (max-width: 860px) {
  .hzd-brand { display: none; }
  .hzd-shell.has-inspector .hzd-panel { display: none; }
  .hzd-top > .hzd-btn[data-act="share"] { display: none; }
  .hzd-seg button { font-size: 12px; padding: 6px 7px; }
  .hzd-dd__menu { position: fixed; right: 8px; left: 8px; top: 56px; min-width: 0; }
}
@media (max-width: 860px) { .hzd-account { display: none; } }
.hzd-walkhud .hzd-btn, .hzd-walkhud select { color: var(--hz-ink); }

/* v1.1 – style picker, spaces library, before/after */
.hzd-rstyles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0 12px}
.hzd-rstyle{display:flex;flex-direction:column;gap:5px;padding:5px;border:1.5px solid #dfe8e5;border-radius:12px;background:#fff;cursor:pointer;text-align:left;font:inherit;min-width:0}
.hzd-rstyle img,.hzd-rstyle .hzd-pal{width:100%;aspect-ratio:4/3;border-radius:8px;object-fit:cover;display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden}
.hzd-rstyle .hzd-pal i{display:block}
.hzd-rstyle b{font-size:12px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hzd-rstyle.is-on{border-color:var(--hzd-accent,#0f766e);box-shadow:0 0 0 2px rgba(15,118,110,.18)}
.hzd-spaces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.hzd-space{display:flex;flex-direction:column;gap:3px;padding:6px;border:1px solid #dfe8e5;border-radius:12px;background:#fff;cursor:pointer;text-align:left;font:inherit;min-width:0}
.hzd-space img,.hzd-space__ph{width:100%;aspect-ratio:3/2;border-radius:8px;object-fit:cover;background:linear-gradient(135deg,#eef5f3,#dce9e5)}
.hzd-space b{font-size:13px;line-height:1.3}
.hzd-space small{color:#6b7c77;font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hzd-space:hover{border-color:var(--hzd-accent,#0f766e)}
.hzd-chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 4px}
.hzd-chip{border:1px solid #dfe8e5;background:#f6faf9;border-radius:999px;padding:5px 11px;font:inherit;font-size:12.5px;cursor:pointer}
.hzd-chip:hover{background:#e6f2ef}
.hzd-admin-box{background:#fff8ec;border:1px dashed #e6c58b;border-radius:12px;padding:12px}
.hzd-ba{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:10px 0}
.hzd-ba figure{margin:0}
.hzd-ba img{width:100%;border-radius:10px;display:block}
.hzd-ba figcaption{font-size:12px;color:#6b7c77;margin-top:3px;text-align:center}
#ph-file{width:100%;margin:6px 0}
.hzd-seg--full{display:flex;width:100%;margin:4px 0 10px}
.hzd-seg--full button{flex:1;padding:8px 6px}
.hzd-lbl{display:block;font-size:12.5px;font-weight:600;color:#4b5b56;margin:8px 0 6px}
.hzd-lbl select{display:block;width:100%;margin-top:6px}
.hzd-tplvars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.hzd-tplvar{display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 4px;border:1.5px solid #dfe8e5;border-radius:10px;background:#fff;font:inherit;cursor:pointer}
.hzd-tplvar b{font-size:13.5px}.hzd-tplvar span{font-size:11.5px;color:#6b7c77}
.hzd-tplvar.is-on{border-color:var(--hzd-accent,#0f766e);background:#f0f8f6;box-shadow:0 0 0 2px rgba(15,118,110,.15)}
.hzd-tplproj{display:flex;gap:10px;align-items:center;padding:8px;border:1px solid #dfe8e5;border-radius:12px;background:#f8fbfa;margin:6px 0}
.hzd-tplproj img{width:84px;height:60px;object-fit:cover;border-radius:8px;flex:none}
.hzd-tplproj div{display:flex;flex-direction:column;gap:2px;min-width:0}
.hzd-tplproj small{color:#6b7c77;font-size:11.5px}

/* v1.2 – Ý tưởng thiết kế */
.hzd-cost--free { background: #e7f8ef !important; color: #127a45 !important; }
.hzd-btn--accent .hzd-cost--free { background: rgba(255,255,255,.95) !important; }
.hzd-btn--wide { width: 100%; justify-content: center; }
.hzd-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 18px; border: 2px dashed #cfdcd7; border-radius: 14px; background: #f6faf8; text-align: center; cursor: pointer; color: #4b5b56; overflow: hidden; }
.hzd-drop:hover { border-color: var(--hzd-accent, #0f766e); background: #eef7f4; }
.hzd-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hzd-drop b { color: #14201c; font-size: 14.5px; }
.hzd-drop small { font-size: 12px; color: #6b7c77; }
.hzd-drop.has-img { padding: 0; min-height: 0; border-style: solid; }
.hzd-drop.has-img img { width: 100%; display: block; }
.hzd-drop__chg { position: absolute; right: 8px; bottom: 8px; padding: 5px 10px; border-radius: 99px; background: rgba(20,32,28,.75); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.hzd-more { margin-top: 10px; border: 1px solid #e4e9e6; border-radius: 10px; padding: 8px 12px; }
.hzd-more summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.hzd-more .hzd-btn { margin-top: 6px; }
.hzd-ideas { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #f3f6f5; overflow: hidden; }
.hzd-ideas[hidden] { display: none; }
.hzd-ideas__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid #e4e9e6; }
.hzd-ideas__head h2 { margin: 0; font-size: 18px; }
.hzd-ideas__head p { margin: 2px 0 0; font-size: 13px; color: #6b7c77; }
.hzd-ideas__tools { display: flex; gap: 8px; flex: none; }
.hzd-ideas__grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px 18px; align-content: start; justify-content: center; }
.hzd-idea { position: relative; margin: 0; width: 100%; height: auto; align-self: start; aspect-ratio: var(--ar); border-radius: 14px; overflow: hidden; background: #e3e9e7; box-shadow: 0 1px 2px rgba(16,40,34,.06), 0 4px 14px rgba(16,40,34,.06); }
.hzd-idea img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.hzd-idea figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 13px; font-weight: 600; }
.hzd-idea figcaption span:last-child { display: flex; gap: 6px; }
.hzd-idea figcaption button, .hzd-idea figcaption a { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #14201c; cursor: pointer; }
.hzd-idea__sk { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #4b5b56; font-weight: 600; font-size: 14px; background: linear-gradient(100deg, #e3e9e7 30%, #f3f7f5 50%, #e3e9e7 70%) 0 0 / 300% 100%; animation: hzdSk 1.4s linear infinite; }
.hzd-idea__sk small { font-weight: 500; font-size: 12px; color: #6b7c77; }
@keyframes hzdSk { to { background-position: -150% 0; } }
.hzd-idea__msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; background: #fff6f2; }
.hzd-idea__msg small { color: #8a4b33; font-size: 12px; max-width: 320px; }
.hzd-ideas__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; background: #fff; border-top: 1px solid #e4e9e6; }
.hzd-ideas__foot .hzd-muted { font-size: 12.5px; flex: 1; min-width: 200px; margin: 0; }
.hzd-modal__box.is-wide { width: min(1100px, 100%); }
.hzd-cmp { position: relative; width: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #e3e9e7; user-select: none; }
.hzd-cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hzd-cmp__after { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.hzd-cmp::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.4); pointer-events: none; }
.hzd-cmp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.hzd-cmp__l, .hzd-cmp__r { position: absolute; top: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; pointer-events: none; }
.hzd-cmp__l { left: 10px; } .hzd-cmp__r { right: 10px; }
@media (max-width: 860px) {
  .hzd-ideas__grid { padding: 12px; }
  .hzd-ideas__head { padding: 10px 12px; }
  .hzd-ideas__foot { padding: 10px 12px; }
}
.hzd-ideas__empty { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; }
.hzd-ideas__src { margin: 0; max-width: min(560px, 100%); }
.hzd-ideas__src img { display: block; width: 100%; max-height: 34vh; object-fit: contain; border-radius: 12px; box-shadow: 0 6px 20px rgba(16,40,34,.12); }
.hzd-ideas__src figcaption { text-align: center; font-size: 12.5px; color: #6b7c77; margin-top: 6px; }
.hzd-ideas__slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(760px, 100%); }
.hzd-ideas__slot { aspect-ratio: 4 / 3; border: 2px dashed #cfdcd7; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8a9893; background: linear-gradient(100deg, #f3f6f5 30%, #fafcfb 50%, #f3f6f5 70%) 0 0 / 300% 100%; animation: hzdSk 2.4s linear infinite; }
.hzd-ideas__slot span { font-size: 22px; font-weight: 700; color: #b7c6c1; }
.hzd-ideas__slot small { font-size: 12px; }
.hzd-ideas__how { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: min(560px, 100%); }
.hzd-ideas__how li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid #e4e9e6; border-radius: 10px; font-size: 14px; color: #36443f; }
.hzd-ideas__how b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--hzd-accent, #0f766e); color: #fff; font-size: 13px; }
.hzd-ideas__how em { font-style: normal; font-weight: 600; }
@media (max-width: 860px) { .hzd-ideas__slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v1.3 – plan import */
.hzd-drop--plan { min-height: 130px; margin: 6px 0 10px; }
.hzd-drop--plan.is-over { border-color: var(--hzd-accent, #0f766e); background: #e6f4ef; }
.hzd-drop--plan.has-file { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 0; padding: 10px; border-style: solid; text-align: left; }
.hzd-drop--plan.has-file img { width: 96px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid #e4e9e6; flex: none; }
.hzd-drop__meta { display: flex; flex-direction: column; min-width: 0; }
.hzd-drop__meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hzd-pdf { flex: none; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 8px; background: #fde8e8; color: #b42318; font-weight: 800; letter-spacing: .05em; }
.hzd-small { font-size: 12px !important; }
.hzd-impres { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #eef7f4; border: 1px solid #cfe6de; display: flex; flex-direction: column; gap: 4px; }
.hzd-impres.is-warn { background: #fff7ed; border-color: #f6d3b0; }
.hzd-impres small { color: #5d6b66; }
.hzd-impres ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: #36443f; }
.hzd-tips { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: #36443f; line-height: 1.6; }
.hzd-btn--wide + .hzd-btn--wide { margin-top: 0; }
/* v1.3 – "Tạo mặt bằng" waiting screen */
.hzd-intro { position: absolute; inset: 0; z-index: 29; display: flex; flex-direction: column; background: #f3f6f5; overflow: hidden; }
.hzd-intro[hidden] { display: none; }
.hzd-intro__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 28px 24px 32px; }
.hzd-intro__flow { display: flex; align-items: stretch; gap: 10px; width: min(900px, 100%); }
.hzd-intro__step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 16px; background: #fff; border: 1px solid #e4e9e6; border-radius: 14px; }
.hzd-intro__step b { font-size: 15px; color: #14201c; }
.hzd-intro__step small { font-size: 12.5px; color: #6b7c77; line-height: 1.45; }
.hzd-intro__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #e6f4ef; color: var(--hzd-accent, #0f766e); }
.hzd-intro__arrow { align-self: center; font-style: normal; font-size: 22px; color: #9fb3ad; }
.hzd-intro__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; width: min(900px, 100%); }
.hzd-intro__card { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #e4e9e6; }
.hzd-intro__card h3 { margin: 0 0 8px; font-size: 15px; }
.hzd-intro__card.is-good h3 { color: #127a45; }
.hzd-intro__card.is-bad h3 { color: #b42318; }
.hzd-intro__card ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.65; color: #36443f; }
.hzd-intro__more { width: min(900px, 100%); margin: 0; font-size: 13.5px; color: #4b5b56; text-align: center; }
.hzd-intro__file { margin: 0; max-width: min(640px, 100%); text-align: center; }
.hzd-intro__file img { max-width: 100%; max-height: 42vh; border-radius: 12px; background: #fff; border: 1px solid #e4e9e6; box-shadow: 0 6px 20px rgba(16,40,34,.10); }
.hzd-intro__file figcaption { margin-top: 6px; font-size: 12.5px; color: #6b7c77; }
.hzd-pdf--lg { width: 140px; height: 160px; font-size: 26px; display: grid; margin: 0 auto; }
@media (max-width: 860px) { .hzd-intro__flow { flex-direction: column; } .hzd-intro__arrow { transform: rotate(90deg); } .hzd-intro__cols { grid-template-columns: 1fr; } }
.hzd-intro__cols.is-single { grid-template-columns: 1fr; }
.hzd-intro__ctas { justify-content: center; margin: 0; }
.hzd-intro__more a { color: var(--hzd-accent, #0f766e); font-weight: 600; }
/* mobile: bottom-sheet panel must stay above the result/guide boards */
@media (max-width: 860px) {
  .hzd-panel { z-index: 40; }
  .hzd-inspector { z-index: 41; }
  .hzd-shell:not(.no-panel) .hzd-ideas__grid, .hzd-shell:not(.no-panel) .hzd-ideas__empty, .hzd-shell:not(.no-panel) .hzd-intro__body { padding-bottom: calc(58dvh + 16px); }
  .hzd-ideas__empty { justify-content: flex-start; }
}
.hzd-help { margin-left: auto; font-weight: 700; font-size: 16px; color: var(--hzd-accent, #0f766e); }
.hzd-panel__head .hzd-help + .hzd-ib { margin-left: 4px; }
/* v1.4 – Homezi product picker in Ý tưởng */
.hzd-pp input[type="search"] { width: 100%; margin: 4px 0 8px; }
.hzd-pp__cats { margin: 0 0 8px; max-height: none; overflow: visible; }
.hzd-chip.is-on { background: var(--hzd-accent, #0f766e); border-color: var(--hzd-accent, #0f766e); color: #fff; }
.hzd-pp__sel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; }
.hzd-pp__chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 8px 3px 3px; border: 1px solid #cfe6de; border-radius: 99px; background: #eef7f4; font: inherit; font-size: 12px; cursor: pointer; }
.hzd-pp__chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #fff; }
.hzd-pp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.hzd-pp__item { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 5px; border: 1.5px solid #e4e9e6; border-radius: 10px; background: #fff; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.hzd-pp__item:hover { border-color: #9cc7bb; }
.hzd-pp__item.is-on { border-color: var(--hzd-accent, #0f766e); box-shadow: 0 0 0 2px rgba(15,118,110,.18); }
.hzd-pp__img { position: relative; display: block; aspect-ratio: 1; border-radius: 7px; overflow: hidden; background: #f4f6f5; }
.hzd-pp__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hzd-pp__img i { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,.95); border: 1.5px solid #cfd8d4; color: transparent; }
.hzd-pp__item.is-on .hzd-pp__img i { background: var(--hzd-accent, #0f766e); border-color: var(--hzd-accent, #0f766e); color: #fff; }
.hzd-pp__item b { font-size: 11.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hzd-pp__item small { font-size: 11px; color: #b54409; font-weight: 600; }
.hzd-pp__more { grid-column: 1 / -1; justify-self: center; }
.hzd-ideas__prods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 18px 12px; background: #fff; border-top: 1px solid #e4e9e6; font-size: 13px; }
.hzd-ideas__prods a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid #e4e9e6; border-radius: 99px; color: #14201c; text-decoration: none; font-size: 12.5px; }
.hzd-ideas__prods a:hover { border-color: var(--hzd-accent, #0f766e); }
.hzd-ideas__prods img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* template picker: blank canvas first */
.hzd-tplblank { width: 100%; justify-content: center; text-align: center; margin: 2px 0 4px; }
.hzd-or { display: flex; align-items: center; gap: 10px; margin: 10px 0 10px; font-size: 12px; color: #7a8783; }
.hzd-or::before, .hzd-or::after { content: ""; flex: 1; height: 1px; background: #e2e8e6; }
