/* The staff app's polish to 5, Phase 1e (GitHub issue 203; docs/adr/0081). Loaded after the staff pages' own sheets
   (work-pages.css, ticket-list.css, ticket-page.css), so it can fit their parts; sizes are the tokens (tokens.css),
   colors the palette's (styles.css :root), as everywhere. */

/* ---------- The Linked card (ticket-page.js) ---------- */
/* The problem's × sits beside it, like a ticket's. */
.tp .tp-linked .problem-link-card:has(> .tp-unlink-problem) { display:flex; align-items:flex-start; gap:var(--space-100); }
.tp .tp-linked .problem-link-card:has(> .tp-unlink-problem) > p { flex:1; min-width:0; margin:0; }
/* The words in a side card's rows in the dark theme (#34404c, written for the light one, read at 1.55:1). */
[data-theme="dark"] .detail-side-card > div b { color:var(--ink); }

/* ---------- A dialog's own buttons: Cancel, then what it does, at the right (workflow.js) ---------- */
.wf-dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:var(--space-100); margin-top:var(--space-250); }

/* ---------- One list look (the Overview's and My workspace's rows are home-pages.css .wq-* since 2026-11-22) ---------- */
/* A number never breaks in the middle ("#HD-" on one line, "1605" on the next). */
.ticket-number, .ov-t-id, .bell-number, .global-result-number, .tp-linked-open, .work-number { white-space:nowrap; }
.work-ticket-table .work-col-number { width:1%; white-space:nowrap; }
.work-ticket-table td { vertical-align:middle; }
/* A title is a link to what it names, as in the ticket list: the link color, underlined on hover, reached by Tab. */
.work-title-link { display:inline; min-height:0; padding:0; border:0; border-radius:var(--radius-sm); background:none; box-shadow:none; color:var(--spruce); font:inherit; font-weight:var(--weight-semibold); line-height:var(--leading-tight); text-align:left; cursor:pointer; }
.work-title-link:hover { text-decoration:underline; text-underline-offset:var(--space-25); }
.work-title-link:focus-visible { outline:2px solid var(--spruce); outline-offset:var(--space-25); }
/* Its title two lines at most (components.css .title-cap, on the words inside it, so the fade never hides this button's
   focus outline), kept on the cell's line as before, so a short title's row keeps its height. */
.work-title-link:has(> .title-cap) { display:inline-block; max-width:100%; vertical-align:top; }
.work-row { cursor:pointer; }
.work-card-label { display:none; }
/* The state as the ticket list draws it: a dot in the color of what the state means, and its name (it was a large gray
   pill here, and green words with no pill in the dark theme). */
.work-list .ticket-state-chip, [data-theme="dark"] .work-list .ticket-state-chip { display:inline-flex; align-items:center; gap:var(--space-75); min-height:0; padding:0; border:0; border-radius:0; background:transparent !important; box-shadow:none; color:var(--ink-2); font-size:var(--text-md); font-weight:var(--weight-medium); white-space:nowrap; }
.work-list .ticket-state-chip::before { content:none; }
.work-list .ticket-state-chip > span { color:var(--ink-2); }
.work-list .ticket-state-chip > i { flex:none; width:7px; height:7px; border-radius:var(--radius-round); background:var(--state-open); }
.work-list .ticket-state-chip:is(.state-pending-customer, .state-pending-requester, .state-pending-escalation, .state-waiting-for-approval, .state-on-hold) > i { background:var(--state-pending); }
.work-list .ticket-state-chip.state-onsite-required > i { background:var(--state-onsite); }
.work-list .ticket-state-chip:is(.state-resolved, .state-closed, .state-cancelled) > i { background:var(--state-done); }
/* The waiting state by its built-in name ("Pending Requester") has the waiting color wherever a state is drawn; it had
   the open color, while its old name had the waiting one. */
