/* HIG redesign — Apple's Human Interface Guidelines applied to Agent, kept in Easy Song's brand.
   The site-wide visual layer lives in this one file, over MudBlazor and app.css, so the design reads
   as one system and can be changed in one place. Page-specific layout stays in each page's scoped
   CSS. It loads last (see App.razor), so equal-specificity rules here win without !important.

   What it borrows from the HIG: a quiet source-list sidebar, a translucent toolbar, large bold
   titles, content in rounded grouped cards separated by soft shadow and hairlines, segmented
   controls for tabs, pill-shaped workspace tabs, status shown as a dot plus a word, and fields
   that read as text until you reach for them.
   What it keeps from Easy Song: Raleway, the logo, dark teal titles, taupe section labels, and ES
   blue as decoration only (#176D89 carries text and filled buttons, per the contrast review). */

:root {
    --hig-sidebar: #E5EAF0;
    --hig-toolbar: rgba(238, 242, 247, 0.82);
    --hig-hairline: rgba(0, 0, 0, 0.10);
    --hig-hairline-soft: rgba(0, 0, 0, 0.06);
    --hig-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --hig-raised-shadow: 0 8px 28px rgba(14, 27, 33, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
    --hig-fill: rgba(25, 69, 84, 0.08);
    --hig-fill-strong: rgba(25, 69, 84, 0.13);
    --hig-sel: rgba(62, 176, 213, 0.22);
    --hig-sel-text: #135A71;
    --hig-row-sel: rgba(62, 176, 213, 0.12);
    --hig-tint: #E8F5FA;
    --hig-icon: #3EB0D5;
    --hig-title: #194554;
    --hig-taupe: #6C5D57;
    --hig-good: #2E7D32;
    --hig-bad: #A94442;
    --hig-warn: #A14A0A;
    --hig-muted: #55657A;
    --hig-segment-on: #FFFFFF;
    --hig-toast: #FFFFFF;
    --hig-hover: rgba(25, 69, 84, 0.045);
    --hig-scroll-shadow: rgba(14, 27, 33, 0.16);
    /* The charts' first categorical slot (Theme/HigChartTheme), for bars drawn in HTML. */
    --hig-chart-1: #2B8BB0;
    /* One stripe for every zebra grid (HIG round 5): MudBlazor's default is black at 2%, which
       vanishes on dark surfaces and is a different shade from the trackers' own stripe. */
    --hig-stripe: rgba(14, 27, 33, 0.045);
    /* The hairline round a status dot in its own colour (StatusColors), so a pale colour still shows
       on white and a dark one on the dark surface without its hue changing. */
    --hig-dot-ring: rgba(14, 27, 33, 0.18);
    /* Zendesk's ticket-status colours. A ticket status always wears these, never one of the five
       status tones (Adam, 2026-11-18). Each -on is the text colour on a fill of that colour (the
       reply composer's "Submit as" button). Pending and Solved are Zendesk's blue and grey darkened
       so white text passes 4.5:1 (PBI 2266). ZendeskStatusDisplayTests checks every pair. */
    --zd-new: #F1B32E;
    --zd-new-on: #1F2D3D;
    --zd-open: #E12B27;
    --zd-open-on: #FFFFFF;
    --zd-pending: #1F70BD;
    --zd-pending-on: #FFFFFF;
    --zd-hold: #1F2D3D;
    --zd-hold-on: #FFFFFF;
    --zd-solved: #66717D;
    --zd-solved-on: #FFFFFF;
    --zd-closed: #C2C8CC;
    --zd-closed-on: #1F2D3D;
    /* Group 14f (H): a ticket message's bubble, as Zendesk shades it. The customer's is a pale cyan and an agent's
       public reply a pale grey. An internal note keeps the amber --es-draft-bg (app.css). Painted on ::before in
       TicketWorkspaceView, so a copy of the text never carries the colour.
       Adam, 2026-11-19: an agent's reply is white, not Zendesk's grey. The grey (#F3F4F5) was all but the
       conversation's own background (#F0F3F8), so a reply did not stand out from the space around it. */
    --tw-msg-customer: #E8F6F8;
    --tw-msg-agent: #FFFFFF;
}

html[data-theme="dark"] {
    --hig-sidebar: #122128;
    --hig-toolbar: rgba(14, 27, 33, 0.82);
    --hig-hairline: rgba(255, 255, 255, 0.12);
    --hig-hairline-soft: rgba(255, 255, 255, 0.07);
    --hig-card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --hig-raised-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --hig-fill: rgba(224, 234, 239, 0.08);
    --hig-fill-strong: rgba(224, 234, 239, 0.14);
    --hig-sel: rgba(84, 192, 232, 0.20);
    --hig-sel-text: #8FD6F0;
    --hig-row-sel: rgba(84, 192, 232, 0.14);
    --hig-tint: rgba(84, 192, 232, 0.16);
    --hig-icon: #54C0E8;
    --hig-title: #E0EAEF;
    --hig-taupe: #B39A8E;
    --hig-good: #7BC47F;
    --hig-bad: #E08987;
    --hig-warn: #F5A35C;
    --hig-muted: #A9BCC5;
    --hig-segment-on: #2A4652;
    --hig-toast: #213740;
    --hig-hover: rgba(224, 234, 239, 0.05);
    --hig-scroll-shadow: rgba(0, 0, 0, 0.55);
    --hig-chart-1: #2B8BB0;
    --hig-stripe: rgba(224, 234, 239, 0.045);
    --hig-dot-ring: rgba(255, 255, 255, 0.22);
    /* Zendesk's status colours on the dark surface. Open, New stay as they are. Pending lifts to a
       lighter blue. On-hold's near-black would vanish here, so it inverts to near-white, still the
       starkest of the six. Solved is Zendesk's own grey, and Closed stays the quietest. */
    --zd-new: #F1B32E;
    --zd-new-on: #1F2D3D;
    --zd-open: #E12B27;
    --zd-open-on: #FFFFFF;
    --zd-pending: #5FA9F2;
    --zd-pending-on: #0E1B21;
    --zd-hold: #D8DCDE;
    --zd-hold-on: #1F2D3D;
    --zd-solved: #87929D;
    --zd-solved-on: #0E1B21;
    --zd-closed: #5F6E7A;
    --zd-closed-on: #FFFFFF;
    /* The bubbles at dark-surface weight: a deep teal for the customer, a slate for an agent. Light text is about
       10:1 on both, links 5.8:1 and over, and the two stay apart from each other and from the note's amber. */
    --tw-msg-customer: #163A42;
    --tw-msg-agent: #24313A;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Raleway's default figures are old-style, which makes counts, dates and IDs bob up and down. */
    font-variant-numeric: lining-nums;
}

/* ===== Toolbar (app bar) ===== */

.mud-appbar.mud-appbar {
    background-color: var(--hig-toolbar);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: none;
    border-bottom: 1px solid var(--hig-hairline);
    color: var(--mud-palette-text-primary);
}

/* ===== Sidebar (drawer) ===== */

.mud-drawer.mud-drawer {
    background-color: var(--hig-sidebar);
    box-shadow: none;
    border-right: 1px solid var(--hig-hairline);
}

/* MudBlazor sets top only for clipped drawers. A ClipMode.Never drawer is left at top: auto, so it
   lands wherever its static position falls, which is 64px down on some pages. Pin it. */
.mud-drawer.mud-drawer-fixed.mud-drawer-clipped-never {
    top: 0;
    height: 100%;
}

.mud-drawer .mud-drawer-content {
    height: 100%;
    overflow: hidden;
}

/* Three stacked parts (MainLayout): the logo, the work areas, and a pinned footer. Only the work
   areas can scroll, which they do once the user has opened more sections than the window holds
   (each section opens and closes from its own header since group 14a). */
.hig-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hig-brand {
    display: flex;
    align-items: center;
    flex: none;
    height: 64px;
    padding: 0 20px;
}

.hig-bar-logo {
    display: flex;
    align-items: center;
    margin: 0 14px 0 6px;
}

/* Both logos render and the theme attribute picks one; a <picture> media query would follow the
   OS, not the user's Light / Dark / System choice. The dark logo is the same artwork with the
   wordmark in a light warm grey, so it sits on the dark sidebar with no plate behind it. */
.hig-logo {
    display: block;
}

.hig-logo-dark {
    display: none;
}

html[data-theme="dark"] .hig-logo-light {
    display: none;
}

html[data-theme="dark"] .hig-logo-dark {
    display: block;
}

/* In a short window the work areas scroll. The scrollbar stays invisible until the pointer is over
   the list, as on a Mac, so it never sits there as a permanent grey bar. */
.hig-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.hig-nav-scroll:hover,
.hig-nav-scroll:focus-within {
    scrollbar-color: var(--hig-hairline) transparent;
}

.hig-nav-footer {
    flex: none;
    padding: 6px 0 10px;
    border-top: 1px solid var(--hig-hairline);
}

.mud-drawer .mud-navmenu {
    padding: 0 10px;
}

.mud-drawer .mud-navmenu .mud-nav-link {
    min-height: 32px;
    padding: 5px 10px;
    margin: 1px 0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
}

.mud-drawer .mud-navmenu .mud-nav-link .mud-nav-link-icon {
    color: var(--hig-icon);
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
}

.mud-drawer .mud-navmenu .mud-nav-link .mud-nav-link-text {
    margin-left: 10px;
    margin-inline-start: 10px;
}

/* HIG round 5 — hover is a faint tint and the selection always wins over it.
   MudBlazor greys the ACTIVE row on hover, focus and press with a seven-class selector, so the
   selected row turned grey under the pointer; and its 250ms background fade plus the ripple left the
   row the pointer had just crossed tinted for a moment, which read as a second selection. Hover now
   changes at once, the ripple is off in the sidebar, keyboard focus is a ring (app.css) rather than a
   fill, and the :is() list below carries enough weight to beat every MudBlazor active-state rule. */
.mud-drawer .mud-navmenu .mud-nav-link {
    transition: none;
}

.mud-drawer .mud-navmenu .mud-nav-link.mud-ripple::after {
    display: none;
}

.mud-drawer .mud-navmenu .mud-nav-link:hover:not(.mud-nav-link-disabled) {
    background-color: var(--hig-hover);
}

.mud-drawer .mud-navmenu .mud-nav-link:focus-visible:not(.mud-nav-link-disabled):not(.active) {
    background-color: transparent;
}

.mud-drawer .mud-navmenu.mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled),
.mud-drawer .mud-navmenu.mud-navmenu.mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled):is(:hover, :focus, :focus-visible, :active) {
    background-color: var(--hig-sel);
    color: var(--hig-sel-text);
    font-weight: 600;
}

