h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================================
   P7 shell overrides (tokens only - never hardcode colors/sizes).
   These supplement the design system (ef-dd dropdown, AI slot,
   cross-product iframe, button icon spacing).
   ============================================================ */

/* Button icon wrapper (EfButton Icon slot). */
.btn-ico { display: inline-flex; align-items: center; }
.btn-ico svg { width: 15px; height: 15px; }

/* Dropdown (EfDropdown) - a header menu anchored to its trigger. */
.ef-dd { position: relative; display: inline-flex; }
.ef-dd-scrim { position: fixed; inset: 0; z-index: 200; background: transparent; }
.ef-dd-menu {
    position: absolute;
    top: calc(100% + var(--ef-space-4));
    right: 0;
    z-index: 201;
    min-width: 200px;
    background: var(--ef-surface);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-10);
    box-shadow: var(--ef-shadow-2);
    padding: var(--ef-space-4);
    display: flex;
    flex-direction: column;
}
.ef-dd-head {
    font-size: var(--ef-text-12);
    font-weight: 600;
    color: var(--ef-text-muted);
    padding: var(--ef-space-8) var(--ef-space-12);
    border-bottom: 1px solid var(--ef-border);
    margin-bottom: var(--ef-space-4);
}
.ef-dd-item {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: var(--ef-space-8) var(--ef-space-12);
    font-size: var(--ef-text-13);
    color: var(--ef-text);
    border-radius: var(--ef-radius-6);
    background: transparent;
}
.ef-dd-item:hover { background: var(--ef-surface-2); text-decoration: none; }
.ef-dd-item:focus-visible { outline: 2px solid var(--ef-color-focus); outline-offset: -2px; }
/* Leading inline-SVG icon on a dropdown item (A1 admin dropdown). */
.ef-dd-item { gap: var(--ef-space-8); }
.ef-dd-item svg { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.8; }
.ef-dd-sep {
    height: 1px;
    margin: var(--ef-space-4) 0;
    background: var(--ef-border);
}
.ef-dd-empty {
    padding: var(--ef-space-8) var(--ef-space-12);
    font-size: var(--ef-text-12);
    color: var(--ef-text-muted);
}

/* AI side-panel slot (placeholder for 7.5). */
.ai-panel-slot {
    grid-row: 2;
    width: 360px;
    border-left: 1px solid var(--ef-border);
    background: var(--ef-surface);
    overflow-y: auto;
}

/* Cross-product viewer iframe (EUI#118). The parent .dv-vp is a flex ROW with align-items:flex-start (so a
   .doc-page mock centers horizontally and pins to the top); align-self:stretch overrides that for the REAL
   viewer so the iframe fills .dv-vp's full height instead of collapsing to min-height and leaving a dead band
   below the document. */
.cross-product-frame { width: 100%; height: 100%; align-self: stretch; min-height: 480px; border: 0; }

/* ============================================================
   Dashboard (7.2) - workflow cards, queue panel, work-items grid, action bar, work-item view.
   CSS tokens only (--ef-*); no hardcoded colors/spacing (design-system rule).
   ============================================================ */

/* Workflow cards */
.wf-cards-section { display: flex; flex-direction: column; gap: var(--ef-space-12); }
.wf-cards-head { display: flex; align-items: center; justify-content: space-between; }
.wf-cards-title { margin: 0; font-size: var(--ef-text-16); font-weight: 600; color: var(--ef-text); }
.wf-cards-toggle { display: inline-flex; gap: 2px; }
.wf-count-mode {
    border: 1px solid var(--ef-border); background: var(--ef-surface); color: var(--ef-text-muted);
    font-size: var(--ef-text-12); padding: var(--ef-space-4) var(--ef-space-8); cursor: pointer;
    border-radius: var(--ef-radius-6);
}
.wf-count-mode.active { background: var(--ef-color-primary); color: #fff; border-color: var(--ef-color-primary); }
.wf-cards-empty { padding: var(--ef-space-24); text-align: center; }
.wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--ef-space-16); }
.wf-card { display: flex; flex-direction: column; gap: var(--ef-space-12); padding: var(--ef-space-16); }
.wf-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ef-space-8); }
.wf-card-info { display: flex; flex-direction: column; gap: var(--ef-space-4); }
.wf-card-name {
    border: 0; background: none; padding: 0; text-align: left; cursor: pointer;
    font-size: var(--ef-text-15); font-weight: 600; color: var(--ef-text);
}
.wf-card-name:hover { color: var(--ef-color-primary); text-decoration: underline; }
.wf-card-mine { display: flex; flex-direction: column; align-items: flex-end; }
.wf-card-mine-num { font-size: var(--ef-text-20); font-weight: 700; color: var(--ef-color-primary); }
.wf-card-mine-lbl { font-size: var(--ef-text-11); color: var(--ef-text-muted); }
.wf-card-queues { display: flex; flex-wrap: wrap; gap: var(--ef-space-4); }
.wf-card-queue-tag {
    font-size: var(--ef-text-11); color: var(--ef-text-muted);
    background: var(--ef-surface-2); border-radius: var(--ef-radius-6); padding: 2px var(--ef-space-8);
}
.wf-card-open { align-self: flex-start; }

