/* The building wizard (/carobnjak). It uses the tokens of site.css; the drawing tones come from the landing graphic,
   each flat gets a muted tint. All classes start with "wz-" so they do not meet the classes of site.css. */

.wz {
    --wz-grid: #DDD3BF;
    --wz-grid-2: #E6DDCA;
    --wz-hatch: #BFB39A;
    --wz-back: #B0A792;
    --wz-ghost: #D3C8B1;
    --wz-tint: #E5D9C0;
    --wz-f1: #9DB4A0; --wz-f2: #9FB3C8; --wz-f3: #C8B38F; --wz-f4: #C49A9A; --wz-f5: #A99BC1; --wz-f6: #8FB8B4;
    --wz-common: #C9C1B0; --wz-business: #D7A27F; --wz-garage: #B9B3A6; --wz-neighbour: #D9D2C3;
    margin-top: 8px;
}

.wz kbd { font-family: var(--font); font-size: 12px; padding: 1px 5px; border: 1px solid var(--rule-light); border-bottom-width: 2px; }

/* Steps: a sequence, so they are numbered */
.wz-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 16px; border-bottom: 1px solid var(--ink); }
.wz-steps button { all: unset; box-sizing: border-box; display: flex; gap: 10px; align-items: baseline; padding: 10px 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 16px; cursor: pointer; min-width: 0; }
.wz-steps button .i { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wz-steps button:hover .l { color: var(--accent); }
.wz-steps button[aria-current="step"] { border-bottom-color: var(--ink); font-weight: 600; }
.wz-steps button[aria-current="step"] .i { color: var(--accent); font-weight: 600; }
.wz-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wz-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; margin-top: 36px; align-items: start; }
.wz-figure { min-width: 0; }
.wz-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.wz-tabs { display: flex; gap: 20px; flex-wrap: wrap; align-items: end; }
.wz-tabs .lbl { padding-bottom: 10px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wz-tabs button { all: unset; padding: 8px 0 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; cursor: pointer; }
.wz-tabs button:hover { color: var(--accent); }
.wz-tabs button[aria-pressed="true"] { border-bottom-color: var(--ink); font-weight: 600; }
.wz-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Prikaz (flat colours or the line drawing) and Razmakni etaže, under the view tabs. */
.wz-subbar { display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap; margin-top: 12px; }
.wz-subbar .wz-toggle { margin-left: auto; }
.wz-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
/* Etaže in the menu Prikaz: only in the step with the rooms of the building wizard (wizard.js, renderLook). */
.wz-chips[hidden] { display: none; }
.wz-chips .lbl { margin-right: 4px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wz-chips button { padding: 6px 10px; font-size: 13px; line-height: 1.2; }
.wz-chips button:hover { background: var(--wz-tint); color: var(--ink); }
.wz-chips button[aria-pressed="true"], .wz-chips button[aria-pressed="true"]:hover { background: var(--ink); color: var(--paper); }
.wz-toggle { all: unset; display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.wz-toggle::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.wz-toggle[aria-pressed="true"]::before { background: var(--ink); }
.wz-toggle:hover { background: none; color: var(--accent); }
.wz-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wz-stage { position: relative; width: 100%; aspect-ratio: 6 / 5; max-height: 680px; margin-top: 16px; border: 1px solid var(--ink); }
.wz-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.wz-stage canvas.place { cursor: copy; }
.wz-stage canvas.pointer { cursor: pointer; }
.wz-stage canvas.blocked { cursor: not-allowed; }
.wz-stage canvas.cut { cursor: crosshair; }
.wz-stage canvas.movable { cursor: move; }
/* Odabir okvirom: in the view from the top a drag beside the rooms draws a box (wizard.js, PKP-170). */
.wz-stage canvas.select { cursor: crosshair; }
.wz-stage canvas.grab { cursor: move; }
.wz-stage canvas.dragging { cursor: grabbing; }
.wz-stage canvas.rs-ew { cursor: ew-resize; }
.wz-stage canvas.rs-ns { cursor: ns-resize; }
.wz-stage canvas.rs-nwse { cursor: nwse-resize; }
.wz-stage canvas.rs-nesw { cursor: nesw-resize; }
.wz-fig { position: absolute; left: 14px; top: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.wz-hint { position: absolute; left: 14px; right: 14px; bottom: 10px; font-size: 12px; color: var(--muted); pointer-events: none; }
.wz-copy { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.wz-copy:empty { display: none; }

/* Panel */
.wz-panel { border-top: 2px solid var(--ink); padding-top: 14px; min-width: 0; }
.wz-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.wz-panel h2 { margin: 6px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.wz-panel h3 { margin: 24px 0 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.wz-panel p { margin: 8px 0; }
.wz-small { font-size: 14px; }
.wz-muted { color: var(--muted); }
.wz-note { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--rule-light); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.wz-note.red { border-left-color: var(--accent); }
.wz-form { display: grid; gap: 20px; margin-top: 16px; }
.wz-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* Vrsta and Stan of a room (PKP-178): a kind name is up to 223 px long, so Vrsta has 250 px or more. Stan goes beside it
   where the panel is wide enough, else below it. A room of no flat (.one): Vrsta and Jedinica each have the whole row. */
.wz-row2.wz-kind { display: flex; flex-wrap: wrap; gap: 20px 16px; }
.wz-row2.wz-kind > * { flex: 1 1 110px; min-width: 0; }
.wz-row2.wz-kind > :first-child { flex-basis: 250px; }
.wz-row2.wz-kind.one > * { flex-basis: 100%; }
.wz-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wz-panel label.field, #wz-sample label.field { gap: 4px; }
/* A size with − and + (0,5 m). Not a label: a label would give its click to the − button. */
.wz-dim { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.3; color: var(--ink-2); }
.wz-stepper { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 6px; align-items: end; }
.wz-stepper button { height: 30px; padding: 0; font-size: 17px; line-height: 1; }
.wz-stepper input { min-width: 0; text-align: center; }
.wz-panel input, .wz-panel select, #wz-sample input { font-size: 16px; }
.wz-use { font-size: 12px; color: var(--muted); font-weight: 400; }
/* The arrow of a select sits above the usage line under it. */
.wz-panel label.field:has(> .wz-use)::after { bottom: 33px; }
.wz-actions { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
/* A row of buttons as a paragraph (Uredi građevne dijelove under the fields of step Konstrukcije) keeps that space. */
.wz-panel p.wz-actions { margin-top: 18px; }
.wz-actions button, .wz-copy button { padding: 8px 14px; font-size: 14px; }
.wz-panel button.wz-link, .wz-copy button.wz-link, #wz-sample button.wz-link { padding: 0; border: 0; background: none; color: var(--accent); font-size: 14px; }
.wz-panel button.wz-link:hover, .wz-copy button.wz-link:hover, #wz-sample button.wz-link:hover { background: none; color: var(--ink); }

.wz-palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wz-pal { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--rule-light); cursor: pointer; min-width: 0; }
.wz-pal:hover { border-color: var(--ink); background: none; color: var(--ink); }
.wz-pal:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wz-pal[aria-pressed="true"] { border: 2px solid var(--ink); padding: 7px 9px; background: var(--wz-tint); }
.wz-pal i, .wz-sw { width: 12px; height: 12px; border: 1px solid var(--ink); }
.wz-pal b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.wz-pal span { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.3; }
/* Entrance doors of the selected room. */
.wz-door { margin-top: 10px; padding: 10px 0 10px 12px; border-left: 2px solid var(--ink); display: grid; gap: 10px; }
.wz-sides { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.wz-sides button { padding: 5px 10px; font-size: 13px; }
.wz-side { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--rule-light); }
.wz-door-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.wz-door-head b .wz-muted { font-weight: 400; }
.wz-door-head .wz-door-add { margin-top: 0; padding: 5px 10px; font-size: 13px; flex: none; }
/* The façade of a room by its sides (wizard.js, facadeSection): one fold per side, a chevron right when closed and down
   when open. The head says what the side has. The chosen wall (a click on the drawing) has the red line on the left. */
.wz-faces { display: grid; margin-top: 4px; border-bottom: 1px solid var(--rule-light); }
details.wz-face { border-top: 1px solid var(--rule-light); padding-left: 8px; }
details.wz-face.on { box-shadow: inset 2px 0 0 var(--accent); }
details.wz-face > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 14px; }
details.wz-face > summary::-webkit-details-marker { display: none; }
details.wz-face > summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 4px 0 2px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(-45deg); transition: transform .12s; }
details.wz-face[open] > summary::before { transform: rotate(45deg); }
details.wz-face > summary:hover b, details.wz-face.on > summary b { color: var(--accent); }
.wz-face-sum { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.wz-face-body { padding: 0 0 14px 18px; }
.wz-face-body > .wz-door-head { margin-top: 10px; }
.wz-face-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.wz-face-sub .wz-tip { text-transform: none; letter-spacing: 0; }
/* A field with the pointer or the focus is red on the drawing (wizard.js, HOT): its block has the red line too. */
.wz-face-body .wz-door[data-field]:hover, .wz-face-body .wz-door[data-field]:focus-within { border-left-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { details.wz-face > summary::before { transition: none; } }
/* Remove a door or a window: × at the end of its line. */
.wz-panel button.wz-x { flex: none; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; }
.wz-panel button.wz-x:hover { background: none; color: var(--accent); }
/* The windows of one side: a line of names, then one line per window. */
.wz-wins { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--ink); display: grid; gap: 4px; }
.wz-win { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1.25fr) 28px; gap: 10px; align-items: end; }
.wz-win-head { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.3; color: var(--ink-2); align-items: center; }
.wz-win-head > span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.wz-win input { padding: 4px 0 6px; }
/* Krovne kućice (PKP-337): six columns (širina, od nadozida, broj, the window, ×); the names may take two lines. The line
   of the plan under a dormer. */
.wz-dormers > .wz-win { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 8px; }
.wz-dormers > .wz-win-head { align-items: end; }
.wz-dormers > .wz-win-head > span { display: block; white-space: normal; }
.wz-dormer-fact { margin: 0 0 4px; }
.wz-dormer-fact .wz-msg { padding: 2px 0; border-top: 0; }
/* A help behind "i": shown while the pointer is over it, with the focus, or after a tap (aria-expanded). */
.wz-tip { position: relative; display: inline-flex; }
.wz-panel button.wz-tip-btn { width: 16px; height: 16px; padding: 0; border: 1px solid var(--ink-2); border-radius: 50%; background: none; color: var(--ink-2); font-size: 11px; font-weight: 600; font-style: italic; line-height: 1; }
.wz-panel button.wz-tip-btn:hover, .wz-panel button.wz-tip-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wz-tip-text { display: none; position: absolute; right: -36px; top: calc(100% + 6px); z-index: 5; width: 200px; padding: 8px 10px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.4; white-space: normal; }
.wz-tip:hover .wz-tip-text, .wz-tip-btn:focus-visible + .wz-tip-text, .wz-tip-btn[aria-expanded="true"] + .wz-tip-text { display: block; }
.wz-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.wz-check input { margin-top: 2px; }
.wz-door-add { margin-top: 8px; padding: 8px 12px; font-size: 14px; }
.wz-flats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wz-flat { all: unset; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--rule-light); font-size: 13px; cursor: pointer; }
.wz-flat i { width: 10px; height: 10px; border: 1px solid var(--ink); }
.wz-flat[aria-pressed="true"] { border-color: var(--ink); background: var(--wz-tint); font-weight: 600; }
.wz-flat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A flat of the list with its "×" (delete), one box. */
.wz-flat-row { display: inline-flex; align-items: stretch; }
.wz-flat-row .wz-flat + .wz-flat-del { margin-left: -1px; }
.wz-flat-del { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 7px; border: 1px solid var(--rule-light); font-size: 15px; line-height: 1; color: var(--muted); cursor: pointer; }
.wz-flat-del:hover { border-color: var(--accent); color: var(--accent); position: relative; }
.wz-flat-del:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wz-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 12px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.wz-facts dt { color: var(--muted); }
.wz-facts dd { margin: 0; min-width: 0; }

.wz-list { list-style: none; margin: 0; padding: 0; }
.wz-list > li { border-bottom: 1px solid var(--rule-light); }
/* PKP-322: the detail of the chosen check, under its row, to a dark line that closes it. */
.wz-list > li.wz-under { padding: 0 0 20px; border-bottom-color: var(--ink); }
.wz-list > li.wz-under > .wz-note:first-child { margin-top: 10px; }
/* PKP-329: the selected room of step Prostorije is open in its row of the room list. The head has the name (the heading
   of the panel) and Zatvori; the form under it is shorter than the panel of a room. The count of the rooms looks as the
   heading that it is while no room is open, so the list does not move. */
.wz-panel .wz-room-total { margin: 6px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.wz-list > li.wz-room-head { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px 9px 0; border-bottom: 0; background: var(--wz-tint); cursor: pointer; }
.wz-list > li.wz-room-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.35; overflow-wrap: anywhere; }
.wz-list > li.wz-room-head .wz-link { font-size: 13px; }
.wz-room .wz-form { gap: 14px; margin-top: 12px; }
.wz-room .wz-row2 { gap: 12px; }
.wz-room .wz-row2.wz-kind { gap: 14px 12px; }
.wz-room .wz-row-help { position: relative; align-items: end; }
.wz-room .wz-row-help .wz-lab { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.wz-room .wz-row-help .wz-tip { position: static; }
.wz-room .wz-row-help .wz-tip-text { left: 0; right: auto; top: calc(100% + 4px); width: 100%; }
.wz-room details.wz-room-facts { margin-top: 16px; }
.wz-room details.wz-room-facts > summary > span:first-child { flex: 1; }
.wz-room details.wz-room-facts > summary .wz-muted { font-weight: 400; font-variant-numeric: tabular-nums; text-align: right; }
.wz-room details.wz-room-facts .wz-facts { margin-top: 10px; }
.wz-room .wz-actions { margin-top: 14px; }
.wz-list li.rrow { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; }
.wz-item { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; width: 100%; padding: 9px 0; cursor: pointer; }
/* The global button:hover fills a button with ink. A row only turns its title red; a row that is off keeps its grey. */
.wz-item:hover { background: none; color: var(--ink); }
.wz-item:hover .t { color: var(--accent); }
.wz-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wz-item.on { background: var(--wz-tint); }
.wz-item .t { font-size: 14px; line-height: 1.35; }
.wz-item .s { grid-column: 2; font-size: 12px; color: var(--muted); }
.wz-item .r { grid-column: 3; grid-row: 1 / span 2; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wz-item .r.off { color: var(--muted); font-weight: 400; text-decoration: line-through; }
/* Pregled of the building: the value of the check with its status (wizard.js, panelReview): red when it does not meet its
   limit, a hollow square as the pills have for a small margin, dim while it is of the building before a change. */
.wz-item .r.val { font-weight: 700; color: var(--ink); transition: opacity 120ms; }
.wz-item .r.val.none { color: var(--muted); }
.wz-item .r.val.low::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border: 1px solid var(--ink); vertical-align: 1px; }
.wz-item .r.val.fail { color: var(--accent); }
.wz-item .r.val.stale { opacity: 0.45; }
/* PKP-311: the value of a check that is switched off, and the word of the most critical check of a row. */
.wz-item .r.val.offval { font-weight: 400; color: var(--muted); }
.wz-item .r.val.offval.fail { color: var(--accent); }
.wz-item .r.val.offval.low::before { border-color: var(--muted); }
.wz-worst { display: inline-block; margin-left: 4px; padding: 0 5px; border: 1px solid var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; line-height: 16px; text-transform: uppercase; white-space: nowrap; vertical-align: 1px; color: var(--ink); }
li.rrow.off .wz-worst { border-color: var(--muted); color: var(--muted); }
/* „Odaberi samo najkritičnije” above the lists of Pregled, with its help behind "?": the text opens under the row. */
.wz-pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.wz-pick > button { padding: 8px 14px; font-size: 14px; }
.wz-pick .wz-tip { position: static; }
/* PKP-365: „Osvježi najkritičnije”. With the accent outline of an Upozorenje while the list is not the choice. */
.wz-panel .wz-pick > button.wz-refresh.old { border-color: var(--accent); color: var(--accent); }
.wz-panel .wz-pick > button.wz-refresh.old:hover { background: var(--accent); color: var(--paper); }
.wz-pick .wz-tip-text { left: 0; right: auto; width: min(340px, 100%); }
/* PKP-323: the Upozorenje for a check that is off and more critical than the checks of its group that are on. */
.wz-panel [data-behind] { margin-top: 12px; }
.wz-panel [data-behind] .wz-msg { border-top: 0; padding: 0; }
.wz-panel button.wz-tip-btn.q { width: 20px; height: 20px; font-size: 12px; font-style: normal; }
.wz-item .wz-sw { grid-row: 1 / span 2; }
li.rrow.off .t, li.rrow.off .s { color: var(--muted); }
li.rrow.off .wz-item:hover .t { text-decoration: underline; }
.wz-inc { all: unset; box-sizing: border-box; width: 16px; height: 16px; border: 1px solid var(--ink); box-shadow: inset 0 0 0 3px var(--paper); cursor: pointer; }
/* On hover the box keeps its state (an empty box stays empty) and gets the accent border. */
.wz-inc:hover { background: none; border-color: var(--accent); }
.wz-inc[aria-pressed="true"] { background: var(--ink); }
.wz-inc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wz-group { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 4px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.wz-group button.wz-link { letter-spacing: 0; text-transform: none; font-size: 13px; }
/* Step 5: the heading of a group of checks, one for each row of Table C.1.1 in a list (wizard.js, ruleHead; PKP-306).
   .wz-rn is the number of the row in a square, as on the faces of the drawing. */
.wz-list li.wz-rhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; margin-top: 14px; padding: 8px 0 7px; border-top: 1px solid var(--ink); }
.wz-list li.wz-rhead:first-child { margin-top: 6px; }
.wz-list li.wz-rhead.on { background: var(--wz-tint); }
.wz-rbtn { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 1px 8px; align-items: start; cursor: pointer; }
.wz-rbtn:hover { background: none; color: var(--ink); }
.wz-rbtn:hover .t { color: var(--accent); }
.wz-rbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wz-rbtn .t { font-size: 13px; font-weight: 600; line-height: 1.35; }
.wz-rbtn .s { grid-column: 2; font-size: 12px; color: var(--muted); }
.wz-rbtn .law { grid-column: 2; margin-top: 5px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.wz-rhead .wz-link { font-size: 13px; }
.wz-rn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 22px; height: 20px; padding: 0 4px; border: 1px solid var(--ink); background: var(--paper); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; color: var(--ink); }
/* The lists of step 5. No height limit: the panel column scrolls beside the drawing, and the page on a narrow screen (PKP-306). */
.wz-scroll { padding-right: 4px; }
.wz-restore { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.wz-jlist { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin-top: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.wz-jlist .ty { font-weight: 600; }
.wz-jlist .why { grid-column: 2; color: var(--muted); }
/* Spojevi (wizard.js, junctionsHtml): a junction with the fields of F and f. */
.wz-joint { display: grid; gap: 10px; padding: 12px 0 14px; border-bottom: 1px solid var(--rule-light); }
.wz-joint-head { font-size: 14px; font-variant-numeric: tabular-nums; }
.wz-joint .wz-cbox { gap: 2px; }
.wz-joint .wz-cbox-label { font-size: 12px; }
.wz-joint .wz-cbox-field { padding: 2px 0 6px; font-size: 14px; }
.wz-cbox .wz-use .wz-link { padding: 0; border: 0; background: none; color: var(--accent); font-size: 12px; cursor: pointer; }
/* Step 5: the rows of Table C.1.1 for the building (wizard.js, panelReview). A row with checks is a button: it shows them. */
.wz-rules { list-style: none; margin: 4px 0 0; padding: 0; }
.wz-rules > li { border-bottom: 1px solid var(--rule-light); }
button.wz-rule { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; }
.wz-rules .wz-rule { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; padding: 8px 4px 8px 0; font-size: 13px; line-height: 1.35; }
.wz-rules button.wz-rule:hover { background: none; color: var(--ink); }
.wz-rules button.wz-rule:hover .t { color: var(--accent); }
.wz-rules button.wz-rule.on { background: var(--wz-tint); }
.wz-rule:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wz-rule .n { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.wz-rule .t { grid-column: 2; }
.wz-rule .s { grid-column: 2; font-size: 12px; color: var(--muted); }
.wz-rule .c { grid-column: 3; grid-row: 1; font-size: 12px; font-weight: 600; white-space: nowrap; }
.wz-rule.absent .t, .wz-rule.absent .n { color: var(--muted); }
.wz-rule.manual .s { color: var(--accent); }
.wz-radio { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-radio button { padding: 7px 12px; font-size: 14px; }
.wz-radio button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.wz-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule-light); }

.wz-toast { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); max-width: min(400px, calc(100vw - 32px)); padding: 14px 18px; background: var(--ink); color: var(--paper); font-size: 15px; line-height: 1.4; z-index: 10; }
/* The message comes up 8 px and fades in; it goes down and fades out (.closing, wizard.js toast). "translate" and not
   "transform": the wizards centre the bar with a transform. A new message on a bar that shows: a small bump (.again). */
.wz-toast { animation: wz-toast-in 160ms ease-out; transition: opacity 200ms ease-in, translate 200ms ease-in; }
.wz-toast.closing { opacity: 0; translate: 0 8px; }
.wz-toast.again { animation: wz-toast-again 200ms ease-out; }
@keyframes wz-toast-in { from { opacity: 0; translate: 0 8px; } }
@keyframes wz-toast-again { 40% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .wz-toast, .wz-toast.again { animation: none; transition: none; } }

/* ---------- The wizard page as a tool over the whole window (Carobnjak.cshtml) ----------
   One bar on top (back, name, steps, Natrag / Dalje), the drawing as high as the window with its controls on it,
   the panel beside it with its own scroll. The partition and façade editors use the classes above, not these. */
.wz-tool { --wz-top: 64px; display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; }
.wz-top { flex: none; display: flex; align-items: stretch; gap: 0 28px; height: var(--wz-top); padding: 0 32px; border-bottom: 1px solid var(--ink); }
.wz-back { align-self: center; flex: none; font-size: 15px; color: var(--ink); white-space: nowrap; }
.wz-back:hover { color: var(--accent); }
.wz-name { display: flex; flex-direction: column; justify-content: center; min-width: 0; max-width: 260px; }
.wz-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* The draft state after the kicker: spremljeno 14:32, or nije spremljeno when the browser keeps nothing (wizard.js). */
#wz-saved { font-weight: 500; cursor: default; }
#wz-saved.bad { color: var(--accent); }
/* Računam… in its place while the building wizard calculates (wizard.js, calcBusy): a turning ring; a pulse without motion.
   The kicker stays one short line, so the steps beside it and a phone screen keep their place. */
#wz-calc { font-weight: 500; color: var(--muted); cursor: default; }
.wz-kicker:has(#wz-calc:not([hidden])) #wz-saved { display: none; }
.wz-spin { display: inline-block; box-sizing: border-box; width: 10px; height: 10px; margin: 0 6px 0 10px; border: 1.5px solid var(--accent); border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: wz-spin 0.8s linear infinite; }
@keyframes wz-spin { to { transform: rotate(360deg); } }
@keyframes wz-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .wz-spin { animation: wz-pulse 1.6s ease-in-out infinite; } }
.wz-name h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-tool .wz-steps { display: flex; gap: 24px; margin-left: 8px; border-bottom: 0; }
.wz-tool .wz-steps button { flex: none; align-items: center; padding: 0; font-size: 15px; white-space: nowrap; }
/* Pregled · 3: the checks the wizard proposes so far; the number grows while rooms are placed. */
.wz-steps button .c { margin-left: -4px; font-size: 13px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Konstrukcije while a kind that the building uses has no construction (wizard.js, renderSteps). */
.wz-steps button .c.miss { color: var(--accent); font-weight: 600; }
.wz-steps button .c.fail { color: var(--accent); font-weight: 600; }
.wz-tool .wz-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; padding: 0; border: 0; }
.wz-tool .wz-nav button { padding: 10px 16px; font-size: 15px; white-space: nowrap; }
/* Napravi projekt waits: no rooms yet, or a construction is not chosen (wizard.js, renderSteps). */
.wz-tool .wz-nav button:disabled { opacity: 0.45; cursor: default; }
/* Poništi / Ponovi: two square icon buttons as one group, before Natrag. */
.wz-undo { display: flex; margin-right: 6px; }
/* As high as Natrag: a 15px line of 1.25, 10px padding and the border, above and below. */
.wz-tool .wz-nav .wz-undo button { width: 42px; height: calc(15px * 1.25 + 22px); padding: 0; }
.wz-undo button + button { margin-left: -1px; }
.wz-undo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wz-undo button:disabled { border-color: var(--rule-light); color: var(--muted); background: transparent; cursor: default; }
.wz-undo button:disabled + button:not(:disabled) { position: relative; } /* its dark border over the light one */
.wz-tool .wz-workspace { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; margin: 0; padding: 20px 32px 24px; align-items: stretch; }
.wz-tool .wz-figure { display: flex; min-height: 0; }
.wz-tool .wz-stage { flex: 1; aspect-ratio: auto; max-height: none; min-height: 320px; margin: 0; }
.wz-column { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding-right: 6px; }
.wz-column > ul.warnings { margin: 0 0 16px; }
.wz-feedback { margin-top: auto; padding-top: 24px; }
.wz-feedback button { padding: 0; border: 0; background: none; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.wz-feedback button:hover { background: none; color: var(--accent); }

/* Controls on the drawing: boxes on paper with an ink frame, in the corners. */
/* PKP-298, PKP-330: the buttons of the selected room on the drawing, in place of its flat and its name (wizard.js,
   renderTags). The layer takes no pointer; each button has its middle at the place that the drawing gives. */
.wz-roomtags { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
/* The buttons take no pointer: the drawing under them has it (wizard.js, tagUnder), and sets .hover. The lists take it. */
.wz-roomtag { position: absolute; pointer-events: none; transform: translate(-50%, -50%); }
#wz-scene.over-tag { cursor: pointer; }
button.wz-roomtag-open { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; height: 24px; max-width: 220px; padding: 0 6px 0 8px; border: 1px solid var(--ink); background: var(--paper); font-size: 12px; font-weight: 600; line-height: 1; color: var(--ink); white-space: nowrap; cursor: pointer; touch-action: none; }
button.wz-roomtag-open i { flex: none; width: 9px; height: 9px; border: 1px solid var(--ink); }
button.wz-roomtag-open span { overflow: hidden; text-overflow: ellipsis; }
button.wz-roomtag-open svg { flex: none; margin-left: 2px; }
button.wz-roomtag-open.hover, button.wz-roomtag-open[aria-expanded="true"] { background: var(--wz-tint); color: var(--ink); }
button.wz-roomtag-open.hover svg, button.wz-roomtag-open[aria-expanded="true"] svg { color: var(--accent); }
button.wz-roomtag-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wz-roomtag-menu { pointer-events: auto; position: absolute; left: 0; top: 100%; z-index: 3; display: flex; flex-direction: column; min-width: 170px; max-width: 250px; max-height: 250px; margin: 2px 0; overflow-y: auto; border: 1px solid var(--ink); background: var(--paper); font-size: 13px; }
.wz-roomtag.left > .wz-roomtag-menu { left: auto; right: 0; }
.wz-roomtag.up > .wz-roomtag-menu { top: auto; bottom: 100%; }
.wz-roomtag-menu > button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 7px; padding: 6px 10px; cursor: pointer; }
.wz-roomtag-menu > button i { flex: none; width: 10px; height: 10px; border: 1px solid var(--ink); }
.wz-roomtag-menu > button[aria-checked="true"] { background: var(--wz-tint); font-weight: 600; }
.wz-roomtag-menu > button:hover { background: var(--wz-tint); color: var(--ink); }
.wz-roomtag-menu > button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wz-roomtag-menu > button.wz-roomtag-more { border-top: 1px solid var(--rule-light); color: var(--accent); }
.wz-ov { position: absolute; z-index: 2; border: 1px solid var(--ink); background: var(--paper); font-size: 14px; }
/* The buttons of the storeys and the tools; the chips in the menu Prikaz and the ? of Pogled keep their own look. */
:is(.wz-storeys, .wz-storey, .wz-storey-extra, .wz-ov-row, .wz-edit) > button { all: unset; box-sizing: border-box; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
:is(.wz-storeys, .wz-storey, .wz-storey-extra, .wz-ov-row, .wz-edit) > button:hover { color: var(--accent); }
:is(.wz-storeys, .wz-storey, .wz-storey-extra, .wz-ov-row, .wz-edit) > button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 600; }
:is(.wz-storeys, .wz-storey, .wz-storey-extra, .wz-ov-row, .wz-edit) > button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* The square buttons of the drawing (Boje stanova, Fina mreža, ?) are as high as the boxes beside them: a 14px line of 1.5,
   7px padding and the border, above and below (37 px). */
.wz-stage { --wz-ov-h: calc(14px * 1.5 + 16px); }
/* The boxes of Boje stanova, Fina mreža and ? (PKP-283, PKP-285): at once while the pointer is on the button or the keyboard
   focus is on it, as the box of „Pomoć ?” (site.css, .help-hint). Not after a click with the mouse: a button has no
   :focus-visible then. */
.wz-ovtip { position: absolute; z-index: 12; display: none; width: max-content; max-width: min(260px, 80vw); padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; pointer-events: none; }
:is(#wz-flats, #wz-fine, #wz-guide-open):is(:hover, :focus-visible) + .wz-ovtip { display: block; }
.wz-ovtip b { display: block; font-weight: 600; }
.wz-storeys { left: 14px; top: 14px; display: flex; flex-direction: column; min-width: 128px; max-height: calc(100% - 92px); overflow-y: auto; }
.wz-storeys:empty { display: none; }
.wz-storeys > * + * { border-top: 1px solid var(--rule-light); }
/* A storey of the building wizard (step 2): its name, and its clear height in a narrow field at the right. The box stays
   about as wide as + Etaža and − Etaža, so the tools beside it (.wz-tools, left: 176px) have their room: with the row
   Kopiraj na novu etažu of the top storey the box is about 151 px wide (PKP-284). The current storey is ink, the field
   on it too. */
.wz-storey { display: flex; align-items: stretch; }
.wz-storey > button { flex: 1; padding-right: 6px; }
.wz-storey.on { background: var(--ink); color: var(--paper); }
.wz-storey-h { display: flex; align-items: center; gap: 3px; padding: 0 9px 0 0; font-size: 12px; color: var(--muted); cursor: text; }
.wz-storey.on .wz-storey-h { color: var(--paper); }
.wz-storey-h input { width: 34px; padding: 2px 0 3px; border-bottom: 1px solid var(--rule-light); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); transition: none; }
.wz-storey.on .wz-storey-h input { border-bottom-color: var(--ink-2); color: var(--paper); }
.wz-storey-h input:focus, .wz-storey.on .wz-storey-h input:focus { border-bottom-color: var(--accent); box-shadow: none; }
.wz-storeys button.act { font-size: 13px; color: var(--accent); }
/* Pregled: each storey a toggle, without the height field. On is ink (as the current storey of step 2), off is light and
   struck through. */
.wz-storey-toggle > button { padding-right: 12px; }
.wz-storey-toggle > button[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.wz-storey-toggle > button[aria-pressed="false"]:hover { color: var(--accent); }
.wz-ov-row { display: flex; }
.wz-ov-row button { flex: 1; }
/* The rows of the storeys below the ground (PKP-332: + Podrum, − Podrum, Označi kao podrum). In the narrow layout they are
   behind „⋯” beside − Etaža, so the list of a phone keeps its height (PKP-284). */
.wz-storey-extra { display: flex; flex-direction: column; }
.wz-storey-extra > * + * { border-top: 1px solid var(--rule-light); }
.wz-ov-row > .wz-storey-more { display: none; flex: none; }
.wz-ov-row button + button { border-left: 1px solid var(--rule-light); }
/* Pogled and ?: two boxes with a gap (PKP-283), above the boxes under them (Povuci, Prikaži …) and the tools, so the open
   menu covers them. The group itself has no frame. */
.wz-cams { right: 14px; top: 14px; z-index: 11; display: flex; gap: 8px; border: 0; background: none; }
/* Pogled: the menu of the views; it opens downwards under the two boxes, at the right edge of ?, so it covers the tools under
   them; each view with its key at the right. */
.wz-cams > details.wz-cam { position: static; border: 1px solid var(--ink); background: var(--paper); }
.wz-cam > summary { padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.wz-cam > summary:hover { color: var(--accent); }
.wz-cam > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wz-cam > .wz-menu-body { left: auto; right: 0; transform: none; min-width: 168px; }
.wz-cam-item { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 6px 8px; cursor: pointer; white-space: nowrap; }
.wz-cam-item:hover, .wz-cam-item[aria-pressed="true"] { background: var(--wz-tint); color: var(--ink); }
.wz-cam-item[aria-pressed="true"] { font-weight: 600; }
.wz-cam-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wz-cam-item kbd { padding: 0 5px; font-size: 11px; font-weight: 400; }
/* ?: the guide of the drawing, a dark square beside Pogled; its box below it, at its right edge. */
.wz-cams > .wz-guide-open { all: unset; box-sizing: border-box; display: grid; place-items: center; width: var(--wz-ov-h); height: var(--wz-ov-h); border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer; }
.wz-cams > .wz-guide-open:hover { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.wz-cams > .wz-guide-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#wz-guide-tip { top: calc(100% + 8px); right: 0; white-space: nowrap; }
#wz-guide-open:is(:hover, :focus-visible) + #wz-guide-tip { display: flex; align-items: center; gap: 10px; }
/* Povuci, Podijeli and Spoji under the views, one under the other (in a row they would cover the tools in the middle);
   the key of each tool beside its name. */
.wz-edit { right: 14px; top: 58px; display: flex; flex-direction: column; }
/* Prikaži sve: only while the view is zoomed or moved; under the tools in step 2. */
.wz-ov-stack { position: absolute; z-index: 2; right: 14px; top: 58px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wz-ov-stack .wz-ov { position: static; }
.wz-fit { padding: 7px 12px; color: var(--ink); cursor: pointer; }
.wz-fit:hover { background: var(--paper); color: var(--accent); }
.wz-fit[hidden] { display: none; }
.wz-tool[data-step="2"] .wz-ov-stack { top: 178px; }
.wz-edit:empty { display: none; }
.wz-edit > button { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wz-edit button + button { border-top: 1px solid var(--ink); }
.wz-edit kbd { margin-left: 4px; padding: 0 4px; font-size: 11px; }
.wz-edit button[aria-pressed="true"] kbd { border-color: var(--ink-2); }
.wz-edit svg { flex: none; align-self: center; margin-left: 4px; }
/* Prozor, Vrata and Kućica (building wizard): a second group under the tools of the walls, behind a thin double line.
   Prikaži odabrano goes down under them. */
.wz-edit-sep { display: block; box-sizing: border-box; height: 5px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.wz-tool[data-step="2"]:has(.wz-edit-sep) .wz-ov-stack { top: 290px; }
/* Interakcija has one or two of them, by its row (PKP-364, wizard.js: toolOn). */
.wz-tool[data-step="2"]:has(.wz-edit[data-more="1"]) .wz-ov-stack { top: 218px; }
.wz-tool[data-step="2"]:has(.wz-edit[data-more="2"]) .wz-ov-stack { top: 254px; }
/* The bottom row of the drawing: Prikaz at the left and + Podloga beside it (building wizard of a project, step Prostorije),
   both as high as the summary, then the icons Boje stanova and Fina mreža (step Prostorije); the hint at the right
   (.wz-tool .wz-hint). The row lets clicks through to the drawing; only
   its boxes take them. */
.wz-ov-bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: flex-end; gap: 16px; pointer-events: none; }
.wz-ov-pair { display: flex; flex: none; align-items: stretch; gap: 8px; }
.wz-ov-pair > * { pointer-events: auto; }
.wz-ov-pair > .wz-ov { position: relative; }
.wz-underlay-open { padding: 7px 12px; color: var(--ink); white-space: nowrap; }
.wz-underlay-open:hover { background: var(--paper); color: var(--accent); }
.wz-underlay-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Boje stanova (PKP-283): a square icon after + Podloga, or after Prikaz when + Podloga is not there; the icon is a plan of
   three rooms in three flat colours. On: ink, the lines of the plan paper. Its box opens above it, at its left edge, over the
   other controls. The box around the two has no frame of its own. */
.wz-ov-pair > .wz-flats-box { z-index: 12; display: flex; border: 0; background: none; }
.wz-flats-on { all: unset; box-sizing: border-box; display: grid; place-items: center; width: var(--wz-ov-h); height: var(--wz-ov-h); border: 1px solid var(--ink); background: var(--paper); cursor: pointer; }
.wz-flats-on:hover { background: var(--paper); color: var(--ink); }
.wz-flats-on[aria-pressed="true"], .wz-flats-on[aria-pressed="true"]:hover { background: var(--ink); }
.wz-flats-on:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wz-flats-on svg { display: block; width: 18px; height: 18px; shape-rendering: crispEdges; }
.wz-flats-on .f1 { fill: var(--wz-f1); }
.wz-flats-on .f2 { fill: var(--wz-f2); }
.wz-flats-on .f3 { fill: var(--wz-f3); }
.wz-flats-on path { fill: none; stroke: var(--ink); stroke-width: 1; }
.wz-flats-on[aria-pressed="true"] path { stroke: var(--paper); }
#wz-flats-tip { bottom: calc(100% + 8px); left: 0; }
/* Fina mreža (PKP-285): the same square after Boje stanova, only in step Prostorije (wizard.js, renderLook); the icon is a
   grid, its frame and the 0,5 m lines in ink, the 0,1 m lines lighter. On: ink, the lines paper. Its box as that of Boje
   stanova. The box rule above (display: flex) is stronger than the attribute hidden, so hidden needs its own rule. */
.wz-ov-pair > .wz-fine-box[hidden] { display: none; }
.wz-fine-on svg { width: 17px; height: 17px; }
.wz-fine-on .g2 { opacity: .4; }
.wz-fine-on[aria-pressed="true"] .g2 { opacity: .45; }
#wz-fine-tip { bottom: calc(100% + 8px); left: 0; }
.wz-view > summary { display: flex; gap: 10px; align-items: baseline; padding: 7px 12px; cursor: pointer; list-style: none; white-space: nowrap; }
.wz-view > summary::-webkit-details-marker { display: none; }
.wz-view > summary b { font-weight: 600; }
/* The arrow: up when closed (the menu opens upwards), down when open; it turns between the two. */
.wz-view > summary::after { content: ""; align-self: center; width: 7px; height: 7px; margin: 3px 2px 0 4px; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform 160ms; }
.wz-view[open] > summary::after { margin-top: -3px; transform: rotate(225deg); }
.wz-view > summary:hover::after { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .wz-view > summary::after { transition: none; } }
.wz-view > summary span { font-size: 13px; color: var(--muted); }
.wz-view > summary:hover b { color: var(--accent); }
.wz-view > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* The menu opens upwards, over the drawing. Its content is at least 290 px wide, so that no description has more than two
   lines also without the row Etaže. Not wider, so that the menu fits a 360 px phone: for that the buttons of Etaže are
   1 px narrower on each side here (with the fonts of Linux the row was 0,6 px out of the window). max-width is the last
   guard: a still wider row then wraps. */
.wz-view-body { position: absolute; left: -1px; bottom: calc(100% + 6px); display: grid; grid-template-columns: minmax(290px, auto); gap: 12px; width: max-content; max-width: calc(100vw - 36px); padding: 12px 14px; border: 1px solid var(--ink); background: var(--paper); }
.wz-view-body .wz-chips button { padding: 6px 9px; }
/* An option of the menu with its description 2 px below it (PKP-290). A hidden option (Etaže outside step Prostorije,
   Podloga without underlay data) hides its description too, with no gap. The description takes the width of the menu but
   does not make it wider (width 0, min-width 100%); that of a toggle starts at its label: after the box (14 px and its
   border of 1 px on each side) and the gap of 10 px. */
.wz-view-opt { display: grid; gap: 2px; }
.wz-view-opt:has(> [hidden]) { display: none; }
.wz-view-note { width: 0; min-width: 100%; font-size: 12px; line-height: 1.35; color: var(--muted); text-wrap: pretty; }
.wz-toggle + .wz-view-note { padding-left: 26px; }
/* Kut sjevera (PKP-369): the label, a short number field and the unit in one row, in line with the labels of the toggles. */
.wz-north-angle { display: flex; align-items: center; gap: 8px; padding-left: 26px; font-size: 14px; }
.wz-north-angle input { width: 64px; padding: 4px 6px; font: inherit; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0; }
.wz-north-angle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wz-north-angle + .wz-view-note { padding-left: 26px; }
.wz-tool .wz-fig { left: 50%; transform: translateX(-50%); top: 16px; }
.wz-tool .wz-fig:empty { display: none; }
/* The hint, in the bottom row right of Prikaz: at most 420 px or half the row, narrower (more lines) when Prikaz is long. */
.wz-tool .wz-hint { position: static; flex: 0 1 420px; min-width: 0; max-width: 50%; margin-left: auto; text-align: right; }
/* Messages in the middle above the bottom row of the drawing; on a phone at the bottom of the window. */
.wz-tool .wz-toast { position: absolute; right: auto; bottom: 58px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(460px, calc(100% - 28px)); }
/* An open menu Prikaz stays above a message. */
.wz-tool .wz-view { z-index: 11; }

/* Step 2: the tools on the drawing, top in the middle between the storeys and the camera. The box itself lets clicks
   through to the drawing; only its parts take them. On the right it leaves Pogled and ? their room (at most 224 px from
   the edge, with „Pogled: Sa zapada”) and a gap of 8 px. */
.wz-tools { position: absolute; z-index: 4; top: 14px; left: 176px; right: 232px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.wz-tools:empty { display: none; }
.wz-tools > * { pointer-events: auto; }
.wz-tools > .wz-ov { position: static; }
/* As flex items both bars keep their z-index: the bar with the menus must lie above the mode under it. */
.wz-addbar { z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; }
.wz-addbar .lbl { padding: 0 4px 0 2px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wz-tool-kind { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--ink); font-size: 13px; line-height: 1.3; cursor: pointer; white-space: nowrap; }
.wz-tool-kind i, .wz-menu-item i { flex: none; width: 10px; height: 10px; border: 1px solid var(--ink); }
/* The global button:hover turns the text to paper; these keep it ink on the light tint. */
.wz-tool-kind:hover { background: var(--wz-tint); color: var(--ink); }
.wz-tool-kind[aria-pressed="true"], .wz-tool-kind.on { background: var(--ink); color: var(--paper); }
.wz-tool-kind[aria-pressed="true"] i, .wz-tool-kind.on i { border-color: var(--paper); }
.wz-tool-kind:focus-visible, .wz-flatpick:focus-visible, .wz-menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.wz-menu { position: relative; }
details.wz-menu > summary { list-style: none; }
details.wz-menu > summary::-webkit-details-marker { display: none; }
details.wz-menu > summary::after { content: "▾"; margin-left: 2px; font-size: 10px; }
details.wz-menu[open] > summary::after { content: "▴"; }
/* Pogled: the drawn arrow of Prikaz instead of ▾ (PKP-283), down while closed (the menu opens downwards), up while open. */
details.wz-cam > summary { display: flex; align-items: baseline; gap: 10px; }
details.wz-cam > summary::after { content: ""; align-self: center; width: 7px; height: 7px; margin: -3px 2px 0 4px; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); font-size: 0; transform: rotate(225deg); transition: transform 160ms; }
details.wz-cam[open] > summary::after { content: ""; margin-top: 3px; transform: rotate(45deg); }
details.wz-cam > summary:hover::after { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { details.wz-cam > summary::after { transition: none; } }
.wz-flatpick { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 4px 5px 8px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.wz-flatpick:hover b { color: var(--accent); }
/* + Stan beside the flat of the Dodaj bar: accent text, as + Etaža. The two stay on one row when the bar wraps. */
.wz-flatgroup { display: inline-flex; align-items: center; gap: 2px; }
.wz-flat-new { all: unset; box-sizing: border-box; padding: 5px 8px; font-size: 13px; line-height: 1.3; color: var(--accent); cursor: pointer; white-space: nowrap; }
.wz-flat-new:hover { background: var(--wz-tint); }
.wz-flat-new:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wz-menu-body { position: absolute; top: calc(100% + 6px); left: 50%; z-index: 5; transform: translateX(-50%); display: grid; gap: 4px; width: max-content; max-width: 300px; padding: 8px; border: 1px solid var(--ink); background: var(--paper); }
.wz-menu-body.wz-flats { display: flex; flex-wrap: wrap; max-width: 260px; }
.wz-menu-item { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 1px 8px; align-items: center; padding: 6px 8px; cursor: pointer; }
.wz-menu-item b { font-size: 14px; font-weight: 600; }
.wz-menu-item span { grid-column: 2; font-size: 12px; line-height: 1.35; color: var(--muted); }
.wz-menu-item:hover, .wz-menu-item[aria-pressed="true"], .wz-flat:hover { background: var(--wz-tint); color: var(--ink); }
/* The mode while a kind is chosen: what goes where, its size, Okreni and Gotovo. */
.wz-mode { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 7px 12px; border-left: 3px solid var(--accent); font-size: 13px; }
.wz-mode b { font-size: 14px; }
.wz-mode label { display: inline-flex; align-items: baseline; gap: 4px; color: var(--ink-2); }
/* PKP-242: the two ways to make a room, named in the bar: a click places the box a × b, a drag draws a rectangle. */
.wz-mode .wz-arm-way { display: inline-flex; align-items: baseline; gap: 5px; color: var(--ink-2); white-space: nowrap; }
.wz-mode .wz-arm-way strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.wz-mode input { width: 52px; padding: 2px 0 4px; font-size: 14px; text-align: center; }
.wz-mode button:is([data-act="rotate"], [data-act="turncut"]) { padding: 5px 10px; font-size: 13px; }
.wz-mode button[data-act="turncut"][aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.wz-mode button.wz-link { padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; }
.wz-mode button.wz-link:hover { background: none; color: var(--ink); }
.wz-mode button.danger { padding: 5px 12px; font-size: 13px; }

/* The panel of step 2: the rooms of the storey by unit; folded parts and help. */
.wz-unit { margin-top: 16px; }
.wz-unit-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.wz-unit-head .wz-sw { display: inline-block; margin-right: 8px; vertical-align: -1px; }
.wz-unit-head .wz-muted { font-weight: 400; letter-spacing: 0; text-transform: none; }
/* Odaberi beside the name of a flat: its rooms of the storey as one selection (wizard.js, PKP-119). */
.wz-unit-head .wz-unit-r { display: flex; align-items: baseline; gap: 12px; }
.wz-panel .wz-unit-head button.wz-link { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
details.wz-fold { margin-top: 22px; border-top: 1px solid var(--ink); }
details.wz-fold > summary { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-light); cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; }
details.wz-fold > summary::-webkit-details-marker { display: none; }
details.wz-fold > summary::after { content: "↓"; }
details.wz-fold[open] > summary::after { content: "↑"; }
details.wz-fold > summary:hover { color: var(--accent); }
details.wz-fold .wz-form { margin-top: 12px; }
details.wz-help { margin-top: 18px; }
details.wz-help > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 14px; color: var(--accent); }
details.wz-help > summary::-webkit-details-marker { display: none; }
details.wz-help > summary::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 600; }
details.wz-help > summary:hover { color: var(--ink); }
details.wz-help .wz-note { margin-top: 10px; }

@media (max-width: 1180px) {
    .wz-workspace { grid-template-columns: minmax(0, 1fr); }
}

/* Narrow windows: the bar wraps (the steps get their own row), the drawing has a fixed height and the page scrolls. */
@media (max-width: 1400px) {
    .wz-tool .wz-steps .i, .wz-tool .wz-nav .to { display: none; }
    .wz-tool .wz-steps { gap: 20px; }
}
@media (max-width: 1180px) {
    .wz-tool { height: auto; }
    .wz-top { flex-wrap: wrap; height: auto; gap: 8px 20px; padding: 12px 20px 0; }
    .wz-name { flex: 1; max-width: none; }
    .wz-tool .wz-nav { margin-left: 0; }
    .wz-tool .wz-steps { order: 3; flex-basis: 100%; height: 44px; margin: 0; overflow-x: auto; }
    .wz-tool .wz-steps .i, .wz-tool .wz-nav .to { display: inline; }
    .wz-tool .wz-workspace { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 16px 20px 24px; }
    .wz-tool .wz-stage { flex: none; width: 100%; height: 62vh; min-height: 360px; }
    .wz-column { overflow: visible; padding-right: 0; }
}
@media (max-width: 900px) {
    .wz-tool .wz-workspace { grid-template-columns: minmax(0, 1fr); }
    .wz-tools { top: auto; right: 14px; bottom: 58px; left: 14px; }
    .wz-ov-row > .wz-storey-more { display: block; }
    .wz-storey-extra:not(.open) { display: none; }
    .wz-tools .wz-menu-body { top: auto; bottom: calc(100% + 6px); }
}
@media (max-width: 640px) {
    .wz-top { padding: 10px 16px 0; }
    .wz-name { flex-basis: 100%; order: -1; }
    .wz-tool .wz-nav { margin-left: auto; }
    .wz-tool .wz-nav .to { display: none; }
    .wz-tool .wz-workspace { padding: 12px 16px 24px; }
    /* Not lower than 580 px: the six tools of the drawing (to Kućica, PKP-337) end above the bar Dodaj at the bottom, also
       with the mode bar of a tool under it. */
    .wz-tool .wz-stage { height: max(70vh, 580px); }
    /* The views and Povuci/Podijeli fill the top: the storeys go under them, as in the interaction wizard. */
    .wz-tool .wz-storeys { top: 104px; max-height: calc(100% - 340px); }
    /* The building wizard has its storeys at the left, where only the row of the views is above them. They end 16 px above
       the bar Dodaj at the bottom (.wz-tools, bottom: 58px), also when a tool or a room to place adds its mode bar to it
       (PKP-284): wizard.js keeps the height of the bar in --wz-tools-h, or of the box of Podloga (.wz-calib) in its place.
       A list that is longer scrolls. */
    .wz-tool:not(.wz-ia) .wz-storeys { top: 58px; max-height: calc(100% - 132px - var(--wz-tools-h, 113px)); }
    .wz-tool .wz-hint { display: none; }
    .wz-tool .wz-toast { position: fixed; top: auto; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 16px; transform: none; width: auto; max-width: none; }
    /* The boxes of Boje stanova and Fina mreža at the right end of the bottom row of the drawing (.wz-ov-bottom), so over the
       icons: from the left edge of an icon they would go out of the window. */
    .wz-ov-pair > .wz-flats-box { position: static; }
    #wz-flats-tip, #wz-fine-tip { right: 0; left: auto; }
    /* Prikaz without what it shows (wz-view-now), so the bottom row (Prikaz, + Podloga, Boje stanova, Fina mreža) fits in the
       drawing (PKP-285). */
    .wz-view > summary span { display: none; }
    /* The mode bar of Prozor and Vrata with its size fields (PKP-288) without its hint (it is in the title of the tool), so
       it keeps to two rows and the bar Dodaj above it stays off the tools of the drawing. */
    .wz-mode:is(:has(#wz-open-w), :has(#wz-dormer-w)) > .wz-muted { display: none; }
}

@media (max-width: 860px) {
    .wz-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wz-stage { aspect-ratio: 1; }
    .wz-hint { display: none; }
}

/* The head of the Pregrade and Fasade pages: the title with the wizard and copy buttons beside it. */
.sk-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
/* The margin keeps the buttons off the first field when they wrap below the title (phone). */
.sk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
a.sk-open { padding: 8px 14px; font-size: 14px; }
a.sk-open .icon { width: 18px; height: 18px; }

/* Upisana mjera: the value of the last drag, which the user can type over (wizard.js). */
.wz-measure { right: 14px; bottom: 52px; display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; font-size: 13px; }
.wz-measure[hidden] { display: none; }
/* The bar Dodaj is at the bottom of a narrow drawing (.wz-tools, bottom: 58px): the typed measure goes above it. */
@media (max-width: 900px) { .wz-tool:not(.wz-ia) .wz-measure { bottom: calc(66px + var(--wz-tools-h, 113px)); } }
.wz-measure > span:first-child { color: var(--ink-2); }
.wz-measure input { width: 86px; padding: 2px 0 3px; border: 0; border-bottom: 1px solid var(--ink); background: none; font: inherit; font-size: 14px; font-weight: 600; text-align: right; color: var(--ink); }
.wz-measure input:focus { outline: none; border-bottom-color: var(--accent); }

/* Prečaci i upute: the guide of the drawing. */
dialog.wz-guide { width: min(940px, calc(100vw - 32px)); }
.wz-guide-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
@media (max-width: 760px) { .wz-guide-cols { grid-template-columns: minmax(0, 1fr); } }
.wz-guide h3 { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.wz-keys { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 7px 18px; margin: 0; font-size: 14px; line-height: 1.45; }
.wz-keys dt { font-weight: 500; }
.wz-keys dd { margin: 0; color: var(--ink-2); }
dialog.wz-guide p { max-width: none; font-size: 14px; }
@media (max-width: 560px) { .wz-keys { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .wz-keys dd { margin-bottom: 8px; } }
.wz-guide kbd { font-family: var(--font); font-size: 12px; padding: 1px 5px; border: 1px solid var(--rule-light); border-bottom-width: 2px; }

/* Interaction mode: the live result on the drawing (top left, where the storeys are in the whole-building wizard) and
   the checks in the panel. */
.wz-live { left: 14px; top: 14px; display: grid; gap: 4px; min-width: 200px; max-width: min(340px, 40%); padding: 8px 12px; font-size: 13px; }
.wz-live[hidden] { display: none; }
.wz-live-row { display: grid; grid-template-columns: auto auto 1fr; gap: 0 8px; align-items: baseline; }
.wz-live-row b { font-size: 16px; }
.wz-live-row .s { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.wz-live-row.pass .s { color: var(--pass); }
.wz-live-row.low .s { color: var(--ink); }
.wz-live-row.fail .s, .wz-live-problem { color: var(--accent); }
/* The counts of the warnings and notes of the check (PKP-175), with the signs of site.css. */
.wz-live-msgs { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 6px; border-top: 1px solid var(--rule-light); font-size: 12px; color: var(--ink-2); }
.wz-live-msgs > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wz-live-msgs .sign { width: 14px; height: 14px; font-size: 11px; }
/* The sides of a room of an interaction: what is beyond each wall, the ceiling and the floor. */
.wz-walls { display: grid; margin-top: 4px; }
/* The label grows for "Sjever (dio 1)" of a room of more blocks. */
.wz-wall { display: grid; grid-template-columns: minmax(4.5em, max-content) minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px 0 4px 8px; border-top: 1px solid var(--rule-light); }
.wz-wall.on { box-shadow: inset 2px 0 0 var(--accent); }
.wz-wall .k { font-size: 13px; color: var(--ink-2); }
.wz-wall select { width: 100%; }
.wz-wall .wz-small { display: block; }
.wz-ia-checks { list-style: none; margin: 8px 0 0; padding: 0; }
.wz-ia-checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--rule-light); }
.wz-ia-checks .q { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.wz-ia-checks .pill { justify-self: end; }
/* The warnings and notes of the chosen check in Pregled, and under its junctions (wizard.js msgRow): the inline signs of
   site.css ("Message signs"). A note is grey text, a warning ink. */
.wz-msgs { list-style: none; margin: 0; padding: 0; }
.wz-ia-checks + .wz-msgs { margin-top: 0; }
.wz-msg { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--rule-light); font-size: 13px; line-height: 1.45; color: var(--ink); }
.wz-msg .sign { margin-top: 1px; }
.wz-msg.note { color: var(--ink-2); }
.wz-joint .wz-msg { padding: 4px 0; border-top: 0; }

/* Konstrukcije: a field with a search (wizard.js, cboxHtml). The list opens under the field, in the panel. */
.wz-cbox { display: flex; flex-direction: column; gap: 6px; }
/* Dva zida: the field of the wall with Podijeli u 2 zida, or the field of the second part with its length and end (wizard.js panelCons). */
.wz-split { display: grid; gap: 10px; }
.wz-panel .wz-split > p, .wz-panel .wz-split > p.wz-actions { margin: 0; }
.wz-split .wz-note { margin-top: 0; }
.wz-cbox-label { font-size: 13px; color: var(--ink-2); }
.wz-cbox-field { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0 8px; border-bottom: 1px solid var(--ink); cursor: pointer; font-size: 15px; line-height: 1.35; }
.wz-cbox-field b { font-weight: 600; }
.wz-cbox-field:hover, .wz-cbox-field:focus { background: none; color: var(--ink); }
.wz-cbox-field:hover b { color: var(--accent); }
.wz-cbox-field:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A field without a construction (the building wizard starts so): red until the user chooses one. In the fold of the kinds
   that the building does not use it needs no choice, so it stays plain. */
.wz-cbox.empty .wz-cbox-field { border-bottom-color: var(--accent); }
b.wz-cbox-empty { color: var(--accent); font-weight: 600; }
.wz-fold .wz-cbox.empty .wz-cbox-field { border-bottom-color: var(--ink); }
.wz-fold b.wz-cbox-empty { color: var(--muted); }
.wz-cbox-pop { border: 1px solid var(--ink); background: var(--paper); }
.wz-cbox-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--rule-light); color: var(--ink-2); }
.wz-cbox-search input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); }
.wz-cbox-search input:focus { outline: none; }
.wz-cbox-list { list-style: none; margin: 0; padding: 0 0 4px; max-height: 360px; overflow-y: auto; }
.wz-cbox-group { padding: 12px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
li.wz-cbox-empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.wz-cbox-opt { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 12px; border-top: 1px solid var(--rule-light); cursor: pointer; }
/* A line is the name, and in the check wizard the estimate of the check at the right: red under the limit. */
.wz-cbox-opt .l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wz-cbox-opt .n { font-size: 14px; font-weight: 500; }
.wz-cbox-opt .v { flex: none; font-size: 13px; white-space: nowrap; }
.wz-cbox-opt .v.fail { color: var(--accent); }
/* The limit of the check, once above the list (wizard.js, needLine). */
.wz-cbox-need { padding: 10px 12px 4px; font-size: 12px; color: var(--muted); }
/* "primjer" beside the name of a sample of the catalogue, in the list and in the field. */
.wz-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--accent); border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; color: var(--accent); vertical-align: 2px; white-space: nowrap; }
.wz-cbox-opt:hover, .wz-cbox-opt.active { background: var(--wz-tint); color: var(--ink); }
.wz-cbox-foot .wz-link:hover { background: none; color: var(--ink); }
.wz-cbox-opt.on { box-shadow: inset 3px 0 0 var(--ink); }
.wz-cbox-opt.on .n { font-weight: 700; }
.wz-cbox-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wz-cbox-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--rule-light); }
.wz-cbox-foot .wz-link { padding: 0; border: 0; background: none; color: var(--accent); font-size: 14px; cursor: pointer; }
.wz-cbox-adds { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.wz-cbox-foot > .wz-small { flex: none; white-space: nowrap; }
/* Uredi beside an own element or an element of the project: the detailed form in a dialog. */
.wz-cbox-item { position: relative; }
.wz-cbox-item.editable .wz-cbox-opt { padding-right: 64px; }
.wz-cbox-edit { position: absolute; top: 7px; right: 8px; padding: 2px 6px; border: 0; background: none; color: var(--accent); font-size: 13px; cursor: pointer; }
.wz-cbox-edit:hover { background: none; color: var(--ink); text-decoration: underline; }
.wz-cbox-custom { display: grid; gap: 10px; padding: 12px; }
.wz-cbox-custom .wz-actions { margin-top: 0; }
/* A sample of the catalogue picked in a field (wizard.js, openSample): a buka-dialog with the fields of the quick form. */
dialog#wz-sample { width: min(520px, calc(100vw - 32px)); }
/* The group and the values of the sample under its name: one line on a computer (not the 46ch of a dialog text). */
#wz-sample p.wz-sample-meta { max-width: none; margin-top: 6px; font-size: 14px; color: var(--muted); }
#wz-sample [data-sample-fields] { display: grid; gap: 14px; margin-top: 20px; }
/* Uvezi IFC (PKP-126; wizard.js, the IFC import): the result has the counts of the file, then its messages in a list
   that scrolls when it is long. */
dialog#wz-ifc { width: min(640px, calc(100vw - 32px)); }
#wz-ifc p { max-width: none; }
#wz-ifc p.wz-ifc-count { font-size: 18px; font-weight: 500; color: var(--ink); }
#wz-ifc p.wz-ifc-error { color: var(--ink); }
#wz-ifc p.wz-ifc-replace { padding-left: 12px; border-left: 2px solid var(--accent); font-size: 15px; }
#wz-ifc ul.warnings { max-height: min(40vh, 340px); overflow-y: auto; }
#wz-ifc ul.warnings li { padding-top: 9px; padding-bottom: 9px; font-size: 14px; }
#wz-ifc ul.warnings li::before { top: 12px; }

/* Konstrukcije iz modela (PKP-372): the materials of the model (name, material of BUKA, density) and its types with their
   layers drawn to scale. On a narrow screen a row of the materials is the name, then the two fields, then its message. */
dialog#wz-model { width: min(860px, calc(100vw - 32px)); }
#wz-model p { max-width: none; }
#wz-model p.wz-model-error { color: var(--ink); }
#wz-model h3 { margin: 28px 0 4px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#wz-model h3:first-child { margin-top: 0; }
#wz-model .wz-model-hint { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
#wz-model [data-model-list] { max-height: min(62vh, 640px); overflow-y: auto; padding-right: 8px; }
#wz-model select, #wz-model input { width: 100%; min-width: 0; font-size: 15px; }
.wz-model-mat, .wz-model-type { display: grid; gap: 6px 20px; padding: 10px 0; border-top: 1px solid var(--rule); align-items: center; }
.wz-model-mat { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 104px minmax(0, 1.2fr); }
.wz-model-mat .wz-model-name { font-weight: 500; overflow-wrap: anywhere; }
.wz-model-mat .wz-model-name span, .wz-model-type .wz-model-count { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.wz-model-unit { display: flex; align-items: baseline; gap: 6px; }
.wz-model-unit span { font-size: 13px; color: var(--muted); white-space: nowrap; }
#wz-model .wz-model-msg { display: flex; gap: 8px; align-items: baseline; margin: 0; font-size: 14px; line-height: 1.4; }
#wz-model .wz-model-msg .sign { position: relative; top: 2px; }
#wz-model .wz-model-msg.note { color: var(--muted); }
#wz-model .wz-model-msg button { margin-left: 6px; padding: 2px 10px; font-size: 13px; }
.wz-model-type { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .9fr); align-items: start; padding: 14px 0; }
#wz-model .wz-model-type h4 { margin: 0 0 2px; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); overflow-wrap: anywhere; }
.wz-model-cut { display: flex; height: 34px; max-width: 100%; border: 1px solid var(--ink); }
.wz-model-cut i { display: block; min-width: 3px; }
.wz-model-cut i + i { border-left: 1px solid var(--paper); }
.wz-model-cut .heavy { background: var(--ink); }
.wz-model-cut .finish { background: var(--ink-2); }
.wz-model-cut .board { background: var(--muted); }
.wz-model-cut .soft { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--muted) 3px 4px); }
.wz-model-cut .unknown { background: repeating-linear-gradient(90deg, transparent 0 4px, var(--accent) 4px 5px); }
.wz-model-sides { display: flex; justify-content: space-between; max-width: 100%; font-size: 12px; color: var(--muted); }
.wz-model-layers { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.wz-model-layers li { display: flex; justify-content: space-between; gap: 12px; }
.wz-model-layers li span:last-child { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.wz-model-go { display: grid; gap: 8px; }
.wz-model-go label { display: grid; gap: 2px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wz-model-go button { justify-self: start; }
.wz-model-msgs { grid-column: 1 / -1; display: grid; gap: 6px; }
@media (max-width: 720px) {
  .wz-model-mat { grid-template-columns: minmax(0, 1fr) 104px; }
  .wz-model-mat .wz-model-name, .wz-model-mat .wz-model-state { grid-column: 1 / -1; }
  .wz-model-type { grid-template-columns: minmax(0, 1fr); }
}
.wz-cbox .wz-use { font-size: 12px; color: var(--muted); }
/* An interaction: the result box is top left, so its storeys (a floor, impact sound) go down, above Prikaz. */
.wz-ia .wz-storeys { top: auto; bottom: 64px; }
/* On a narrow screen the tool bar and its mode box fill the bottom: the storeys go right, under the views and tools. */
@media (max-width: 900px) { .wz-ia .wz-storeys { top: 104px; right: 14px; bottom: auto; left: auto; } }
/* On a phone the view buttons take the top: the result of an interaction goes under them, left of the storeys. */
@media (max-width: 600px) { .wz-live { top: 104px; max-width: calc(100% - 172px); min-width: 0; } }

/* Podloga tlocrta (js/underlay.js, _UnderlayDialog): + Podloga beside Prikaz opens it (.wz-underlay-open above). */
/* The two modes on the drawing: the cursor, no scrolling under a finger, the room tools away, the box in their place. */
.wz-stage canvas.ul-measure { cursor: crosshair; touch-action: none; }
.wz-stage canvas.ul-move { cursor: move; touch-action: none; }
.wz-stage canvas.ul-move.dragging { cursor: grabbing; }
.wz-tool[data-ul-mode] .wz-tools { display: none; }
/* In the middle of the top, clear of Pogled and ? at the right (232 px, as the tools of step 2) and of the storeys at the left. */
.wz-calib { top: 14px; left: 50%; z-index: 4; transform: translateX(-50%); width: max-content; max-width: min(520px, calc(100% - 464px)); padding: 7px 12px; border-left: 3px solid var(--accent); font-size: 13px; }
/* Over a point of the measure, the box goes to the bottom of the drawing, above the row of Prikaz (underlay.js: placeBox). */
.wz-calib.low { top: auto; bottom: 58px; }
.wz-calib[hidden], .wz-calib [hidden] { display: none; }
.wz-calib-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.wz-calib-wait b { font-size: 14px; }
.wz-calib-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.wz-calib-form > label { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink-2); }
.wz-calib-form input[data-calib-length] { width: 64px; padding: 2px 0 3px; border: 0; border-bottom: 1px solid var(--ink); background: none; font: inherit; font-size: 14px; font-weight: 600; text-align: right; color: var(--ink); }
.wz-calib-form input[data-calib-length]:focus { outline: none; border-bottom-color: var(--accent); }
.wz-calib-form fieldset { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 0; border: 0; }
.wz-calib-form legend { float: left; margin-right: 2px; padding: 0; color: var(--ink-2); }
.wz-calib-form fieldset label { display: inline-flex; align-items: center; gap: 4px; }
.wz-calib-form button.primary { padding: 5px 12px; font-size: 13px; }
.wz-calib button.wz-link { padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; }
.wz-calib button.wz-link:hover { background: none; color: var(--ink); }
@media (max-width: 1180px) { .wz-calib { max-width: calc(100% - 28px); top: 58px; } .wz-tool[data-step="2"][data-ul-mode] .wz-ov-stack { top: 178px; } }
/* A phone: the box under the views, the hint of the mode at the bottom (no Esc there: the box has its way out). */
@media (max-width: 900px) { .wz-calib { top: auto; right: 14px; bottom: 58px; left: 14px; transform: none; width: auto; max-width: none; } }

/* The dialog: as wide as the catalogue; the page with its crop frame, the strip of the pages of a PDF. */
dialog.underlay-dialog { width: min(760px, calc(100vw - 32px)); }
dialog.underlay-dialog [hidden] { display: none; }
.underlay-dialog .actions { margin-top: 20px; }
.underlay-dialog p.ul-note { font-size: 14px; color: var(--muted); }
.underlay-dialog p.ul-status { min-height: 0; font-size: 14px; color: var(--accent); }
.underlay-dialog p.ul-status:empty { display: none; }
.ul-pages { display: flex; gap: 8px; margin-top: 16px; padding-bottom: 6px; overflow-x: auto; overscroll-behavior-x: contain; }
.ul-page { all: unset; box-sizing: border-box; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--rule-light); font-size: 12px; color: var(--ink-2); cursor: pointer; }
.ul-page canvas { display: block; width: 56px; height: auto; background: #fff; box-shadow: 0 0 0 1px var(--rule-light); }
.ul-page:hover { border-color: var(--ink); }
.ul-page[aria-pressed="true"] { border: 2px solid var(--ink); padding: 3px; color: var(--ink); font-weight: 600; }
.ul-page:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ul-stage { position: relative; width: fit-content; max-width: 100%; margin: 16px auto 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
/* The page as high as the window lets the dialog be without scrolling (its head, the strip and the buttons take about 440 px). */
.ul-stage img { display: block; max-width: 100%; max-height: max(220px, min(60vh, calc(100dvh - 440px))); width: auto; height: auto; background: #fff; }
.ul-crop { position: absolute; box-sizing: border-box; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(42, 41, 37, 0.45); cursor: move; }
/* The handles: 24 px for a finger, a small square on the frame. */
.ul-h { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.ul-h::after { content: ""; position: absolute; inset: 7px; border: 1.5px solid var(--accent); background: var(--paper); }
.ul-h[data-ul-h="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.ul-h[data-ul-h="n"] { left: 50%; top: 0; cursor: ns-resize; }
.ul-h[data-ul-h="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.ul-h[data-ul-h="w"] { left: 0; top: 50%; cursor: ew-resize; }
.ul-h[data-ul-h="e"] { left: 100%; top: 50%; cursor: ew-resize; }
.ul-h[data-ul-h="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.ul-h[data-ul-h="s"] { left: 50%; top: 100%; cursor: ns-resize; }
.ul-h[data-ul-h="se"] { left: 100%; top: 100%; cursor: nwse-resize; }
.ul-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: 20px; align-items: end; }
.ul-range { display: flex; align-items: center; gap: 10px; }
.ul-range input { flex: 1; min-width: 0; accent-color: var(--ink); }
.ul-range output { min-width: 3.5em; font-size: 14px; color: var(--ink); text-align: right; }
.ul-turn { display: flex; align-items: end; gap: 8px; }
.ul-turn label.field { flex: 1; min-width: 0; }
.ul-turn input { width: 100%; }
.ul-turn button, .ul-tools button { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.ul-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
/* Mjerilo PDF-a (a PDF only): a short field beside its note. On a computer the page leaves the row its room (about 90 px),
   so the buttons stay in view; on a phone the field goes over the note and the dialog scrolls, as before. */
.ul-paper { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 24px; align-items: end; margin-top: 16px; }
.underlay-dialog .ul-paper p.ul-note { margin: 0; }
@media (min-width: 641px) {
    .underlay-dialog:has([data-ul-paper-row]:not([hidden])) .ul-stage img { max-height: max(220px, min(60vh, calc(100dvh - 530px))); }
}
@media (max-width: 640px) {
    dialog.underlay-dialog .dialog-body { padding: 22px 16px 24px; }
    .ul-fields { grid-template-columns: minmax(0, 1fr); }
    .ul-stage img { max-height: max(200px, min(50vh, calc(100dvh - 400px))); }
    .ul-paper { grid-template-columns: minmax(0, 180px); }
}

/* Kosi strop (PKP-173): the fields of one part of a room, under Svijetla visina. */
.wz-slope { display: grid; gap: 8px; }
.wz-slope select { width: 100%; }
.wz-slope > .wz-small { margin: 0; }

/* Zidovi (PKP-380): step Prostorije of a building of walls (wizard-walls.js). */
.wz-wconvert { margin-top: 16px; padding: 12px 0 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-light); }
.wz-wconvert p { margin: 8px 0 0; line-height: 1.45; }
.wz-wsel { margin-top: 18px; padding-top: 2px; border-top: 1px solid var(--ink); }
.wz-wsel > h3 { margin-top: 12px; }
.wz-wsel .wz-actions { margin-top: 14px; }
.wz-wsel > p.wz-small { margin: 10px 0 0; line-height: 1.45; }
.wz-wsel .warnings { margin-top: 12px; }
.wz-wtag { display: inline-block; min-width: 2.2em; padding: 0 4px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; line-height: 1.45; text-align: center; }
.wz-wwalls .wz-item { grid-template-columns: auto minmax(0, 1fr) auto; }
.wz-wwalls .wz-item .r { grid-row: 1; }
/* Poruke: a message is a button to its wall or place; the drawing has its sign there. */
.wz-wmsgs-box h3 { margin-top: 22px; }
.wz-wmsgs-box > p { margin: 0; }
.wz-wmsgs { margin: 0; }
.wz-wmsgs li.on { background: var(--wz-tint); }
.wz-wmsg { all: unset; cursor: pointer; overflow-wrap: anywhere; }
.wz-wmsg:hover { background: none; color: var(--accent); }
.wz-wmsg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wz-wmsgs .wz-link { margin-left: 6px; font-size: 13px; }
/* Vrste zidova: one row for each type, with its tag, name, construction, thickness and uses. */
.wz-wtypes { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.wz-wtypes th { padding: 0 8px 6px 0; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 500; text-align: left; color: var(--ink-2); }
.wz-wtypes td { padding: 12px 8px 14px 0; border-bottom: 1px solid var(--rule-light); vertical-align: top; }
.wz-wtypes th:last-child, .wz-wtypes td.num { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; }
.wz-wtypes td:nth-child(2) { display: grid; gap: 10px; min-width: 0; }
.wz-wtypes td.num .wz-link { margin-top: 6px; font-size: 13px; }
.wz-wtypes input[data-wtype-name] { width: 100%; font-weight: 500; }
.wz-wthick { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; color: var(--ink-2); }
.wz-wthick input { width: 5em; text-align: right; font-variant-numeric: tabular-nums; }
.wz-wuses { display: flex; flex-wrap: wrap; gap: 4px; }
.wz-wuse { padding: 3px 8px; font-size: 12px; line-height: 1.3; color: var(--ink-2); border-color: var(--rule-light); }
.wz-wuse:hover { background: var(--wz-tint); color: var(--ink); }
.wz-wuse[aria-pressed="true"], .wz-wuse[aria-pressed="true"]:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
/* Konstrukcije: a wall kind takes the construction of its wall type; the field is read only. */
.wz-cbox-fixed .wz-cbox-field { cursor: default; border-bottom-color: var(--rule-light); }
.wz-cbox-fixed .wz-cbox-field:hover b { color: var(--ink); }
.wz-cbox-fixed > p.wz-small { margin: 0; font-size: 13px; }
@media (max-width: 640px) {
    .wz-wtypes th:first-child, .wz-wtypes td:first-child { width: 42px; }
    .wz-wtypes td { padding-right: 6px; }
}
