/* The staff app's work pages, Phase 1b (GitHub issue 203; docs/adr/0071): the time zone named once at the top of the
   page, Changes, the Overview and the Dashboard. Loaded after components.css; sizes are the tokens (tokens.css),
   colors the palette's (styles.css :root), as everywhere. */

/* ---------- Times: the zone, once, at the top of the page (AF10) ---------- */
.page-time-zone { flex:none; min-height:0; margin-left:auto; padding:0 var(--space-50); border:0; border-radius:var(--radius-sm); background:none; color:var(--muted); font:var(--weight-medium) var(--text-sm)/var(--leading-tight) var(--font-ui); white-space:nowrap; cursor:pointer; box-shadow:none; }
.page-time-zone:hover { color:var(--spruce); text-decoration:underline; text-underline-offset:var(--space-25); }
.page-time-zone:focus-visible { outline:2px solid var(--spruce); outline-offset:var(--space-25); }
.page-time-zone[hidden] { display:none; }
.page-frame-bar { gap:var(--space-150); }
.page-frame-bar .page-breadcrumb { min-width:0; }
@media (max-width:560px) { .page-time-zone { font-size:var(--text-xs); } }

/* ---------- Changes (AF8) ---------- */
/* The wizard is a page of its own under Changes: the tabs are put away while it is open. */
#changesView.is-creating-change #changeTabs { display:none; }
/* A field the wizard does not need now (the standard change model for a normal change, the service name unless
   "Another service" is chosen) is hidden; .change-field wrote display:block over the hidden attribute. */
#changeNewPanel .change-field[hidden] { display:none; }
.change-wizard-heading { margin:0 0 var(--space-250); }
.change-wizard-heading h2 { margin:0; }
/* One control height for the wizard's boxes and dropdowns. */
#changeNewPanel .change-field :is(input:not([type="checkbox"], [type="radio"]), select),
#changeNewPanel .change-field .custom-select-trigger { box-sizing:border-box; min-height:var(--control-height-lg); padding:var(--space-100) var(--space-150); line-height:var(--leading-tight); }
#changeNewPanel .change-field .custom-select-wrapper { margin-top:var(--space-100); }
#changeNewPanel .change-field .custom-select-wrapper .custom-select-trigger { margin-top:0; }
/* The CIs a change is about, picked from the CMDB, as on a raised change. */
.ce-ci-field { font-weight:var(--weight-regular); }
.ce-ci-field .ci-links h3 { margin:0 0 var(--space-50); color:var(--ink-2); font-size:var(--text-sm); font-weight:var(--weight-semibold); }
.ce-ci-field .ci-add { display:flex; gap:var(--space-100); margin-top:var(--space-100); }
.ce-ci-field .ci-add input { flex:1 1 auto; min-width:0; margin-top:0 !important; }
.ce-ci-field .ce-ci-name { color:var(--ink); font-weight:var(--weight-semibold); }

/* The state as a chip: a dot in the color of what the state means, and its name. */
.change-state-chip { display:inline-flex; align-items:center; gap:var(--space-75); max-width:100%; color:var(--ink-2); font-size:var(--text-sm); font-weight:var(--weight-medium); white-space:nowrap; }
.change-state-chip::before { content:""; flex:none; width:8px; height:8px; border-radius:var(--radius-round); background:#a6b0a7; }
.change-state-chip.state-hold::before, .change-state-chip.state-waiting::before { background:var(--saffron); }
.change-state-chip.state-progress::before { background:#4d70df; }
.change-state-chip.state-approved::before, .change-state-chip.state-completed::before { background:var(--spruce); }
.change-state-chip.state-declined::before, .change-state-chip.state-incomplete::before { background:var(--terra); }
.change-type-label { color:var(--ink); font-size:var(--text-sm); font-weight:var(--weight-medium); white-space:nowrap; }
.change-type-label.is-emergency { color:var(--bad); font-weight:var(--weight-semibold); }
.change-risk-none { color:var(--muted); font-size:var(--text-sm); white-space:nowrap; }
.change-schedule-kind { display:inline-flex; align-items:center; gap:var(--space-100); }

/* All changes: a search, the state filter, and the list. */
.change-list-tools { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100); }
.change-search { flex:0 1 20rem; min-width:12rem; }
.change-search input { width:100% !important; }
.change-search input { box-sizing:border-box; width:min(320px, 100%); min-height:var(--control-height); appearance:none; border:var(--control-border-width) solid var(--control-border); border-radius:var(--radius-md); background:var(--surface); color:var(--ink); }
.change-list-tools .change-state-filter { flex-direction:row; }
.change-list-table { width:100%; border-collapse:collapse; }
.change-list-table th { white-space:nowrap; }
.change-list-table td { vertical-align:middle; }
.change-list-row { cursor:pointer; }
.change-list-row:hover { background:var(--hover-bg); }
.change-list-main { min-width:16rem; }
.change-list-open { display:block; min-height:0; padding:0; border:0; background:none; color:var(--ink); font:inherit; text-align:left; cursor:pointer; box-shadow:none; }
.change-list-open b { font-size:var(--text-md); font-weight:var(--weight-semibold); }
.change-list-open:hover b { color:var(--spruce); text-decoration:underline; text-underline-offset:var(--space-25); }
.change-list-main small { display:block; margin-top:var(--space-25); color:var(--muted); font-size:var(--text-sm); }
.change-list-owner, .change-list-planned { color:var(--ink-2); font-size:var(--text-sm); white-space:nowrap; }
@media (max-width:700px) {
  /* On a phone each change is a card: the title, then the rest as labelled lines. */
  .change-list-wrap { overflow:visible; }
  .change-list-table thead { display:none; }
  .change-list-table, .change-list-table tbody, .change-list-table tr, .change-list-table td { display:block; width:100%; }
  .change-list-table tr { padding:var(--space-150) 0; border-bottom:1px solid var(--line); }
  .change-list-table td { padding:var(--space-25) 0; border:0; }
  .change-list-table td[data-label] { display:flex; justify-content:space-between; gap:var(--space-150); }
  .change-list-table td[data-label]::before { content:attr(data-label); color:var(--muted); font-size:var(--text-sm); }
  .change-list-main { min-width:0; padding-bottom:var(--space-75) !important; }
  /* The state, the type and the risk on one line under the title; the owner and the start labelled. */
  .change-list-table td:is([data-label="State"], [data-label="Type"], [data-label="Risk"]) { display:inline-flex; width:auto; margin:0 var(--space-150) var(--space-75) 0; vertical-align:middle; }
  .change-list-table td:is([data-label="State"], [data-label="Type"], [data-label="Risk"])::before { content:none; }
  .change-list-table td[data-label="Risk"] .pill::after { content:" risk"; }
  #changeAllPanel .panel-heading { flex-direction:column; align-items:stretch; }
  .change-search input { width:100%; }
  .change-list-tools { width:100%; }
  .change-list-tools > * { flex:1 1 100%; }
}

/* The approval queue, in two: waiting on you, then waiting on others. */
.approval-queue-section { display:grid; gap:var(--space-150); }
.approval-queue-section + .approval-queue-section { margin-top:var(--space-300); }
.approval-queue-section h3 { display:flex; align-items:center; gap:var(--space-100); margin:0; color:var(--ink); font-size:var(--text-lg); font-weight:var(--weight-semibold); }
.approval-queue-none { margin:0; color:var(--muted); font-size:var(--text-md); }
.approval-queue-card.is-yours { border-color:var(--saffron); box-shadow:inset 3px 0 0 var(--saffron); }
.approval-queue-header { cursor:default; }
.approval-queue-title { display:block; min-height:0; margin:0 0 var(--space-50); padding:0; border:0; background:none; color:var(--ink); font:var(--weight-semibold) var(--text-lg)/var(--leading-tight) var(--font-ui); text-align:left; cursor:pointer; box-shadow:none; }
.approval-queue-title:hover { color:var(--spruce); text-decoration:underline; text-underline-offset:var(--space-25); }
.approval-queue-title .change-number { color:var(--muted); font-weight:var(--weight-medium); }
.approval-queue-header small { font-size:var(--text-sm); }
@media (max-width:700px) { .approval-queue-header { flex-direction:column; } }
/* Approve or decline: a comment, then the two buttons. */
.change-decision-actions { display:flex; justify-content:flex-end; gap:var(--space-100); margin-top:var(--space-150); }

/* A change's facts as a compact list in two columns (they were tall boxed cards), and its approvals near the top while
   it waits for them. */
.modal.change-detail-modal { width:min(var(--dialog-width-wide), 100%); max-width:100%; }
.change-detail-modal .change-review-grid { display:none; }
.change-detail-modal .change-detail-meta { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 var(--space-400); margin:var(--space-200) 0; }
.change-detail-modal .change-detail-meta { margin-bottom:var(--space-200); }
.change-detail-modal .change-review-card, .change-detail-modal .change-detail-meta-item { display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-150); padding:var(--space-75) 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; box-shadow:none; }
.change-detail-modal .change-review-card span, .change-detail-modal .change-detail-meta-item span { margin:0; color:var(--muted); font-size:var(--text-sm); font-weight:var(--weight-regular); letter-spacing:0; text-transform:none; white-space:nowrap; }
.change-detail-modal .change-review-card strong, .change-detail-modal .change-detail-meta-item strong { color:var(--ink); font:var(--weight-medium) var(--text-md)/var(--leading-tight) var(--font-ui); text-align:right; }
[data-theme="dark"] .change-detail-modal .change-review-card, [data-theme="dark"] .change-detail-modal .change-detail-meta-item { background:none; border-color:var(--line); }
.change-detail-modal #changeDetailApprovalsSection.is-waiting { margin-bottom:var(--space-200); }
@media (max-width:700px) { .change-detail-modal .change-review-grid, .change-detail-modal .change-detail-meta { grid-template-columns:1fr; } }

