/* The shape of the house look (the owner, 13 November: "convert the whole UX to the style of DeepFleet"; SGroup's guide of
   13 November, sections 2 and 3.3 — /Users/fireblade/dev/_design-share/IQL_GUI_FROM_SGROUP.md). zz-house.css gave the skin
   (fonts, palette, grid); this gives the shape, look-only: square edges, cut corners on what is pressed or rises, corner
   brackets on every panel, no soft shadow on panels, every figure a mono readout. No rule here hides, moves or adds a
   control. Loads after zz-house.css (the files are taken in name order). */

/* ---------- square everything (status dots and pills keep their round) ---------- */
:root { --radius: 0px; --radius-sm: 0px; }
.card, .tile, .btn, input, select, textarea, .step, .savebar, .banner, .opt-list, .nav-menu, .lf-card, .st-frame, .handoff,
.margin-card, .dash-track, .dash-bar, .toast, .chip { border-radius: 0 !important; }

/* ---------- cut corners: top-left and bottom-right, mirrored in RTL — on what a person presses and on what rises ---------- */
.btn-primary, .btn-secondary, .btn-lg { --cut: 6px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
[dir="rtl"] .btn-primary, [dir="rtl"] .btn-secondary, [dir="rtl"] .btn-lg {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
dialog[open], .assist { --cut: 12px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
[dir="rtl"] dialog[open], [dir="rtl"] .assist {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
/* the focus ring stays outside the cut, so it is never clipped away */
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-lg:focus-visible { clip-path: none; outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- corner brackets on every panel (the tiles have them already) — warning and failure in their colour ---------- */
.card, .lf-card, .st-frame, .dash-card { --bk: var(--accent);
  background-image:
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk));
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: top 0 right 0, top 0 right 0, bottom 0 left 0, bottom 0 left 0; }
.card.warn, .dash-wait { --bk: var(--warn); }
.card.bad { --bk: var(--bad); }

/* ---------- no soft shadow on panels; only what floats over the page keeps one ---------- */
.card, .tile, .savebar, .drive-reqs, .handoff, .margin-card, .st-frame, .lf-card { box-shadow: none !important; }

/* ---------- every figure a readout: mono, tabular, left-to-right inside Hebrew ---------- */
.tile-n, .dash-n, .pp-units-table input.pp-qty, .pp-units-table input.pp-rate-in, [data-unit-total], [data-auto-total],
#ppUnitsSum_0 b, #ppUnitsSum_1 b, .pp-grand b, .pp-rate span[dir="ltr"], .odt-table input[type="number"], .num, .money {
  font-family: var(--font-code, ui-monospace, monospace); font-variant-numeric: tabular-nums; }
.tile-n { font-size: 30px; letter-spacing: -.01em; }
td[dir="ltr"], td .ltr { font-variant-numeric: tabular-nums; }

/* ---------- table heads quiet, rows ruled — no zebra on dark ---------- */
table.data thead th { font-size: 12px; font-weight: 600; color: var(--ink-3); }
table.data tbody tr + tr td { border-top: 1px solid var(--line); }

/* ---------- fields: raised, square, 44 px, 16 px text on phones so iOS does not zoom ---------- */
@media (max-width: 760px) { input, select, textarea { font-size: 16px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* on a phone the steps show their numbers — and the step in hand its name too (the UX walk of 13 November, item 10) */
@media (max-width: 760px) { #stepper .step[aria-current="step"] .lbl { display: inline; } #stepper .step[aria-current="step"] { padding-inline: 10px 14px; } }

/* Admin's tabs in two labelled rows (app.js · renderAdmin) */
.admin-tabrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-tabrow + .admin-tabrow { margin-top: -6px; }
.admin-tabgroup { min-width: 8.5em; }
.admin-tabrow .tabs { margin-bottom: 10px; }