:is(.ticket-row .ticket-state-chip, .ticket-detail .state-dropdown-trigger, .ticket-detail .state-dropdown-option).state-pending-requester > i { background:var(--state-pending) !important; }
.tp-state.state-pending-requester > i { background:var(--state-pending); }
/* A finished ticket has no next breach: a dash, muted. */
.next-breach.is-none { color:var(--muted); }
/* On a phone each row is a card: the number, state and priority on top, the title, then the next breach. */
@media (max-width:700px) {
  .work-list.tableWrap { overflow:visible; background:none; }
  .work-ticket-table thead { display:none; }
  .work-ticket-table, .work-ticket-table tbody { display:block; width:100%; }
  .work-ticket-table tr.work-row { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; grid-template-areas:"number state priority" "title title title" "breach breach breach"; gap:var(--space-50) var(--space-150); align-items:center; padding:var(--space-150) 0; border-bottom:1px solid var(--line); }
  .work-ticket-table tr.work-row:last-child { border-bottom:0; }
  .work-ticket-table tr.work-row > td { display:block; min-width:0; padding:0; border:0; }
  .work-ticket-table .work-col-number { grid-area:number; width:auto; font-weight:var(--weight-semibold); }
  .work-ticket-table .work-col-state { grid-area:state; }
  .work-ticket-table .work-col-priority { grid-area:priority; justify-self:end; }
  .work-ticket-table .work-col-title { grid-area:title; overflow-wrap:anywhere; }
  .work-ticket-table .work-col-breach { grid-area:breach; color:var(--muted); font-size:var(--text-sm); }
  .work-ticket-table .work-card-label { display:inline; }
}

/* ---------- My workspace's counts ---------- */
/* Every count the same card; one with something in it has its number in color (some had a darker edge, some not). */
.workspace-stat.has-items { border-color:var(--line); }

/* ---------- The bell ---------- */
/* What is new is bold, with a dot; what was read is in plain words (they looked the same). */
.bell-item { position:relative; padding-left:var(--space-250); font-weight:var(--weight-regular); }
.bell-item .bell-text { font-weight:var(--weight-regular); }
.bell-item.unread .bell-text { font-weight:var(--weight-semibold); }
.bell-dot { position:absolute; top:50%; left:var(--space-75); width:7px; height:7px; margin-top:-3px; border-radius:var(--radius-round); background:var(--spruce); }

/* ---------- A toast's link ("Open" the ticket just claimed: AJ7) ---------- */
.toast .toast-action { flex:none; min-height:var(--control-height-sm); margin-left:var(--space-100); padding:0 var(--space-150); border:1px solid currentColor; border-radius:var(--radius-md); background:transparent; box-shadow:none; color:inherit; font:inherit; font-weight:var(--weight-semibold); cursor:pointer; }
.toast .toast-action:hover { background:color-mix(in srgb, currentColor 14%, transparent); }
.toast .toast-action:focus-visible { outline:2px solid currentColor; outline-offset:2px; }