/* ---------- The Overview and the Dashboard (AF9) ---------- */
/* "2 breached · 0 due today": the numbers large, the words at the body size, each half kept together. */
.work-figure-part { display:block; white-space:nowrap; }
/* In a narrow card the two halves are on two lines and the dot is only read out; with room, one line. */
.work-figure-sep { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; color:var(--muted); }
.ov-kpi, .dashboard-kpi { container-type:inline-size; }
@container (min-width:16rem) {
  .work-figure-part { display:inline; }
  .work-figure-sep { position:static; width:auto; height:auto; overflow:visible; clip:auto; }
}
.ov-kpi-value.ov-kpi-sla, .dashboard-kpi strong.dashboard-kpi-sla { font-size:var(--text-md); font-weight:var(--weight-medium); letter-spacing:0; line-height:var(--leading-tight); color:var(--ink-2); }
.ov-kpi-sla .work-figure-num, .dashboard-kpi-sla .work-figure-num { color:var(--ink); font-size:var(--text-3xl); font-weight:var(--weight-bold); letter-spacing:-.01em; }
.work-figure-num.is-breached { color:var(--bad); }
/* Card labels on one line at 14 px. */
.ov-kpi-label, .dashboard-kpi p { font-size:var(--text-md); white-space:nowrap; }
.dashboard-kpi p { color:var(--ink-2); font-weight:var(--weight-medium); }
.dashboard-kpi div, .dashboard-kpi small { font-size:var(--text-sm); }
@media (max-width:560px) {
  .ov-kpi { padding:var(--space-150); }
  .ov-kpis { gap:var(--space-100); }
}
/* Your work: the title has the room; its number and the requester go under it. */
#overviewView .ov-work-table { table-layout:auto; }
#overviewView .ov-work-table .ov-col-ticket { width:100%; min-width:12rem; }
#overviewView .ov-work-table .ov-t-subj { display:block; white-space:normal; overflow:visible; text-overflow:clip; max-width:none; }
#overviewView .ov-work-table td:not(.ov-col-ticket) { white-space:nowrap; }
#overviewView .ov-work-table .ov-t-meta { display:block; white-space:normal; overflow:visible; text-overflow:clip; }
#overviewView .ov-t-meta .ov-t-id { color:var(--ov-ink-2); font-weight:var(--weight-medium); }
.ov-team-note { margin:var(--space-200) 0 0; color:var(--muted); font-size:var(--text-md); }
.ov-team-note .ov-link { display:inline-flex; align-items:center; gap:var(--space-50); color:var(--spruce) !important; font-weight:var(--weight-semibold); }