/* Selected-workflow layout: queue panel + main grid */
.dash-wf-layout { display: flex; gap: var(--ef-space-16); align-items: flex-start; height: 100%; }
.dash-wf-main { flex: 1; min-width: 0; }
.dash-loading, .dash-pick-queue { padding: var(--ef-space-24); }
.dash-loading { display: flex; align-items: center; gap: var(--ef-space-8); }
.dash-loading-spinner { width: 18px; height: 18px; }

/* Queue panel */
.queue-panel {
    width: 220px; min-width: 220px; background: var(--ef-surface); border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-10); padding: var(--ef-space-8); display: flex; flex-direction: column; gap: 2px;
}
.queue-panel-head {
    font-size: var(--ef-text-11); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ef-text-muted); padding: var(--ef-space-8);
}
/* PATH GROUP heading. Same typographic treatment as the panel head so the sidebar reads as one hierarchy, with
   a rule above to separate groups. The first group needs no rule (the panel head already divides it). */
.queue-panel-group {
    font-size: var(--ef-text-11); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ef-text-muted); padding: var(--ef-space-8) var(--ef-space-8) var(--ef-space-4);
    margin-top: var(--ef-space-8); border-top: 1px solid var(--ef-border);
    /* A long path name is ellipsised in the 220px sidebar; the heading's title shows it whole (#95 / legacy #23). */
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.queue-panel-group:first-of-type { margin-top: 0; border-top: 0; }

.queue-panel-filter { padding: 0 var(--ef-space-4) var(--ef-space-4); }
.queue-panel-filter .fi { width: 100%; }
/* A compact input: the sidebar is 220px, so the standard 34px control is out of proportion here. */
.fi-sm { height: 28px; font-size: var(--ef-text-12); }

.queue-panel-empty {
    font-size: var(--ef-text-12); color: var(--ef-text-muted); padding: var(--ef-space-8); margin: 0;
}

.queue-item {
    display: flex; align-items: center; justify-content: space-between; gap: var(--ef-space-8);
    border: 0; background: none; cursor: pointer; text-align: left; width: 100%;
    padding: var(--ef-space-8); border-radius: var(--ef-radius-6); font-size: var(--ef-text-13); color: var(--ef-text);
}
.queue-item:hover { background: var(--ef-surface-2); }
.queue-item.active { background: var(--ef-color-primary); color: #fff; }
.queue-item-count {
    font-size: var(--ef-text-11); font-weight: 600; background: var(--ef-surface-2); color: var(--ef-text);
    border-radius: var(--ef-radius-6); padding: 1px var(--ef-space-8); min-width: 22px; text-align: center;
}
.queue-item.active .queue-item-count { background: rgba(255,255,255,0.25); color: #fff; }
/* Keyboard focus ring on the queue list (was missing; the active item's solid bg hid keyboard position). */
.queue-item:focus-visible { outline: 2px solid var(--ef-color-focus); outline-offset: -2px; }

/* A queue ROW: the select button plus a sibling Hide button (a button cannot nest inside the row button). The Hide
   button is always rendered and focusable, revealed on row hover / focus-within, and always shown on touch. */
.queue-row { display: flex; align-items: center; gap: 2px; }
.queue-row > .queue-item { flex: 1; min-width: 0; }
.queue-hide-btn {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--ef-radius-4);
    background: none; color: var(--ef-text-muted); cursor: pointer; opacity: 0; transition: opacity 150ms;
}
.queue-row:hover .queue-hide-btn, .queue-row:focus-within .queue-hide-btn, .queue-row-hidden .queue-hide-btn { opacity: 1; }
.queue-hide-btn:hover { background: var(--ef-surface-2); color: var(--ef-text); }
.queue-hide-btn:focus-visible { outline: 2px solid var(--ef-color-focus); outline-offset: -2px; }
@media (hover: none) { .queue-hide-btn { opacity: 1; } }
/* A hidden queue shown via Show hidden (or the selected one kept until the user leaves it): dimmed. */
.queue-row-hidden > .queue-item { opacity: 0.6; }
.queue-row-hidden > .queue-item:hover, .queue-row-hidden > .queue-item.active { opacity: 1; }
.queue-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ef-space-8); }
.queue-panel-hidden { font-weight: 400; text-transform: none; letter-spacing: 0; }
.queue-panel-showhidden { padding: 0 var(--ef-space-8) var(--ef-space-4); }
.queue-panel-showhidden-label { font-size: var(--ef-text-12); color: var(--ef-text); }