.mud-drawer .mud-navmenu.mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon {
    color: var(--hig-icon);
}

/* Home stands apart from the sections. */
.hig-nav-scroll > .mud-navmenu > .mud-nav-item:first-child {
    margin-bottom: 8px;
}

/* An open section reads a step bolder. */
.mud-drawer .mud-navmenu .mud-nav-group > .mud-nav-link[aria-expanded="true"] {
    font-weight: 600;
    color: var(--hig-title);
}

/* Adam, 2026-11-19 (group 14a) — the groups no longer open to follow the page, so when the current
   page sits in a closed group, the group's header takes the selection instead (MainLayout adds
   hig-nav-group-current only while the group is closed). It matches the selected row, so the eye
   finds the current page either way. */
.mud-drawer .mud-navmenu.mud-navmenu .mud-nav-group.hig-nav-group-current > .mud-nav-link,
.mud-drawer .mud-navmenu.mud-navmenu .mud-nav-group.hig-nav-group-current > .mud-nav-link:is(:hover, :focus, :focus-visible, :active) {
    background-color: var(--hig-sel);
    color: var(--hig-sel-text);
    font-weight: 600;
}

/* Adam, 2026-11-19 (group 14a) — on a canvas page (MainLayout) the sidebar toggle has no app bar to
   sit in, so it floats over the canvas's top left, now with "Back to workspace" beside it. Each brings
   its own surface because a canvas can be any colour: the Dev Tree is a dark sky in both themes. The page keeps its header clear of the row through --canvas-inset,
   which js/canvas-controls.js measures. */