/* The Dashboard's filter row has Priority; its team cards that were on the Overview. */
.dashboard-to-overview { align-self:center; padding-inline:0; }
#dashboardView { --ov-p-critical:#b03e2c; --ov-p-high:#d27b2e; --ov-p-medium:#dfbb5e; --ov-p-low:#bcc2b8; }
[data-theme="dark"] #dashboardView { --ov-p-critical:#e8735d; --ov-p-high:#e99a55; --ov-p-medium:#e3c678; --ov-p-low:#6b736d; }
.dashboard-grid-halves { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.dashboard-mini-title { margin:var(--space-150) 0 var(--space-100); color:var(--muted); font-size:var(--text-xs); font-weight:var(--weight-semibold); letter-spacing:.06em; text-transform:uppercase; }
.dashboard-mini-title:first-child { margin-top:0; }
.dashboard-stacked { display:flex; gap:var(--space-25); height:10px; margin:0 0 var(--space-100); }
.dashboard-stacked span { min-width:4px; border-radius:var(--radius-xs); }
.dashboard-dot { display:inline-block; flex:none; width:10px; height:10px; margin-right:var(--space-75); border-radius:var(--radius-xs); vertical-align:middle; }
.dashboard-priority-list li button { grid-template-columns:minmax(0, 1fr) 48px 28px; }
.dashboard-bar-share { color:var(--muted); font-size:var(--text-sm); text-align:right; font-variant-numeric:tabular-nums; }
.dashboard-breakdown .dashboard-bars li button, .dashboard-sites .dashboard-bars li button { grid-template-columns:minmax(0, 9rem) minmax(0, 1fr) 32px; }
.dashboard-breakdown .dashboard-priority-list li button { grid-template-columns:minmax(0, 1fr) 48px 32px; }
.dashboard-bar-label { color:var(--ink-2); font-size:var(--text-sm); }
.dashboard-site-list .dashboard-bar-label b { display:block; color:var(--ink); font-weight:var(--weight-semibold); }
.dashboard-site-list .dashboard-bar-label small { display:block; color:var(--muted); font-size:var(--text-xs); white-space:normal; overflow:hidden; overflow-wrap:break-word; }
.dashboard-bar.is-muted { background:var(--ov-p-low); }
.dashboard-bars li button:disabled { cursor:default; opacity:.7; }
.dashboard-map { margin:0 0 var(--space-150); }
@media (max-width:900px) { .dashboard-grid-halves { grid-template-columns:1fr; } }
/* The dashboard page (GitHub issue 586; docs/adr/0318-dashboard-page.md): the picker, "Updated", Refresh and
   Full screen above every dashboard; a dashboard of cards in a grid of four (small one, half two, full all four); each
   card's footnote with its timeframe and clock, dashed chips for what it keeps fixed, and what doesn't apply to it. */
.dashboard-head { flex-wrap:wrap; }
.dashboard-head-tools { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:flex-end; gap:var(--space-100) var(--space-150); }
.dashboard-choose { display:grid; gap:var(--space-50); color:var(--muted); font-size:var(--text-2xs); font-weight:var(--weight-bold); }
.dashboard-choose select { min-width:220px; max-width:100%; min-height:36px; }
.dashboard-updated { align-self:center; color:var(--muted); font-size:var(--text-sm); white-space:nowrap; }
.dashboard-head-tools .outline-button { min-height:36px; }
.dashboard-custom-dates { display:flex; flex-wrap:wrap; align-items:flex-end; gap:var(--space-150); }
.dashboard-custom-dates input { min-height:36px; }
.dashboard-error { margin:0 0 var(--space-200); }
.dashboard-cards { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:var(--space-200); }
.dashboard-cards.is-loading { opacity:.6; transition:opacity .2s ease; }
.dashboard-cardbox { display:flex; flex-direction:column; gap:var(--space-100); min-width:0; margin:0; }
.dashboard-cardbox.is-small { grid-column:span 1; }
.dashboard-cardbox.is-half { grid-column:span 2; }
.dashboard-cardbox.is-full { grid-column:1 / -1; }
.dashboard-cardbox-title { margin:0; font-size:var(--text-md); overflow-wrap:anywhere; }
.dashboard-cardbox-number { margin:0; color:var(--ink); font-size:var(--text-3xl); font-weight:var(--weight-bold); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.dashboard-cardbox-number.is-words { font-size:var(--text-lg); }
.dashboard-cardbox-reason { margin:0; color:var(--muted); font-size:var(--text-sm); }
.dashboard-cardbox-rows { display:grid; gap:var(--space-75); margin:0; padding:0; list-style:none; }
.dashboard-cardbox-rows li { display:grid; grid-template-columns:minmax(0, 1fr) minmax(48px, 30%) auto; align-items:center; gap:var(--space-100); font-size:var(--text-sm); }
.dashboard-cardbox-label { min-width:0; color:var(--ink-2); overflow-wrap:anywhere; }
.dashboard-cardbox-rows b { font-variant-numeric:tabular-nums; }
.dashboard-cardbox-table .dashboard-table td { overflow-wrap:anywhere; }
.dashboard-cardbox-top { display:none; }
.dashboard-cardbox-foot { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-50) var(--space-100); margin-top:auto; padding-top:var(--space-100); border-top:1px solid var(--line); color:var(--muted); font-size:var(--text-xs); }
.dashboard-cardbox-when { color:var(--ink-2); font-weight:var(--weight-medium); }
.dashboard-chip-fixed { padding:var(--space-25) var(--space-100); border:1px dashed var(--muted); border-radius:var(--radius-pill); color:var(--ink-2); overflow-wrap:anywhere; }
.dashboard-cardbox-skip { color:var(--muted); font-style:italic; overflow-wrap:anywhere; }
/* Full screen: the side bar and the top bar hidden, the page as wide as the screen. */
body.dashboard-full-screen .sidebar, body.dashboard-full-screen .topbar, body.dashboard-full-screen #mobileMenu { display:none; }
body.dashboard-full-screen .view-container { max-width:none; }
@media (max-width:900px) { .dashboard-cards { grid-template-columns:repeat(2, minmax(0, 1fr)); } .dashboard-cardbox.is-half { grid-column:1 / -1; } }
/* A phone: one column in the dashboard's order with numbers two to a row, a table's top five as bars with "Show table",
   nothing to change, and the Team board's Needs attention titles across the whole width with their reasons below. */
@media (max-width:560px) { .dashboard-cards { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--space-150); } .dashboard-cardbox, .dashboard-cardbox.is-small, .dashboard-cardbox.is-half { grid-column:1 / -1; } .dashboard-cardbox.is-number { grid-column:span 1; } .dashboard-cardbox-table { display:none; } .dashboard-cardbox-top { display:block; } .dashboard-cardbox.is-table-shown .dashboard-cardbox-table { display:block; } .dashboard-cardbox.is-table-shown .dashboard-cardbox-top .dashboard-cardbox-rows { display:none; } .dashboard-head-tools { justify-content:flex-start; width:100%; } .dashboard-choose { width:100%; } .dashboard-choose select { width:100%; min-width:0; } .dashboard-head-tools .outline-button, .dashboard-show-table { min-height:44px; } .dashboard-edit-only { display:none; } .dashboard-attention-list button { grid-template-columns:minmax(0, 1fr); } .dashboard-due { grid-column:1; grid-row:auto; white-space:normal; } }
/* The card editor and how cards show (GitHub issue 587; docs/adr/0319-card-editor.md). Each card's title has
   its menu (Edit, Move up, Move down, Remove) where the person may change the dashboard; a card being dragged fades and
   the card it would go before or after is marked. A number's change is green or red the way that is better for what it
   counts, and a target turns the card amber or red, said in words too. The Reports page's charts take their colors
   here. A table and a grid scroll inside their card, never the page. The drawer is New ticket's. */