/* ---------- Search ---------- */
/* The search box has the top bar's line icon (it was the text "⌕"); a result's number is readable (11 px before). */
.global-search-box > .global-search-icon { flex:none; width:1.25rem; height:1.25rem; color:var(--spruce); }
.global-result-number { font-size:var(--text-sm); font-weight:var(--weight-semibold); }
/* The eight counts on one row at 1280 px (the last one wrapped alone), two to a row on a phone. */
.workspace-summary-strip { grid-template-columns:repeat(auto-fit, minmax(6.5rem, 1fr)); gap:var(--space-100); }
@media (max-width:560px) { .workspace-summary-strip { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.work-list .pill { font-style:normal; }

/* ---------- Filters that fold on a phone (staff-polish.js foldOnPhone) ---------- */
/* On a phone a page's filters wait behind one "Filters" button (four full-width dropdowns came before the first
   figure); a wider screen shows them as they were, with no button. */
.phone-fold-toggle { display:none; }
@media (max-width:700px) {
  .phone-fold-toggle { display:inline-flex; align-self:flex-start; margin:0 0 var(--space-150); }
  .phone-fold:not(.is-open) { display:none !important; }
}

/* ---------- The Dashboard ---------- */
/* Needs attention: the full number, the title in the link color, the reasons as the app's pills at 12 px. */
.dashboard-attention-title { color:var(--spruce); }
.dashboard-attention-list button:hover .dashboard-attention-title { text-decoration:underline; text-underline-offset:var(--space-25); }
.dashboard-attention-main small { font-size:var(--text-xs); }
.dashboard-reason { padding:var(--space-25) var(--space-100); border-radius:var(--radius-pill); font-size:var(--text-xs); font-weight:var(--weight-semibold); }
/* The figures two to a row on a phone (five full-width cards came before anything else). */
@media (max-width:560px) { .dashboard-kpis { grid-template-columns:repeat(2, minmax(0, 1fr)); } }

/* ---------- User settings (preferences.js; the portal's in catalog-portal.js) ---------- */
/* One column of cards (side by side they left large holes under the shorter ones), saved as each choice is made. */
.user-settings-grid.us-one-column { grid-template-columns:minmax(0, 1fr); max-width:48rem; }
.user-settings-card[hidden] { display:none; }
.user-settings-card .panel-heading { align-items:flex-start; gap:var(--space-150); }
/* "Saved", for a moment, at the right of the card's heading. */
.us-saved, .portal-settings-saved { flex:none; margin:0; color:var(--good); font-size:var(--text-sm); font-weight:var(--weight-semibold); opacity:0; transition:opacity .2s; }
.us-saved.is-shown, .portal-settings-saved.is-shown { opacity:1; }
.us-saved.is-shown::before, .portal-settings-saved.is-shown::before { content:"✓ "; }
.us-card-error { margin:0 0 var(--space-100); }
/* The portal's: the line under a section heading reads at full contrast (#7a877d was 3.72:1), a switch's help text in
   regular weight, and why the name and email can't be changed here. */
.portal-notification-intro { color:var(--ink-2) !important; font-size:var(--text-sm) !important; }
.portal-notification-option small { font-weight:var(--weight-regular); }
.portal-profile-hint { margin:var(--space-75) 0 0; color:var(--ink-2); font-size:var(--text-sm); }
.portal-settings-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:var(--space-100); }
.portal-settings-saved { margin-right:auto; }
/* The language is short and the date format long: the date format has the room ("Organization’s (Oct 3, 2026)" wrapped). */
.requester-portal-settings-modal .modal-two-col:has(#portalLanguage) { grid-template-columns:minmax(8rem, .7fr) minmax(0, 1.3fr); }

/* ---------- The ticket list ---------- */
/* The column grips: always shown, quiet, and clear under the pointer (ticket-list.css; the owner, 2026-11-21, found the
   hidden grips left nobody knowing a column could be moved). */
/* A workspace with no tickets yet has nothing to search, act on or arrange: no empty band where those controls go. */
#ticketsView.ticket-list-none .ticket-page-actions { display:none; }
/* The views menu's Copy and Edit say so in words (they were unlabeled ⧉ and ✎). */
.saved-view-action { width:auto; min-width:28px; padding:0 var(--space-100); font-size:var(--text-sm); font-weight:var(--weight-semibold); color:var(--spruce); }

/* ---------- Tab rows that scroll on a phone (ui-parts.js uiWatchTabRows) ---------- */
/* One line that scrolls sideways, faded at the side where more tabs are (the row was cut at the edge with no sign). */
@media (max-width:700px) {
  :is(.rp-tabs, .detail-tabs, .ticket-view-tabs, .people-tabs) { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }
  :is(.rp-tabs, .detail-tabs, .ticket-view-tabs, .people-tabs)::-webkit-scrollbar { display:none; }
  :is(.rp-tabs, .detail-tabs, .ticket-view-tabs, .people-tabs) > * { flex:0 0 auto; }
}
.tabs-more-right { mask-image:linear-gradient(to right, #000 calc(100% - 3.5rem), transparent); }
.tabs-more-left { mask-image:linear-gradient(to left, #000 calc(100% - 3.5rem), transparent); }
.tabs-more-left.tabs-more-right { mask-image:linear-gradient(to right, transparent, #000 3.5rem, #000 calc(100% - 3.5rem), transparent); }

/* ---------- The CMDB ---------- */
/* The list fits its card at 1280 px (Sources moved under the name, the type tree a little narrower). */
.cmdb-layout { grid-template-columns:15rem minmax(0, 1fr); }
@media (max-width:900px) { .cmdb-layout { grid-template-columns:1fr; } }
.cmdb-table .cmdb-ci-name { color:var(--spruce); }
.cmdb-table tr:hover .cmdb-ci-name, .cmdb-table tr:focus-visible .cmdb-ci-name { text-decoration:underline; text-underline-offset:var(--space-25); }
.cmdb-table .cmdb-col-updated { white-space:nowrap; }
/* On a phone each CI is a card: its name, then its type, status and site, then who has it. */
@media (max-width:700px) {
  .cmdb-table-wrap.tableWrap { overflow:visible; background:none; }
  .cmdb-table thead { display:none; }
  .cmdb-table, .cmdb-table tbody { display:block; width:100%; }
  .cmdb-table tr { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:var(--space-50) var(--space-150); padding:var(--space-150) 0; border-bottom:1px solid var(--line); }
  .cmdb-table tr > td { display:block; padding:0 !important; border:0 !important; }
  .cmdb-table .cmdb-col-name { grid-column:1 / -1; }
  .cmdb-table .cmdb-col-type, .cmdb-table .cmdb-col-who { color:var(--ink-2); font-size:var(--text-sm); }
  .cmdb-table .cmdb-col-who small { display:inline; }
  .cmdb-table .cmdb-col-who small::before { content:" · "; }
  .cmdb-table .cmdb-col-status { justify-self:end; }
  .cmdb-table .cmdb-col-updated { color:var(--muted); font-size:var(--text-sm); justify-self:end; }
  /* A list the person can pick from (a bulk action, GitHub issue 302): the box sits to the left of each card. */
  .cmdb-table.cmdb-pickable tr { position:relative; padding-left:var(--space-400); }
  .cmdb-table.cmdb-pickable .cmdb-col-pick { position:absolute; left:0; top:var(--space-150); }
}
/* The selection's bar, and each CI's Approval section (GitHub issue 302). */
.cmdb-table .cmdb-col-pick { width:2.25rem; }
.cmdb-table .cmdb-col-pick input { width:1.1rem; height:1.1rem; margin:0; cursor:pointer; }
.cmdb-bulk { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100) var(--space-150); margin:0 0 var(--space-150); padding:var(--space-100) var(--space-150); border:1px solid var(--line); border-left:4px solid var(--spruce); border-radius:var(--radius-lg); background:var(--surface-2); }
.cmdb-bulk .cmdb-bulk-status { display:flex; align-items:center; gap:var(--space-75); min-width:0; }
.cmdb-bulk .cmdb-bulk-status span { white-space:nowrap; }
.cmdb-bulk .cmdb-bulk-status select { min-width:0; max-width:14rem; }
.cmdb-approval { padding:var(--space-150) var(--space-200); border:1px solid var(--line); border-left:4px solid var(--spruce); border-radius:var(--radius-lg); background:var(--surface-2); }
.cmdb-approval .rac-runs { margin:0; }

/* ---------- The top bar on a phone ---------- */
/* While someone is out of office its chip pushed the profile button off the side of a phone (a sideways scroll); on a
   phone it is said in User settings (from the profile menu) instead. */
@media (max-width:560px) { .topbar .ooo-chip { display:none !important; } }

/* ---------- People ---------- */
/* A name reads as a link to the person; what they have open sits beside it (it was 1,000 px away at 1440), in the same
   pill for staff and requesters. */
.people-row-main b { color:var(--spruce); }
.people-row:hover .people-row-main b { text-decoration:underline; text-underline-offset:var(--space-25); }
@media (min-width:701px) {
  .people-row-main { flex:0 1 28rem; }
  .people-row-stats { flex:1 1 auto; align-items:flex-start; }
}

/* ---------- Team performance ---------- */
/* Better and worse than the team average keep their colors in the dark theme (an old dark rule gives every table cell
   the ink color, marked important, which made every number white), with an arrow for above or below it. */
.scorecard td.better, [data-theme="dark"] .scorecard td.better { color:var(--good) !important; }
.scorecard td.worse, [data-theme="dark"] .scorecard td.worse { color:var(--bad) !important; }
.perf-tone { margin-left:var(--space-25); font-size:var(--text-2xs); vertical-align:1px; }
/* The scorecard is wider than its card at 1280 px: it scrolls inside it, with a shade at the side where there is more. */
.perf-scorecard-wrap { background:linear-gradient(to right, var(--surface) 30%, transparent) left / 2rem 100% no-repeat local, linear-gradient(to left, var(--surface) 30%, transparent) right / 2rem 100% no-repeat local, linear-gradient(to right, rgba(0, 0, 0, .12), transparent) left / .75rem 100% no-repeat scroll, linear-gradient(to left, rgba(0, 0, 0, .12), transparent) right / .75rem 100% no-repeat scroll; }
.perf-scorecard-wrap:focus-visible { outline:2px solid var(--spruce); outline-offset:2px; }

/* ---------- Customer satisfaction ---------- */
/* On a phone the figures are two to a row (five full-width cards came before any feedback). */
@media (max-width:560px) {
  #customerSatisfactionView .metric-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  #customerSatisfactionView .metric-card { min-height:0; }
}

/* ---------- The audit log ---------- */
/* Export is one button with Excel and CSV under it. */
.al-export-actions { position:relative; }
.al-export-menu { position:absolute; top:calc(100% + var(--space-50)); right:0; z-index:var(--z-menu); display:grid; min-width:18rem; max-width:calc(100vw - 2 * var(--viewport-gap)); padding:var(--space-50); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-pop); }
.al-export-menu[hidden] { display:none; }
.al-export-menu .al-export { display:grid; gap:var(--space-25); min-height:0; padding:var(--space-100) var(--space-150); border:0; border-radius:var(--radius-md); background:none; box-shadow:none; color:var(--ink); font:inherit; font-weight:var(--weight-semibold); text-align:left; text-decoration:none; cursor:pointer; }
.al-export-menu .al-export:hover, .al-export-menu .al-export:focus-visible { background:var(--hover-bg); outline:none; }
.al-export-menu .al-export small { color:var(--muted); font-size:var(--text-sm); font-weight:var(--weight-regular); }
/* The log's entries come first; one line says how it is protected, with the way to check it. */
.al-integrity-line { margin:0 0 var(--space-150); color:var(--ink-2); font-size:var(--text-md); }
/* The server's own checks (docs/adr/0152): the last result as a word in color, the way to read it beside it. */
.al-status { display:inline-block; padding:0 var(--space-75); border-radius:var(--radius-pill, 999px); background:var(--surface-2, var(--hover-bg)); color:var(--ink); font-weight:var(--weight-semibold); white-space:normal; }
.al-status.is-ok { background:var(--good-soft); color:var(--good); }
.al-status.is-bad { background:var(--bad-soft); color:var(--bad); }
.al-server-check { margin:var(--space-100) 0; padding:var(--space-100) var(--space-150); border:1px solid var(--line); border-radius:var(--radius-lg); overflow-wrap:anywhere; }
.al-server-check.is-bad { border-color:var(--bad); }
.al-server-check p { margin:0 0 var(--space-50); }
.al-server-check p:last-child { margin-bottom:0; }
.al-server-check-note { color:var(--muted); font-size:var(--text-sm); }
.al-server-check-list { margin:0 0 var(--space-50); padding-left:var(--space-200); }

/* ---------- The Scheduler ---------- */
/* Positions in their own capitals, at the body size (bold capitals wrapped to three lines); Today in words. */
.sch-row-head { font-size:var(--text-sm); letter-spacing:0; }
.sch-nav-button.sch-today { font-size:var(--text-sm); letter-spacing:0; text-transform:none; }
.sch-empty .outline-button { margin-left:var(--space-100); }

/* ---------- The Overview ---------- */
/* A figure's line under it that opens your list reads as a link (its dotted underline hinted at a tooltip). */
.ov-kpi-foot button { border-bottom:0 !important; color:var(--spruce) !important; font-weight:var(--weight-semibold); text-align:left; }
.ov-kpi-foot button:hover { text-decoration:underline; text-underline-offset:var(--space-25); }
/* Without Your changes (a department, or no Changes module), Your work has the row. */
#ovChangesCard[hidden] { display:none; }
.ov-grid:has(> #ovChangesCard[hidden]) { grid-template-columns:minmax(0, 1fr); }

/* ---------- New ticket ---------- */
/* Attach files has the reply box's line paperclip (it was an emoji). */
.raise-files-button .vis-icon { width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- The app's error screen (bootstrap.js) ---------- */
.app-startup-status .startup-title { margin:0; color:var(--ink); font:var(--weight-bold) var(--text-2xl)/var(--leading-tight) var(--font-ui); text-align:center; }
.app-startup-status:not(.error) .startup-title { display:none; }

/* ---------- A ticket's tasks ---------- */
/* An open task carries no pill (amber is the color of waiting and warnings); Done and Overdue keep theirs. */
.task-row-status.open { display:none; }
.tp .tp-task-add .tp-task-field { display:grid; flex:1 1 12rem; gap:var(--space-25); min-width:0; color:var(--muted); font-size:var(--text-xs); }
.tp .tp-task-add .tp-task-field .tp-task-input { width:100%; }
@media (max-width:700px) { .tp .tp-task-add .tp-task-field { flex-basis:100%; } }
/* The reply box's own avatar was the largest colored shape on the page: the conversation's size. */
.tp .comment-composer > .comment-avatar { width:28px; height:28px; flex:0 0 28px; font-size:var(--text-xs); }
/* On a phone the formatting bar is one row: the phone's keyboard undoes and redoes, and the rarer ones wait for a wider
   screen (it wrapped to two rows). */
@media (max-width:700px) {
  .tp .editor-toolbar :is([data-format="undo"], [data-format="redo"], [data-format="strikeThrough"], [data-format="unlink"], [data-format="removeFormat"]) { display:none; }
}
/* A filter's long value wraps onto another line (it was cut: "Identity & Access Man"), the owner, 2026-11-14: "Wrap the text". */
#ticketsView .ticket-state-multi-trigger { min-width:0; }
#ticketsView .ticket-filter-words { min-width:0; overflow:hidden; overflow-wrap:break-word; white-space:normal; }

/* ---------- Fields in the dark theme ---------- */
/* A text box has the fields' own fill, as a dropdown does (on the card's color it looked fainter than the dropdown
   beside it). */
[data-theme="dark"] :is(#auditView, #cmdbView, #peopleView, #ticketsView, #schedulingView, #dashboardView, #reportsView, #performanceView, #customerSatisfactionView, #userSettingsPanel, #workspaceView, .tp) :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"]), textarea):not([readonly], :disabled) { background-color:var(--field-bg); }

/* ---------- More (staff-polish.js pageMoreMenuHtml) ---------- */
.page-more { position:relative; display:inline-flex; }
.page-more-menu { position:absolute; top:calc(100% + var(--space-50)); right:0; z-index:var(--z-menu); display:grid; min-width:12rem; max-width:calc(100vw - 2 * var(--viewport-gap)); padding:var(--space-50); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-pop); }
.page-more-menu[hidden] { display:none; }
.page-more-item { display:block; min-height:0; padding:var(--space-100) var(--space-150); border:0; border-radius:var(--radius-md); background:none; box-shadow:none; color:var(--ink); font:inherit; font-weight:var(--weight-medium); text-align:left; white-space:nowrap; cursor:pointer; }
.page-more-item:hover, .page-more-item:focus-visible { background:var(--hover-bg); outline:none; }
@media (max-width:700px) { .page-more-menu { right:auto; left:0; } }

/* ---------- The resolve dialog ---------- */
/* Time spent is optional: when none is logged yet it says so in a quiet box, not the amber of a warning. */
.resolution-time.nudge { border-color:var(--line); background:var(--surface-2); }
/* An empty week says so above the grid, in a line, not under it. */
#schGrid > .sch-empty:first-child { margin:0 0 var(--space-150); padding:var(--space-150) var(--space-200); border:1px dashed var(--line); border-radius:var(--radius-lg); text-align:left; }
/* What a result matched on, marked, reads at full contrast in the dark theme (the link green on the mark was 3.3:1). */
[data-theme="dark"] .global-result .global-why mark { color:var(--ink); }
/* The report's settings scroll on their own, so the keyboard reaches them; a ring shows where it is. */
.rp-builder:focus-visible { outline:2px solid var(--spruce); outline-offset:2px; }
/* A ticket's muted words on a ticked row read at full contrast (the next breach was 4.49:1 on the selection's color). */
#ticketsView .ticket-row.is-selected :is(.next-breach:not(.breached-text), .ticket-requester, .table-muted) { color:var(--ink-2) !important; }

/* ---------- Words for a screen reader only, inside a scrolling list ---------- */
/* They are placed absolutely: their box is the cell's, so they never escape a list that scrolls inside its card (a
   scorecard's widened the whole phone page to 1,358 px). */
.perf-scorecard-wrap, .scorecard td, .next-breach.is-none, .ov-delta { position:relative; }

/* ---------- Nothing a person reads under 12 px (the combined check of Phase 1e) ---------- */
/* --text-2xs (11 px) is for uppercase eyebrows, counters and badges only (tokens.css). These are captions and labels
   people read, written at it in older sheets, or a <small> at its default size (10.8 and 11.7 px): they read at the
   caption size. The Dashboard's filters and Needs attention's due line, its activity, its chart's axis; a figure's
   line (the Changes overview, Customer satisfaction); search's result lines (its "Matched on" line too); a problem's
   number in the list; a change's approvers; a problem's incidents and a ticket's problem; the change schedule's
   lines; an article card's number; a satisfaction answer's ticket line; Team performance's counts; the article
   editor's character counts. */
.dashboard-filter, .dashboard-due, .dashboard-activity-list small, .dashboard-activity-list time, .dashboard-axis,
.metric-card small, .global-result small, .problem-register td:first-child b, .approver-row small,
.problem-incidents small, .problem-link-card small, .change-schedule-row small, .article-card small,
.csat-response-card small, .scorecard small, .kbe-field small { font-size:var(--text-xs); }

/* ---------- Claim on a phone (AJ7; overview.js) ---------- */
/* Under 640 px the Overview's Your work leaves out its priority and its last column, where a ticket's Open repeats the
   link its title is. In Unassigned in your groups that column is Claim, the one way to pick a ticket up there: it
   stays, with its header; the title takes less room and the time left may wrap, so the row fits a phone. */
@media (max-width: 640px) {
  #ovAttnTable:has([data-claim]) th:nth-child(4), #ovAttnTable td:nth-child(4):has(> [data-claim]) { display:table-cell; }
  #overviewView #ovAttnTable:has([data-claim]) .ov-col-ticket { min-width:8rem; }
  #overviewView #ovAttnTable:has([data-claim]) td:nth-child(3), #ovAttnTable:has([data-claim]) .ov-sla { white-space:normal; }
  #overviewView #ovAttnTable td:nth-child(4):has(> [data-claim]) { padding-right:var(--space-100); }
}