.canvas-controls {
    position: absolute;
    /* 26px high, so its centre is 27px down: level with the chart's toolbar and the Dev Tree's header. */
    top: 14px;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.canvas-control.mud-icon-button,
.canvas-control.mud-button-root {
    background-color: var(--hig-toolbar);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--hig-card-shadow);
    color: var(--mud-palette-text-primary);
}

.canvas-control.mud-button-root {
    height: 26px;
    padding: 0 10px 0 8px;
    border-radius: 13px;
    text-transform: none;
    font-weight: 500;
}

.canvas-control.mud-icon-button:hover,
.canvas-control.mud-button-root:hover {
    background-color: var(--mud-palette-surface);
}

/* "Back" alone on a narrow canvas, which canvas-controls.js marks; the tooltip still names the tab. */
.canvas-controls[data-compact] .canvas-back-long,
.canvas-controls:not([data-compact]) .canvas-back-short {
    display: none;
}

/* Disclosure chevrons show only while the pointer is over the sidebar or a section has focus. At
   rest the list is just names. */
.mud-drawer .mud-navmenu .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon {
    color: var(--hig-muted);
    fill: var(--hig-muted);
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.hig-nav:hover .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon,
.mud-drawer .mud-nav-group > .mud-nav-link:focus-visible .mud-nav-link-expand-icon {
    opacity: 1;
}

/* A section's pages are plain names indented under the section's own label, with no icons. */
.mud-drawer .mud-nav-group .mud-navmenu .mud-nav-link .mud-nav-link-icon {
    display: none;
}

.mud-drawer .mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
    min-height: 30px;
    padding-left: 38px;
    padding-inline-start: 38px;
}

.mud-drawer .mud-nav-group .mud-navmenu .mud-nav-link .mud-nav-link-text {
    margin-left: 0;
    margin-inline-start: 0;
}

.mud-drawer .mud-navmenu .mud-nav-group * .mud-navmenu {
    padding: 0;
}

/* FeedbackFab's sidebar row is a <button>; strip the browser's button look so it matches its
   neighbours, which are anchors. */
.mud-drawer .nav-button {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

/* ===== Workspace tabs: pills instead of folder tabs ===== */

.appbar-tabs .tab-strip-scroller {
    align-items: center;
    gap: 4px;
}

.appbar-tabs .tab-strip-tab {
    height: 42px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--mud-palette-text-secondary);
}

.appbar-tabs .tab-strip-tab:hover {
    background: var(--hig-fill);
}

.appbar-tabs .tab-strip-tab-active,
.appbar-tabs .tab-strip-tab-active:hover {
    background: var(--mud-palette-surface);
    box-shadow: var(--hig-card-shadow);
    color: var(--mud-palette-text-primary);
}

.appbar-tabs .tab-strip-tab-active::before {
    display: none;
}

.appbar-tabs .tab-strip-overflow-btn {
    border: none;
    background: var(--hig-fill);
}

.appbar-tabs .tab-strip-drop-indicator {
    height: 34px;
    align-self: center;
}

/* ===== Typography: large, bold titles ===== */

.mud-typography-h4 {
    color: var(--hig-title);
    letter-spacing: 0;
}

.mud-typography-h5 {
    color: var(--hig-title);
    letter-spacing: 0;
}

/* ===== Cards and surfaces: rounded, soft shadow, hairline ===== */

.mud-main-content .mud-paper.mud-elevation-1,
.mud-main-content .mud-paper.mud-elevation-2,
.mud-main-content .mud-paper.mud-elevation-3,
.mud-main-content .mud-paper.mud-elevation-4,
.mud-main-content .mud-card.mud-elevation-1 {
    box-shadow: var(--hig-card-shadow);
}

.mud-main-content .mud-paper-outlined {
    border-color: var(--hig-hairline-soft);
    box-shadow: var(--hig-card-shadow);
}

.mud-main-content .mud-paper,
.mud-main-content .mud-card {
    border-radius: 12px;
}

/* ===== Lists and grids: hairline separators, quiet headers ===== */

.mud-table .mud-table-head .mud-table-cell,
.mud-table .mud-table-head th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hig-muted);
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--hig-hairline);
}

.mud-table .mud-table-body .mud-table-cell {
    border-bottom-color: var(--hig-hairline-soft);
}

/* One stripe for every zebra grid, in both themes (HIG round 5). MudBlazor's default is 2% black,
   which turns into dark bands on the dark theme's surface. */
.mud-table-striped {
    --mud-palette-table-striped: var(--hig-stripe);
}

.mud-table-hover .mud-table-container table tbody tr:hover {
    background-color: var(--hig-fill);
}

.mud-table-bordered .mud-table-container table tbody tr td {
    border-right-color: var(--hig-hairline-soft);
}

/* ===== Controls ===== */

.mud-button-root.mud-button {
    border-radius: 8px;
}

.mud-button-filled,
.mud-button-filled:hover,
.mud-button-filled:active {
    box-shadow: none;
}

.mud-button-outlined.mud-button-outlined-default,
.mud-button-outlined.mud-button-outlined-primary {
    border-color: transparent;
    background-color: var(--hig-fill);
}

.mud-button-outlined.mud-button-outlined-default:hover,
.mud-button-outlined.mud-button-outlined-primary:hover {
    background-color: var(--hig-fill-strong);
}

.mud-input.mud-input-outlined .mud-input-outlined-border {
    border-radius: 8px;
}

.mud-chip {
    border-radius: 7px;
    font-weight: 600;
}

/* Tabs become a segmented control: a tinted track with the selected segment raised. */
.mud-tabs .mud-tabs-tabbar {
    background-color: transparent;
    box-shadow: none;
    border: none;
}

