/* ============================================================================
 * WorkZoneLog — shared component styles (web + MAUI hybrid)
 * Contract: components/SHARED-COMPONENTS.md
 *
 * The stylesheet for the shared component set. Import ONCE per host:
 *   web  → alongside platform.css
 *   MAUI → in wwwroot/index.html, after platform.css
 *
 * No ::deep, no document-order dependence, no host-specific selector — so a host may
 * instead split this into per-component .razor.css files if its build prefers scoping.
 *
 * Token policy: every value var(--acs-*) with a literal fallback · hit targets via
 * var(--acs-hit-min) · locked --acs-status-* never restyled · neutral + surface owned by
 * mode · identity precedence brand > personality > mode.
 *
 * WZL-112 #3747: @import's the screen-chrome stylesheet (.wzl-map, per-screen 2a-2g blocks).
 * WZL-113 #3751: @import's the cross-screen shapes stylesheet (.wzl-field, .wzl-head,
 * .wzl-seg, .wzl-addcat, .wzl-pklist, .wzl-progress, .wzl-placing, .wzl-currentpole, .wzl-placedrow,
 * .wzl-photos, .wzl-builder, .wzl-orderbtn, .wzl-stepper, .wzl-scopepick, .wzl-actionbar —
 * screens.css already named these as its own unmet dependency). Together with the component
 * rules below, a single host link — this file's own, already wired in Host.Web (WZL-104
 * #3693) — now carries the full chain: components + screen chrome + cross-screen shapes.
 * Both imports moved here from docs/design/workzonelog/ (single source of truth; the design
 * package now only references them, never duplicates — see FIELD-APP.md §8). Import order
 * matters: both @import's precede the component rules below, so this file's own (evolved,
 * shipped) definitions of .wzl-slot/.wzl-pole/.wzl-pos/.wzl-pkg/.wzl-note always win on any
 * residual selector overlap.
 * ========================================================================== */

@import "WorkZoneLogFieldApp.screens.css";
@import "WorkZoneLogFieldApp.shapes.css";

/* ---------------------------------------------------------------- sign slot */
/* Fixed WHITE card in BOTH modes: the artwork is raster with no alpha, so a tinted or
 * dimmed card would place a white JPEG on a grey plate. This is the one place in the
 * design system where a literal colour is correct.
 */
.wzl-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #ffffff;
    border: 1px solid var(--acs-color-border, #e2e8f0);
    border-radius: 1px;
    overflow: hidden;
}

.wzl-slot img { width: 100%; height: 100%; object-fit: contain; }

/* 8px is the HARD FLOOR. Below it a mono code is a smudge that reads as a defect. */
.wzl-slot__code {
    font-family: var(--acs-font-mono, 'Space Mono', ui-monospace, monospace);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    color: #1e293b;
}

.wzl-slot--picker   { width: 52px; height: 52px; }
.wzl-slot--picker   .wzl-slot__code { font-size: 10px; }
.wzl-slot--sheet    { width: 38px; height: 38px; }
.wzl-slot--timeline { width: 34px; height: 34px; }
.wzl-slot--timeline .wzl-slot__code { font-size: 8px; }
.wzl-slot--builder  { width: 38px; min-height: 22px; }
.wzl-slot--pole     { width: 46px; min-height: 26px; }
.wzl-slot--pole     .wzl-slot__code { font-size: 8px; }
.wzl-slot--pole-lg  { width: 62px; min-height: 34px; }
.wzl-slot--pole-lg  .wzl-slot__code { font-size: 11px; }

/* Sub-signs carry NO code — plain bars. WzlPoleStack passes ShowCodeFallback=false, and
 * this height keeps the stack readable as a shape rather than a stripe. */
.wzl-slot--pole-sub { width: 46px; height: 13px; margin-top: 2px; }