/* ── DASHBOARD RESPONSIVE ─────────────────────────────────────
   app.css previously had NO breakpoints, so the queue panel + grid never restacked. Below 768px stack the
   layout and let the queue panel span full width (a horizontal strip above the grid) instead of a fixed 220px
   column squeezing the grid. */
@media (max-width: 768px) {
    .dash-wf-layout { flex-direction: column; height: auto; }
    .queue-panel { width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; }
    .dash-wf-main { width: 100%; }
}

/* Work-items grid */
.wi-table-wrap { display: flex; flex-direction: column; gap: var(--ef-space-12); }
.wi-fbar-count { font-size: var(--ef-text-12); color: var(--ef-text-muted); }
/* The grid card scrolls HORIZONTALLY when the columns exceed the viewport (owner: col widths may push past the
   screen edge and that's OK). overflow-x:auto gives the L/R scrollbar; the card itself never forces the page body
   to scroll sideways (the scroll is contained here). Was overflow:hidden, which clipped wide grids + blocked scroll. */
.wi-grid-card { overflow-x: auto; overflow-y: hidden; }
/* table-layout:fixed makes the browser HONOR each column's explicit width (from VisualWidth / a persisted resize)
   LITERALLY instead of the auto-layout algorithm shrinking it back to fit content - that shrink was the "width
   snaps back" bug. width:max-content lets the table grow past the card so wide columns trigger the H-scroll above;
   min-width:100% keeps it filling the card when the columns are narrow. */
.wi-grid { table-layout: fixed; width: max-content; min-width: 100%; }
/* A fixed-layout cell must clip/ellipsis its own overflow (it no longer auto-expands to fit content). */
.wi-grid-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-grid-select { width: 36px; min-width: 36px; text-align: center; }
.wi-grid-col { position: relative; }
.wi-grid-sort {
    border: 0; background: none; cursor: pointer; font: inherit; color: inherit;
    display: inline-flex; align-items: center; gap: var(--ef-space-4); padding: 0;
}
.wi-grid-sort-ico { font-size: var(--ef-text-11); color: var(--ef-color-primary); }
/* Multi-column sort rank badge (1,2,3…) shown next to the ▲/▼ when >1 sort key is active. */
.wi-grid-sort-rank {
    font-size: 9px; font-weight: 700; color: var(--ef-color-primary);
    margin-left: 1px; vertical-align: super; line-height: 1;
}
.wi-grid-grip {
    position: absolute; right: 0; top: 0; bottom: 0; width: 6px; cursor: col-resize; user-select: none;
}
.wi-grid-grip:hover { background: var(--ef-color-primary); opacity: 0.4; }
.wi-grid-row { cursor: pointer; }
.wi-grid-row.selected { background: var(--ef-surface-2); }
/* Show completed items: a completed row reads as finished (muted) and carries a "Completed" badge by its Open button. */
.wi-grid-row-done { color: var(--ef-text-muted); }
.wi-done-badge {
    display: inline-block; margin-right: var(--ef-space-4); padding: 0 var(--ef-space-4);
    font-size: var(--ef-text-11); border: 1px solid var(--ef-border); border-radius: 999px; color: var(--ef-text-muted);
}
.wi-show-completed {
    display: inline-flex; align-items: center; gap: var(--ef-space-4);
    font-size: var(--ef-text-12); color: var(--ef-text-muted); white-space: nowrap; cursor: pointer;
}
/* Icon-cell images (FieldType 10 authored icon markup) render small + inline. */
.wi-cell-icon { max-height: 20px; max-width: 20px; vertical-align: middle; margin-right: 2px; }

/* Icon-filter pills (owner: live INLINE in the .fbar filter row, not a separate bar below). A clickable pill per
   distinct icon; shown only when the grid has icons. An active pill is highlighted; clicking toggles that icon into
   the OR-match filter. No block margin — it is a flex child of .fbar and aligns to that row's baseline/gap. */
