/* styles.css - Diseñador de VIPWoodwork con los colores de vipwoodwork.com */
:root {
  --bg: #f6f5f2; --ink: #141416; --blue: #1b3fa0; --blue-h: #2a55c9; --soft: #e8edfa; --wood: #b5793f; --line: #e3e1dc;
  --card: #ffffff; --mute: #6c6a66; --red: #c62828; --amber: #9a5b00;
  --r: 14px; --head: 'Montserrat', Arial, sans-serif; --text: 'Raleway', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--text); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; }

/* ---------- encabezado ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 22px;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.title { font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--blue); padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- controles ---------- */
.pill { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .02em; transition: background .15s, border-color .15s, color .15s; }
.pill:hover { background: #2b2b2f; }
.pill.primary { background: var(--blue); border-color: var(--blue); }
.pill.primary:hover { background: var(--blue-h); border-color: var(--blue-h); }
.pill.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.pill.ghost:hover { border-color: var(--ink); }
.pill.sm { padding: 6px 13px; font-size: 12px; }
.pill.big { width: 100%; padding: 15px 20px; font-size: 15px; box-shadow: 0 6px 18px rgba(27,63,160,.22); }
.pill.danger { color: var(--red); }
.pill.danger:hover { border-color: var(--red); }
.pill:disabled { opacity: .5; cursor: default; }
.lang { min-width: 52px; }
.seg { display: inline-flex; background: #efede8; border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 13px; cursor: pointer; font-family: var(--head);
  font-size: 12px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button:hover:not(.on) { color: var(--ink); }
.seg.wide { display: flex; } .seg.wide button { flex: 1; }
.seg.tabs:empty { display: none; }
.icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon:hover:not(:disabled) { border-color: var(--ink); }
.icon:disabled { opacity: .35; cursor: default; }

/* ---------- distribución ---------- */
.layout { display: grid; grid-template-columns: 320px minmax(0, 1fr) 340px; gap: 18px; padding: 18px 22px 40px; max-width: 1800px; margin: 0 auto; align-items: start; }
.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card h2 { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h3 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 14px 0 8px; }
.hint { font-size: 12.5px; color: var(--mute); margin: 8px 0 0; }
.hint.strong { color: var(--blue); font-weight: 600; margin: -4px 0 6px; }
.hint.center { text-align: center; }
.empty { color: var(--mute); font-size: 14px; margin: 0; }
.stage { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.views { display: grid; gap: 10px; height: calc(100vh - 190px); min-height: 420px; grid-template-rows: 1fr; }
.view { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; min-height: 0; }
.views { grid-template-columns: minmax(0, 1fr); }
.v3d { background: var(--bg); }
.view canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; }
#elev { cursor: grab; }
.stage[data-view="2d"] .v3d, .stage[data-view="3d"] .v2d { display: none; }
.stage[data-view="both"] .views { grid-template-rows: 1.15fr 1fr; }

/* ---------- espacio ---------- */
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.space { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.15; }
.space svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.space.on { border-color: var(--blue); background: var(--soft); color: var(--blue); }
.space:hover:not(:disabled):not(.on) { border-color: var(--ink); }
.space:disabled { color: #a9a6a0; cursor: default; background: #faf9f7; }
.space em { font-style: normal; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--wood); font-weight: 700; }

.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; min-width: 0; }
.fld > span:first-child { font-size: 12px; font-weight: 600; color: var(--mute); }
.fld.chk { flex-direction: row; align-items: center; gap: 8px; align-self: end; padding-bottom: 8px; }
.fld.chk span { font-size: 13px; color: var(--ink); font-weight: 600; }
.fld.chk input { width: 18px; height: 18px; accent-color: var(--blue); }
.inp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.inp:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--soft); }
.inp input { border: 0; outline: 0; padding: 8px 10px; width: 100%; min-width: 0; background: transparent; font-weight: 600; }
.inp i { font-style: normal; font-size: 11px; color: var(--mute); padding-right: 10px; }
input.bad { color: var(--red); }
select, .fld > input, textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; width: 100%; outline: 0; }
select:focus, .fld > input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
details.sub { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
details.sub summary { cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 12.5px; margin-bottom: 8px; }

/* ---------- catálogo ---------- */
.cat h3:first-child { margin-top: 4px; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.15; transition: border-color .15s, transform .1s; }
.item:hover:not(:disabled) { border-color: var(--blue); }
.item:active:not(:disabled) { transform: scale(.97); }
.item:disabled { opacity: .35; cursor: default; }
.item svg { width: 44px; height: 44px; }
.item small { color: var(--mute); font-weight: 500; font-size: 10.5px; }
.item svg .bx, .dbrow svg .bx { fill: #f3f1ec; stroke: var(--ink); stroke-width: .8; }
.item svg .fr, .dbrow svg .fr { fill: #fff; stroke: var(--ink); stroke-width: .7; }
.item svg .fr.oven, .dbrow svg .fr.oven { fill: #2a2b2e; } .item svg .fr.fridge, .dbrow svg .fr.fridge { fill: #d4d7d9; }
.item svg .fr.panel, .dbrow svg .fr.panel, .item svg .fr.filler, .dbrow svg .fr.filler { fill: #e9e1d6; }
.item svg .tk, .dbrow svg .tk { fill: #3a3a3d; } .item svg .ct, .dbrow svg .ct { fill: #c9c6bf; } .item svg .sh, .dbrow svg .sh { fill: var(--ink); } .item svg .rd, .dbrow svg .rd { fill: var(--wood); }

/* ---------- acabados ---------- */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px; cursor: pointer; font-size: 11px; font-weight: 600; line-height: 1.15; }
.sw i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.sw i.wood { background-image: repeating-linear-gradient(95deg, rgba(0,0,0,.08) 0 2px, transparent 2px 7px) !important; background-blend-mode: multiply; }
.sw.on { border-color: var(--blue); background: var(--soft); color: var(--blue); }

/* ---------- propiedades / resumen ---------- */
.num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; }
.meta { margin: -6px 0 12px; font-size: 13px; color: var(--mute); }
.acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.acts.end { justify-content: flex-end; margin-top: 14px; }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th { text-align: left; font-weight: 600; color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 6px; border-bottom: 1px solid var(--line); }
td { padding: 6px 6px; border-bottom: 1px solid #f0eee9; vertical-align: top; }
tr[data-sel] { cursor: pointer; } tr[data-sel]:hover td { background: #faf9f6; } tr.on td { background: var(--soft); }
.nw { white-space: nowrap; }
table.lin td:nth-child(n+2) { text-align: right; white-space: nowrap; }
table.lin tr.tot td { font-weight: 700; border-bottom: 0; }
.c-cta { position: sticky; bottom: 12px; }

/* ---------- avisos ---------- */
#alerts:empty { display: none; }
#alerts { display: flex; flex-direction: column; gap: 6px; }
.alert { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; }
.alert.err { background: #fdecea; color: var(--red); }
.alert.warn { background: #fff4e0; color: var(--amber); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); } .toast.warn { background: var(--amber); } .toast.ok { background: var(--blue); }

/* ---------- diálogo ---------- */
dialog { border: 0; border-radius: 18px; padding: 22px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,20,22,.45); }
dialog h2 { font-size: 18px; margin-bottom: 6px; }
dialog .hint { margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#failJson { width: 100%; font: 11px/1.4 Consolas, monospace; margin-top: 8px; }

/* ---------- v2: plantillas, dibujo, paredes, aberturas ---------- */
.shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.shape { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 7px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; font-size: 11.5px; font-weight: 600; line-height: 1.15; }
.shape svg { width: 40px; height: 40px; }
.shape svg .wl { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.shape svg .op { stroke: #b9b5ad; stroke-width: 1.5; stroke-dasharray: 3 3; }
.shape svg .dr { stroke: #fff; stroke-width: 3.4; }
.shape.on { border-color: var(--blue); background: var(--soft); color: var(--blue); }
.shape.on svg .wl { stroke: var(--blue); }
.shape:hover:not(.on) { border-color: var(--ink); }
.drawbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.drawbtns .pill { flex: 1; }
.pill.wide { width: 100%; }
.walls { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.wrow { display: grid; grid-template-columns: 34px 1.4fr 1fr; gap: 6px; align-items: center; padding: 3px; border-radius: 12px; }
.walls.with-h .wrow { grid-template-columns: 34px 1.3fr .9fr 1.1fr; }
.wrow.on { background: var(--soft); }
.wrow.head span { font-size: 11px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.wrow .inp input { padding: 7px 8px; }
.wrow .muted { font-size: 11.5px; color: var(--mute); text-align: center; }
.wb { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-family: var(--head); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; }
.wrow.on .wb { background: var(--blue); border-color: var(--blue); color: #fff; }
.wb.open { border-style: dashed; color: var(--mute); }
.status { font-size: 13px; font-weight: 600; margin: 6px 0 10px; padding: 8px 10px; border-radius: 10px; background: #f1efea; color: var(--mute); }
.status.ok { background: #e8f5e9; color: #2e7d32; }
.status.err { background: #fdecea; color: var(--red); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-family: var(--head); font-weight: 700; font-size: 12px; cursor: pointer; background: #fff; }
.chip input { display: none; }
.chip.on { background: var(--soft); border-color: var(--blue); color: var(--blue); }
.num.sq { border-radius: 8px; }
.turns { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 10px; }
.opening { border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 0; margin-bottom: 8px; background: #fcfbf9; }
.ophead { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ophead select { flex: 1; }
.icon.sm { width: 30px; height: 30px; font-size: 18px; line-height: 1; color: var(--red); }
.v2d .pane { position: absolute; left: 10px; top: 10px; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
body.drawing .v2d .pane { display: none; }
.drawbar { background: #fff; border-top: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
body.drawing .v2d { display: flex !important; flex-direction: column; }
body.drawing .v2d canvas { position: relative; inset: auto; flex: 1; min-height: 0; height: auto !important; }
.drawbar .pill.sm { padding: 5px 11px; font-size: 11.5px; }
.drawbar[hidden] { display: none; }
.drow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.drow .count { font-size: 12px; color: var(--mute); font-weight: 600; }
.inp.mini { width: 86px; } .inp.mini input { padding: 5px 8px; }
.tog { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tog input { width: 16px; height: 16px; accent-color: var(--blue); }
body.drawing .stage[data-view] .views { grid-template-rows: 1fr; }
body.drawing .stage .v3d { display: none; }
body.drawing .stage .v2d { display: block; }

/* ---------- tabletas ---------- */
@media (max-width: 1179px) {
  .layout { grid-template-columns: 300px minmax(0, 1fr); }
  .side.right { grid-column: 2; }
  .only-wide { display: none; }
  .stage { position: static; }
  .views { height: 62vh; }
}
/* ---------- celular ---------- */
@media (max-width: 760px) {
  .top { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .title { font-size: 10px; letter-spacing: .16em; padding-left: 10px; }
  .top-actions { width: 100%; justify-content: space-between; }
  .layout { display: flex; flex-direction: column; padding: 12px 16px 90px; gap: 12px; }
  .side { display: contents; }
  .stage { order: 1; width: 100%; }
  .card { min-width: 0; width: 100%; }
  .c-props { order: 2; } .c-space { order: 3; } .c-measures { order: 4; } .c-modules { order: 5; } .c-finish { order: 6; } .c-summary { order: 7; }
  .drawbar .pill.sm { padding: 6px 9px; font-size: 11.5px; }
  .c-cta { order: 7; position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 15; }
  .views { height: 56vh; min-height: 340px; }
  .stage-bar .pill.sm { padding: 6px 10px; }
  .items { grid-template-columns: repeat(3, 1fr); }
  .toast { bottom: 84px; }
}

/* ---------- asistente por pasos (2026-10-10) ---------- */
.wz-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.wz-steps::-webkit-scrollbar { display: none; }
.wz-steps button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 8px; border-radius: 999px; cursor: pointer;
  font-family: var(--head); font-size: 12px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.wz-steps button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 11px; color: var(--mute); background: #fff; }
.wz-steps button.done b { background: var(--soft); border-color: var(--blue); color: var(--blue); }
.wz-steps button.on { color: var(--blue); background: var(--soft); }
.wz-steps button.on b { background: var(--blue); border-color: var(--blue); color: #fff; }
.wz-steps button:disabled { opacity: .45; cursor: default; }
.wz-nav { display: flex; justify-content: space-between; gap: 10px; position: sticky; bottom: 12px; z-index: 5; padding: 10px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.wz-nav .pill { flex: 1; max-width: 200px; }
.views { position: relative; }
.wz-blank { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--mute); text-align: center; padding: 20px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; }
.wz-blank[hidden] { display: none; }
.seg.wrap { flex-wrap: wrap; border-radius: 14px; }
#contactBar .fld input { width: 100%; }
/* solo se ve la tarjeta del paso actual */
body[data-step] .side.left > .card { display: none; }
body[data-step="1"] .side.left > .c-data, body[data-step="2"] .side.left > .c-space, body[data-step="3"] .side.left > .c-walls,
body[data-step="4"] .side.left > .c-measures, body[data-step="5"] .side.left > .c-openings, body[data-step="6"] .side.left > .c-finish,
body[data-step="7"] .side.left > .c-modules, body[data-step="8"] .side.left > .c-send { display: block; }
/* derecha: editor en los pasos 4, 5 y 7; resumen en 7 y 8; botón de enviar solo en el 8 */
body[data-step] .c-props, body[data-step] .c-summary, body[data-step] .c-cta { display: none; }
body[data-step="4"] .c-props, body[data-step="5"] .c-props, body[data-step="7"] .c-props, body[data-step="7"] .c-summary, body[data-step="8"] .c-summary, body[data-step="8"] .c-cta { display: block; }
body[data-step="1"] #alerts, body[data-step="2"] #alerts, body[data-step="3"] #alerts { display: none; }
/* base de datos de muebles */
.cat-q { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin: 4px 0 6px; }
.dbrows { display: flex; flex-direction: column; gap: 6px; }
.dbrow { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dbrow > svg { width: 48px; height: 48px; grid-row: span 2; }
.dbrow .dbinfo { min-width: 0; font-size: 13px; line-height: 1.3; }
.dbrow .dbcode { font-family: var(--head); color: var(--blue); }
.dbrow small { display: block; color: var(--mute); font-size: 11.5px; }
.dbrow .dbdims { color: var(--ink); font-weight: 600; }
.dbrow .dbact { display: flex; gap: 6px; justify-content: flex-end; }
.dbrow .dbact select { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; }
.dbrow.dis { opacity: .5; }
.up-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
.up-btn { display: inline-block; margin-top: 8px; }
.up-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.up-list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.up-list .up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-list small { grid-column: 1; color: var(--mute); }
.up-list li .icon { grid-row: 1 / span 2; grid-column: 2; width: 28px; height: 28px; }
.up-list i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--blue); transition: width .2s; }
.up-list li.ok small { color: #2e7d32; } .up-list li.err small { color: var(--red); }
.new-lbl { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 0 12px; border-radius: 999px; font-family: var(--head); font-size: 12px; font-weight: 600; }
.ask-dlg { border: 0; border-radius: var(--r); padding: 22px; max-width: 400px; width: calc(100% - 32px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.ask-dlg::backdrop { background: rgba(20,20,22,.45); }
.ask-dlg p { margin: 0 0 16px; font-size: 15px; }
.ask-dlg .acts { display: flex; gap: 8px; justify-content: flex-end; }
.isl-ctl { margin-top: 6px; }
.isl-pad { display: grid; grid-template-columns: repeat(3, 52px); gap: 6px; justify-content: center; margin: 10px 0 4px; }
.isl-pad [data-isl="up"] { grid-column: 2; } .isl-pad [data-isl="down"] { grid-column: 2; }
.isl-pad .pill { padding: 8px 0; font-size: 15px; }
@media (min-width: 1180px) {
  body[data-step="1"] .layout, body[data-step="2"] .layout, body[data-step="3"] .layout, body[data-step="6"] .layout { grid-template-columns: 340px minmax(0, 1fr); }
  body[data-step="1"] .side.right, body[data-step="2"] .side.right, body[data-step="3"] .side.right, body[data-step="6"] .side.right { display: none; }
}
@media (max-width: 760px) {
  .wz-steps { order: 3; width: 100%; flex: none; }
  .wz-steps button span { display: none; }
  .wz-steps button.on span { display: inline; }
  .c-data, .c-space, .c-walls, .c-measures, .c-openings, .c-finish, .c-modules, .c-send { order: 0 !important; }
  .stage { order: 1; }
  .wz-nav { order: 9; position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 16; }
  body[data-step="8"] .c-cta { display: none; }
}