.mud-tabs .mud-tabs-tabbar .mud-tabs-tabbar-wrapper {
    background: var(--hig-fill);
    border-radius: 9px;
    padding: 2px;
    gap: 2px;
}

.mud-tabs .mud-tabs-tabbar .mud-tab,
.mud-tabs .mud-tabs-tabbar [role="tab"] {
    min-height: 30px;
    padding: 2px 14px;
    border-radius: 7px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mud-palette-text-primary);
}

.mud-tabs .mud-tabs-tabbar .mud-tab-active,
.mud-tabs .mud-tabs-tabbar [role="tab"][aria-selected="true"] {
    background: var(--hig-segment-on);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
    color: var(--mud-palette-text-primary);
}

.mud-tabs .mud-tab-slider {
    display: none;
}

/* ===== Sheets, menus and toasts ===== */

.mud-dialog {
    border-radius: 14px;
    box-shadow: var(--hig-raised-shadow);
}

.mud-dialog .mud-dialog-title {
    font-weight: 700;
}

.mud-overlay-dialog .mud-overlay-scrim,
.mud-overlay .mud-overlay-scrim.mud-overlay-dark {
    background-color: rgba(14, 27, 33, 0.32);
}

.mud-popover.mud-paper {
    border-radius: 10px;
    box-shadow: var(--hig-raised-shadow);
}

.mud-popover .mud-list-item {
    border-radius: 6px;
}

/* Toasts (HIG round 5): one raised surface for every severity, with the severity carried by the icon
   alone. MudBlazor fills a warning toast with #FFC107, a bright yellow off the brand that also fails
   contrast behind white text, and fills the others in four more colours. The id selector outranks
   MudBlazor's per-severity fill classes. */
#mud-snackbar-container .mud-snackbar {
    border-radius: 12px;
    background-color: var(--hig-toast);
    color: var(--mud-palette-text-primary);
    box-shadow: var(--hig-raised-shadow);
}

#mud-snackbar-container .mud-snackbar .mud-snackbar-icon {
    color: var(--hig-icon);
}

#mud-snackbar-container .mud-snackbar.mud-alert-filled-success .mud-snackbar-icon {
    color: var(--hig-good);
}

#mud-snackbar-container .mud-snackbar.mud-alert-filled-warning .mud-snackbar-icon {
    color: var(--hig-warn);
}

#mud-snackbar-container .mud-snackbar.mud-alert-filled-error .mud-snackbar-icon {
    color: var(--hig-bad);
}

#mud-snackbar-container .mud-snackbar .mud-snackbar-content-action .mud-button-root {
    color: var(--hig-sel-text);
    font-weight: 700;
}

#mud-snackbar-container .mud-snackbar .mud-snackbar-close-button,
#mud-snackbar-container .mud-snackbar .mud-icon-button {
    color: var(--mud-palette-text-secondary);
}

/* The floating Feedback button (shown only while the sidebar is hidden; otherwise Feedback is a row
   in the sidebar footer) is a quiet control rather than the loudest thing on screen. */
.feedback-fab.mud-fab,
.feedback-fab .mud-fab {
    background-color: var(--mud-palette-surface);
    color: var(--hig-sel-text);
    box-shadow: var(--hig-raised-shadow);
    border-radius: 12px;
}

.feedback-fab.mud-fab:hover,
.feedback-fab .mud-fab:hover {
    background-color: var(--hig-tint);
}

/* ===== No all-caps labels =====
   The HIG keeps labels in title or sentence case; capitals read as shouting and slow scanning.
   Overline is MudBlazor's capitalised caption (47 uses). The attribute selectors reach the inline
   `text-transform: uppercase` styles, which only !important can override. */

.mud-typography-overline {
    text-transform: none;
    letter-spacing: 0.01em;
}

[style*="text-transform: uppercase"],
[style*="text-transform:uppercase"] {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}

.gs-section,
.tab-strip-overflow-header {
    text-transform: none;
    letter-spacing: 0;
}

/* ===== Loading placeholders (LoadingSkeleton.razor) ===== */

.hig-skeleton {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
}

.hig-skeleton-card {
    background: var(--mud-palette-surface);
    border-radius: 12px;
    box-shadow: var(--hig-card-shadow);
}

.hig-skeleton-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.hig-skeleton-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.hig-skeleton-row {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr 1fr 0.8fr;
    gap: 16px;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-bottom: 1px solid var(--hig-hairline-soft);
}

.hig-skeleton-row:last-child {
    border-bottom: none;
}

.hig-skeleton-head {
    min-height: 36px;
    border-bottom-color: var(--hig-hairline);
}

.hig-skeleton-head .mud-skeleton {
    max-width: 90px;
}

/* ===== Empty and failed states (EmptyState.razor) =====
   One look for "nothing here" and "couldn't load": a quiet outlined icon, a one-line title, a line
   of explanation and at most one action, centred in the space the content would have filled. */

.hig-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 48px 24px;
    text-align: center;
    color: var(--mud-palette-text-secondary);
}

.hig-empty--compact {
    padding: 24px 16px;
}

.hig-empty-icon.mud-icon-root {
    width: 36px;
    height: 36px;
    font-size: 36px;
    margin-bottom: 4px;
    color: var(--hig-muted);
    opacity: 0.7;
}

.hig-empty--error .hig-empty-icon.mud-icon-root {
    color: var(--hig-bad);
    opacity: 1;
}

.hig-empty-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.hig-empty-text {
    max-width: 46ch;
    font-size: 0.85rem;
    line-height: 1.45;
}

.hig-empty-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

/* ===== Status and outcome: a dot plus a word, not a filled chip ===== */

.hig-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.hig-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
    background: var(--hig-muted);
}

.hig-outcome {
    font-size: 0.8125rem;
    white-space: nowrap;
    color: var(--hig-muted);
}

.hig-outcome-approved {
    color: var(--hig-good);
    font-weight: 600;
}

.hig-outcome-denied {
    color: var(--hig-bad);
    font-weight: 600;
}