/* ---------------------------------------------------------------- pole stack */
.wzl-pole { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.wzl-pole__post { width: 3px; height: 16px; background: var(--acs-color-text-muted, #64748b); }
.wzl-pole--lg .wzl-pole__post { width: 4px; height: 20px; }
.wzl-pole--compact .wzl-pole__post { height: 10px; }
.wzl-pole--compact .wzl-slot--pole { width: 34px; min-height: 22px; }
.wzl-pole--compact .wzl-slot--pole-sub { width: 34px; height: 12px; }

/* ---------------------------------------------------------------- position block */
.wzl-pos {
    padding: var(--acs-space-3, 12px);
    border: 1px solid var(--acs-color-border, #e2e8f0);
    border-left: 3px solid var(--acs-status-success, #22c55e);
    border-radius: var(--acs-radius-md, 3px);
}

/* Manual capture is a legitimate fact: WARNING, never danger. Only a MISSING position
 * is a problem, and that state is an AcsAlertBanner rather than this block. */
.wzl-pos[data-manual="true"] { border-left-color: var(--acs-status-warning, #f59e0b); }
.wzl-pos--missing { padding: 0; border: 0; }

.wzl-pos__label {
    margin: 0;
    font-family: var(--acs-font-display, 'Barlow Condensed', 'Arial Narrow', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--acs-color-text-muted, #64748b);
}

.wzl-pos__value  { margin: 3px 0 0; font-family: var(--acs-font-mono, monospace); font-weight: 700; font-size: 14px; }
.wzl-pos__detail { margin: 2px 0 0; font-family: var(--acs-font-mono, monospace); font-size: 10px; text-transform: uppercase; color: var(--acs-color-text-muted, #64748b); }

/* Advisory. A Pending or NotResolved lookup never blocks a save. */
.wzl-pos__nvdb { margin: 8px 0 0; font-family: var(--acs-font-mono, monospace); font-size: 10px; text-transform: uppercase; color: var(--acs-color-text-muted, #64748b); }
.wzl-pos__nvdb[data-state="notresolved"] { color: var(--acs-status-warning, #f59e0b); }

/* ---------------------------------------------------------------- correction chain */
/* Loud on purpose and in BOTH directions: this is the append-only proof. */
.wzl-chain { margin-top: 9px; }

.wzl-chain__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: color-mix(in srgb, var(--acs-status-special, #a78bfa) 14%, transparent);
    border: 1px solid var(--acs-status-special, #a78bfa);
    border-radius: var(--acs-radius-md, 3px);
    font-family: var(--acs-font-display, 'Barlow Condensed', sans-serif);
    font-weight: 700;
    font-size: var(--acs-fs-sm, 12px);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.wzl-chain__reason {
    margin: 6px 0 0;
    font-family: var(--acs-font-mono, monospace);
    font-size: 10px;
    line-height: 1.6;
    color: var(--acs-color-text-muted, #64748b);
    text-wrap: pretty;
}

/* ---------------------------------------------------------------- event row */
.wzl-logrow {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--acs-color-border, #e2e8f0);
    border-left: 3px solid var(--acs-color-primary, #1e40af);
}

.wzl-logrow[data-kind="ok"]         { border-left-color: var(--acs-status-success, #22c55e); }
.wzl-logrow[data-kind="stop"]       { border-left-color: var(--acs-status-danger, #ef4444); }
.wzl-logrow[data-kind="correction"] { border-left-color: var(--acs-status-special, #a78bfa); background: var(--acs-color-surface, #f8fafc); }

/* Superseded stays LEGIBLE — dimmed enough to read as past, never faded away. */
.wzl-logrow[data-superseded="true"] { border-left-color: var(--acs-status-neutral, #64748b); opacity: .66; }
.wzl-logrow[data-superseded="true"] .wzl-logrow__type { text-decoration: line-through; }

.wzl-logrow__time { flex: 0 0 42px; font-family: var(--acs-font-mono, monospace); font-weight: 700; font-size: 12px; }
.wzl-logrow__body { flex: 1; min-width: 0; }

.wzl-logrow__type {
    margin: 0;
    font-family: var(--acs-font-display, 'Barlow Condensed', sans-serif);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.wzl-logrow__signs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.wzl-logrow__sign { display: inline-flex; align-items: center; gap: 6px; }
.wzl-logrow__signname { font-size: 12px; font-weight: 500; }
.wzl-logrow__custom { font-family: var(--acs-font-mono, monospace); font-size: 11px; color: var(--acs-color-text-muted, #64748b); }

.wzl-logrow__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--acs-space-2, 8px);
    margin: 5px 0 0;
    font-family: var(--acs-font-mono, monospace);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--acs-color-text-muted, #64748b);
}

/* The meta line is uppercased; the national notation's metre is a lowercase m (WZL-285 #6825). */
.wzl-logrow__road { text-transform: none; }
.wzl-logrow__method { padding: 1px 5px; border: 1px solid var(--acs-color-border, #e2e8f0); border-radius: var(--acs-radius-sm, 2px); }
.wzl-logrow__photo { display: inline-flex; align-items: center; gap: 4px; color: var(--acs-color-primary, #1e40af); }

/* ---------------------------------------------------------------- signs-out summary */
/* Warning accent, NOT a danger banner: overnight standing signs are the normal case. */
.wzl-out {
    padding: 11px;
    border: 1px solid var(--acs-color-border, #e2e8f0);
    border-left: 3px solid var(--acs-status-warning, #f59e0b);
    border-radius: var(--acs-radius-md, 3px);
}

/* The single place standing signs genuinely block: PROJECT close, on web. */
.wzl-out--blocking { border-color: var(--acs-status-danger, #ef4444); border-left-color: var(--acs-status-danger, #ef4444); background: color-mix(in srgb, var(--acs-status-danger, #ef4444) 6%, transparent); }

.wzl-out__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-family: var(--acs-font-display, 'Barlow Condensed', sans-serif);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.wzl-out__count { font-family: var(--acs-font-mono, monospace); font-size: 18px; }
.wzl-out__lead  { margin: 5px 0 0; font-size: 13px; line-height: 1.5; text-wrap: pretty; }
.wzl-out__row   { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.wzl-out__name  { flex: 1; font-size: 13px; font-weight: 600; }
.wzl-out__qty   { font-family: var(--acs-font-mono, monospace); font-size: 10px; color: var(--acs-color-text-muted, #64748b); }
.wzl-out__where { font-family: var(--acs-font-mono, monospace); font-size: 10px; color: var(--acs-color-text-muted, #64748b); }

/* Duration is information, not an accusation. */
.wzl-out__age {
    padding: 1px 6px;
    background: var(--acs-color-surface, #f8fafc);
    border: 1px solid var(--acs-color-border, #e2e8f0);
    border-radius: var(--acs-radius-sm, 2px);
    font-family: var(--acs-font-mono, monospace);
    font-size: 10px;
    font-weight: 700;
}

/* ---------------------------------------------------------------- photo control (WZL-286 #6826)
 * The camera button is a field control: at least the hit minimum (FIELD-APP.md:52). The kit's size modifier
 * (.acs-button--medium, 36px) has the same specificity as .acs-touch and comes later, so this rule names both.
 */
.acs-button.wzl-photo-camera { min-height: var(--acs-hit-min); }
/* The file input is hidden here, not by Bootstrap's visually-hidden, which the phone app never loads (WZL-300 #6930):
 * it stays in the page and focusable, and takes no space. */
.wzl-photo-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wzl-photo-fallback { margin-top: var(--acs-space-2); }
/* The file picker's label can't take focus; its hidden input, right before it, can. The label shows the kit's ring. */
.wzl-photo-input:focus-visible + .wzl-photo-picker { outline: 2px solid var(--acs-color-primary); outline-offset: 2px; }

/* ---------------------------------------------------------------- package card */
/* WZL-371 #7612: every space is on the design system's scale and every type size is a type token, on every screen that
   draws the card (the founder's decision on #7473). The type scale has nothing under 12 px, so the meta lines take sm. */
.wzl-pkg-shell { display: block; }

.wzl-pkg {
    position: relative;
    display: flex;
    gap: var(--acs-space-3, 12px);
    width: 100%;
    min-height: var(--acs-hit-min, 48px);
    padding: var(--acs-space-3, 12px);
    background: var(--acs-color-bg, #ffffff);
    border: 1px solid var(--acs-color-border, #e2e8f0);
    border-radius: var(--acs-radius-lg, 4px);
    text-align: left;
    cursor: pointer;
}

.wzl-pkg--static { cursor: default; }
/* Pressed draws a 2 px edge with no change to the padding: the border takes the colour, and a border on ::after just inside
   it the second pixel. Borders, not a shadow, so the edge stays in forced-colours mode, and the outline stays free for focus. */
.wzl-pkg[aria-pressed="true"] { border-color: var(--acs-color-primary, #1e40af); }
.wzl-pkg[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--acs-color-primary, #1e40af);
    border-radius: inherit;
    pointer-events: none;
}
.wzl-pkg:disabled { opacity: .5; cursor: not-allowed; }
/* Focus is the kit's own focus outline for a control (platform.css, .acs-button:focus-visible), drawn outside the card: it
   shows in forced-colours mode, where a shadow is not drawn, and it never meets the pressed edge inside the card. */
.wzl-pkg:focus-visible { outline: 2px solid var(--acs-color-primary, #1e40af); outline-offset: 2px; }

.wzl-pkg__poles { display: flex; align-items: flex-start; gap: var(--acs-space-1, 4px); flex: 0 0 auto; }
.wzl-pkg__morepoles { align-self: center; font-family: var(--acs-font-mono, monospace); font-size: var(--acs-fs-sm, 12px); font-weight: 700; color: var(--acs-color-text-muted, #64748b); }
.wzl-pkg__body { flex: 1; min-width: 0; }

.wzl-pkg__name {
    display: flex;
    align-items: baseline;
    gap: var(--acs-space-2, 8px);
    font-family: var(--acs-font-display, 'Barlow Condensed', sans-serif);
    font-weight: 700;
    font-size: var(--acs-fs-lg, 16px);
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--acs-color-text, #1e293b);
}

/* Favourite is emphasis — the highlight token's only legitimate use. Never selection. */
.wzl-pkg__fav { font-size: var(--acs-fs-sm, 12px); color: var(--acs-highlight, #f97316); }

.wzl-pkg__meta,
.wzl-pkg__locked {
    display: block;
    margin-top: var(--acs-space-1, 4px);
    font-family: var(--acs-font-mono, monospace);
    font-size: var(--acs-fs-sm, 12px);
    text-transform: uppercase;
    color: var(--acs-color-text-muted, #64748b);
}

/* The ruling made visible on every surface: a package is a template, not a placement. */
.wzl-pkg__nogeo {
    display: inline-block;
    margin-top: var(--acs-space-2, 8px);
    padding: var(--acs-space-1, 4px) var(--acs-space-2, 8px);
    background: var(--acs-color-surface, #f8fafc);
    border: 1px solid var(--acs-color-border, #e2e8f0);
    border-radius: var(--acs-radius-sm, 2px);
    font-family: var(--acs-font-mono, monospace);
    font-size: var(--acs-fs-sm, 12px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--acs-color-text-muted, #64748b);
}

.wzl-note { margin: 6px 0 0; font-size: var(--acs-fs-sm, 12px); color: var(--acs-color-text-muted, #64748b); text-wrap: pretty; }

/* ---------------------------------------------------------------- 2c position map (WZL-102 #3684)
 * .wzl-map__canvas/.wzl-map__pin/.wzl-map__pinhead now come from the imported screens.css
 * (WZL-112 #3747 landed it) -- .wzl-position-map(-host) below are this component's own, unique
 * to it: a fallback so the map is visibly sized regardless of the surrounding screen chrome's
 * own layout height. The one override below adds what this component needs beyond the design's
 * own pin (click-through to the map underneath) without redefining the shared rule.
 */
.wzl-position-map-host { min-height: 320px; }
.wzl-position-map { position: absolute; inset: 0; z-index: 0; }
.wzl-map__pin { pointer-events: none; z-index: 1; }

/* ---------------------------------------------------------------- photos (WZL-290 #6830)
 * A log row carries no photo: the founder's decision of 2026-11-10 (#6830 issuecomment-6780683281). It
 * carries the camera with a counter (.wzl-photos-open), and that opens the registration's photos in a
 * dialog, each at the dialog's width, stacked (.wzl-photo-dialog: its own name, since .wzl-photos is the
 * correction screen's strip in WorkZoneLogFieldApp.shapes.css).
 *
 * A photo waiting in the capture sheet, not yet sent, is a fixed square cropped to fill, the field's hit
 * minimum (FIELD-APP.md:52). Its bytes are already on the device, so drawing it downloads nothing. The
 * remove control sits beside the square, on the sheet's own surface, never over the photo's pixels,
 * where its contrast could not be held.
 *
 * The counter is a field control, so it is at least the hit minimum both ways, at the kit's large size
 * (14px). The kit's size modifier has the same specificity as .acs-touch and comes later, so this rule names
 * both, as the camera button's does. Its count is data, so it is mono like the rest of the meta line.
 *
 * A document on a registration is a quiet label in the row's action block: the row's own bordered box
 * (.wzl-logrow__method), in muted text, which holds 4.5:1 on the surface in both modes, where the kit's neutral
 * badge does not in light (PLAT-570 #6791).
 */
.acs-button.wzl-photos-open { min-height: var(--acs-hit-min, 48px); min-width: var(--acs-hit-min, 48px); font-family: var(--acs-font-mono, monospace); }
.wzl-logrow__document { display: inline-block; font-size: var(--acs-fs-sm); color: var(--acs-color-text-muted); }
/* WZL-346 #7460: a photo the platform refused for good is said on its row. The words keep the text ink, which holds
 * 4.5:1 in both modes; the kit's danger colour does not in light (3.76:1 on white), so it carries the border, a
 * non-text signal at 3:1. The row's status region is an empty span while nothing is on its way: it takes no room,
 * and it stays in the page so a reader announces it when it fills. */
.wzl-logrow__refused { display: inline-block; font-size: var(--acs-fs-sm); color: var(--acs-color-text); border-color: var(--acs-status-danger); border-width: 2px; }
.wzl-photo-dialog { display: flex; flex-direction: column; gap: var(--acs-space-3, 12px); }
.wzl-photo-dialog__image { display: block; width: 100%; height: auto; border-radius: var(--acs-radius-sm, 2px); }

.wzl-attachment-gallery__thumb { flex: 0 0 auto; display: inline-flex; align-items: flex-start; gap: var(--acs-space-1, 4px); }
.wzl-attachment-gallery__thumb img {
    display: block;
    width: var(--acs-hit-min, 48px);
    height: var(--acs-hit-min, 48px);
    object-fit: cover;
    border-radius: var(--acs-radius-sm, 2px);
}

/* ---------------------------------------------------------------- dark pass */
/* Mode owns neutral + surface; values verbatim from foundation-tokens-tier-a2-dark.css.
 * Brand stays brand via var(--brand-dark) — a mode switch never redefines the tenant hue.
 * Locked status palette untouched (ADR-050 §4).
 *
 * WZL-125 #3803: see WorkZoneLogFieldApp.screens.css's own dark-pass comment for why this is
 * now a plain [data-mode="dark"] selector rather than an OS-media-query-driven one guarded by
 * a .theme-light class / [data-mode="light"] value neither of which any real code ever sets.
 */
[data-mode="dark"] .wzl-logrow,
[data-mode="dark"] .wzl-out,
[data-mode="dark"] .wzl-pos,
[data-mode="dark"] .wzl-pkg {
    --acs-color-bg: #0a0e14;
    --acs-color-surface: #0f1520;
    --acs-color-surface-2: #141d2c;
    --acs-color-border: #1e2d42;
    --acs-color-text: #e2e8f0;
    --acs-color-text-muted: #8296b1;
    --acs-color-primary: var(--brand-dark);
    --acs-color-primary-foreground: #06121f;
}

/* Sign cards stay white in dark mode — raster artwork has no alpha to blend. */
[data-mode="dark"] .wzl-slot { background: #ffffff; border-color: #cbd5e1; }
[data-mode="dark"] .wzl-slot__code { color: #1e293b; }

/* ---------------------------------------------------------------- 2d «Nylig brukt» unavailable */
/* WZL-233 #4471: a failed recents read says so in the section's slot (DESIGN_SYSTEM.md:375-381); the catalogue
 * below stays the way in. The «krever» marker beside «Fra planen» is the design's one marker class,
 * .wzl-gatecard__marker, in WorkZoneLogFieldApp.screens.css. */
.wzl-picker__unavailable {
    margin: 0 0 var(--acs-space-3);
    font-size: var(--acs-fs-base);
    color: var(--acs-color-text-muted);
}

/* WZL-284 #6824: the capture sheet's «Flere detaljer», one tap away and collapsed by default. Both hosts link this
 * file (App.razor:18, index.html:26). State is drawn by the chevron and the border style, both in a colour that meets
 * 3:1 on the background; the focus ring is the kit's control outline (platform.css .acs-button:focus-visible). */
.wzl-sheetmore { margin-bottom: var(--acs-space-3); }

.wzl-sheetmore__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--acs-space-2);
    min-height: var(--acs-hit-min);
    width: 100%;
    padding: var(--acs-space-2) var(--acs-space-3);
    background: var(--acs-color-bg);
    color: var(--acs-color-text);
    border: 1px dashed var(--acs-color-text-muted);
    border-radius: var(--acs-radius-md);
    font: inherit;
    font-size: var(--acs-fs-base);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.wzl-sheetmore__toggle::after {
    content: "";
    width: var(--acs-space-2);
    height: var(--acs-space-2);
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.wzl-sheetmore__toggle[aria-expanded="true"] { border-style: solid; }
.wzl-sheetmore__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.wzl-sheetmore__toggle:focus-visible { outline: 2px solid var(--acs-color-primary); outline-offset: 2px; }
.wzl-sheetmore__body { padding-top: var(--acs-space-2); }

/* WZL-288 #6828: 1a's sheet sign chips (design WorkZoneLogFieldPage.razor:100-124, .razor.css:171-203), so one
 * sign is tile → chip → «Registrer». Both hosts link this file (App.razor:18, index.html:26). Selection is brand,
 * never the accent token. Deliberate deviations from the design: the legend and the mark are at the guide's base size,
 * not 11px (the founder's «text too small», WZL-287 #6827); spacing is on the token scale, not the design's 5/7/10px;
 * the chip sets its own text colour and font, which the design left to the browser and which a <button> does not
 * inherit (unreadable in dark mode); and focus is the kit's control outline (platform.css .acs-button:focus-visible). */
.wzl-sheetsigns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--acs-space-2);
    margin: 0 0 var(--acs-space-2);
    padding: 0;
    border: 0;
}

.wzl-sheetsigns > legend {
    width: 100%;
    padding: 0 0 var(--acs-space-2);
    font-family: var(--acs-font-display);
    font-size: var(--acs-fs-base);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--acs-color-text-muted);
}

.wzl-sheetsign {
    display: flex;
    align-items: center;
    gap: var(--acs-space-2);
    min-height: var(--acs-hit-min);
    padding: var(--acs-space-1) var(--acs-space-2) var(--acs-space-1) var(--acs-space-1);
    background: var(--acs-color-bg);
    color: var(--acs-color-text);
    border: 2px solid var(--acs-color-border);
    border-radius: var(--acs-radius-md);
    font: inherit;
    cursor: pointer;
}

.wzl-sheetsign[aria-pressed="true"] {
    border-color: var(--acs-color-primary);
    background: var(--acs-accent-soft);
}

.wzl-sheetsign:focus-visible { outline: 2px solid var(--acs-color-primary); outline-offset: 2px; }
.wzl-sheetsign__name { font-size: var(--acs-fs-base); font-weight: 600; }
.wzl-sheetsign__mark { font-family: var(--acs-font-mono); font-size: var(--acs-fs-base); font-weight: 700; color: var(--acs-color-primary); }

/* WZL-229 #4467: the spacing of the sheet fields WZL-229 ported is on the design tokens (other Bootstrap utilities on 1a
   are not yet ported; #6331 issuecomment-6995744364). A field control and the
   row's close button reach the phone's hit minimum (FIELD-APP.md:52); the button's rule names both classes, because
   the size preset alone would win (as .acs-button.wzl-photo-camera above). */
.wzl-field .wzl-sheetcard { margin-bottom: var(--acs-space-6); }
.wzl-field .wzl-sheetfield { margin-bottom: var(--acs-space-4); }
.wzl-field .wzl-sheetfield__label { display: block; }
.wzl-field .acs-field__control { min-height: var(--acs-hit-min); }
.wzl-field .acs-button.wzl-hit { min-height: var(--acs-hit-min); }