#dashboardView, #dashboardEditorDrawer { --rp-single:var(--spruce); --rp-s1:#2a78d6; --rp-s2:#eb6834; --rp-s3:#1baf7a; --rp-s4:#eda100; --rp-s5:#e87ba4; --rp-s6:#008300; --dc-good:#276f45; --dc-good-soft:#e0efe5; --dc-bad:#b03e2c; --dc-bad-soft:#f7e3de; --dc-warn:#9a6210; --dc-warn-soft:#f7ebd3; --dc-grid-1:#e3eee8; --dc-grid-2:#b9d6c6; --dc-grid-3:#7fb398; --dc-grid-4:#3f8763; }
[data-theme="dark"] #dashboardView, [data-theme="dark"] #dashboardEditorDrawer { --rp-s1:#3987e5; --rp-s2:#d95926; --rp-s3:#199e70; --rp-s4:#c98500; --rp-s5:#d55181; --dc-good:#74c592; --dc-good-soft:#1d3326; --dc-bad:#ec8a75; --dc-bad-soft:#3b231e; --dc-warn:#e2ab4f; --dc-warn-soft:#372b16; --dc-grid-1:#1f2e26; --dc-grid-2:#2c4a3a; --dc-grid-3:#3f6e55; --dc-grid-4:#5f9e7c; }
.dashboard-head-tools [hidden], .dashboard-card-menu-list[hidden], .dashboard-editor [hidden] { display:none !important; }
.dashboard-cardbox-head { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-100); min-width:0; }
.dashboard-cardbox-head .dashboard-cardbox-title { flex:1; min-width:0; }
.dashboard-card-menu { position:relative; flex:0 0 auto; }
.dashboard-card-menu-button { display:grid; place-items:center; width:32px; height:32px; margin:-6px -6px 0 0; border-radius:var(--radius-lg); background:transparent; color:var(--muted); }
.dashboard-card-menu-button svg { width:16px; height:16px; fill:currentColor; }
.dashboard-card-menu-button:hover, .dashboard-card-menu-button[aria-expanded="true"] { background:var(--hover-bg); color:var(--ink); }
.dashboard-card-menu-list { position:absolute; z-index:20; top:calc(100% + 4px); right:-6px; display:grid; min-width:170px; padding:var(--space-75); border:1px solid var(--line); border-radius:var(--radius-xl); background:var(--surface); box-shadow:var(--shadow-pop); }
.dashboard-card-menu-list button { padding:var(--space-100) var(--space-150); border-radius:var(--radius-lg); background:transparent; color:var(--ink); font-size:var(--text-md); text-align:left; white-space:normal; }
.dashboard-card-menu-list button:hover:not(:disabled), .dashboard-card-menu-list button:focus-visible { background:var(--hover-bg); outline:none; }
.dashboard-card-menu-list button:disabled { color:var(--muted); cursor:default; opacity:.6; }
.dashboard-card-menu-list [data-card-action="remove"] { color:var(--bad); }
/* Moving a card (docs/adr/0424-dashboard-card-grip.md). The grip (⠿) sits in the card's left edge beside its title,
   where the person may arrange the dashboard: quiet until the card is hovered or holds the keyboard's focus, always
   shown (faintly, with a 44 px target) on a touch screen, which has no hover, and gone on a phone (D8). Its pointer,
   and every pointer while a card moves, is the app's own small move arrows (--cursor-move in styles.css), never the
   system's hand. */
.dashboard-cardbox { --dc-gutter:var(--space-250); }
body.density-compact .dashboard-cardbox { --dc-gutter:var(--space-200); }
.dashboard-cardbox-head { position:relative; }
.dashboard-card-grip { position:absolute; top:-3px; left:calc(-1 * var(--dc-gutter) + 2px); display:grid; place-items:center; width:calc(var(--dc-gutter) - 4px); min-width:0; height:28px; min-height:0; padding:0; border:0; border-radius:var(--radius-sm); background:transparent; box-shadow:none; color:var(--muted); line-height:0; opacity:0; cursor:var(--cursor-move); touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; transition:opacity .12s ease, color .12s ease, background-color .12s ease; }
.dashboard-card-grip svg { width:8px; height:14px; fill:currentColor; pointer-events:none; }
.dashboard-cardbox:hover .dashboard-card-grip, .dashboard-cardbox:focus-within .dashboard-card-grip { opacity:1; }
.dashboard-card-grip:hover, .dashboard-card-grip:focus-visible { background:var(--hover-bg); color:var(--spruce); }
.dashboard-card-grip:focus-visible { outline:2px solid var(--spruce); outline-offset:-1px; }
@media (hover:none) { .dashboard-card-grip { opacity:.7; } .dashboard-card-grip::before { content:""; position:absolute; inset:-8px -14px; } }
@media (max-width:560px) { .dashboard-card-grip { display:none; } }
/* While a card moves: a copy of it lifts (a shadow, a touch larger) and follows the pointer, a tall card cut short and
   fading out; the place it left is a dashed outline; the other sections fade, as it lands only among its own; and a bar
   in the gap marks where it lands. A dropped card is ringed for a moment. Reduced motion keeps all of it still. */