.hig-outcome-pending {
    color: var(--hig-warn);
}

/* ===== Quiet fields on detail pages =====
   Detail pages stay editable in place, a deliberate choice so any field is one click from an edit.
   But thirty outlined boxes make a record read like a blank form. At rest the outline is hidden, so
   each field reads as its label over its value; hover brings back a soft outline and focus the full
   one. A field in error always keeps its outline, and so does a field with nothing in it, so empty
   values never look like missing labels. The roots are the detail pages' own containers: request,
   project (direct and cover song), release, copyright filing, customer and Giddy user.
   A control that starts something rather than holding a saved value (a note composer's Type) sits
   in .hig-live-field and keeps its outline and arrow, so it reads as a picker. */

:is(.rt-root, .pd-root, .rd-root, .cr-filing, .cd-root, .gu-root)
    .mud-input.mud-input-outlined.mud-shrink:not(:hover):not(:focus-within):not(.mud-input-error):not(.hig-live-field *)
    .mud-input-outlined-border {
    border-color: transparent;
}

:is(.rt-root, .pd-root, .rd-root, .cr-filing, .cd-root, .gu-root)
    .mud-input.mud-input-outlined.mud-shrink:hover:not(:focus-within):not(.mud-input-error):not(.hig-live-field *)
    .mud-input-outlined-border {
    border-color: var(--hig-hairline);
}

/* A select's arrow and a picker's calendar icon appear with the outline. */
:is(.rt-root, .pd-root, .rd-root, .cr-filing, .cd-root, .gu-root)
    :is(.mud-select, .mud-picker) .mud-input.mud-input-outlined.mud-shrink:not(:hover):not(:focus-within):not(.hig-live-field *)
    .mud-input-adornment-end {
    opacity: 0;
}

:is(.rt-root, .pd-root, .rd-root, .cr-filing, .cd-root, .gu-root)
    :is(.mud-select, .mud-picker) .mud-input.mud-input-outlined .mud-input-adornment-end {
    transition: opacity 0.15s ease;
}

/* Underline-style fields (the rightsholder lookups) follow the same rule: no line at rest. */
:is(.rt-root, .pd-root, .rd-root, .cr-filing, .cd-root, .gu-root)
    .mud-input.mud-input-underline.mud-shrink:not(:hover):not(:focus-within):not(.mud-input-error)::before {
    border-bottom-color: transparent;
}

/* A number field's up and down arrows appear with the outline too. */
:is(.rt-root, .pd-root, .rd-root, .cr-filing, .cd-root, .gu-root)
    .mud-input.mud-shrink:not(:hover):not(:focus-within) .mud-input-numeric-spin {
    opacity: 0;
}

/* ===== Due dates (HIG/ADHD round) =====
   Next Follow-Up and Deadline read as distance from today, coloured neutral, amber, then danger red
   (RelativeDueDate in Core decides the level; DueDate.razor and NextFollowUpControl apply it). The
   tokens are text-safe in both themes: --hig-warn is #A14A0A on light, not the palette's #FFC107. */