.wi-icon-filter { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--ef-space-4); }
.wi-icon-filter-opt {
    display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px;
    padding: 0 var(--ef-space-4); border: 1px solid var(--ef-border); border-radius: var(--ef-radius-6);
    background: var(--ef-surface); cursor: pointer; line-height: 1;
}
.wi-icon-filter-opt:hover { border-color: var(--ef-color-primary); }
.wi-icon-filter-opt.active { border-color: var(--ef-color-primary); background: var(--ef-color-primary-bg); }
.wi-icon-filter-clear {
    border: 0; background: none; cursor: pointer; font-size: var(--ef-text-12); color: var(--ef-text-muted);
    padding: 0 var(--ef-space-8);
}
.wi-icon-filter-clear:hover { color: var(--ef-color-primary); }

/* Column manager dropdown */
.wi-col-mgr { min-width: 240px; padding: var(--ef-space-8); display: flex; flex-direction: column; gap: 2px; }
.wi-col-mgr-row {
    display: flex; align-items: center; justify-content: space-between; gap: var(--ef-space-8);
    padding: 2px 4px; border-radius: var(--ef-radius-6); border: 1px solid transparent;
}
.wi-col-mgr-row.dragging { opacity: 0.5; }
.wi-col-mgr-row.drag-over { border-color: var(--ef-color-primary); background: var(--ef-surface-2); }
/* Keyboard focus ring on the reorderable row (rows are tabindex=0 for Alt+Arrow reorder). */
.wi-col-mgr-row:focus-visible { outline: none; border-color: var(--ef-color-primary); box-shadow: 0 0 0 2px var(--ef-color-focus); }
.wi-col-drag-handle { cursor: grab; color: var(--ef-text-muted); font-size: var(--ef-text-13); user-select: none; }
.wi-col-drag-handle:active { cursor: grabbing; }
.wi-col-mgr-vis { display: flex; align-items: center; gap: var(--ef-space-8); font-size: var(--ef-text-13); cursor: pointer; flex: 1; }
.wi-col-mgr-move { display: inline-flex; gap: 2px; }
.wi-col-mgr-hint { margin: var(--ef-space-8) 4px 0; font-size: var(--ef-text-11); }
.wi-col-reset { margin-top: var(--ef-space-8); }

