/* Szobanéző – B terv (a csempewebaruhaz sablon --cw-* tokenjeivel, tartalékszínekkel). */
.sz-page {
    --sz-green: var(--cw-green, #1E3B33);
    --sz-coral: var(--cw-coral, #E8623D);
    --sz-ink: var(--cw-ink, #1D2420);
    --sz-muted: var(--cw-muted, #6B716C);
    --sz-line: var(--cw-line, #ECE6DE);
    --sz-sand: var(--cw-sand, #F6F2EC);
    --sz-mint: var(--cw-mint, #EEF3F0);
    padding-block: 22px 48px;
    color: var(--sz-ink);
}
.sz-page svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sz-muted { color: var(--sz-muted); font-size: 13px; }
.sz-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 30px; margin-bottom: 16px; }
.sz-head > div { max-width: 780px; }
.sz-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--sz-mint); color: var(--sz-green); font-weight: 800; font-size: 12.5px; }
.sz-badge svg { width: 15px; height: 15px; }
.sz-title { margin: 8px 0 6px; font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -1px; }
.sz-title .cw-hand { color: var(--sz-coral); }
.sz-head p { margin: 0; color: #4A524D; }
.sz-upload { cursor: pointer; }

.sz-layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.sz-main { flex: 1.6 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sz-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1100px) { .sz-side { position: sticky; top: 140px; } }

.sz-scenes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sz-scenes button { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--sz-line); background: #fff; color: var(--sz-ink); font-weight: 700; font-size: 13.5px; }
.sz-scenes button[aria-selected="true"] { background: var(--sz-green); border-color: var(--sz-green); color: #fff; }

.sz-stage { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #E9E4DC; box-shadow: 0 24px 60px rgba(30,59,51,.12); touch-action: none; user-select: none; }
.sz-base { position: absolute; inset: 0; }
.sz-base__wall { position: absolute; inset: 0 0 40% 0; background: linear-gradient(180deg, #D9D2C6, #CFC7BA); }
.sz-base__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, #A39C92, #8C857C); }
.sz-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.sz-planes { position: absolute; inset: 0; overflow: hidden; }
.sz-plane { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; transform-origin: 0 0; overflow: hidden; backface-visibility: hidden; }
.sz-tex { position: absolute; inset: 0; background-repeat: repeat; }
.sz-tex.is-diag { inset: -50%; transform: rotate(45deg); }
.sz-shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sz-plane[data-sz-plane="floor"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 30%); pointer-events: none; }

/* Mintaszobák bútorai (a burkolat fölött) */
.sz-furniture { position: absolute; inset: 0; pointer-events: none; }
.sz-f { display: none; position: absolute; inset: 0; }
.sz-stage[data-scene="furdo"] .sz-f--furdo, .sz-stage[data-scene="konyha"] .sz-f--konyha, .sz-stage[data-scene="nappali"] .sz-f--nappali { display: block; }
.sz-mirror { position: absolute; left: 12%; top: 9%; width: 20%; height: 32%; border-radius: 110px 110px 12px 12px; background: linear-gradient(160deg, #F4F7F8, #D8E1E5); box-shadow: inset 0 0 0 6px #fff, 0 10px 20px rgba(0,0,0,.08); }
.sz-tub { position: absolute; left: 8%; bottom: 14%; width: 42%; height: 24%; border-radius: 16px 16px 10px 10px; background: linear-gradient(180deg, #fff, #E5E0D8); box-shadow: 0 26px 44px rgba(0,0,0,.18); }
.sz-vanity { position: absolute; left: 62%; bottom: 30%; width: 22%; height: 15%; border-radius: 10px; background: linear-gradient(180deg, #2B3A33, #1E2A25); box-shadow: 0 16px 26px rgba(0,0,0,.2); }
.sz-basin { position: absolute; left: 65%; bottom: 45%; width: 16%; height: 4%; border-radius: 0 0 40px 40px; background: #fff; }
.sz-upper { position: absolute; left: 6%; right: 6%; top: 3%; height: 18%; border-radius: 6px; background: linear-gradient(180deg, #2F6A55, #24584A); box-shadow: 0 8px 16px rgba(0,0,0,.15); }
.sz-counter { position: absolute; left: 0; right: 0; bottom: 18%; height: 21%; background: linear-gradient(180deg, #2F6A55, #1E3B33); box-shadow: inset 0 6px 0 #EDE6DA, 0 -6px 14px rgba(0,0,0,.12); }
.sz-hob { position: absolute; left: 58%; bottom: 36%; width: 18%; height: 2.5%; border-radius: 3px; background: #1D1D1D; }
.sz-frame { position: absolute; left: 18%; top: 10%; width: 18%; height: 34%; border-radius: 6px; background: linear-gradient(180deg, #F8F3EA, #E7DCC9); box-shadow: inset 0 0 0 6px #fff, 0 8px 18px rgba(0,0,0,.1); }
.sz-sofa { position: absolute; left: 12%; bottom: 12%; width: 50%; height: 20%; border-radius: 22px 22px 10px 10px; background: linear-gradient(180deg, #E7DFD3, #CFC4B5); box-shadow: 0 20px 30px rgba(0,0,0,.18); }
.sz-sofaback { position: absolute; left: 13%; bottom: 29%; width: 48%; height: 13%; border-radius: 18px; background: linear-gradient(180deg, #EFE8DD, #D8CEC0); }
.sz-table { position: absolute; left: 68%; bottom: 14%; width: 14%; height: 8%; border-radius: 50%; background: #2B2B2B; box-shadow: 0 10px 18px rgba(0,0,0,.25); }
.sz-leaf { position: absolute; border-radius: 50% 0 50% 0; background: linear-gradient(135deg, #5E9A64, #2F6A3E); }
.sz-pot { position: absolute; left: 87%; top: 38%; width: 42px; height: 58px; border-radius: 6px 6px 12px 12px; background: #C9B9A0; }
.sz-stage[data-scene="sajat"] .sz-furniture { display: none; }

.sz-handles { position: absolute; inset: 0; }
.sz-handle { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid #fff; background: var(--sz-coral); box-shadow: 0 4px 12px rgba(0,0,0,.35); cursor: grab; touch-action: none; padding: 0; }
.sz-handle--wall { background: var(--sz-green); }
.sz-handle:active { cursor: grabbing; transform: scale(1.15); }
.sz-splitline { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.3); pointer-events: none; }
.sz-tag { position: absolute; left: 14px; top: 14px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(29,36,32,.75); color: #fff; font-size: 11.5px; font-weight: 700; display: none; align-items: center; }
.sz-tag--after { left: auto; right: 14px; background: var(--sz-coral); }
.sz-stage.has-split .sz-tag { display: inline-flex; }
.sz-tools { position: absolute; right: 14px; top: 14px; display: flex; gap: 6px; }
.sz-stage.has-split .sz-tools { top: 50px; }
.sz-tools button { height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--sz-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sz-tools svg { width: 16px; height: 16px; }
.sz-caption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(29,36,32,.78); color: #fff; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sz-caption:empty { display: none; }
@media (max-width: 575.98px) { .sz-tools button { padding: 0 10px; font-size: 12px; } .sz-caption { display: none; } .sz-stage { aspect-ratio: 4 / 3.4; } }

.sz-drop { position: absolute; inset: 0; z-index: 3; background: rgba(251,248,244,.88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sz-drop__box { width: 440px; max-width: 100%; padding: 26px; border-radius: 18px; border: 2px dashed var(--sz-coral); background: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.sz-drop__box > span:not(.sz-drop__icon) { font-size: 13.5px; color: var(--sz-muted); }
.sz-drop__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cw-coral-soft, #FFF4EF); color: var(--sz-coral); display: flex; align-items: center; justify-content: center; }
.sz-drop__icon svg { width: 26px; height: 26px; }
.sz-drop .cw-pill { cursor: pointer; }

.sz-under { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sz-range { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--sz-muted); }
.sz-range input, .sz-mini input, .sz-scale input { flex: 1; accent-color: var(--sz-coral); }
.sz-owntools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sz-chipbtn { height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--sz-line); background: #fff; color: var(--sz-ink); font-weight: 700; font-size: 13px; }
.sz-chipbtn[aria-pressed="true"] { background: var(--sz-green); border-color: var(--sz-green); color: #fff; }
.sz-chipbtn--ai { border-color: var(--sz-coral); color: var(--sz-coral); }
.sz-mini { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--sz-muted); }
.sz-msg { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--sz-mint); color: var(--sz-green); font-weight: 600; font-size: 14px; }
.sz-msg.is-error { background: #FDECE7; color: #8A2B14; }

.sz-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--sz-line); }
.sz-savedlist { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.sz-savedbtn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid var(--sz-line); background: var(--cw-bg, #FBF8F4); font-size: 12.5px; font-weight: 700; color: var(--sz-ink); }
.sz-savedbtn__sw { display: flex; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.sz-savedbtn__sw img, .sz-savedbtn__sw i { flex: 1; width: 17px; height: 34px; object-fit: cover; background: var(--sz-sand); }

.sz-card { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--sz-line); display: flex; flex-direction: column; gap: 10px; }
.sz-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sz-sand); }
.sz-tabs button { flex: 1; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--sz-ink); font-weight: 800; font-size: 14px; }
.sz-tabs button[aria-selected="true"] { background: var(--sz-green); color: #fff; }
.sz-search input { width: 100%; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--sz-line); background: var(--sz-sand); font: inherit; font-size: 13.5px; }
.sz-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; }
.sz-tile { display: flex; flex-direction: column; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid var(--sz-line); background: #fff; text-align: left; color: var(--sz-ink); font: inherit; }
.sz-tile.is-on { border-color: var(--sz-coral); }
.sz-tile__img { display: block; height: 68px; background: var(--sz-sand); }
.sz-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sz-tile__body { padding: 6px 8px; display: flex; flex-direction: column; line-height: 1.2; }
.sz-tile__body b { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sz-tile__body small { font-size: 11px; color: var(--sz-muted); }
.sz-label { font-size: 13px; font-weight: 700; color: #4A524D; }
.sz-pills { display: flex; gap: 8px; }
.sz-pills button { flex: 1; height: 42px; border-radius: 999px; border: 1.5px solid var(--sz-line); background: #fff; color: var(--sz-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.sz-pills button i { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.sz-pills button[aria-pressed="true"] { border-color: var(--sz-green); box-shadow: inset 0 0 0 1px var(--sz-green); }
.sz-pills[data-sz-pattern] button[aria-pressed="true"] { background: var(--sz-green); color: #fff; }
.sz-scale { display: flex; flex-direction: column; gap: 6px; }
.sz-picked { display: flex; align-items: center; gap: 10px; }
.sz-picked img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.sz-picked > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; }
.sz-picked small { font-size: 11px; font-weight: 800; color: var(--sz-muted); }
.sz-picked em { font-style: normal; font-weight: 800; color: var(--sz-coral); }
.sz-picked__btns { display: flex; flex-direction: column; gap: 4px; }
.sz-picked__btns a, .sz-picked__btns button { height: 30px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--sz-line); background: #fff; font-size: 12px; font-weight: 700; color: var(--sz-ink); display: inline-flex; align-items: center; justify-content: center; }

.sz-how { display: grid; gap: 12px; margin-top: 26px; }
@media (min-width: 768px) { .sz-how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sz-how > div { display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--sz-line); }
.sz-how span { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--sz-green); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.sz-how small { color: var(--sz-muted); font-size: 13px; }

/* ---- AI javaslat a szobádhoz ---- */
.sz-ai { display: flex; flex-direction: column; gap: 10px; border: 1.5px solid #F2C9B8; background: #FFF8F4; }
.sz-ai__head { display: flex; gap: 10px; align-items: flex-start; }
.sz-ai__head > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.sz-ai__head small { color: var(--cw-muted, #6B746F); font-size: 12.5px; line-height: 1.4; }
.sz-ai__spark { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--cw-coral, #E8623D); color: #fff; font-size: 16px; }
.sz-ai input[type="text"] { width: 100%; height: 42px; padding: 0 14px; border: 1.5px solid var(--cw-line, #E7DFD3); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; }
.sz-ai input[type="text"]:focus { outline: 0; border-color: var(--cw-green, #1E3B33); }
.sz-ai__note { margin: 0; font-size: 11.5px; color: var(--cw-muted, #6B746F); }
.sz-ai__out { display: flex; flex-direction: column; gap: 10px; }
.sz-ai__out:empty { display: none; }
.sz-ai__analysis { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 13.5px; line-height: 1.45; }
.sz-ai__err { margin: 0; color: #8A3A1F; font-size: 13.5px; }
.sz-ai__combo { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--cw-line, #E7DFD3); }
.sz-ai__combo > b { font-size: 15px; color: var(--cw-green, #1E3B33); }
.sz-ai__combo > p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--cw-muted, #6B746F); }
.sz-ai__tile { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.sz-ai__tile img { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; }
.sz-ai__tile small { display: block; font-size: 10.5px; letter-spacing: 1px; color: var(--cw-coral, #E8623D); }
.sz-ai__tile em { display: block; font-style: normal; font-weight: 600; color: var(--cw-muted, #6B746F); }
.sz-ai__meta { font-size: 12px; color: var(--cw-muted, #6B746F); }
.sz-ai__combo .sz-chipbtn { align-self: flex-start; }