.hig-due {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hig-due--warn {
    color: var(--hig-warn);
    font-weight: 600;
}

.hig-due--bad {
    color: var(--hig-bad);
    font-weight: 600;
}

.hig-due--none {
    color: var(--mud-palette-text-secondary);
}

/* The follow-up chip is a MudMenu activator: colour its button, which MudBlazor styles on its own class. */
.mud-menu.hig-fu .mud-button-root {
    text-transform: none;
}

/* An upcoming follow-up keeps its original blue (the control's Color.Primary before the redesign),
   which passes AA as text in both themes. A Deadline's neutral level stays uncoloured. */
.mud-menu.hig-fu.hig-due--neutral .mud-button-root {
    color: var(--mud-palette-primary);
}

.mud-menu.hig-fu.hig-due--warn .mud-button-root {
    color: var(--hig-warn);
    font-weight: 600;
}

.mud-menu.hig-fu.hig-due--bad .mud-button-root {
    color: var(--hig-bad);
    font-weight: 600;
}

/* A relative date under a date picker on a detail page. */
.pf-relative {
    padding: 2px 0 0 2px;
    font-size: 0.8rem;
}

/* Text for screen readers only (the absolute date beside a relative one). */
.hig-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Signoff progress (HIG/ADHD round) ===== "3 of 9 signoffs" on the request header and in the tracker. */

.hig-progress {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--hig-fill);
    color: var(--hig-title);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hig-progress-inline {
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
}

/* ===== Updates banner (HIG/ADHD round) =====
   A tracker that has news says so instead of reshuffling itself: rows changed elsewhere wait here
   until the agent clicks Refresh. */

.hig-updates-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 4px 8px 4px 12px;
    border-radius: 10px;
    background: var(--hig-tint);
    color: var(--hig-sel-text);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== Segmented controls (MudToggleGroup) =====
   The same control as the tabs above: a tinted track, segments with their own inner radius, and the
   selected one raised. MudBlazor draws an outlined group (10px radius, overflow hidden) around
   buttons that the Controls rule rounds to 8px, so the filled selection left small triangles of
   background where its corners met the outline and the delimiter. The track has no outline at all,
   so there is nothing for a corner to miss. */

.mud-toggle-group.mud-toggle-group {
    border: none;
    background: var(--hig-fill);
    border-radius: 9px;
    padding: 2px;
    gap: 2px;
}

.mud-toggle-group .mud-toggle-item.mud-button-root {
    /* Width, not style: MudBlazor forces the divider's border-left-style to solid with !important,
       and "border: none" resets the width to medium (3px), which drew a dark 3px bar in the text
       colour between segments. Zero width removes it whatever the style. */
    border-width: 0;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    color: var(--mud-palette-text-primary);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.mud-toggle-group .mud-toggle-item.mud-button-root:hover {
    background: var(--hig-fill-strong);
}

.mud-toggle-group .mud-toggle-item.mud-toggle-item-selected,
.mud-toggle-group .mud-toggle-item.mud-toggle-item-selected:hover {
    background: var(--hig-segment-on);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
    color: var(--mud-palette-text-primary);
}

/* ===== Ctrl+K palette (HIG/ADHD round) ===== The highlighted option, and the key hint under the list. */

.gs-row.gs-active {
    background: var(--hig-sel);
    color: var(--hig-sel-text);
}

.gs-row.gs-active .gs-row-icon {
    opacity: 1;
}

.gs-hint {
    padding: 6px 16px 8px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

/* "All changes saved" in a detail header (SaveStateIndicator's Saved state): quiet, not a chip. */
.hig-saved {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--hig-good);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* HTML Docs' comment-mode switch (Feature 2255, css/html-docs.css) is a hand-made segmented control.
   Each button sits inside a MudTooltip's inline-block wrapper, so it never stretched to the control's
   height and a sliver of the track showed above the blue fill. Same control as above instead: a
   tinted track, buttons stretched to its height, the selected one raised. */
.hd-segmented.hd-segmented {
    align-items: stretch;
    border: none;
    border-radius: 9px;
    background: var(--hig-fill);
    padding: 2px;
    gap: 2px;
    overflow: visible;
}

.hd-segmented > .mud-tooltip-root {
    display: flex;
}

.hd-segmented.hd-segmented button,
.hd-segmented.hd-segmented button + button {
    border: 0;
    border-radius: 7px;
    color: var(--mud-palette-text-primary);
}

.hd-segmented.hd-segmented button:hover {
    background: var(--hig-fill-strong);
}

.hd-segmented.hd-segmented button.on,
.hd-segmented.hd-segmented button.on:hover {
    background: var(--hig-segment-on);
    color: var(--mud-palette-text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

/* ===== Charts (HIG round 5) =====
   ApexCharts draws its axis text, grid and tooltip in light-theme greys of its own, so on the dark
   theme the axes all but vanished and the tooltip was a white box. The palette, font and number
   format are set once in Theme/HigChartTheme.cs; everything that has to follow the theme is here,
   where the tokens switch with it. CSS properties beat SVG presentation attributes, so fill and stroke
   override what the library writes; the legend text is an inline style, hence !important there. */

.apexcharts-canvas :is(.apexcharts-xaxis-label, .apexcharts-yaxis-label, .apexcharts-xaxis-title-text,
    .apexcharts-yaxis-title-text, .apexcharts-datalabel-label, .apexcharts-datalabel-value) {
    fill: var(--mud-palette-text-secondary);
}

.apexcharts-canvas .apexcharts-gridline,
.apexcharts-canvas .apexcharts-grid-borders line {
    stroke: var(--hig-hairline-soft);
}

.apexcharts-canvas :is(.apexcharts-xaxis line, .apexcharts-xaxis-tick, .apexcharts-yaxis line) {
    stroke: var(--hig-hairline);
}

/* The gap between donut slices is the card colour, not white. */
.apexcharts-canvas .apexcharts-pie-area {
    stroke: var(--mud-palette-surface);
}

.apexcharts-canvas .apexcharts-legend-text {
    color: var(--mud-palette-text-primary) !important;
}

.apexcharts-canvas .apexcharts-tooltip,
.apexcharts-canvas .apexcharts-xaxistooltip {
    background: var(--hig-toast);
    color: var(--mud-palette-text-primary);
    border: 1px solid var(--hig-hairline);
    border-radius: 8px;
    box-shadow: var(--hig-raised-shadow);
}

.apexcharts-canvas .apexcharts-tooltip .apexcharts-tooltip-title {
    background: var(--hig-fill);
    border-bottom-color: var(--hig-hairline);
}

/* The download menu (HigChartTheme keeps only that tool) on the same raised surface as the tooltip. */
.apexcharts-canvas .apexcharts-menu {
    background: var(--hig-toast);
    color: var(--mud-palette-text-primary);
    border: 1px solid var(--hig-hairline);
    border-radius: 8px;
    box-shadow: var(--hig-raised-shadow);
}

.apexcharts-canvas .apexcharts-menu-item:hover {
    background: var(--hig-fill);
}

.apexcharts-canvas .apexcharts-menu-icon svg {
    fill: var(--mud-palette-text-secondary);
}

.apexcharts-canvas .apexcharts-xaxistooltip-bottom::before,
.apexcharts-canvas .apexcharts-xaxistooltip-bottom::after {
    border-bottom-color: var(--hig-hairline);
}

/* Song Search Tool's band chips (HIG round 5): neutral outlined chips with a confidence dot, the
   selected band in the selection tint. Global because the chip root is a MudBlazor component. */
.st-stages .mud-chip.st-stage {
    gap: 6px;
    border-color: var(--hig-hairline);
    color: var(--mud-palette-text-primary);
    font-weight: 600;
}

.st-stages .mud-chip.st-stage--on {
    background-color: var(--hig-sel);
    border-color: transparent;
    color: var(--hig-sel-text);
}

.st-stages .mud-chip.st-stage .mud-chip-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== Horizontal scroll cue on grids (HIG round 5) =====
   A grid wider than its card scrolled sideways with nothing to say so: Releases and Leads simply cut
   their last column mid-word at the card's edge. A soft shadow now sits on whichever edge has more
   to scroll to. The classic background-attachment pair: the surface-coloured covers scroll with the
   content (local) and hide the shadows (scroll) when there is nothing beyond that edge. Grids sit on
   .mud-table's own surface, so the covers match whatever is behind them. */
.mud-table-container {
    background:
        linear-gradient(to right, var(--mud-palette-surface) 30%, transparent) left center / 32px 100% no-repeat local,
        linear-gradient(to left, var(--mud-palette-surface) 30%, transparent) right center / 32px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, var(--hig-scroll-shadow), transparent) left center / 10px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, var(--hig-scroll-shadow), transparent) right center / 10px 100% no-repeat scroll;
}

/* ===== App-owned toast (HIG round 5) =====
   The same look as the snackbars above, for a notice the app has to own itself because a navigation
   must not clear it (TabReplacedNotice). Bottom centre, where the snackbars sit, and above them. */
.hig-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 1501;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(640px, calc(100vw - 32px));
    padding: 10px 8px 10px 16px;
    border-radius: 12px;
    background: var(--hig-toast);
    color: var(--mud-palette-text-primary);
    box-shadow: var(--hig-raised-shadow);
    font-size: 0.875rem;
    line-height: 1.4;
}

.hig-toast-text {
    flex: 1 1 auto;
    min-width: 0;
}

.hig-toast-action {
    flex: none;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hig-sel-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hig-toast-action:hover {
    background: var(--hig-fill);
}

.hig-toast-close {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
}

.hig-toast-close:hover {
    background: var(--hig-fill);
}

/* ===== Section titles (HIG round 5) =====
   A group's title is a header, not a caption: 13px semibold in the brand taupe, on every page that
   uses .app-section-title. The request page's group titles were 10.4px overline captions. */
.app-section-title,
.mud-typography.app-section-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
    color: var(--hig-taupe);
}

/* ===== Property rows (PropertyField, HIG round 5) =====
   One layout for every label/value row on the request page. Label and value share their FIRST
   baseline, so a two-line label keeps its value level with its first line. Every value, read-only
   text or input, starts 8px in from its cell, the inset the inputs' own text has, so a column of
   values lines up whichever kind each one is. Amounts are right-aligned in tabular figures. */
.prop-row {
    display: grid;
    grid-template-columns: var(--prop-label-width, 104px) minmax(0, 1fr);
    column-gap: 10px;
    align-items: baseline;
    min-height: 34px;
    padding: 2px 0;
}

.prop-row--stacked {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
    padding-top: 6px;
}

.prop-row--stacked > .prop-label {
    padding-left: 8px;
}

.prop-row--label-hidden > .prop-label {
    display: none;
}

.prop-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--mud-palette-text-secondary);
    overflow-wrap: anywhere;
}