.dashboard-card-lifted { position:fixed; z-index:var(--z-popover); margin:0; max-height:240px; overflow:hidden; pointer-events:none; border-color:color-mix(in srgb, var(--spruce) 40%, var(--line-strong)); box-shadow:var(--shadow-pop); transform:scale(1.02); cursor:var(--cursor-move); animation:dashboard-card-lift .14s ease-out; }
/* In dark, a raised card is a lighter one: the shadow alone barely shows on a dark page. */
[data-theme="dark"] .dashboard-card-lifted { border-color:color-mix(in srgb, var(--spruce) 40%, var(--line-strong)); background:var(--surface-2); }
.dashboard-card-lifted.is-cut { -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 48px), transparent); mask-image:linear-gradient(to bottom, #000 calc(100% - 48px), transparent); }
@keyframes dashboard-card-lift { from { transform:scale(1); box-shadow:var(--shadow); } }
.dashboard-cardbox.is-moving { border-style:dashed; border-color:var(--spruce); background:color-mix(in srgb, var(--spruce) 6%, var(--surface)); box-shadow:none; }
.dashboard-cardbox.is-moving > * { opacity:0; }
.dashboard-cards[data-moving-group] .dashboard-cardbox { transition:opacity .15s ease; }
.dashboard-cards[data-moving-group="headline"] .dashboard-cardbox:not([data-card-group="headline"]), .dashboard-cards[data-moving-group="now"] .dashboard-cardbox:not([data-card-group="now"]), .dashboard-cards[data-moving-group="timeframe"] .dashboard-cardbox:not([data-card-group="timeframe"]) { opacity:.4; }
.dashboard-drop-mark { position:fixed; z-index:var(--z-popover); width:4px; border-radius:var(--radius-xs); background:var(--spruce); box-shadow:0 0 0 3px color-mix(in srgb, var(--spruce) 22%, transparent); pointer-events:none; transition:left .1s ease, top .1s ease, width .1s ease, height .1s ease; }
.dashboard-drop-mark.is-across { width:auto; height:4px; }
.dashboard-drop-mark[hidden] { display:none; }
html.is-moving-card, html.is-moving-card * { cursor:var(--cursor-move) !important; user-select:none; -webkit-user-select:none; }
/* Every page keeps the end of its fade-in (.view's fadeUp, filled both ways), and a browser holds anything fixed inside
   an element whose transform an animation still fills to that element, not the window: the lifted card and the bar
   landed a page away. The dashboard's fade-in plays as before and holds nothing once it has played. */
#dashboardView { animation-fill-mode:backwards; }
.dashboard-cardbox.is-just-moved { animation:dashboard-card-settle .9s ease-out; }
@keyframes dashboard-card-settle { from { box-shadow:0 0 0 3px var(--spruce); } to { box-shadow:var(--shadow); } }
@media (prefers-reduced-motion: reduce) {
  .dashboard-card-grip, .dashboard-drop-mark, .dashboard-cards[data-moving-group] .dashboard-cardbox { transition:none; }
  .dashboard-card-lifted, .dashboard-cardbox.is-just-moved { animation:none; }
  .dashboard-cardbox.is-just-moved { outline:2px solid var(--spruce); outline-offset:2px; }
}
.dashboard-cardbox.is-amber { border-color:var(--dc-warn); box-shadow:inset 0 4px 0 var(--dc-warn); }
.dashboard-cardbox.is-red { border-color:var(--dc-bad); box-shadow:inset 0 4px 0 var(--dc-bad); }
.dashboard-cardbox.is-red .dashboard-cardbox-number { color:var(--dc-bad); }
.dashboard-change { align-self:flex-start; margin:0; padding:var(--space-25) var(--space-100); border-radius:var(--radius-pill); font-size:var(--text-sm); font-weight:600; overflow-wrap:anywhere; }
.dashboard-change.is-good { color:var(--dc-good); background:var(--dc-good-soft); }
.dashboard-change.is-bad { color:var(--dc-bad); background:var(--dc-bad-soft); }
.dashboard-change.is-neutral { color:var(--ink-2); background:var(--surface-2); }
.dashboard-target-words { margin:0; color:var(--ink-2); font-size:var(--text-sm); font-weight:600; }
.dashboard-cardbox.is-amber .dashboard-target-words { color:var(--dc-warn); }
.dashboard-cardbox.is-red .dashboard-target-words { color:var(--dc-bad); }
.dashboard-cardbox-list { display:grid; gap:var(--space-75); margin:0; padding:0 0 0 var(--space-250); font-size:var(--text-sm); }
.dashboard-cardbox-list li { padding-left:var(--space-50); }
.dashboard-cardbox-list li > span { display:inline; color:var(--ink-2); overflow-wrap:anywhere; }
.dashboard-cardbox-list li > b { float:right; margin-left:var(--space-150); font-variant-numeric:tabular-nums; }
.dashboard-legend-line { margin-top:var(--space-50); font-size:var(--text-sm); }
#dashboardCardsGrid .rp-bar-row.is-still, #dashboardCardsGrid .rp-col, #dashboardCardsGrid .rp-hit, .dce-preview .rp-bar-row.is-still, .dce-preview .rp-col, .dce-preview .rp-hit { cursor:default; }
#dashboardCardsGrid .rp-bar-row.is-still:hover, .dce-preview .rp-bar-row.is-still:hover { background:transparent; }
.dashboard-cardbox .rp-bar-label { font-size:var(--text-sm); }
.dashboard-grid-table { width:100%; border-collapse:separate; border-spacing:2px; font-size:var(--text-sm); }
.dashboard-grid-table th { padding:var(--space-50) var(--space-75); color:var(--ink-2); font-size:var(--text-sm); font-weight:600; text-align:left; text-transform:none; letter-spacing:normal; overflow-wrap:anywhere; }
.dashboard-grid-cell { min-width:36px; padding:var(--space-75); border-radius:var(--radius-sm); color:var(--ink); text-align:center; font-variant-numeric:tabular-nums; }
.dashboard-grid-cell.level-0 { background:var(--surface-2); color:var(--muted); }
.dashboard-grid-cell.level-1 { background:var(--dc-grid-1); }
.dashboard-grid-cell.level-2 { background:var(--dc-grid-2); }
.dashboard-grid-cell.level-3 { background:var(--dc-grid-3); color:#fff; }
.dashboard-grid-cell.level-4 { background:var(--dc-grid-4); color:#fff; font-weight:600; }
[data-theme="dark"] .dashboard-grid-cell.level-3, [data-theme="dark"] .dashboard-grid-cell.level-4 { color:#0e1512; }
.dashboard-cardbox-table { overflow-x:auto; }
/* The drawer: New ticket's, with the library, the card's parts and its preview. */
.dashboard-editor { width:min(640px,100%); }
.dashboard-editor :focus-visible { outline:2px solid var(--spruce); outline-offset:2px; }
.dashboard-editor input[type="text"], .dashboard-editor input[type="search"], .dashboard-editor input[type="number"], .dashboard-editor input[type="date"] { display:block; width:100%; min-height:40px; margin:var(--space-75) 0 0; padding:var(--space-100) var(--space-150); border:1px solid var(--control-border); border-radius:var(--radius-lg); background:var(--surface); color:var(--ink); font:400 var(--text-md)/1.45 var(--font-ui); box-sizing:border-box; }
.dashboard-editor .nt-combo input[type="search"] { margin:0; padding-left:var(--space-500); }
.dashboard-editor input:focus { border-color:var(--spruce); box-shadow:0 0 0 3px var(--control-focus); outline:none; }
.dashboard-editor input:disabled { background:var(--surface-2); color:var(--muted); }
.dashboard-editor .nt-label { margin-top:var(--space-200); }
.dashboard-editor .nt-section > .nt-label:first-child, .dashboard-editor .nt-section > .dce-chosen + .nt-label { margin-top:0; }
.dashboard-editor .nt-hint.dce-first-hint { margin:0 0 var(--space-150); }
.dashboard-editor .nt-seg { flex-wrap:wrap; }
.dashboard-editor .nt-field { margin-top:var(--space-150); }
.dce-library { display:grid; gap:var(--space-100); margin-top:var(--space-150); }
/* Each group: a header that reads as a heading (the ink color, sentence case, a step larger than a card's title, on a
   light band) and folds the group away, with how many it holds. A line sets the groups apart. */
.dce-group + .dce-group { padding-top:var(--space-100); border-top:1px solid var(--line); }
.dce-group h3 { margin:0; font-size:inherit; font-weight:inherit; }
.dce-group-toggle { display:flex; align-items:center; gap:var(--space-75); width:100%; min-height:var(--control-height); padding:var(--space-50) var(--space-75); border:0; border-radius:var(--radius-md); background:var(--hover-bg-subtle); color:var(--ink); font:inherit; font-size:var(--text-lg); font-weight:var(--weight-bold); text-align:left; cursor:pointer; }
.dce-group-toggle:hover { background:var(--hover-bg); }
.dce-group-toggle:focus-visible { outline:2px solid var(--spruce); outline-offset:1px; }
.dce-group-chevron { flex:none; width:18px; height:18px; color:var(--ink); transition:transform .15s; }
.dce-group-toggle[aria-expanded="true"] .dce-group-chevron { transform:rotate(90deg); }
.dce-group-name { min-width:0; overflow-wrap:anywhere; }
.dce-group-count { flex:none; margin-left:auto; min-width:1.75rem; padding:0 var(--space-75); border-radius:var(--radius-pill); border:1px solid var(--line); background:var(--surface); color:var(--ink); font-size:var(--text-sm); font-weight:var(--weight-semibold); line-height:1.6; text-align:center; }
.dce-group ul { display:grid; gap:var(--space-75); margin:var(--space-50) 0 var(--space-75); padding:0; list-style:none; }
.dce-group ul[hidden] { display:none; }
@media (prefers-reduced-motion: reduce) { .dce-group-chevron { transition:none; } }
.dce-entry { display:grid; gap:var(--space-25); width:100%; padding:var(--space-100) var(--space-150); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); color:var(--ink); text-align:left; white-space:normal; }
.dce-entry:hover { border-color:var(--control-hover); background:var(--hover-bg-subtle); }
.dce-entry b { font-size:var(--text-md); font-weight:600; overflow-wrap:anywhere; }
.dce-entry small { color:var(--muted); font-size:var(--text-sm); overflow-wrap:anywhere; }
.dce-chosen { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-150); margin-bottom:var(--space-200); padding:var(--space-150); border:1px solid var(--line); border-radius:var(--radius-xl); background:var(--surface-2); }
.dce-chosen-text { display:grid; gap:var(--space-25); min-width:0; }
.dce-chosen-text b { font-size:var(--text-md); overflow-wrap:anywhere; }
.dce-chosen-text small { color:var(--muted); font-size:var(--text-sm); overflow-wrap:anywhere; }
.dce-follows { display:grid; gap:var(--space-150); }
.dce-follow { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.4fr); align-items:center; gap:var(--space-75) var(--space-150); }
.dce-follow-label { color:var(--ink); font-size:var(--text-md); font-weight:500; overflow-wrap:anywhere; }
.dce-fixed { grid-column:1 / -1; margin:0; padding:var(--space-100) var(--space-150); border:1px dashed var(--muted); border-radius:var(--radius-lg); }
.dce-fixed legend { padding:0 var(--space-50); color:var(--ink-2); font-size:var(--text-sm); font-weight:600; }
.dce-fixed .nt-field { margin-top:0; }
.dce-values { display:flex; flex-wrap:wrap; gap:var(--space-75) var(--space-200); max-height:220px; overflow-y:auto; }
.dce-check { display:inline-flex; align-items:center; gap:var(--space-75); min-height:32px; color:var(--ink); font-size:var(--text-md); overflow-wrap:anywhere; }
.dce-own { display:grid; gap:var(--space-100); margin-bottom:var(--space-100); }
.dce-filter { display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items:center; gap:var(--space-100); }
.dce-filter > input { margin:0 !important; }
.dce-filter-values { color:var(--ink-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.dce-remove { display:grid; place-items:center; width:32px; height:32px; border-radius:var(--radius-lg); background:transparent; color:var(--muted); }
.dce-remove svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.dce-remove:hover { background:var(--hover-bg); color:var(--ink); }
.dce-preview { grid-template-columns:minmax(0, 1fr); }
.dce-preview .dashboard-cardbox { grid-column:1 / -1; }
.dce-preview.is-loading { opacity:.6; }
.dce-preview-problem { color:var(--bad); }
.dce-options { margin-top:var(--space-50); }
@media (max-width:560px) { .dce-follow, .dce-filter { grid-template-columns:minmax(0, 1fr); } .dashboard-editor .nt-two { grid-template-columns:minmax(0, 1fr); } }
/* The work cards (GitHub issue 588; docs/adr/0320-work-cards.md). A list of tickets in a card: titles wrap to
   two lines with a fade, the reasons below as chips with an icon and words. A workload table scrolls inside its card,
   with Unassigned below in italics. "Switch field" sits beside the title. Received and resolved say their totals. */
.dashboard-ticket-list button { padding:var(--space-100) var(--space-50); }
.dashboard-ticket-list .dashboard-due { white-space:normal; text-align:right; max-width:16ch; }
.dashboard-workload-table th[scope="col"] { white-space:normal; overflow-wrap:anywhere; }
.dashboard-workload-table .dashboard-col-when { display:block; color:var(--muted); font-size:var(--text-2xs); font-weight:normal; }
.dashboard-workload-table th[scope="row"] { min-width:120px; max-width:220px; font-weight:600; }
.dashboard-workload-table .dashboard-inline-bar { grid-template-columns:minmax(40px, 110px) auto; }
.dashboard-switch { display:flex; flex:0 1 auto; align-items:center; gap:var(--space-50); min-width:0; color:var(--muted); font-size:var(--text-xs); }
.dashboard-switch .custom-select-wrapper { min-width:0; max-width:170px; }
.dashboard-switch select { max-width:150px; min-height:32px; padding:var(--space-25) var(--space-100); border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); color:var(--ink); font-size:var(--text-xs); }
.dashboard-flow-totals { display:flex; flex-wrap:wrap; gap:var(--space-50) var(--space-200); margin:var(--space-100) 0 0; color:var(--ink-2); font-size:var(--text-sm); }
.dashboard-flow-totals b { color:var(--ink); font-variant-numeric:tabular-nums; }
.dashboard-flow-totals small { color:var(--muted); }
.dce-columns { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:var(--space-50) var(--space-150); margin-top:var(--space-150); }
@media (max-width:560px) { .dashboard-switch select, .dashboard-switch .custom-select-trigger { min-height:44px; max-width:none; } .dashboard-switch, .dashboard-switch .custom-select-wrapper { flex:1 1 100%; max-width:none; } .dashboard-cardbox-head:has(.dashboard-switch) { flex-wrap:wrap; } .dashboard-ticket-list .dashboard-due { text-align:left; max-width:none; } }
/* The ticket queue card (GitHub issue 589): a saved view or the card's own filters as a table with paging. Each
   ticket's number and title (two lines at most, with a fade) open it; "Why it's here" is chips with an icon and words;
   the pager and "Show all" sit under it. The table scrolls inside its card on a narrow screen; on a phone each ticket is
   a block of its own with each value named, and every button is at least 44 px. */
.dashboard-queue-count { margin:0 0 var(--space-75); color:var(--muted); font-size:var(--text-xs); }
.dashboard-queue-table th[scope="col"] { white-space:normal; overflow-wrap:anywhere; vertical-align:bottom; }
.dashboard-queue-table th[scope="col"] .dashboard-col-when { display:block; color:var(--muted); font-size:var(--text-2xs); font-weight:normal; }
.dashboard-queue-head { padding:0; border:0; background:none; color:inherit; font:inherit; font-weight:600; text-align:left; cursor:pointer; }
.dashboard-queue-head:hover { color:var(--spruce-dark); text-decoration:underline; }
.dashboard-queue-head:focus-visible, .dashboard-queue-ticket:focus-visible { outline:2px solid var(--spruce); outline-offset:2px; }
.dashboard-queue-table th[scope="row"] { min-width:200px; max-width:340px; font-weight:normal; text-align:left; }
.dashboard-queue-ticket { display:grid; gap:var(--space-25); width:100%; padding:0; border:0; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.dashboard-queue-ticket .ticket-number { color:var(--muted); font-size:var(--text-2xs); }
.dashboard-queue-ticket b { font-weight:600; overflow-wrap:anywhere; }
.dashboard-queue-ticket:hover b { color:var(--spruce); }
.dashboard-cardbox-table .dashboard-queue-table td { vertical-align:top; min-width:76px; overflow-wrap:break-word; word-break:normal; }
.dashboard-queue-table td.is-breached { color:var(--bad); font-weight:600; }
.dashboard-queue-table .dashboard-reasons { grid-column:auto; padding-left:0; gap:var(--space-50); }
.dashboard-queue-why { min-width:150px; }
.dashboard-queue-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-100); margin-top:var(--space-100); }
.dashboard-queue-pager { display:flex; align-items:center; gap:var(--space-100); color:var(--ink-2); font-size:var(--text-sm); }
.dashboard-queue-pager button { min-height:32px; }
.dashboard-cardbox.is-queue.is-loading { opacity:0.6; }
@media (max-width:560px) {
  .dashboard-cardbox.is-queue .dashboard-cardbox-table { display:block; overflow:visible; }
  .dashboard-queue-table, .dashboard-queue-table tbody, .dashboard-queue-table tr, .dashboard-queue-table th, .dashboard-queue-table td { display:block; width:auto; }
  .dashboard-queue-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .dashboard-queue-table tr { padding:var(--space-100) 0; border-bottom:1px solid var(--line); }
  .dashboard-queue-table th[scope="row"] { min-width:0; max-width:none; padding:0 0 var(--space-50); border:0; }
  .dashboard-queue-ticket { min-height:44px; }
  .dashboard-queue-table td { display:grid; grid-template-columns:minmax(90px, 40%) minmax(0, 1fr); gap:var(--space-100); padding:var(--space-25) 0; border:0; }
  .dashboard-queue-table td::before { content:attr(data-label); color:var(--muted); font-size:var(--text-xs); }
  .dashboard-queue-why { min-width:0; }
  .dashboard-queue-foot { flex-direction:column; align-items:stretch; }
  .dashboard-queue-pager { justify-content:space-between; }
  .dashboard-queue-pager button, .dashboard-queue-all { min-height:44px; }
}

/* ---------- Drill-down (GitHub issue 590): every number, bar, cell and row opens the list of what it counted ---------- */
.dashboard-drill-number, .dashboard-drill-cell, .dashboard-drill-row { margin:0; padding:0; border:0; background:none; color:inherit; font:inherit; text-align:inherit; cursor:pointer; }
.dashboard-drill-number { text-decoration:underline dotted; text-decoration-thickness:2px; text-underline-offset:.18em; border-radius:var(--radius-sm); }
.dashboard-drill-cell { display:block; width:100%; min-height:24px; border-radius:var(--radius-sm); }
.dashboard-drill-number:hover, .dashboard-drill-cell:hover { color:var(--spruce-dark); text-decoration:underline; }
.dashboard-drill-number:focus-visible, .dashboard-drill-cell:focus-visible, .dashboard-drill-row:focus-visible { outline:2px solid var(--spruce); outline-offset:2px; }
.dashboard-cardbox-rows li > .dashboard-drill-row { display:grid; grid-template-columns:minmax(0, 1fr) minmax(48px, 30%) auto; grid-column:1 / -1; align-items:center; gap:var(--space-100); width:100%; min-height:28px; border-radius:var(--radius-sm); }
.dashboard-cardbox-rows li:has(> .dashboard-drill-row) { display:block; }
.dashboard-cardbox-list li > .dashboard-drill-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:var(--space-150); width:100%; min-height:28px; border-radius:var(--radius-sm); }
.dashboard-cardbox-list li > .dashboard-drill-row > span { color:var(--ink-2); overflow-wrap:anywhere; }
.dashboard-cardbox-list li > .dashboard-drill-row > b { font-variant-numeric:tabular-nums; }
.dashboard-drill-row:hover .dashboard-cardbox-label, .dashboard-drill-row:hover > span { color:var(--spruce-dark); text-decoration:underline; }
.dashboard-cardbox .rp-bar-row:not(.is-still), .dashboard-cardbox .rp-col, .dashboard-cardbox .rp-hit, .ov-map-site.is-drill { cursor:pointer; }
.dashboard-drill-total { display:inline-flex; gap:var(--space-50); align-items:baseline; min-height:28px; padding:0; color:var(--ink-2); font-size:var(--text-sm); }
.dashboard-drill-total b { color:var(--ink); font-variant-numeric:tabular-nums; }
.dashboard-drill-all { margin-top:var(--space-100); font-size:var(--text-sm); font-weight:var(--weight-semibold); }
/* A chart's parts as buttons, unseen until one has the focus (a keyboard's way into a column or a point). */
.dashboard-chart-keys:focus-within { position:static; width:auto; height:auto; margin:var(--space-100) 0 0; padding:var(--space-100); overflow:visible; clip:auto; clip-path:none; white-space:normal; display:flex; flex-wrap:wrap; gap:var(--space-50); list-style:none; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); }
.dashboard-chart-keys li { display:contents; }
.dashboard-chart-keys button { font-size:var(--text-sm); text-align:left; }
/* A day of received and resolved: which of the two. */
.dashboard-drill-menu { position:fixed; z-index:60; display:grid; gap:var(--space-75); min-width:200px; max-width:min(320px, calc(100vw - 24px)); padding:var(--space-150); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, .18)); }
.dashboard-drill-menu p { margin:0; color:var(--ink); font-size:var(--text-sm); font-weight:var(--weight-semibold); overflow-wrap:anywhere; }
.dashboard-drill-menu button { justify-content:flex-start; min-height:44px; text-align:left; }
/* The list of changes, problems or the CMDB's records a card opens, in place of the cards. */
#dashboardView.shows-records > :not(#dashboardRecords) { display:none; }
.dashboard-records { display:grid; gap:var(--space-150); min-width:0; }
.dashboard-records[hidden] { display:none; }
.dashboard-records-head { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-150); }
.dashboard-records-head h2 { margin:0; font-size:var(--text-xl); }
.dashboard-records-head .outline-button { min-height:44px; }
.dashboard-records .ticket-drill { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-75); padding:var(--space-100) var(--space-150); border:1px dashed var(--accent-border); border-radius:var(--radius-lg); background:var(--surface); }
.dashboard-records .ticket-drill-title { color:var(--ink); font-size:var(--text-sm); font-weight:var(--weight-semibold); overflow-wrap:anywhere; }
.dashboard-records .ticket-drill-behind { color:var(--muted); font-size:var(--text-sm); flex-basis:100%; }
.dashboard-records-table th[scope="row"] { font-weight:inherit; }
@media (max-width:560px) {
  .dashboard-drill-cell, .dashboard-cardbox-rows li > .dashboard-drill-row, .dashboard-cardbox-list li > .dashboard-drill-row, .dashboard-drill-total, .dashboard-drill-all { min-height:44px; }
  .dashboard-records-table thead { display:none; }
  .dashboard-records-table tr { display:grid; gap:var(--space-50); padding:var(--space-100) 0; border-bottom:1px solid var(--line); }
  .dashboard-records-table td, .dashboard-records-table th { display:block; padding:0; border:0; }
  .dashboard-records-table td[data-label]::before { content:attr(data-label) ": "; color:var(--muted); font-size:var(--text-xs); }
}
/* Its chips, as the Tickets list's drill-down chips (ticket-list.css). */
.dashboard-records .ticket-chip { display:inline-flex; align-items:center; gap:var(--space-25); max-width:100%; min-height:var(--control-height-sm); padding:0 var(--space-25) 0 var(--space-150); border:1px solid var(--accent-border); border-radius:var(--radius-pill); background:var(--accent-hover); color:var(--ink); font-size:var(--text-sm); }
.dashboard-records .ticket-chip > span { overflow:hidden; overflow-wrap:break-word; white-space:normal; }
.dashboard-records .ticket-chip button { display:grid; place-items:center; flex:none; width:1.5rem; height:1.5rem; padding:0; border:0; border-radius:var(--radius-round); background:transparent; color:var(--muted); font-size:var(--text-lg); line-height:1; cursor:pointer; }
.dashboard-records .ticket-chip button:hover, .dashboard-records .ticket-chip button:focus-visible { background:var(--surface); color:var(--ink); outline:0; box-shadow:0 0 0 var(--focus-ring-width) var(--control-focus); }
.dashboard-records .ticket-chip-drill.is-not-applied { border-style:dashed; background:transparent; color:var(--muted); }
/* A dashboard's Share dialog (GitHub issue 591): its name, who sees it, Official and Delete. */
.dashboard-share { width:min(34rem, calc(100vw - 2rem)); }
.dashboard-share-name { display:grid; gap:var(--space-50); margin:var(--space-150) 0; }
.dashboard-share-name input { width:100%; min-width:0; }
.dashboard-share-kinds { display:grid; gap:var(--space-100); margin:0 0 var(--space-150); padding:0; border:0; min-width:0; }
.dashboard-share-kinds legend { margin-bottom:var(--space-75); color:var(--ink); font-weight:var(--weight-semibold); }
.dashboard-share-choice, .dashboard-share-official { display:flex; align-items:flex-start; gap:var(--space-100); min-width:0; }
.dashboard-share-choice > span, .dashboard-share-official > span { display:grid; gap:var(--space-25); min-width:0; overflow-wrap:anywhere; }
.dashboard-share-choice small, .dashboard-share-official small { color:var(--muted); font-weight:var(--weight-regular); }
.dashboard-share-groups { display:grid; grid-template-columns:repeat(auto-fill, minmax(12rem, 1fr)); gap:var(--space-50) var(--space-150); max-height:12rem; overflow:auto; margin-left:var(--space-300); }
.dashboard-share-groups label { overflow-wrap:anywhere; }
.dashboard-share-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100); margin-top:var(--space-200); }
.dashboard-share-gap { flex:1 1 auto; }
#dashboardShareDialog .dashboard-share-groups[hidden] { display:none; }
@media (max-width:560px) { .dashboard-share-actions button { min-height:44px; } .dashboard-share-groups { margin-left:0; } }
.dashboard-share-delete { border-color:var(--bad); color:var(--bad); }

