/* Номерок 0.6a · схемы мебели. Без анимаций: схема — инструмент, а не сцена. */
.fz-block{margin:14px 0 18px}
.fz-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fz-head .modal-section{margin:0}
.fz-list{display:grid;gap:12px;margin-top:10px}
.fz-card{padding:12px;border-radius:18px}
.fz-card-top{display:flex;align-items:center;gap:10px;margin-bottom:10px;min-width:0}
.fz-card-top b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* корпус: колонки-отделения, ячейки сверху вниз */
.fz-unit{display:flex;gap:4px;min-height:190px;padding:6px;border:2px solid rgba(var(--line),.28);border-radius:10px;background:rgba(var(--line),.04)}
.fz-u-dresser,.fz-u-nightstand,.fz-u-table{min-height:120px}
.fz-u-underbed,.fz-u-container,.fz-u-spot{min-height:70px}
.fz-col{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.fz-col+.fz-col{border-left:1px dashed rgba(var(--line),.18);padding-left:4px}
.fz-cell{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:4px;min-height:34px;padding:4px 6px;border:0;border-bottom:3px solid rgba(var(--line),.42);border-radius:4px;background:rgba(var(--line),.06);color:inherit;font:600 12px/1.1 "JetBrains Mono",ui-monospace,monospace;cursor:pointer;text-align:left;touch-action:manipulation}
.fz-cell b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fz-n{flex:none;min-width:20px;padding:2px 6px;border-radius:999px;background:var(--a1,#c9a5ef);color:#1a1025;text-align:center;font:700 11px/1.3 "Golos Text",system-ui,sans-serif}
.fz-rod{position:absolute;left:8px;right:8px;top:12px;height:3px;border-radius:2px;background:rgba(var(--line),.55)}
.fz-rod::before,.fz-rod::after{content:'';position:absolute;top:2px;width:2px;height:14px;background:rgba(var(--line),.35)}
.fz-rod::before{left:28%}.fz-rod::after{left:62%}
.fz-k-drawer,.fz-k-box{border-bottom-width:1px;border:1px solid rgba(var(--line),.3)}
.fz-k-drawer::after{content:'';position:absolute;left:50%;top:7px;width:22px;height:3px;margin-left:-11px;border-radius:2px;background:rgba(var(--line),.5)}
.fz-k-shoes{border-bottom-style:dotted}
.fz-k-hook,.fz-k-spot{border:1px dashed rgba(var(--line),.4)}
.fz-cell.on{outline:3px solid var(--a1,#c9a5ef);outline-offset:1px;background:rgba(201,165,239,.18)}
.fz-cell.unsure{border-style:dashed;border-color:#f0b35a}
.fz-cell:focus-visible{outline:3px solid rgb(var(--line));outline-offset:1px}

/* мастер */
.fz-steps{display:grid;gap:8px;margin:12px 0}
.fz-step{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(var(--line),.08)}
.fz-step small{display:block;opacity:.7;font-size:12px}
.fz-stepper{display:flex;align-items:center;gap:8px}
.fz-stepper output{min-width:24px;text-align:center;font-weight:700}

/* редактор */
.fz-tools{margin:12px 0;padding:12px;border-radius:16px}
.fz-tools-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.fz-kinds{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.fz-row{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.fz-row .ghostbtn{flex:1 1 calc(50% - 6px);min-height:40px;margin:0}
.fz-danger{display:block;margin:14px auto 0;color:#ff9b9b}

/* выбор места и мини-схема в карточке вещи */
.fz-pickbox{margin:6px 0 10px}
.fz-pickbox summary{cursor:pointer;color:var(--link,#d8c4ef)}
.fz-pick{margin-top:10px}
.fz-pick small{display:block;margin-bottom:4px;opacity:.75}
.fz-where{margin-top:10px}
.fz-where .fz-unit{min-height:120px}
.fz-kinds .chip.on{background:var(--a1,#c9a5ef);color:#1a1025;font-weight:700}
.fz-entry{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 14px;border:0;border-radius:999px;color:inherit;font:600 14px/1 "Golos Text",system-ui,sans-serif;cursor:pointer}
.fz-entry svg{width:20px;height:20px}
.fz-nudge{display:flex;align-items:center;gap:12px;margin:10px 0 4px;padding:12px 14px;border-radius:18px}
.fz-nudge span{flex:1;min-width:0}.fz-nudge small{display:block;opacity:.75;font-size:12px;margin-top:3px}
.fz-nudge .cta{width:auto;height:44px;margin:0;padding:0 18px;flex:none}

/* 0.4.3 · «Сфоткать шкаф» */
.fz-cta{display:flex;flex-direction:column;align-items:center;gap:6px;margin:10px 0 14px}
.fz-cta .cta,.fz-howto+.cta{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:0}
.fz-cta .cta svg,.fz-howto+.cta svg{width:24px;height:24px}
.fz-howto{margin:4px 0 16px;padding-left:22px;line-height:1.55}
.fz-howto li{margin:6px 0}
.fz-photo-ref{margin:6px 0 10px;border-radius:14px;overflow:hidden;background:rgba(0,0,0,.25);display:flex;flex-direction:column;align-items:center}
.fz-photo-ref img{max-width:100%;max-height:60vh;object-fit:contain;display:block}
.fz-photo-ref .text-btn{margin:4px 0 6px}
.fz-photos{display:flex;gap:8px;overflow-x:auto;margin:10px 0 4px;padding-bottom:2px}
.fz-thumb{flex:0 0 auto;width:64px;height:84px;padding:0;border-radius:12px;overflow:hidden;border:2px solid rgba(var(--line),.18);background:rgba(0,0,0,.25);cursor:pointer}
.fz-thumb.on{border-color:var(--accent,#f0b35a)}
.fz-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.fz-thumb-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:inherit;border-style:dashed}
.fz-thumb-add svg{width:22px;height:22px}
.fz-thumb-add small{font-size:11px;line-height:1.1;text-align:center}
.fz-photo-hint{margin:2px 0 8px}
.fz-card-thumb{width:40px;height:52px;border-radius:9px;object-fit:cover;flex:0 0 auto;background:rgba(0,0,0,.25)}
.fz-ai-note{margin:8px 0;padding:10px 12px;border-radius:12px;background:rgba(240,179,90,.14);border:1px solid rgba(240,179,90,.45);font-size:14px;line-height:1.45}
.fz-ai-note small{display:block;margin-top:6px;opacity:.8;font-size:12px}
.fz-wait{padding:18px 0}
.fz-wait-bar{height:6px;border-radius:3px;background:rgba(var(--line),.12);overflow:hidden}
.fz-wait-bar i{display:block;height:100%;width:40%;border-radius:3px;background:var(--a1,#c9a5ef);animation:fzwait 1.4s ease-in-out infinite}
@keyframes fzwait{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
@media (prefers-reduced-motion:reduce){.fz-wait-bar i{animation:none;width:100%;opacity:.6}}
.motion-off .fz-wait-bar i{animation:none;width:100%;opacity:.6}

/* свайп влево */
.swipe{position:relative;border-radius:20px;overflow:hidden;margin-top:10px}
.fz-list .swipe{margin-top:0}
.swipe-actions{position:absolute;inset:0 0 0 auto;display:flex;width:168px}
.swipe-btn{flex:1;border:0;color:#fff;font:600 14px/1.2 "Golos Text",system-ui,sans-serif;background:#5b5470;cursor:pointer}
.swipe-btn.danger{background:#b0413e}
.swipe-face{position:relative;z-index:1;transition:transform .18s ease;touch-action:pan-y;background-clip:padding-box}
.swipe-face.dragging{transition:none}
.swipe .location-card{margin-top:0}
.swipe .fz-card,.swipe .location-card{background-color:var(--bg,#14121c)}
.is-hidden{opacity:.55}
@media (prefers-reduced-motion:reduce){.swipe-face{transition:none}}

/* 0.6.2: ярусы (основная часть / ряд ящиков / низ за дверцами), двойные отделения, номер отделения над колонкой */
.fz-col{display:flex;flex-direction:column;gap:4px;min-width:0}
.fz-cells{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.fz-across .fz-cells{flex-direction:row}
.fz-across .fz-cell{min-width:0;justify-content:center}
.fz-sn{display:block;padding:0 2px;font:700 11px/1.2 "Golos Text",system-ui,sans-serif;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fz-tiers{flex-direction:column}
.fz-tier{display:flex;gap:4px;flex:1}
.fz-tier-low{flex:none;padding-top:6px;margin-top:2px;border-top:2px solid rgba(var(--line),.28)}
.fz-tier-low .fz-cell{min-height:30px}
.fz-tier>.fz-col+.fz-col{border-left:1px dashed rgba(var(--line),.18);padding-left:4px}

.fz-k-rod{min-height:62px}
.fz-legend{margin:6px 2px 0;font-size:12px;line-height:1.4;opacity:.8}
.fz-legend b{font-weight:700}
/* 0.6.2: на тёмном акценте темы (mono, sage, wine) цифры и выбранные чипы — белым */
.fz-n,.fz-kinds .chip.on{color:#fff}
.fz-n{box-shadow:0 0 0 1px rgba(var(--line),.4)}