.prop-label-qualifier {
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--mud-palette-text-secondary);
    opacity: 0.85;
}

.prop-value {
    min-width: 0;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-primary);
}

.prop-readonly {
    min-width: 0;
    padding: 0 8px;
    line-height: 1.35;
}

.prop-readonly:has(.mud-input-control) {
    padding: 0;
}

.prop-readonly-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prop-row--money .prop-readonly,
.prop-row--money .mud-input-slot input {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Inputs: same text size as the read-only values (pf-compact made them 12px), and the 8px inset. */
.prop-row .pf-compact .mud-input,
.prop-row .pf-compact .mud-input-slot,
.prop-row .pf-compact .mud-select-input {
    font-size: 0.8125rem !important;
}

.prop-row .mud-input.mud-input-outlined .mud-input-slot,
.prop-row .mud-input.mud-input-underline .mud-input-slot {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.prop-row .mud-input.mud-input-underline .mud-input-slot {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* A helper line sits directly under its own field, at the same inset as the field's text. */
.prop-row .mud-input-control .mud-input-control-helper-container {
    margin: 2px 0 0 !important;
    padding: 0 8px !important;
}

.prop-row .mud-input-control .mud-input-helper-text {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.72rem;
    line-height: 1.3;
}

.prop-row .mud-input-control {
    margin-bottom: 0 !important;
}

/* A derived amount ("↳ per share") reads as a consequence of the row above, not a second field. */
.prop-row--derived {
    min-height: 22px;
    padding-top: 0;
    margin-top: -4px;
}

.prop-row--derived .prop-label,
.prop-row--derived .prop-value {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.prop-row--total .prop-value {
    font-weight: 500;
}

/* A read-only amount needs only its own width, so its label gets the rest of the row instead of
   wrapping "Total Rightsholder Fee" onto three lines in the label column. */
.prop-row.prop-row--total,
.prop-row.prop-row--derived,
.prop-row.rt-agency-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.prop-row--grand-total {
    border-top: 1px solid var(--hig-hairline-soft);
    margin-top: 2px;
    padding-top: 6px;
}

.prop-row--grand-total .prop-label {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

/* The label as its own explainer (HelpLabel): dotted underline, help cursor, a ring on focus. */
.hig-help-label {
    cursor: help;
    text-decoration: underline dotted;
    text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
    text-underline-offset: 3px;
    border-radius: 3px;
}

.hig-help-label:hover {
    text-decoration-color: currentColor;
}

.hig-help-text {
    max-width: 300px;
    white-space: normal;
    text-align: left;
    line-height: 1.45;
}

/* ===== Faces in activity feeds (PersonFace, HIG round 5) =====
   In a timeline dot the face sits inside the dot's own coloured fill, which shows as a 2px ring in
   the event's colour (green sign-off, teal note, grey change). Initials sit under the photo, so a
   slow or missing photo still shows who it was.

   Adam, 2026-11-19 — bigger, to be recognisable: 24px on the request timeline, 32px on a note card.
   Measured before: the timeline face was 14px inside an 18px ring and a 24px dot, all scaled by 1.34,
   so about 19px on screen with a 2.7px ring. Now the sizes are real pixels with no scaling: a 24px
   face, its 2px ring (28px) and a 2px surface halo make a 32px dot, the footprint the scaled dot
   already had, so the rows do not move. Sizes are fixed rather than a share of the dot because the
   face's tooltip wraps it in a box of its own. */
.hig-face {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mud-palette-surface);
    color: var(--hig-title);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

.hig-face img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The face's hover (name and seats). The tooltip's box takes the face's shape, so it adds no line
   height and the face stays centred in its dot. */
.hig-face-tip {
    display: inline-flex;
    border-radius: 50%;
}

.hig-face:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* A face needs more room than an icon: its dot is 32px, with the event's colour 28px inside it. */
.mud-timeline-item-dot.mud-timeline-dot-size-small:has(.hig-face:not(.hig-face--cont)) {
    width: 32px;
    height: 32px;
}

.mud-timeline-item-dot.mud-timeline-dot-size-small:has(.hig-face:not(.hig-face--cont)) .mud-timeline-item-dot-inner {
    width: 28px;
    height: 28px;
}

/* The activity feed pins its 24px dots 2px down, centring them on the 28px opening line (app.css,
   PBI 253). The 32px face dot sits 2px up instead, so its centre stays on that line too. */
.activity-feed-timeline .mud-timeline-item-dot:has(.hig-face:not(.hig-face--cont)) {
    margin-top: -2px;
}

/* The follow-on mark for consecutive events by the same person: the dot shrinks to a small one in
   the event's colour. */
.mud-timeline-item-dot:has(.hig-face--cont) {
    transform: scale(0.42);
}

.hig-face--cont {
    display: none;
}

/* A note card's avatar (Project detail): a 32px circle with a hairline. */
.hig-face.hig-face--avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8125rem;
    box-shadow: 0 0 0 1px var(--hig-hairline);
}

/* A relative date under a date field ("8 days overdue") at the field's own text inset. */
.prop-row .pf-relative {
    padding: 1px 8px 0;
}

/* ===== Status tones (StatusDot, HIG round 5) =====
   Every status is a dot and a word; the dot wears one of five tones. Active is the brand teal,
   Waiting the text-safe amber, Good green, Danger only for overdue or failed, Neutral and Muted for
   everything at rest. The word stays in the ordinary text colour. */
.hig-tone-active .hig-status-dot { background: var(--hig-icon); }
.hig-tone-waiting .hig-status-dot { background: var(--hig-warn); }
.hig-tone-good .hig-status-dot { background: var(--hig-good); }
.hig-tone-danger .hig-status-dot { background: var(--hig-bad); }
.hig-tone-neutral .hig-status-dot { background: var(--hig-muted); }
.hig-tone-muted .hig-status-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hig-muted); }
.hig-tone-muted { color: var(--mud-palette-text-secondary); }

/* A status's own colour (StatusDot Color, from StatusColors), which wins over its tone. */
.hig-status.hig-status-custom .hig-status-dot {
    background: var(--hig-status-color);
    box-shadow: inset 0 0 0 1px var(--hig-dot-ring);
}

/* A Zendesk ticket status (ZendeskStatusDot) wears Zendesk's colour instead of a tone, with the
   same hairline ring. */
.hig-status.hig-zd-new .hig-status-dot { background: var(--zd-new); }
.hig-status.hig-zd-open .hig-status-dot { background: var(--zd-open); }
.hig-status.hig-zd-pending .hig-status-dot { background: var(--zd-pending); }
.hig-status.hig-zd-hold .hig-status-dot { background: var(--zd-hold); }
.hig-status.hig-zd-solved .hig-status-dot { background: var(--zd-solved); }
.hig-status.hig-zd-closed .hig-status-dot { background: var(--zd-closed); }
.hig-status[class*="hig-zd-"] .hig-status-dot {
    box-shadow: inset 0 0 0 1px var(--hig-dot-ring);
}

/* A StatusDot inside a menu item or sentence takes the surrounding text size, not the grid's 13px. */
.hig-status.hig-status-inherit { font-size: inherit; }

/* An icon between the dot and the word (a distro channel's failure or "waiting on us" mark, PBI 498
   AC 4): text-sized, in the dot's tone, so a scan still stops on it. */
.hig-status .hig-status-icon { font-size: 15px; width: 15px; height: 15px; margin-right: -3px; }
.hig-tone-active .hig-status-icon { color: var(--hig-icon); }
.hig-tone-waiting .hig-status-icon { color: var(--hig-warn); }
.hig-tone-good .hig-status-icon { color: var(--hig-good); }
.hig-tone-danger .hig-status-icon { color: var(--hig-bad); }
/* Beside a dot in the status's own colour (.hig-status-custom, which has no tone class) the icon
   keeps the word's colour: the palette's amber and cyan are too pale for a 15px glyph on white, and
   the dot already carries the hue. */

/* A category, not a status (a request's Side): a quiet tag with no colour of its own. */
.hig-tag {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 6px;
    background: var(--hig-fill);
    color: var(--mud-palette-text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* ===== Page titles (HIG round 5) =====
   One size for every page's title: 24px bold in the title colour. Home was 34px, Inventory 32px,
   the DL dashboard had a greeting in a bordered box instead. Pages use <h1 class="hig-page-title">. */
.hig-page-title {
    margin: 0;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.005em;
    color: var(--hig-title);
    white-space: nowrap;
}

.hig-page-subtitle {
    margin: 2px 0 0;
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

/* The DL dashboard's pin cards: the drag handle shows while the card is pointed at or focused. */
.dl-pin-handle {
    opacity: 0;
    transition: opacity 120ms ease;
}

.mud-paper:hover .dl-pin-handle,
.mud-paper:focus-within .dl-pin-handle {
    opacity: 1;
}

/* Leads' filters sit in the same outlined, dense fields as every other tracker's filter bar. */
.leads-filters .mud-input-control {
    margin-top: 0;
}

/* The page title takes focus after each navigation (Routes.razor, FocusOnNavigate) so a screen reader
   announces the new page. That focus is the router's, not the user's, so it draws no ring. */
.hig-page-title:focus,
.hig-page-title:focus-visible {
    outline: none;
}

/* A tracker's view tools sit at the right of its header, on whichever line they wrap to, so the
   page's one filled button (New Request) ends at the right edge. */
.tracker-header > .tracker-header-tools {
    margin-left: auto;
}

/* ===== Explainer icons (InfoTooltip, HIG round 5) =====
   Where an (i) remains, it is a whisper, not a second label: smaller, and faint until the pointer or
   the keyboard reaches it. The rail and the Distro dashboard put their explanations on the labels
   themselves (HelpLabel). */
.info-tooltip .mud-icon-root {
    width: 15px;
    height: 15px;
    font-size: 15px;
    opacity: 0.55;
    transition: opacity 120ms ease;
}

.info-tooltip:hover .mud-icon-root,
.info-tooltip:focus-visible .mud-icon-root {
    opacity: 1;
}