/* ---------- Live chat: On Duty in the top bar, the notice under it, the Live chat page (GitHub issue 574) ---------- */
.duty-toggle { display:inline-flex; align-items:center; gap:var(--space-75); min-height:var(--control-height); padding:0 var(--space-150); border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--surface); color:var(--ink-2); font:inherit; font-size:var(--text-sm); font-weight:600; cursor:pointer; white-space:nowrap; }
.duty-toggle.on { border-color:var(--spruce); color:var(--spruce-dark); background:var(--spruce-pale); }
.duty-toggle[hidden] { display:none; }
.duty-dot { display:inline-block; flex:none; width:10px; height:10px; border-radius:50%; border:2px solid var(--muted); background:transparent; }
.duty-toggle.on .duty-dot, .duty-dot.on, .lcd-status.on .duty-dot { border-color:var(--spruce); background:var(--spruce); }
.duty-notice { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100); margin:var(--space-100) var(--space-200) 0; padding:var(--space-100) var(--space-150); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface-2); color:var(--ink); }
.duty-notice.warning { border-color:var(--saffron, var(--line)); background:var(--saffron-pale); }
.duty-notice[hidden] { display:none; }
.duty-notice p { flex:1 1 16rem; margin:0; overflow-wrap:anywhere; }
.lcd-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap:var(--space-200); align-items:start; }
.lcd-card { display:grid; gap:var(--space-100); padding:var(--space-200); }
.lcd-card h2, .lcd-card h3, .lcd-card p { margin:0; overflow-wrap:anywhere; }
.lcd-card > button { justify-self:start; }
.lcd-status { display:flex; align-items:center; gap:var(--space-75); font-size:var(--text-lg); font-weight:600; }
.lcd-why { color:var(--ink-2); }
.lcd-limit { display:grid; gap:var(--space-50); max-width:16rem; font-weight:600; }
.lcd-people { list-style:none; margin:0; padding:0; display:grid; gap:var(--space-75); }
.lcd-person { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-75) var(--space-150); padding:var(--space-75) 0; border-bottom:1px solid var(--line); }
.lcd-person:last-child { border-bottom:0; }
.lcd-name { display:inline-flex; align-items:center; gap:var(--space-75); flex:1 1 10rem; min-width:0; overflow-wrap:anywhere; }
.lcd-load { color:var(--ink-2); font-variant-numeric:tabular-nums; }
.lcd-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100); }
.lcd-max { display:inline-flex; align-items:center; gap:var(--space-50); font-size:var(--text-sm); }
@media (max-width:560px) { .duty-toggle .duty-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); } .duty-toggle { padding:0 var(--space-100); min-width:44px; justify-content:center; } .lcd-card button, .lcd-person button { min-height:44px; } }
/* Under 360 px the top bar has no room for one more button (it widened the page by 33 px at 320): the switch is on the
   Live chat page there, and the notice still says when someone was set Off Duty. */
@media (max-width:359px) { .duty-toggle { display:none; } }