/* Action bar */
.wi-action-bar {
    display: flex; align-items: center; gap: var(--ef-space-8); flex-wrap: wrap;
    padding: var(--ef-space-8) var(--ef-space-12); background: var(--ef-surface-2);
    border: 1px solid var(--ef-border); border-radius: var(--ef-radius-10);
}
.wi-action-count { font-size: var(--ef-text-12); color: var(--ef-text-muted); }
.wi-action-divider { width: 1px; align-self: stretch; background: var(--ef-border); margin: 0 var(--ef-space-4); }
.wi-queue-btn { border: 1px solid var(--ef-border); }
/* Destructive manager actions (End Instance / End Item). */
.wi-action-danger { color: var(--ef-color-danger, #dc2626); }
.wi-action-danger:not(:disabled):hover { background: var(--ef-color-danger, #dc2626); color: #fff; }

/* Work-item view */
.wi-view-loading { padding: var(--ef-space-24); }
.dv-toolbar { display: flex; align-items: center; gap: var(--ef-space-8); padding: var(--ef-space-8) var(--ef-space-12); border-bottom: 1px solid var(--ef-border); }
.wi-view-id { font-size: var(--ef-text-13); font-weight: 600; color: var(--ef-text); }
/* Workflow started / in queue since / owned since (#95 / legacy #9; EUI parity), in the viewer's display zone. */
.wi-view-details { display: inline-flex; flex-wrap: wrap; gap: var(--ef-space-8); font-size: var(--ef-text-11, 11px); }
.wi-view-submit { border: 1px solid var(--ef-border); }
.wi-view-fields { display: flex; flex-direction: column; gap: var(--ef-space-12); }
.wi-view-field { display: flex; flex-direction: column; gap: var(--ef-space-4); }
/* Real <label> now (was a span); keep the compact muted look the inspector already used. */
.wi-view-field-label { font-size: var(--ef-text-11); color: var(--ef-text-muted); font-weight: 500; }
.wi-view-field-req { color: var(--ef-color-danger); font-weight: 700; }
.wi-view-field-value { font-size: var(--ef-text-13); color: var(--ef-text); }
.wi-view-comment { padding: var(--ef-space-8) 0; border-bottom: 1px solid var(--ef-border); }
.wi-view-comment-head { display: flex; justify-content: space-between; gap: var(--ef-space-8); font-size: var(--ef-text-12); }
.wi-view-comment-text { font-size: var(--ef-text-13); color: var(--ef-text); margin-top: var(--ef-space-4); }
.wi-view-add-comment { display: flex; flex-direction: column; gap: var(--ef-space-8); margin-top: var(--ef-space-12); }
/* History GROUPED BY INSTANCE (owner 2026-07-17): a per-instance HEADER (the queue) with its events nested
   beneath — matching legacy + EUI. */
/* Collapsible instance header — a full-width button (queue name + event count + caret). */
.wi-view-history-inst-hdr { display: flex; align-items: baseline; gap: var(--ef-space-8); width: 100%; margin-top: var(--ef-space-8); padding: 4px 0 2px; border: none; border-bottom: 1px solid var(--ef-border); background: none; cursor: pointer; text-align: left; }
.wi-view-history-inst-hdr:first-child { margin-top: 0; }
/* The History / Comments order toggle (#95 / legacy #20a): above its list, right-aligned, out of the list's flow. */
.wi-view-order-toggle { display: block; margin: 0 0 var(--ef-space-8) auto; }
.wi-view-history-inst-hdr:hover .wi-view-history-inst-queue { text-decoration: underline; }
.wi-view-history-inst-caret { font-size: 9px; color: var(--ef-text-muted); flex-shrink: 0; }
.wi-view-history-inst-queue { font-weight: 700; color: var(--ef-color-primary, #2563eb); font-size: var(--ef-text-11, 11px); text-transform: uppercase; letter-spacing: 0.03em; }
.wi-view-history-inst-count { margin-left: auto; font-size: var(--ef-text-11, 11px); color: var(--ef-text-muted); }
.wi-view-history-inst-events { padding-left: var(--ef-space-8); border-left: 2px solid var(--ef-border); margin-left: 2px; }
/* History entry — a vertical stack so nothing overlaps in the narrow (~300px) inspector: a HEAD line (event type
   left, timestamp right via space-between, both nowrap so they never collide), then the detail + actor WRAPPING
   full-width beneath. */
.wi-view-history-row { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--ef-border); font-size: var(--ef-text-12); }
.wi-view-history-inst-events .wi-view-history-row:last-child { border-bottom: none; }
.wi-view-history-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ef-space-8); }
.wi-view-history-type { font-weight: 600; color: var(--ef-text); }
.wi-view-history-date { white-space: nowrap; flex-shrink: 0; color: var(--ef-text-muted); font-size: var(--ef-text-11, 11px); }
/* Detail + actor wrap full-width beneath the head line (a long "Ownership taken by …" no longer collides with the date). */
.wi-view-history-detail { color: var(--ef-text-muted); overflow-wrap: anywhere; word-break: break-word; white-space: pre-line; }
.wi-view-history-actor { font-size: var(--ef-text-11, 11px); color: var(--ef-text-muted); overflow-wrap: anywhere; }
/* A row a workflow rule wrote (#90): italic, so it never reads as a person's own comment or action. */
.wi-view-rule-author { font-style: italic; }
/* The persistent EasyFile viewer (js/ef-viewer.js): ONE frame per tab, appended to <body> and laid position:fixed over the
   work item's viewer slot. Below the header (z 100) and its menus (z 200+) and every modal (z 9000, where the script
   also hides it and makes it inert), above the page content it covers. Hidden = visibility:hidden, never display:none. */
.ef-persistent-frame { position: fixed; border: 0; z-index: 40; background: var(--ef-surface); visibility: hidden; }
/* The slot reserves the viewer's space in the work item; the frame is drawn over it. Fills .dv-vp like the per-item iframe. */
.ef-viewer-slot { position: relative; flex: 1 1 auto; align-self: stretch; width: 100%; min-height: 480px; }
.ef-viewer-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ef-space-8); padding: var(--ef-space-12); }
.ef-viewer-still-loading { display: inline-flex; align-items: center; gap: var(--ef-space-8); color: var(--ef-text-muted); }
.ef-viewer-notice { display: flex; align-items: center; gap: var(--ef-space-8); padding: var(--ef-space-8) var(--ef-space-12); border: 1px solid var(--ef-color-warn-text); border-radius: 6px; background: var(--ef-surface); position: relative; z-index: 41; }
/* "Go to document": hidden until focused, so keyboard users reach the frame even though it sits at the end of <body>. */
.ef-viewer-focus { position: absolute; left: var(--ef-space-8); top: var(--ef-space-8); transform: translateY(-200%); opacity: 0; z-index: 41; }
.ef-viewer-focus:focus { transform: none; opacity: 1; }
