/* The staff Overview and the Dashboard, as the owner approved them on 2026-11-22 after comparing both pages with
   ServiceNow, Zendesk, Freshservice, Jira Service Management and others (docs/adr/0388, 0389). Loaded after
   staff-finish.css, so these win over the pages' older rules (styles.css, work-pages.css, staff-polish.css,
   staff-finish.css). */

/* ---------- One row for the person's own work: the Overview's queue and My workspace's My tickets ---------- */
/* (staff-polish.js workQueueRowHtml) One reason, the ticket, its title with the requester, a High or Critical priority,
   one time, and Claim. A long title wraps to a second line; nothing is cut with an ellipsis. */
.wq-list { margin:0; padding:0; list-style:none; }
.wq-row { display:grid; grid-template-columns:minmax(0, 10rem) 5.5rem minmax(0, 1fr) 4.5rem 10.5rem 5rem; align-items:center; gap:var(--space-75) var(--space-150); min-height:44px; padding:var(--space-75) var(--space-250); border-top:1px solid var(--line); cursor:pointer; }
.wq-row:hover { background:var(--hover-bg-subtle, var(--surface-2)); }
.wq-reason { display:inline-flex; align-items:center; justify-self:start; gap:var(--space-50); max-width:100%; padding:var(--space-25) var(--space-100); border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--surface-2, var(--paper)); color:var(--ink-2); font-size:var(--text-xs); font-weight:var(--weight-semibold); line-height:var(--leading-tight); }
.wq-reason i { flex:none; color:var(--muted); font-style:normal; }
.wq-reason.is-breached { border-color:transparent; background:var(--dc-bad-soft, #f7e3de); color:var(--dc-bad, #b03e2c); }
.wq-reason.is-breached i { color:inherit; }
.wq-reason.is-soon { border-color:transparent; background:var(--dc-warn-soft, #f7ebd3); color:var(--dc-warn, #85540b); }
.wq-reason.is-soon i { color:inherit; }
.wq-more { margin-left:var(--space-25); color:var(--muted); font-weight:var(--weight-medium); }
.wq-id { color:var(--muted); font-size:var(--text-sm); font-variant-numeric:tabular-nums; white-space:nowrap; }
.wq-main { display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--space-25) var(--space-100); min-width:0; }
.wq-open { display:inline-block; max-width:100%; min-height:0; padding:0; border:0; background:none; box-shadow:none; color:var(--spruce); font:inherit; font-size:var(--text-md); font-weight:var(--weight-semibold); line-height:var(--leading-tight); text-align:left; cursor:pointer; }
.wq-row:hover .wq-open { text-decoration:underline; text-underline-offset:var(--space-25); }
.wq-open:focus-visible { outline:2px solid var(--spruce); outline-offset:2px; border-radius:var(--radius-sm); }
.wq-who { color:var(--muted); font-size:var(--text-sm); }
.wq-who::before { content:"· "; }
.wq-linked { padding:0 var(--space-75); border:1px solid var(--line-strong, var(--line)); border-radius:var(--radius-pill); color:var(--ink-2); font-size:var(--text-xs); font-weight:var(--weight-semibold); white-space:nowrap; }
.wq-time { display:inline-flex; align-items:center; justify-content:flex-end; gap:var(--space-50); color:var(--ink-2); font-size:var(--text-sm); text-align:right; white-space:nowrap; }
.wq-time i { color:var(--muted); font-style:normal; }
.wq-time.is-late { color:var(--dc-bad, #b03e2c); font-weight:var(--weight-semibold); }
.wq-time.is-soon { color:var(--dc-warn, #85540b); font-weight:var(--weight-semibold); }
.wq-act { display:flex; justify-content:flex-end; }
.wq-empty { padding:var(--space-200) var(--space-250); color:var(--muted); }
#overviewView, #workspaceView { --dc-good:#276f45; --dc-bad:#b03e2c; --dc-bad-soft:#f7e3de; --dc-warn:#85540b; --dc-warn-soft:#f7ebd3; }
[data-theme="dark"] #overviewView, [data-theme="dark"] #workspaceView { --dc-good:#74c592; --dc-bad:#ec8a75; --dc-bad-soft:#3b231e; --dc-warn:#e2ab4f; --dc-warn-soft:#372b16; }
#overviewView .wq-open { color:var(--spruce); }
#workspaceView .workspace-queue .wq-row { padding-inline:var(--space-100); }
/* In a narrow list (My workspace's column, a phone): the title and Claim on the first line, the reason, the ticket,
   a High or Critical priority and the time under it. */
.wq-list { container-type:inline-size; }
@container (max-width:52rem) {
  .wq-row { grid-template-columns:auto auto minmax(0, 1fr) auto; grid-template-areas:"main main main act" "reason id prio time"; padding-block:var(--space-100); }
  .wq-reason { grid-area:reason; }
  .wq-id { grid-area:id; }
  .wq-main { grid-area:main; }
  .wq-prio { grid-area:prio; justify-self:start; }
  .wq-time { grid-area:time; }
  .wq-act { grid-area:act; }
}
@media (max-width:700px) {
  .wq-row { padding-inline:var(--space-200); }
  .wq-act .wq-claim { min-height:44px; }
}

/* ---------- Overview: the verdict, the queue card and the strip ---------- */
#overviewView .ov-head { align-items:flex-start; margin-bottom:var(--space-250); }
#overviewView .ov-head h1 { font-weight:var(--weight-regular); line-height:var(--leading-tight); }
#overviewView .ov-verdict { display:inline-flex; align-items:center; gap:var(--space-100); font-weight:var(--weight-semibold); }
#overviewView .ov-verdict .ov-icon { width:22px; height:22px; }
#overviewView .ov-verdict.is-good { color:var(--dc-good); }
#overviewView .ov-verdict.is-soon .ov-icon { color:var(--dc-warn); }
#overviewView .ov-verdict.is-late { color:var(--dc-bad); }
#overviewView .ov-dot { display:inline-block; width:10px; height:10px; border-radius:var(--radius-round); background:var(--muted); }
#overviewView .ov-clock-line { display:flex; align-items:center; gap:var(--space-75); margin:var(--space-75) 0 0; color:var(--muted); font-size:var(--text-md); }
#overviewView .ov-clock-line[hidden] { display:none; }
#overviewView .ov-head-tools { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-150); }
#overviewView .ov-shift { padding:var(--space-25) var(--space-150); border:1px solid var(--line); border-radius:var(--radius-pill); color:var(--ink-2); font-size:var(--text-sm); font-weight:var(--weight-semibold); white-space:nowrap; }
/* The shift chip opens the person's own shifts in the Scheduler (its stage 1). */
#overviewView button.ov-shift { min-height:var(--control-height-sm); background:var(--surface); font-family:inherit; cursor:pointer; }
#overviewView button.ov-shift:hover { border-color:var(--spruce); color:var(--ink); }
#overviewView button.ov-shift:focus-visible { outline:2px solid var(--spruce); outline-offset:var(--space-25); }
#overviewView .ov-body { display:grid; grid-template-columns:minmax(0, 1fr); gap:var(--space-250); align-items:start; }
#overviewView .ov-sec + .ov-sec, #overviewView .ov-queue-foot { border-top:1px solid var(--line); }
#overviewView .ov-sec-head { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-50) var(--space-100); padding:var(--space-200) var(--space-250) var(--space-100); }
#overviewView .ov-sec:not(:has(.wq-list)) .ov-sec-head { padding-bottom:var(--space-200); }
#overviewView .ov-sec-title { margin:0; color:var(--ink); font-size:var(--text-lg); font-weight:var(--weight-semibold); }
#overviewView .ov-count.is-amber { background:var(--dc-warn-soft); color:var(--dc-warn); }
#overviewView .ov-sec-note { color:var(--muted); font-size:var(--text-md); }
#overviewView .ov-held { margin-left:auto; }
#overviewView .ov-fold { display:inline-flex !important; align-items:center; gap:var(--space-75); font-weight:var(--weight-semibold) !important; }
#overviewView .ov-more { margin:var(--space-100) var(--space-250) var(--space-150); }
#overviewView .ov-queue-foot { display:flex; justify-content:flex-end; padding:var(--space-150) var(--space-250); }
/* The strip: a quiet row of the person's figures under the queue; beside it on a wide screen. */
#overviewView .ov-strip { display:flex; flex-wrap:wrap; align-items:flex-start; gap:var(--space-200) var(--space-500); padding-top:var(--space-200); border-top:1px solid var(--line-strong, var(--line)); }
#overviewView .ov-strip-range .custom-select-trigger { min-height:32px; height:32px; padding:0 var(--space-150); border-radius:var(--radius-md); font-weight:var(--weight-semibold); }
#overviewView .ov-figs { display:flex; flex-wrap:wrap; gap:var(--space-200) var(--space-500); }
#overviewView .ov-fig { display:grid; gap:var(--space-25); min-width:8rem; text-align:left; }
#overviewView button.ov-fig { border-radius:var(--radius-md); }
#overviewView button.ov-fig:hover .ov-fig-value { color:var(--spruce); text-decoration:underline; text-underline-offset:var(--space-25); }
#overviewView .ov-fig-label { color:var(--muted); font-size:var(--text-sm); }
#overviewView .ov-fig-value { color:var(--ink); font-size:var(--text-lg); font-weight:var(--weight-semibold); font-variant-numeric:tabular-nums; }
#overviewView .ov-fig-context { color:var(--muted); font-size:var(--text-sm); }
@media (min-width:1680px) {
  #overviewView .ov-body { grid-template-columns:minmax(0, 1fr) 18rem; }
  #overviewView .ov-strip { flex-direction:column; padding:var(--space-200) 0 0 var(--space-300); border-top:0; border-left:1px solid var(--line-strong, var(--line)); }
  #overviewView .ov-figs { flex-direction:column; }
}
@media (max-width:700px) {
  #overviewView .ov-head-tools { width:100%; }
  #overviewView .ov-open-next { min-height:44px; }
  /* The shift chip opens My shifts: a 44 px target on a phone. */
  #overviewView button.ov-shift { min-height:44px; }
  #overviewView .ov-sec-head { padding:var(--space-150) var(--space-200) var(--space-75); }
}

/* ---------- Dashboard: the title row ---------- */
#dashboardView .dashboard-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:var(--space-150) var(--space-200); margin-bottom:var(--space-300); }
#dashboardView .dashboard-title-row { display:flex; align-items:center; gap:var(--space-100); min-width:0; }
/* The heading's own rule (components.css .page-heading) makes its first part fill the row and shows the rest as rows of
   their own: here the title takes only its width, the pills follow it, and the phone's "Filters" button stays a
   phone's. */
#dashboardView .dashboard-head > .dashboard-title-row { flex:0 1 auto; min-width:0; }
#dashboardView .dashboard-head > .phone-fold-toggle { display:none; margin:0; }
@media (max-width:700px) { #dashboardView .dashboard-head > .phone-fold-toggle { display:inline-flex; } }
#dashboardView .dashboard-title { margin:0; font-size:var(--text-3xl); letter-spacing:-.02em; line-height:var(--leading-tight); overflow-wrap:anywhere; }
.dashboard-icon { width:1em; height:1em; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
/* The dashboard's name as the title, and the picker it is: a standard dropdown drawn as a heading. */
#dashboardView .dashboard-choose { display:block; min-width:0; }
#dashboardView .dashboard-choose .custom-select-trigger { width:auto; min-width:0; min-height:0; height:auto; padding:var(--space-25) var(--space-100) var(--space-25) var(--space-50); border-color:transparent; border-radius:var(--radius-md); background:transparent; box-shadow:none; color:var(--ink); font:var(--weight-bold) var(--text-3xl)/var(--leading-tight) var(--font-ui); letter-spacing:-.02em; white-space:normal; }
#dashboardView .dashboard-choose .custom-select-trigger:hover { border-color:var(--line); background:var(--hover-bg); }
#dashboardView .dashboard-choose .custom-select-trigger::after { width:8px; height:8px; border-right-width:2px; border-bottom-width:2px; border-color:var(--ink-2); }
#dashboardView .dashboard-choose .custom-select-menu { min-width:16rem; font-size:var(--text-md); font-weight:var(--weight-regular); letter-spacing:0; }
#dashboardView .dashboard-official { display:inline-flex; align-items:center; gap:var(--space-50); padding:var(--space-25) var(--space-100); border:1px solid var(--line-strong, var(--line)); border-radius:var(--radius-pill); color:var(--ink-2); font-size:var(--text-xs); font-weight:var(--weight-semibold); white-space:nowrap; }
/* An ⓘ: a quiet round button, and its words in a small box under it. */
.dashboard-info { position:relative; display:inline-flex; flex:none; }
.dashboard-info-button { display:inline-grid; place-items:center; width:28px; height:28px; min-height:0; padding:0; border:0; border-radius:var(--radius-round); background:none; box-shadow:none; color:var(--muted); font-size:var(--text-lg); cursor:pointer; }
.dashboard-info-button:hover, .dashboard-info-button[aria-expanded="true"] { background:var(--hover-bg); color:var(--ink); }
.dashboard-info-button:focus-visible { outline:2px solid var(--spruce); outline-offset:1px; }
.dashboard-info-pop { position:absolute; top:calc(100% + var(--space-50)); left:0; z-index:var(--z-popover); width:max-content; max-width:min(22rem, calc(100vw - 2 * var(--viewport-gap))); padding:var(--space-100) var(--space-150); border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); box-shadow:var(--shadow-pop); color:var(--ink-2); font-size:var(--text-sm); font-weight:var(--weight-regular); letter-spacing:0; line-height:var(--leading-normal); text-align:left; text-transform:none; white-space:normal; }
/* The filters: one row of pills on the title row, filled once something is chosen. */
#dashboardView .dashboard-head .dashboard-filters { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:var(--space-100); margin:0; }
#dashboardView .dashboard-head .dashboard-filter { display:inline-flex; align-items:center; gap:0; color:var(--ink); font-size:var(--text-sm); font-weight:var(--weight-medium); letter-spacing:0; }
#dashboardView .dashboard-head .dashboard-range { min-width:0; }
#dashboardView .dashboard-pill .custom-select-trigger, #dashboardView .dashboard-pill .dashboard-picker-trigger { width:auto; min-width:0; min-height:32px; height:32px; padding:0 var(--space-150); border:1px solid var(--line-strong, var(--line)); border-radius:var(--radius-pill); background:var(--surface); color:var(--ink); font:var(--weight-medium) var(--text-sm)/1 var(--font-ui); gap:var(--space-100); white-space:nowrap; }
#dashboardView .dashboard-pill .dashboard-picker-trigger span { max-width:16rem; }
#dashboardView .dashboard-pill .dashboard-filter-label { color:var(--ink-2); font-weight:var(--weight-regular); }
#dashboardView .dashboard-pill.is-set .custom-select-trigger, #dashboardView .dashboard-pill.is-set .dashboard-picker-trigger { border-color:var(--spruce); background:var(--spruce-pale); color:var(--spruce-dark); font-weight:var(--weight-semibold); }
#dashboardView .dashboard-pill.is-set .dashboard-filter-label { color:inherit; }
#dashboardView .dashboard-head .dashboard-reset { min-height:32px; padding:0 var(--space-100); }
/* The line under the title while the bar narrows the dashboard: quiet words, and Reset (dashboard-page.js
   drawDashboardFilterLine). It sits close under the title row, on a phone too, where the bar folds away. */
#dashboardView .dashboard-filter-line { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 var(--space-50); margin:calc(-1 * var(--space-200)) 0 var(--space-250); color:var(--ink-2); font-size:var(--text-sm); line-height:var(--leading-normal); }
#dashboardView .dashboard-filter-line[hidden], #dashboardView .dashboard-filter-line [hidden] { display:none; }
#dashboardView .dashboard-filter-sep { color:var(--muted); }
#dashboardView .dashboard-filter-reset { min-height:0; padding:0; font-size:inherit; font-weight:var(--weight-semibold); }
@media (max-width:700px) { #dashboardView .dashboard-filter-reset { min-height:44px; } }
/* "Updated just now ↻", which is the refresh, and the ⋯ menu, at the end of the row. */
#dashboardView .dashboard-head-tools { align-items:center; margin-left:auto; }
#dashboardView .dashboard-updated { display:inline-flex; align-items:center; gap:var(--space-75); min-height:36px; padding:0 var(--space-100); border:0; border-radius:var(--radius-md); background:none; box-shadow:none; color:var(--muted); font-size:var(--text-sm); font-weight:var(--weight-medium); white-space:nowrap; cursor:pointer; }
#dashboardView .dashboard-updated:hover { background:var(--hover-bg); color:var(--ink); }
#dashboardView .dashboard-updated:focus-visible { outline:2px solid var(--spruce); outline-offset:1px; }
#dashboardView .dashboard-more-button { display:inline-grid; place-items:center; width:36px; min-height:36px; padding:0; font-size:var(--text-lg); }
#dashboardView .dashboard-more-button .dashboard-icon circle { fill:currentColor; stroke:none; }

/* ---------- Dashboard: the cards ---------- */
/* Each card as tall as it needs, not the tallest in its row; a card alone in its row takes the whole row. */
#dashboardView .dashboard-cards { align-items:start; }
#dashboardView .dashboard-cardbox.is-alone { grid-column:1 / -1; }
/* A chart keeps the height it had at half width: wider, never taller. */
#dashboardView .dashboard-cardbox.is-alone .rp-svg { max-height:20rem; }
/* The head: the title with its count and ⓘ, a note, and on the right a list's "All 13 in Tickets →". */
.dashboard-cardbox-titleline { display:flex; flex:1; flex-wrap:wrap; align-items:center; gap:var(--space-25) var(--space-100); min-width:0; }
.dashboard-cardbox-titleline .dashboard-cardbox-title { flex:0 1 auto; }
.dashboard-cardbox-titleline .dashboard-info-button { width:24px; height:24px; font-size:var(--text-md); }
.dashboard-cardbox-count { color:var(--muted); font-weight:var(--weight-medium); }
.dashboard-cardbox-note { color:var(--muted); font-size:var(--text-sm); }
.dashboard-head-link { flex:none; min-height:0; padding:0; color:var(--spruce); font-size:var(--text-sm); font-weight:var(--weight-semibold); white-space:nowrap; }
.dashboard-head-link:hover { text-decoration:underline; text-underline-offset:var(--space-25); }
/* A number: the whole card opens what it counted, "View in Tickets →" on hover and focus; no dotted underline. */
#dashboardView .dashboard-cardbox.is-link { position:relative; transition:border-color .15s ease, box-shadow .15s ease; }
#dashboardView .dashboard-cardbox.is-link:hover, #dashboardView .dashboard-cardbox.is-link:focus-within { border-color:var(--line-strong, var(--line)); box-shadow:var(--shadow-pop); }
#dashboardView .dashboard-cardbox.is-link .dashboard-cardbox-head { position:relative; z-index:1; }
#dashboardView .dashboard-drill-number.dashboard-card-link, #dashboardView .dashboard-drill-number.dashboard-card-link:hover { color:inherit; text-decoration:none; }
#dashboardView .dashboard-card-link::after { content:""; position:absolute; inset:0; border-radius:inherit; cursor:pointer; }
#dashboardView .dashboard-card-link:focus-visible { outline:0; }
#dashboardView .dashboard-card-link:focus-visible::after { outline:2px solid var(--spruce); outline-offset:-2px; }
#dashboardView .dashboard-card-view { position:absolute; right:var(--space-200); bottom:var(--space-150); color:var(--spruce); font-size:var(--text-sm); font-weight:var(--weight-semibold); opacity:0; pointer-events:none; transition:opacity .15s ease; }
#dashboardView .dashboard-cardbox.is-link:hover .dashboard-card-view, #dashboardView .dashboard-cardbox.is-link:focus-within .dashboard-card-view { opacity:1; }
/* A zero, or a card with nothing to give, is muted. */
#dashboardView .dashboard-cardbox-number.is-zero { color:var(--muted); }
/* Needs attention: one line a ticket, its next due date never wrapped. */
#dashboardView .dashboard-ticket-list.is-one-line .dashboard-attention-row { display:grid; grid-template-columns:6rem minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 2.2fr) 13rem; align-items:center; gap:var(--space-75) var(--space-200); min-height:40px; padding:var(--space-75) var(--space-100); }
#dashboardView .dashboard-attention-row .ticket-number { white-space:nowrap; }
#dashboardView .dashboard-attention-row .dashboard-attention-title { font-size:var(--text-sm); }
#dashboardView .dashboard-attention-who { color:var(--muted); font-size:var(--text-xs); overflow-wrap:anywhere; }
#dashboardView .dashboard-attention-row .dashboard-reasons { grid-column:auto; padding-left:0; gap:var(--space-50); }
#dashboardView .dashboard-ticket-list.is-one-line .dashboard-due { grid-column:auto; grid-row:auto; max-width:none; text-align:right; white-space:nowrap; }
@media (max-width:900px) {
  #dashboardView .dashboard-ticket-list.is-one-line .dashboard-attention-row { grid-template-columns:max-content minmax(0, 1fr); }
  #dashboardView .dashboard-ticket-list.is-one-line .dashboard-attention-row > :nth-child(n+3) { grid-column:2; }
  #dashboardView .dashboard-ticket-list.is-one-line .dashboard-due { text-align:left; }
}
/* Team workload: short headings in sentence case. */
#dashboardView .dashboard-workload-table thead th { font-size:var(--text-xs); text-transform:none; letter-spacing:0; }
/* Throughput: received in gray and resolved in green, and the same numbers as a table on asking. */
#dashboardView .dashboard-cardbox.is-flow { --rp-s1:var(--muted); --rp-s2:var(--spruce); }
#dashboardView .dashboard-cardbox.is-flow .dashboard-cardbox-table { display:none; }
#dashboardView .dashboard-cardbox.is-flow.is-table-shown .dashboard-cardbox-table { display:block; }
#dashboardView .dashboard-cardbox.is-flow.is-table-shown .dashboard-flow-chart { display:none; }
#dashboardView .dashboard-show-flow { align-self:flex-start; min-height:0; padding:0; }
@media (max-width:560px) {
  #dashboardView .dashboard-head-tools { margin-left:0; }
  #dashboardView .dashboard-show-flow { min-height:44px; }
}

/* ---------- Dashboard: the headline row, the clock headings and the new cards (stages 2-4) ---------- */
#dashboardView, #dashboardEditorDrawer { --dc-wait:#cfd3c8; }
[data-theme="dark"] #dashboardView, [data-theme="dark"] #dashboardEditorDrawer { --dc-wait:#4a534b; }
/* Up to four number cards lead the dashboard, the same size each. */
#dashboardView .dashboard-headline { grid-column:1 / -1; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:var(--space-200); align-items:stretch; }
#dashboardView .dashboard-headline .dashboard-cardbox { grid-column:auto; }
#dashboardView .dashboard-cardbox.is-headline { gap:var(--space-75); }
/* Each clock named once, over its cards. */
#dashboardView .dashboard-section-head { grid-column:1 / -1; margin:var(--space-200) 0 0; color:var(--ink); font-size:var(--text-lg); font-weight:var(--weight-semibold); }
/* A headline card's context: Open now's split, or its target. */
#dashboardView .dashboard-split { display:grid; gap:var(--space-75); }
#dashboardView .dashboard-split-bar { display:flex; gap:var(--space-25); height:6px; overflow:hidden; border-radius:var(--radius-sm); }
#dashboardView .dashboard-split-bar i { display:block; min-width:2px; }
#dashboardView .dashboard-split-bar .is-team, #dashboardView .dashboard-key.is-team { background:var(--spruce); }
#dashboardView .dashboard-split-bar .is-waiting, #dashboardView .dashboard-key.is-waiting { background:var(--dc-wait); }
#dashboardView .dashboard-key { display:inline-block; width:9px; height:9px; margin-right:var(--space-50); border-radius:var(--radius-xs); vertical-align:baseline; }
#dashboardView .dashboard-context { margin:0; color:var(--ink-2); font-size:var(--text-sm); line-height:var(--leading-tight); }
#dashboardView .dashboard-split-part { position:relative; z-index:1; min-height:0; padding:0; border:0; background:none; box-shadow:none; color:inherit; font:inherit; cursor:pointer; }
#dashboardView button.dashboard-split-part:hover { color:var(--spruce); text-decoration:underline; text-underline-offset:var(--space-25); }
#dashboardView .dashboard-met { color:var(--dc-good); font-weight:var(--weight-semibold); }
#dashboardView .dashboard-missed { color:var(--dc-bad); font-weight:var(--weight-semibold); }
#dashboardView .dashboard-change.is-few { padding-inline:0; background:transparent; color:var(--muted); font-weight:var(--weight-medium); }
/* The trend: a faint line over the timeframe, with the target dashed. */
#dashboardView .dashboard-trend { display:block; width:100%; height:24px; margin-top:auto; overflow:visible; }
#dashboardView .dashboard-trend path { fill:none; stroke:var(--ink-2); stroke-width:1.5; vector-effect:non-scaling-stroke; }
#dashboardView .dashboard-trend line { stroke:var(--muted); stroke-width:1; stroke-dasharray:3 3; vector-effect:non-scaling-stroke; }
/* Needs attention's SLA line, and the tickets to nudge, muted and last. */
#dashboardView .dashboard-sla-line { display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--space-50); margin:0; padding:var(--space-75) var(--space-100); border-bottom:1px solid var(--line); font-size:var(--text-sm); }
#dashboardView .dashboard-sla-part { min-height:0; padding:0; border:0; background:none; box-shadow:none; color:var(--ink); font:inherit; font-weight:var(--weight-semibold); }
#dashboardView button.dashboard-sla-part { cursor:pointer; }
#dashboardView button.dashboard-sla-part:hover { text-decoration:underline; text-underline-offset:var(--space-25); }
#dashboardView .dashboard-sla-part.is-zero { color:var(--muted); font-weight:var(--weight-regular); }
#dashboardView .dashboard-sla-part.is-breached:not(.is-zero) { color:var(--dc-bad); }
#dashboardView .dashboard-sla-part.is-soon:not(.is-zero) { color:var(--dc-warn); }
.dashboard-reason.quiet { border:1px dashed var(--line-strong, var(--line)); background:transparent; color:var(--muted); box-shadow:none; }
#dashboardView .dashboard-attention-row:has(.dashboard-reason.quiet) .dashboard-attention-title { color:var(--ink-2); font-weight:var(--weight-medium); }
/* Team workload: open work with the team, then waiting on the requester, and the team's median as a tick. */
#dashboardView .dashboard-workload-table .dashboard-bar-track { position:relative; display:flex; }
#dashboardView .dashboard-workload-table .dashboard-bar { flex:none; border-radius:0; }
#dashboardView .dashboard-workload-table .dashboard-bar.is-waiting { background:var(--dc-wait); }
#dashboardView .dashboard-median { position:absolute; top:-3px; bottom:-3px; width:1px; background:var(--ink-2); }
#dashboardView .dashboard-split-key { display:block; margin-top:var(--space-25); font-weight:var(--weight-regular); }
/* The Targets card: each target, its result, the target and whether it was met. */
#dashboardView .dashboard-targets { display:grid; margin:0; padding:0; list-style:none; }
#dashboardView .dashboard-target-row { display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 11rem) 5.5rem; align-items:baseline; gap:var(--space-150); padding:var(--space-100) 0; border-top:1px solid var(--line); font-size:var(--text-sm); }
#dashboardView .dashboard-target-row:first-child { border-top:0; }
#dashboardView .dashboard-target-row.is-empty { color:var(--muted); }
#dashboardView .dashboard-target-label { color:var(--ink); font-weight:var(--weight-medium); }
#dashboardView .dashboard-target-value { min-height:0; padding:0; border:0; background:none; box-shadow:none; color:var(--ink); font:inherit; font-weight:var(--weight-semibold); font-variant-numeric:tabular-nums; text-align:right; }
#dashboardView button.dashboard-target-value { cursor:pointer; }
#dashboardView button.dashboard-target-value:hover { color:var(--spruce); text-decoration:underline; text-underline-offset:var(--space-25); }
#dashboardView .dashboard-target-goal { color:var(--muted); }
@media (max-width:900px) {
  #dashboardView .dashboard-headline { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:560px) {
  #dashboardView .dashboard-target-row { grid-template-columns:minmax(0, 1fr) auto; }
}
#dashboardView .dashboard-split-words { display:grid; gap:var(--space-25); }
#dashboardView .dashboard-attention-row .dashboard-reason { white-space:nowrap; }
