/* /Pages/Job.razor.rz.scp.css */
.jb[b-oa0ardghgc] { display: flex; flex-direction: column; gap: 12px; }

/* Gradient hero. Square corners: it runs edge-to-edge at the top of a phone screen, where a
   radius would show the white page background in the corners. */
.jb-hero[b-oa0ardghgc] {
    background: linear-gradient(135deg, var(--brand-ink), var(--splash-cobalt));
    border-radius: 0;
    padding: 16px;
    color: #fff;
}

/* Task 8 -- >= 44px touch target: this is the most-used control in the mobile flow, operated
   with gloves. box-sizing: border-box (matching the convention used for sized controls in the
   sibling Today.razor.css/MyAssets.razor.css files) keeps the padding INSIDE the min-height/
   min-width box rather than adding to it, so the declared 44px is the actual rendered floor, not
   just a lower bound that padding could still undermine. display:inline-flex + align-items:center
   centers the "‹ Today" label vertically in that taller box instead of leaving it pinned to the
   top like the old single-line padding did. */
.jb-back[b-oa0ardghgc] {
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--r-sm);
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.jb-no[b-oa0ardghgc] {
    font-family: var(--f-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 12px;
}

.jb-title[b-oa0ardghgc] { font-size: 20px; font-weight: 700; margin-top: 2px; }
.jb-pills[b-oa0ardghgc] { display: flex; gap: 8px; margin-top: 10px; }

/* Generic section card. */
.jb-card[b-oa0ardghgc] {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px;
}

.jb-card-head[b-oa0ardghgc] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.jb-card-title[b-oa0ardghgc] { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.jb-card-sub[b-oa0ardghgc] { font-size: 12px; color: var(--ink-4); font-family: var(--f-mono); }

.jb-asset-name[b-oa0ardghgc] { font-size: 15px; font-weight: 600; color: var(--ink); }
.jb-asset-meta[b-oa0ardghgc] { font-size: 12px; color: var(--ink-4); font-family: var(--f-mono); margin-top: 2px; }

/* Big green primary action. */
.jb-complete[b-oa0ardghgc] {
    width: 100%;
    background: var(--success);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.jb-complete:disabled[b-oa0ardghgc] { opacity: 0.6; cursor: default; }

/* Row of controls (stepper + action). */
.jb-row[b-oa0ardghgc] { display: flex; align-items: center; gap: 8px; }

.jb-step[b-oa0ardghgc] {
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    border-radius: var(--r-sm);
    font-size: 20px; line-height: 1;
    cursor: pointer;
}

.jb-step-val[b-oa0ardghgc] { min-width: 64px; text-align: center; font-weight: 700; font-size: 16px; }
.jb-step-val small[b-oa0ardghgc] { font-weight: 500; color: var(--ink-4); font-size: 11px; }

.jb-go[b-oa0ardghgc], .jb-add[b-oa0ardghgc] {
    margin-left: auto;
    background: var(--brand-ink);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    padding: 0 18px;
    height: 40px;
    font-weight: 600;
    cursor: pointer;
}
.jb-go:disabled[b-oa0ardghgc] { opacity: 0.5; cursor: default; }

/* Add-part / add-note full-width secondary action. */
.jb-add[b-oa0ardghgc] {
    margin-left: 0;
    width: 100%;
    margin-top: 10px;
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--line);
}

/* Hints vs. errors. Both used to be the same 12px amber line, so a refusal ("This job has an open
   permit.") read like a passing tip and users with poor eyesight missed it. Every error in the
   markup carries role="alert", so errors are styled off that attribute: larger, red, on a red-tint
   panel with a border. Plain hints (role="status" or none) stay quiet, in body ink. */
.jb-hint[b-oa0ardghgc] { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.jb-hint[role="alert"][b-oa0ardghgc] {
    font-size: 15px;
    font-weight: 600;
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    border-radius: var(--r-md);
    padding: 10px 12px;
}

/* Expired session. Unlike the offline and pending-sync banners (which ride on .jb-card alone),
   this one needs to stand out: the queue has STOPPED draining until the technician acts. */
.jb-auth-banner[b-oa0ardghgc] {
    border-color: var(--warning);
    color: var(--ink);
    font-size: 13px;
}
.jb-auth-banner a[b-oa0ardghgc] { color: var(--warning); font-weight: 700; }

/* UX 2026-09-23 P8-02: banner shown once a job is finished (Completed/Closed control) -- read-only
   from here on, so this deliberately reads as a calm "done", not a warning. */
.jb-finished[b-oa0ardghgc] { background: #eafaf0; color: #1a7f37; font-weight: 600; }

/* Final Phase 8 review fix (2026-09-26): a queued write for this job was permanently rejected on
   replay (e.g. the job closed while the entry sat offline). Must read as urgent, not a passing
   toast -- this is the ONLY place the technician learns their queued work did not land. */
.jb-rejected-banner[b-oa0ardghgc] {
    border-color: var(--warning);
    background: #fff7ed;
    color: var(--ink);
    font-size: 13px;
}
.jb-rejected-hint[b-oa0ardghgc] { margin-top: 4px; color: var(--ink-4); font-size: 12px; }
.jb-rejected-dismiss[b-oa0ardghgc] {
    margin-top: 8px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: var(--r-sm);
    padding: 6px 14px;
    min-height: 44px;
    font-weight: 600;
    cursor: pointer;
}

.jb-note[b-oa0ardghgc] {
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 0;
}
.jb-note-text[b-oa0ardghgc] { font-size: 14px; color: var(--ink); }
.jb-note-meta[b-oa0ardghgc] { font-size: 11px; color: var(--ink-4); font-family: var(--f-mono); margin-top: 2px; }

.jb-card textarea.r360-input[b-oa0ardghgc] { margin-top: 4px; }

/* Task 26 — recovered-draft banner (localStorage recovery after a dropped connection). Warm
   ("something to review") tone rather than danger red — nothing was lost, it's just pending
   a decision — so it borrows the pill --warning tokens already used for .jb-hint. */
.jb-draft-banner[b-oa0ardghgc] {
    background: var(--warning-bg);
    border-color: var(--warning);
}
.jb-draft-text[b-oa0ardghgc] { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.jb-draft-actions[b-oa0ardghgc] { display: flex; gap: 8px; margin-top: 10px; }
.jb-draft-actions .jb-add[b-oa0ardghgc] { margin-top: 0; flex: 1; width: auto; }
.jb-draft-restore[b-oa0ardghgc] { color: var(--brand-ink); border-color: var(--brand-ink); font-weight: 600; }
.jb-draft-discard[b-oa0ardghgc] { color: var(--ink-3); }

/* Task 28 — clock in/out timer. "Running since HH:MM" takes the stepper-value slot when a timer
   is active; Stop borrows .jb-go's sizing but in the danger tone so it reads as "this ends something"
   rather than the neutral "Log"/"Start" action color. */
.jb-timer-running[b-oa0ardghgc] { color: var(--success); flex: 1; text-align: left; font-size: 14px; }
.jb-timer-stop[b-oa0ardghgc] { background: var(--danger); }

/* Task 4 — failure-code picker Tier 1 chips ("common on this asset"). */
.jb-fc-chips[b-oa0ardghgc] { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
/* >= 44px tall: gloved thumbs. */
.jb-fc-chip[b-oa0ardghgc] {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    font-size: 13px;
}
.jb-fc-chip.is-active[b-oa0ardghgc] { border-color: var(--brand); font-weight: 700; }

/* Task 5 -- completion confirm sheet. A bottom sheet (not a centered modal) so it reads as a
   natural continuation of the page on a phone, matching how the rest of this page's controls
   (jb-complete, jb-card) already sit full-width. Backdrop dismisses on tap, same affordance as
   the sheet's own Cancel button. */
.jb-confirm-backdrop[b-oa0ardghgc] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 40;
}

.jb-confirm[b-oa0ardghgc] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    border-top-left-radius: var(--r-2xl);
    border-top-right-radius: var(--r-2xl);
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(20, 30, 50, 0.18);
    z-index: 41;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jb-confirm-title[b-oa0ardghgc] { font-size: 16px; font-weight: 700; color: var(--ink); }
.jb-confirm-body[b-oa0ardghgc] { font-size: 13px; color: var(--ink-4); font-family: var(--f-mono); margin-bottom: 4px; }

/* Cancel borrows .jb-add's full-width secondary look (transparent, outlined) so the sheet's two
   actions read as primary (green, filled -- reuses .jb-complete) / secondary, same visual
   hierarchy the rest of the page already uses for go/cancel pairs. */
.jb-cancel[b-oa0ardghgc] {
    width: 100%;
    background: transparent;
    color: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Task 3 (P8-03) -- visually hidden input, screen-reader accessible.
   WHY ::deep: <InputFile> is a separate Razor component (Microsoft.AspNetCore.Components.Forms).
   Blazor's CSS isolation only rewrites selectors/attributes for markup written directly in this
   .razor file; it does NOT propagate into markup rendered by a child component's own render tree.
   Without ::deep, the class="jb-visually-hidden" attribute Blazor puts on InputFile's rendered
   <input> never receives the page's scope attribute (e.g. b-xxxx), so this rule silently never
   matched anything and the raw file input (with native "Choose File" chrome) rendered fully
   visible. ::deep tells the Blazor CSS-isolation pipeline to keep the selector unscoped so it can
   reach into descendant markup produced by child components. (Live-tour defect P8-03, task 12.)
   Kept as visibility-hiding (clip/1px), not display:none, so the underlying <input> stays
   focusable and reachable by screen readers/keyboard -- only the label buttons are meant to be
   the visible click targets. */
.jb-visually-hidden[b-oa0ardghgc],
[b-oa0ardghgc] .jb-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Task 3 (P8-03) -- photo button pair. */
.jb-photo-actions[b-oa0ardghgc] {
    display: flex;
    gap: 10px;
}

.jb-photo-btn[b-oa0ardghgc] {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    font-weight: 600;
    background: #fff;
    cursor: pointer;
}

.jb-photo-btn:focus-within[b-oa0ardghgc] {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.jb-photo-preview[b-oa0ardghgc] {
    margin-top: 8px;
    max-width: 100%;
    max-height: 180px;
    border-radius: var(--r-lg);
}

/* Copied from MobilePhotoPanel.razor.css: scoped CSS only styles the component that owns it, so
   this page's use of .mpp-grid/.mpp-thumb was rendering unstyled. */
.mpp-grid[b-oa0ardghgc] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

.mpp-thumb[b-oa0ardghgc] {
    aspect-ratio: 1 / 1;
    border-radius: var(--r-sm);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line);
    display: block;
}
/* /Pages/Me.razor.rz.scp.css */
.me[b-q1acf15b6y] { display: flex; flex-direction: column; gap: 14px; }

/* Gradient profile header, center-aligned. Square corners: it runs edge-to-edge at the top of a
   phone screen, where a radius would show the white page background in the corners. */
.me-hero[b-q1acf15b6y] {
    background: linear-gradient(135deg, var(--brand-ink), var(--splash-cobalt));
    border-radius: 0;
    padding: 22px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.me-avatar[b-q1acf15b6y] {
    width: 64px; height: 64px;
    border-radius: var(--r-pill);
    background: var(--brand);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
}

.me-name[b-q1acf15b6y] { font-size: 20px; font-weight: 700; }
.me-meta[b-q1acf15b6y] { font-size: 13px; color: rgba(255, 255, 255, 0.7); font-family: var(--f-mono); }

/* Stat cards row. */
.me-stats[b-q1acf15b6y] { display: flex; gap: 10px; }
.me-stats .statcard[b-q1acf15b6y] { flex: 1; }

.me-section[b-q1acf15b6y] {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-4);
}

.me-entries[b-q1acf15b6y] { display: flex; flex-direction: column; gap: 8px; }

.me-entry[b-q1acf15b6y] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 10px 12px;
}

.me-entry-date[b-q1acf15b6y] { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.me-entry-no[b-q1acf15b6y] { font-family: var(--f-mono); font-size: 12px; color: var(--brand); }
.me-entry-title[b-q1acf15b6y] { flex: 1; font-size: 14px; color: var(--ink); min-width: 0; }
.me-entry-hrs[b-q1acf15b6y] { font-weight: 700; font-size: 14px; color: var(--ink); }

.me-empty[b-q1acf15b6y] { color: var(--ink-4); font-size: 14px; }
/* A warning (unsent work before sign-out, nothing saved offline) must stand out from the quiet
   empty-state text, for users with poor eyesight -- same treatment as Job/MyAssets errors. */
.me-empty[role="alert"][b-q1acf15b6y] {
    font-size: 15px;
    font-weight: 600;
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    border-radius: var(--r-md);
    padding: 10px 12px;
    margin-bottom: 10px;
}

/* Task 8 (P8-08/P8-09): the Account section -- role/plant(s)/email rows plus the two
   account-security links. */
.me-account[b-q1acf15b6y] {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.me-account-row[b-q1acf15b6y] { font-size: 14px; color: var(--ink); display: flex; gap: 8px; }
.me-account-label[b-q1acf15b6y] { color: var(--ink-4); min-width: 48px; }

.me-account-links[b-q1acf15b6y] { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }

/* Plain <a> per the project's "buttons look like buttons, links look like links" convention --
   these navigate, they don't act. 44px minimum tap target for touch use. */
.me-account-link[b-q1acf15b6y] {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.me-account-hint[b-q1acf15b6y] { font-size: 12px; color: var(--ink-4); font-style: italic; margin-top: -4px; }

.me-signout-form[b-q1acf15b6y] { margin: 8px 0 0; }
.me-signout[b-q1acf15b6y] {
    width: 100%;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
}
/* /Pages/MyAssets.razor.rz.scp.css */
.as[b-yus98bqquj] { display: flex; flex-direction: column; gap: 10px; }

.as-h1[b-yus98bqquj] { font-size: 24px; font-weight: 700; color: var(--ink); }
.as-sub[b-yus98bqquj] { font-size: 13px; color: var(--ink-4); margin-bottom: 6px; }

/* Scan button (dark, full width). */
.as-scan[b-yus98bqquj] {
    background: var(--brand-ink);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.as-scan:disabled[b-yus98bqquj] { opacity: 0.7; }

.as-video[b-yus98bqquj] { width: 100%; border-radius: var(--r-md); margin-top: 6px; }
.as-video.hidden[b-yus98bqquj] { display: none; }

/* Same hint-vs-error split as Job.razor.css: an error (role="alert") must not look like a tip. */
.as-hint[b-yus98bqquj] { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.as-hint[role="alert"][b-yus98bqquj] {
    font-size: 15px;
    font-weight: 600;
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    border-radius: var(--r-md);
    padding: 10px 12px;
}

/* Task 6: search box + All-plants toggle row, same visual language as Today's quick-search
   (.td-search-input) and the report sheet's segmented urgency control (.as-seg-btn). */
.as-search-row[b-yus98bqquj] { display: flex; gap: 8px; align-items: center; }

.as-search-input[b-yus98bqquj] {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 11px 14px;
    font-size: 16px; /* 16px minimum: iOS Safari zooms the page into any field smaller than that */
    font-family: inherit;
    color: var(--ink-1, #1f2733);
}

.as-plant-toggle[b-yus98bqquj] {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
}

/* "On" = All plants is active (scoping relaxed) -- same active-state colour as .as-seg-btn.is-on. */
.as-plant-toggle.is-on[b-yus98bqquj] {
    background: var(--brand-ink);
    color: #fff;
    border-color: var(--brand-ink);
}

.as-list-empty[b-yus98bqquj] { color: var(--ink-4); font-size: 14px; padding: 8px 2px; }

.as-list[b-yus98bqquj] { display: flex; flex-direction: column; gap: 8px; }

/* Now a real <button> (was a bare <div @onclick>). width/text-align/font resets undo the
   browser's default button chrome so the row still looks and lays out exactly like the old div. */
.as-card[b-yus98bqquj] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    cursor: pointer;
}

.as-card:focus-visible[b-yus98bqquj] {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.as-info[b-yus98bqquj] { flex: 1; min-width: 0; }
.as-name[b-yus98bqquj] { font-size: 15px; font-weight: 600; color: var(--ink); }
.as-meta[b-yus98bqquj] { font-size: 12px; color: var(--ink-4); font-family: var(--f-mono); margin-top: 2px; }

/* Bottom sheet + scrim. */
.as-scrim[b-yus98bqquj] {
    position: fixed; inset: 0;
    background: color-mix(in srgb, var(--brand-ink) 45%, transparent);
    z-index: 40;
}

.as-sheet[b-yus98bqquj] {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 41;
    background: var(--paper);
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-cover);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.as-sheet-grab[b-yus98bqquj] {
    width: 40px; height: 4px;
    border-radius: var(--r-pill);
    background: var(--line-strong);
    align-self: center;
    margin-bottom: 4px;
}

.as-sheet-kicker[b-yus98bqquj] {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
}

.as-sheet-title[b-yus98bqquj] { font-size: 18px; font-weight: 700; color: var(--ink); }

.as-field-label[b-yus98bqquj] { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* Segmented urgency control. */
.as-seg[b-yus98bqquj] { display: flex; gap: 8px; }

.as-seg-btn[b-yus98bqquj] {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
}

.as-seg-btn.is-on[b-yus98bqquj] {
    background: var(--brand-ink);
    color: #fff;
    border-color: var(--brand-ink);
}

.as-submit[b-yus98bqquj] {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}
.as-submit:disabled[b-yus98bqquj] { opacity: 0.6; }

/* Secondary/ghost Cancel control -- the real accessible exit from the sheet (Escape works too,
   but a low-vision user can't see a key they can't visibly discover; see Job.razor's .jb-cancel
   for the same transparent/outlined "secondary action" look reused here). min-height keeps the
   44x44px touch target even though the visual padding alone would fall a little short. */
.as-cancel[b-yus98bqquj] {
    width: 100%;
    min-height: 44px;
    background: transparent;
    color: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
/* /Pages/Today.razor.rz.scp.css */
.td[b-dyrbote7k3] { display: flex; flex-direction: column; gap: 14px; }

/* Gradient hero block (navy → cobalt). Square corners: on a phone the hero runs edge-to-edge at
   the top of the screen, so any radius shows the white page background in its corners. */
.td-hero[b-dyrbote7k3] {
    background: linear-gradient(135deg, var(--brand-ink), var(--splash-cobalt));
    border-radius: 0;
    padding: 18px;
    color: #fff;
}

.td-kicker[b-dyrbote7k3] {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.td-greeting[b-dyrbote7k3] {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 14px;
}

.td-chips[b-dyrbote7k3] { display: flex; gap: 10px; }

.td-chip[b-dyrbote7k3] {
    flex: 1;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.td-chip-n[b-dyrbote7k3] { font-size: 20px; font-weight: 700; }
.td-chip-l[b-dyrbote7k3] { font-size: 11px; color: rgba(255, 255, 255, 0.7); }

.td-search[b-dyrbote7k3] { position: relative; }

.td-search-input[b-dyrbote7k3] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 11px 14px;
    font-size: 16px; /* 16px minimum: iOS Safari zooms the page into any field smaller than that */
    font-family: inherit;
    color: var(--ink-1, #1f2733);
}

.td-search-results[b-dyrbote7k3] {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgba(20, 30, 50, 0.12);
    z-index: 20;
    overflow: hidden;
}

.td-search-result[b-dyrbote7k3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f6;
}

.td-search-result:last-child[b-dyrbote7k3] { border-bottom: none; }
.td-search-result:hover[b-dyrbote7k3] { background: #f7f9fb; }

.td-search-result-name[b-dyrbote7k3] { font-size: 13px; color: var(--ink-1, #1f2733); }
.td-search-result-id[b-dyrbote7k3] { font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); }

.td-search-empty[b-dyrbote7k3] {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    font-size: 12px;
    color: var(--ink-4);
    padding: 4px 2px;
}

.td-section[b-dyrbote7k3] {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-4);
    margin: 0;
}

/* Task 5 -- post-completion toast + Undo. Success-tinted (a completion IS good news), matching
   the warm/success tone vocabulary already used elsewhere (jb-timer-running uses --success on the
   Job page). Sits inline in the page flow rather than floating, since Today's layout has no fixed
   toast host and a page that already scrolls doesn't need one for a message this important to read. */
.td-toast[b-dyrbote7k3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--success-bg, #e6f7ec);
    border: 1px solid var(--success);
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--ink);
}

.td-undo[b-dyrbote7k3] {
    background: transparent;
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: var(--r-sm);
    padding: 6px 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    /* >= 44px tall isn't achievable at this padding without dominating the toast row, but the
       horizontal hit target is still generous for a single short word -- matches the toast's own
       compact intent rather than the card-level tap targets elsewhere on this page. */
}
.td-undo:disabled[b-dyrbote7k3] { opacity: 0.6; cursor: default; }

/* Rejected undo: same shape as the success toast, warning tone instead -- no action control, since
   a rejected undo has nothing left to retry (see OnUndoAsync's remarks). */
.td-toast-error[b-dyrbote7k3] {
    background: var(--warning-bg, #fff4e5);
    border-color: var(--warning);
    color: var(--ink);
}

.td-list[b-dyrbote7k3] { display: flex; flex-direction: column; gap: 10px; }

.td-empty[b-dyrbote7k3] { color: var(--ink-4); font-size: 14px; }

/* Job cards: this page renders the mjc-* markup directly (no MobileJobCard component --
   that component is Server-only, WASM can't reference Reliability360.Web), so the card's
   chrome styles are folded in here rather than left scoped away in MobileJobCard.razor.css. */
.mjc[b-dyrbote7k3] {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--pri-medium);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    cursor: pointer;
}

.mjc-top[b-dyrbote7k3] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mjc-no[b-dyrbote7k3] {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--brand);
}

.mjc-spacer[b-dyrbote7k3] { flex: 1; }

.mjc-title[b-dyrbote7k3] {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 6px;
}

.mjc-asset[b-dyrbote7k3] {
    font-size: 12px;
    color: var(--ink-4);
    margin-top: 2px;
    font-family: var(--f-mono);
}

/* Task 8 -- WASM cold-start skeleton (see the markup comment in Today.razor for why). Pure CSS
   pulse, no JS: this is perceived-performance polish only, not a bundle-size or load-order
   optimization. .td-skeleton-hero mimics .td-hero's rough footprint; .td-skeleton-card reuses
   .mjc's own card chrome (border/radius/padding) and layers three bars inside it that mimic the
   WO number / title / asset line rows of a real .mjc card once data loads. */
.td-skeleton-hero[b-dyrbote7k3] {
    height: 104px;
    border-radius: 0; /* square, matching .td-hero */
    background: var(--paper-2);
    animation: td-skeleton-pulse-b-dyrbote7k3 1.4s ease-in-out infinite;
}

.td-skeleton-card[b-dyrbote7k3] {
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-skeleton-bar[b-dyrbote7k3] {
    height: 12px;
    border-radius: var(--r-sm);
    background: var(--paper-2);
    animation: td-skeleton-pulse-b-dyrbote7k3 1.4s ease-in-out infinite;
}

.td-skeleton-bar--top[b-dyrbote7k3] { width: 35%; }
.td-skeleton-bar--title[b-dyrbote7k3] { width: 80%; height: 14px; }
.td-skeleton-bar--asset[b-dyrbote7k3] { width: 55%; }

@keyframes td-skeleton-pulse-b-dyrbote7k3 {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
/* /Shared/MoreSheet.razor.rz.scp.css */
/* The panel's look (--paper background, 24px top radius, --line grabber colour, the app's
   r360sheet slide-up entrance animation) comes from the existing "Side drawer / sheet"
   design-system block in app.css via the .sheet class -- this file only adds what that block
   can't know about: the popover positioning overrides and the tappable list row.

   No z-index rule is needed (or would even work): an open popover sits in the browser's top
   layer, above every stacking context on the page including .r360-tabbar. */

/* ---- Popover fallback guard --------------------------------------------------------------
   A browser without the popover API ignores the `popover` attribute entirely, which would leave
   this panel rendered permanently open across the bottom of every field-tech page. Hiding it by
   default and revealing it only through :popover-open fixes that: a browser that doesn't
   understand the popover API also can't parse :popover-open, so it drops the second rule and the
   panel stays hidden -- the More button is inert (the pre-existing behaviour) rather than the
   screen being covered by a sheet that can never be closed. Supported browsers match the more
   specific :popover-open rule while open, so it wins over the display:none above. */
.ms-sheet[b-5sesffkue2] {
    display: none;
}

.ms-sheet:popover-open[b-5sesffkue2] {
    display: block;
}

/* The UA stylesheet centres a popover in the viewport (inset: 0; margin: auto; width: fit-content)
   and gives it a solid border. Override all of that to pin the panel to the bottom edge, full
   width, so it reads as the same bottom sheet the desktop chassis shows. max-height keeps a long
   destination list scrollable instead of running off the top of a short phone screen. */
.ms-sheet[b-5sesffkue2] {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0;
    border: none;
    /* .sheet's own padding, restated because the UA popover style sets a padding of its own. */
    padding: 20px 18px 30px;
}

.ms-sheet[b-5sesffkue2]::backdrop {
    /* Same value as app.css's .scrim, which the popover's own backdrop replaces here. A literal,
       not var(--brand-ink): ::backdrop only inherits custom properties in Chrome 122+ / Safari
       17.4+, and on an older field phone the var() would void the rule and drop the scrim.
       CssTokenUsageTests exempts ::backdrop rules for this reason. */
    background: rgba(10, 37, 64, 0.5);
}

/* >= 44px tall: this is a gloved-thumb target list. Full-bleed within .sheet's own inset padding,
   so rows still read as a single flush list even though the sheet panel itself isn't edge-to-edge
   with the screen. */
.ms-item[b-5sesffkue2] {
    display: block;
    padding: 14px 6px;
    min-height: 44px;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line-soft);
}

.ms-item:last-child[b-5sesffkue2] {
    border-bottom: none;
}
