/*
 * Call Tracker look and feel, layered on top of Filament's own stylesheet.
 * Plain CSS on purpose: no build step. Loaded after Filament's styles (see AdminPanelProvider).
 *
 * 1. Tokens     every colour, size, radius and shadow used below is defined here, for light and dark
 * 2. Shape      radii, row density and the charcoal sidebar
 * 3. Shell      sidebar, page header, sign-in
 * 4. Pieces     cards, buttons, badges, tabs, tables, properties
 * 5. Screens    dashboard, call page (header, history)
 *
 * Colour rule: red is La Marche's. It marks the brand, the primary action and "you are here".
 * Statuses have their own quieter colours and never use red. Neither does a judgement: good is green,
 * "watch" is amber and bad (down, late, at risk, missing) is --ct-bad, a plum that cannot be taken for the red.
 * Red is not "no" either (the cross of a yes/no mark is grey), nor "this removes" (a small x darkens under the pointer).
 */

/* ================================================================================ type */
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/fonts/geist/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/fonts/geist/geist-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/fonts/geist/geist-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/fonts/geist/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ================================================================================ 1. tokens */
:root {
    --ct-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* brand */
    --ct-red: #d82028;
    --ct-red-strong: #b81a21;
    --ct-red-soft: #ff6b70;

    /* type scale */
    --ct-text-2xs: 0.6875rem;   /* 11px: labels */
    --ct-text-xs: 0.75rem;      /* 12px */
    --ct-text-sm: 0.8125rem;    /* 13px: table text, properties */
    --ct-text-md: 0.875rem;     /* 14px: body */
    --ct-text-lg: 1.0625rem;    /* 17px */
    --ct-text-xl: 1.5rem;       /* 24px: page titles */
    --ct-text-2xl: 2rem;        /* 32px: the one big number */
    --ct-label-track: 0.08em;

    /* neutrals (light) */
    --ct-fg: #111113;
    --ct-fg-2: #55565c;
    --ct-fg-3: #8b8c93;
    --ct-canvas: #f7f7f8;
    --ct-surface: #ffffff;
    --ct-sunken: #f1f1f3;
    --ct-line: #e6e6e9;
    --ct-line-strong: #d3d3d8;
    --ct-hover: #f3f3f5;

    /* statuses */
    --ct-st-active: #16a34a;
    --ct-st-follow_up: #d97706;
    --ct-st-on_hold: #2563eb;
    --ct-st-closed: #9a9ba3;
    --ct-st-won: #16a34a;
    --ct-st-lost: #52525b;

    /* good, watch, bad: what a figure, a chip or a bar says about the thing it shows.
       Good is the green of --ct-st-active and "watch" the amber of --ct-st-follow_up.
       Bad (down, late, at risk, missing) is this plum, never the brand's red.
       Against --ct-surface it measures 5.5:1 here and 7.4:1 in .dark (text needs 4.5:1; bars, chips and marks 3:1).
       Charts draw the same colour as ChartKit::BAD (app/Dashboards/ChartKit.php): keep that equal to the light value. */
    --ct-bad: #b030aa;

    /* motion */
    --ct-fast: 120ms;
    --ct-ease: cubic-bezier(0.2, 0, 0, 1);

    /* shape, set per skin */
    --ct-radius: 0.5rem;
    --ct-radius-sm: 0.375rem;
    --ct-shadow: none;
    --ct-row-pad: 0.5rem;
}
.dark {
    --ct-fg: #f3f3f5;
    --ct-fg-2: #a9aab2;
    --ct-fg-3: #74757d;
    --ct-canvas: #0c0c0e;
    --ct-surface: #141416;
    --ct-sunken: #1b1b1f;
    --ct-line: #26262b;
    --ct-line-strong: #34343a;
    --ct-hover: #1c1c20;
    --ct-st-closed: #6f7078;
    --ct-st-lost: #a1a1aa;
    --ct-bad: #e57fdd;
}

/* ================================================================================ 2. shape and chrome */

/* The owner chose the flat, ruled "datasheet" look for the content, with a charcoal sidebar. */
:root {
    --ct-radius: 0.375rem;
    --ct-radius-sm: 0.25rem;
    --ct-shadow: none;
    --ct-row-pad: 0.55rem;
    --ct-canvas: #ffffff;

    /* the sidebar is charcoal in light and dark mode alike */
    --ct-side-bg: #101113;
    --ct-side-line: #1e1f23;
    --ct-side-fg: #b9bac1;
    --ct-side-fg-strong: #ffffff;
    --ct-side-muted: #72737b;
    --ct-side-hover: #1a1b1f;
    --ct-side-active: #232429;
    --ct-side-field: #18191c;

    /* the call header sits on the page */
    --ct-head-bg: var(--ct-surface);
    --ct-head-fg: var(--ct-fg);
    --ct-head-fg-2: var(--ct-fg-2);
    --ct-head-line: var(--ct-line);
}
.dark { --ct-canvas: #0c0c0e; }
html[data-ct-density='compact'] { --ct-row-pad: 0.3rem; }

/* ================================================================================ 3. shell */
.fi-body { font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; letter-spacing: -0.006em; color: var(--ct-fg); }
.fi-body.fi-body-has-navigation { background: var(--ct-canvas); }

.ct-brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.ct-brand-mark { width: 1.9rem; height: 1.9rem; flex: none; }
.ct-brand-text { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.ct-brand-name { font-weight: 650; font-size: 0.95rem; letter-spacing: -0.02em; }
.ct-brand-sub { font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-top: 0.2rem; }
.fi-logo { height: auto !important; }

.fi-sidebar.fi-main-sidebar { background: var(--ct-side-bg); border-inline-end: 1px solid var(--ct-side-line); color: var(--ct-side-fg); }
.fi-sidebar-header { background: transparent !important; box-shadow: none !important; border: 0 !important; padding-block: 1.1rem 0.7rem; height: auto; }
.fi-sidebar-header .ct-brand { color: var(--ct-side-fg-strong); }
.fi-sidebar-header .fi-icon-btn { color: var(--ct-side-muted); }
.fi-sidebar-nav { padding-inline: 0.7rem; gap: 1.25rem; scrollbar-width: thin; }
.fi-sidebar-group-label { color: var(--ct-side-muted) !important; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; }
.fi-sidebar-group-collapse-btn { color: var(--ct-side-muted) !important; }
.fi-sidebar-item-btn { position: relative; border-radius: var(--ct-radius-sm); padding: 0.4rem 0.6rem; gap: 0.65rem; transition: background-color var(--ct-fast) var(--ct-ease); }
.fi-sidebar-item-btn .fi-sidebar-item-label { color: var(--ct-side-fg) !important; font-weight: 500; font-size: var(--ct-text-md); }
.fi-sidebar-item-btn .fi-sidebar-item-icon { color: var(--ct-side-muted) !important; width: 1.1rem; height: 1.1rem; }
.fi-sidebar-item-btn:hover, .fi-sidebar-item-btn:focus-visible { background: var(--ct-side-hover) !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--ct-side-active) !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before { content: ''; position: absolute; inset-block: 0.45rem; inset-inline-start: -0.7rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--ct-red); }
.fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--ct-side-fg-strong) !important; font-weight: 600; }
.fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: var(--ct-side-fg-strong) !important; }
.fi-sidebar-footer { border-top: 1px solid var(--ct-side-line); padding: 0.6rem 0.7rem; }
.fi-sidebar .fi-user-menu-trigger, .fi-sidebar .fi-user-menu-trigger span, .fi-sidebar .fi-dropdown-trigger { color: var(--ct-side-fg-strong); }
.fi-sidebar .fi-user-menu .fi-user-menu-trigger { border-radius: var(--ct-radius-sm); }
.fi-sidebar .fi-user-menu .fi-user-menu-trigger:hover { background: var(--ct-side-hover); }
.fi-sidebar .fi-global-search-field .fi-input-wrp { background: var(--ct-side-field); box-shadow: inset 0 0 0 1px var(--ct-side-line); border-radius: var(--ct-radius-sm); }
.fi-sidebar .fi-global-search-field .fi-input { color: var(--ct-side-fg-strong); font-size: var(--ct-text-sm); padding-block: 0.4rem; }
.fi-sidebar .fi-global-search-field .fi-input::placeholder, .fi-sidebar .fi-global-search-field .fi-icon { color: var(--ct-side-muted); }

.fi-page-header-main-ctn { padding-block: 1.5rem; row-gap: 1.25rem; }
.fi-header-heading { font-size: var(--ct-text-xl); line-height: 1.2; font-weight: 650; letter-spacing: -0.03em; }
.fi-header-subheading { color: var(--ct-fg-2); font-size: var(--ct-text-md); }
.fi-breadcrumbs-item-label { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }

/* sign-in */
.fi-simple-layout { background: linear-gradient(135deg, #0e0f12 0%, #1b1c21 100%); position: relative; }
.fi-simple-layout::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(135deg, transparent 49.9%, var(--ct-red) 50%); opacity: 0.9;
    clip-path: polygon(100% 62%, 100% 100%, 62% 100%); }
.fi-simple-main { position: relative; border-radius: 0.875rem !important; padding: 2.25rem 2rem !important; background: #fff !important;
    box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.7) !important; --tw-ring-shadow: 0 0 #0000 !important; }
.dark .fi-simple-main { background: #141416 !important; box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.9), inset 0 0 0 1px #26262b !important; }
.fi-simple-header { align-items: flex-start; }
.fi-simple-header .ct-brand-mark { width: 2.4rem; height: 2.4rem; }
.fi-simple-header-heading { font-size: var(--ct-text-xl); font-weight: 650; letter-spacing: -0.03em; text-align: start; margin-top: 1.25rem; }

/* ================================================================================ 4. pieces */

/* cards */
.fi-section:not(.fi-section-not-contained), .fi-ta-ctn, .fi-wi-stats-overview-stat {
    background: var(--ct-surface); border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow), inset 0 0 0 1px var(--ct-line); --tw-ring-shadow: 0 0 #0000;
}
.fi-section-header { padding: 0.75rem 1rem; }
.fi-section-header-heading, .fi-ta-header-heading { font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); }
.fi-section-header-description { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn > .fi-section-content { padding: 1rem; }
.fi-in-entry-label { font-size: var(--ct-text-xs); font-weight: 500; color: var(--ct-fg-3); }
.fi-in-text-item { font-size: var(--ct-text-sm); }

/* sections are ruled blocks, not boxes */
.fi-section:not(.fi-section-not-contained) { box-shadow: none; border-top: 1px solid var(--ct-line-strong); border-radius: 0; background: transparent; }
.fi-section-header { padding: 0.7rem 0 0.2rem; border: 0 !important; }
.fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn { border: 0 !important; }
.fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn > .fi-section-content { padding: 0.5rem 0 1rem; }
.fi-ta-ctn { box-shadow: inset 0 0 0 1px var(--ct-line); }

/* buttons, inputs */
.fi-btn { border-radius: var(--ct-radius-sm); font-weight: 600; letter-spacing: -0.01em; transition: filter var(--ct-fast) var(--ct-ease), transform var(--ct-fast) var(--ct-ease); }
.fi-btn:active { transform: translateY(1px); }
.fi-btn.fi-color-primary:not(.fi-outlined) { background: var(--ct-red); color: #fff !important; box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 1px 2px rgb(0 0 0 / 0.2); }
.fi-btn.fi-color-primary:not(.fi-outlined):hover { background: var(--ct-red-strong); }
.fi-btn.fi-color-primary:not(.fi-outlined) .fi-icon, .fi-btn.fi-color-primary:not(.fi-outlined) .fi-btn-label { color: #fff !important; }
.fi-input-wrp { border-radius: var(--ct-radius-sm); }
:focus-visible { outline: 2px solid var(--ct-red); outline-offset: 2px; }

/* status: a dot and a word. No red. */
.fi-badge { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
.ct-status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--ct-text-sm); font-weight: 550; color: var(--ct-fg); white-space: nowrap; }
.ct-status::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 999px; flex: none; background: var(--ct-dot, var(--ct-st-closed)); }
.ct-status-active { --ct-dot: var(--ct-st-active); }
.ct-status-follow_up { --ct-dot: var(--ct-st-follow_up); }
.ct-status-on_hold { --ct-dot: var(--ct-st-on_hold); }
.ct-status-closed { --ct-dot: var(--ct-st-closed); color: var(--ct-fg-2); }
.ct-status-closed::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ct-st-closed); }
.ct-status-won { --ct-dot: var(--ct-st-won); } .ct-status-lost { --ct-dot: var(--ct-st-lost); }
.ct-status-undetermined, .ct-status-not_related { --ct-dot: var(--ct-st-closed); color: var(--ct-fg-2); }

/* tabs */
.fi-tabs { --tw-ring-shadow: 0 0 #0000; gap: 0.15rem; }
.fi-tabs-item { font-weight: 550; font-size: var(--ct-text-sm); transition: background-color var(--ct-fast) var(--ct-ease), color var(--ct-fast) var(--ct-ease); }
.fi-tabs-item .fi-badge { background: transparent !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000 !important; color: var(--ct-fg-3) !important; font-family: var(--ct-mono); font-weight: 500; padding-inline: 0; }
.fi-tabs-item .fi-badge * { color: inherit !important; }
.fi-tabs { background: transparent; box-shadow: inset 0 -1px 0 var(--ct-line); border-radius: 0; padding: 0; justify-content: flex-start; width: 100%; margin: 0; }
.fi-tabs-item { border-radius: 0; padding: 0.55rem 0.75rem; box-shadow: inset 0 -2px 0 transparent; }
.fi-tabs-item.fi-active { background: transparent; box-shadow: inset 0 -2px 0 var(--ct-red); }
.fi-tabs-item.fi-active .fi-tabs-item-label { color: var(--ct-fg) !important; }

/* tables: dense, ruled, hierarchy inside the row */
.fi-ta-ctn { overflow: hidden; }
.fi-ta-header-toolbar { padding: 0.55rem 0.75rem; }
.fi-ta-header { padding: 0.8rem 1rem; }
.fi-ta-header-cell { font-size: var(--ct-text-2xs) !important; letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600 !important; color: var(--ct-fg-3) !important; padding-block: 0.5rem !important; background: var(--ct-sunken); }
.fi-ta-header-cell .fi-ta-header-cell-sort-btn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.fi-ta-text:not(.fi-inline) { padding-block: var(--ct-row-pad); }
.fi-ta-row { transition: background-color var(--ct-fast) var(--ct-ease); }
.fi-ta-row:hover { background: var(--ct-hover) !important; }
.fi-ta-text-item { font-size: var(--ct-text-sm); }
.fi-ta-text-description, .fi-ta-text p.fi-ta-text-description { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-mono, .fi-ta-cell-id .fi-ta-text-item, .fi-ta-cell-model-summary .fi-ta-text-item, .fi-ta-cell-serial-summary .fi-ta-text-item, .fi-ta-cell-call-id .fi-ta-text-item {
    font-family: var(--ct-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fi-ta-cell-id .fi-ta-text-item { font-weight: 600; color: var(--ct-fg); }
.fi-ta-cell-model-summary .fi-ta-text-item, .fi-ta-cell-serial-summary .fi-ta-text-item { font-size: var(--ct-text-xs); color: var(--ct-fg-2); }
.fi-ta-cell-opened-on .fi-ta-text-item, .fi-ta-cell-due-on .fi-ta-text-item, .fi-ta-cell-resolved-on .fi-ta-text-item { color: var(--ct-fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fi-ta-cell-category\.name .fi-ta-text-item, .fi-ta-cell-assigned-to\.name .fi-ta-text-item { color: var(--ct-fg-2); }
.ct-person { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }

/* properties: label left, value right */
.ct-props .fi-in-entry { align-items: baseline; }
.ct-props .fi-in-entry-label { font-size: var(--ct-text-sm); color: var(--ct-fg-3); font-weight: 450; }
.ct-props .fi-in-text-item { font-size: var(--ct-text-sm); color: var(--ct-fg); }
.ct-props .fi-in-placeholder { font-size: var(--ct-text-sm); color: var(--ct-fg-3); }
/* A yes/no mark: "yes" is a green tick, "no" a grey cross (never red: "no" is an answer, not an alarm; AppServiceProvider sets it
   for every list and page). The shape tells them apart; this grey is the one that still reads as a mark (3:1 on the panel). */
.fi-in-icon .fi-icon:not(.fi-color), .fi-ta-icon .fi-icon:not(.fi-color) { color: var(--ct-fg-3); }
.ct-props .fi-sc { row-gap: 0.55rem; }

/* initials */
.ct-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 999px; font-size: 0.625rem; font-weight: 650; letter-spacing: 0.02em;
    color: hsl(var(--ct-hue, 230) 35% 28%); background: hsl(var(--ct-hue, 230) 45% 90%); }
.dark .ct-avatar { color: hsl(var(--ct-hue, 230) 55% 86%); background: hsl(var(--ct-hue, 230) 22% 26%); }
.ct-avatar-sm { width: 1.25rem; height: 1.25rem; font-size: 0.5rem; }
.ct-avatar-ghost { background: var(--ct-sunken) !important; color: var(--ct-fg-3) !important; }

/* ================================================================================ 5. screens */

/* dashboard */
.fi-wi-stats-overview-stat { padding: 1rem 1.1rem; position: relative; overflow: hidden; transition: box-shadow var(--ct-fast) var(--ct-ease); }
a.fi-wi-stats-overview-stat:hover { box-shadow: var(--ct-shadow), inset 0 0 0 1px var(--ct-line-strong); }
.fi-wi-stats-overview-stat-label { font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); }
.fi-wi-stats-overview-stat-value { font-size: var(--ct-text-2xl); line-height: 1.1; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: 0.3rem; }
.fi-wi-stats-overview-stat-description { font-size: var(--ct-text-xs); }

/* call page: compact header that stays in view */
.ct-callhead { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
    padding: 0.9rem 1.1rem; border-radius: var(--ct-radius); background: var(--ct-head-bg); color: var(--ct-head-fg);
    box-shadow: var(--ct-shadow), inset 0 0 0 1px var(--ct-head-line); }
.ct-callhead { border-radius: 0; box-shadow: inset 0 -1px 0 var(--ct-line-strong); padding: 0.25rem 0 0.9rem; background: color-mix(in oklab, var(--ct-canvas) 92%, transparent); backdrop-filter: blur(8px); }
.ct-callhead-main { min-width: 0; }
.ct-callhead-line { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ct-callhead-number { font-family: var(--ct-mono); font-size: var(--ct-text-xl); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.ct-callhead-number small { font-size: 0.7em; font-weight: 450; color: var(--ct-head-fg-2); margin-inline-end: 0.08em; }
.ct-callhead-number { padding-inline-start: 0.7rem; box-shadow: inset 3px 0 0 var(--ct-red); }
.ct-callhead .ct-status { color: var(--ct-head-fg); }
.ct-callhead-who { margin-top: 0.3rem; font-size: var(--ct-text-lg); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ct-callhead-who a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-callhead-who span { color: var(--ct-head-fg-2); font-weight: 450; }
.ct-callhead-facts { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.ct-fact-label { font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; color: var(--ct-head-fg-2); font-weight: 600; }
.ct-fact-value { margin-top: 0.2rem; font-size: var(--ct-text-sm); font-weight: 550; display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-fact-value.ct-empty { color: var(--ct-head-fg-2); font-weight: 450; }

/* call page: text and history */
.ct-prose { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--ct-text-md); line-height: 1.6; color: var(--ct-fg); }
.ct-muted { color: var(--ct-fg-3); font-weight: 450; }
.ct-timeline { display: flex; flex-direction: column; }
.ct-day { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0 0.6rem; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-fg-3); }
.ct-day:first-child { margin-top: 0; }
.ct-day::after { content: ''; flex: 1; height: 1px; background: var(--ct-line); }
.ct-entry { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.7rem; align-items: start; padding: 0.45rem 0; }
.ct-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; min-height: 1.75rem; align-content: center; }
.ct-author { font-weight: 600; font-size: var(--ct-text-sm); overflow-wrap: anywhere; }
.ct-when { font-size: var(--ct-text-xs); color: var(--ct-fg-3); font-variant-numeric: tabular-nums; }
.ct-chip { font-size: var(--ct-text-2xs); font-weight: 550; border-radius: 999px; padding: 0.05rem 0.5rem; color: var(--ct-fg-2); background: var(--ct-sunken); }
.ct-body { margin-top: 0.15rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--ct-text-md); line-height: 1.55; color: var(--ct-fg); }
.ct-body.ct-clamp { max-height: 8.2em; overflow: hidden; mask-image: linear-gradient(180deg, #000 62%, transparent); }
.ct-more { margin-top: 0.25rem; font-size: var(--ct-text-xs); font-weight: 600; color: var(--ct-fg-2); border-radius: var(--ct-radius-sm); padding: 0.1rem 0.4rem; margin-inline-start: -0.4rem; }
.ct-more:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-dot { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; color: var(--ct-fg-3); }
.ct-dot svg { width: 0.95rem; height: 0.95rem; }
.ct-file { display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; border-radius: var(--ct-radius-sm); padding: 0.3rem 0.65rem 0.3rem 0.4rem; background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); font-size: var(--ct-text-sm); font-weight: 550; overflow-wrap: anywhere; }
.ct-file-ext { font-family: var(--ct-mono); font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 0.2rem; padding: 0.15rem 0.3rem; color: var(--ct-fg-2); background: var(--ct-sunken); }

[x-cloak] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ================================================================================ keyboard, density, empty states */
.fi-ta-row.ct-row-selected { background: var(--ct-hover) !important; box-shadow: inset 3px 0 0 var(--ct-red); }
.ct-kbd { font-family: var(--ct-mono); font-size: 0.625rem; line-height: 1; padding: 0.2rem 0.35rem; border-radius: 0.25rem; color: var(--ct-side-fg); background: var(--ct-side-active); box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.08); }
.ct-sidefoot { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem 0.7rem 0; }
.ct-sidefoot-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--ct-text-xs); color: var(--ct-side-muted); padding: 0.25rem 0.5rem; border-radius: var(--ct-radius-sm); transition: background-color var(--ct-fast) var(--ct-ease), color var(--ct-fast) var(--ct-ease); }
.ct-sidefoot-btn:hover { background: var(--ct-side-hover); color: var(--ct-side-fg-strong); }
.ct-shortcuts { flex-basis: 100%; display: grid; gap: 0.5rem; padding: 0.6rem 0.5rem 0.3rem; font-size: var(--ct-text-xs); color: var(--ct-side-fg); }
.ct-shortcuts dt { color: var(--ct-side-muted); }
.ct-shortcuts dd { margin-top: 0.15rem; }
.fi-sidebar .fi-global-search-field .fi-input-wrp-suffix, .fi-sidebar .fi-global-search-field .fi-input-wrp-label { font-family: var(--ct-mono); font-size: 0.625rem; color: var(--ct-side-muted); }
.fi-ta-empty-state { padding-block: 3rem; }
.fi-ta-empty-state-heading { font-size: var(--ct-text-lg); font-weight: 600; letter-spacing: -0.02em; }
.fi-ta-empty-state-description { font-size: var(--ct-text-sm); color: var(--ct-fg-3); }
.fi-ta-empty-state-icon-bg { background: var(--ct-sunken) !important; }
.fi-ta-empty-state-icon-bg .fi-icon { color: var(--ct-fg-3) !important; }

/* ================================================================================ dashboard panels */
.ct-panel { border-top: 1px solid var(--ct-line-strong); padding-top: 0.7rem; }
.ct-panel-title { font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); }
.ct-panel-note { font-size: var(--ct-text-xs); color: var(--ct-fg-3); margin-top: 0.5rem; line-height: 1.5; }
.ct-figure { margin-top: 0.8rem; font-size: var(--ct-text-md); color: var(--ct-fg-2); }
.ct-figure strong { display: block; font-size: 3rem; line-height: 1; font-weight: 650; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--ct-red); margin-bottom: 0.35rem; }
.dark .ct-figure strong { color: var(--ct-red-soft); }
.ct-stack { display: flex; gap: 2px; height: 0.6rem; margin-top: 1rem; border-radius: 2px; overflow: hidden; }
.ct-stack-part { min-width: 2px; }
.ct-out-won, .ct-out-active { background: var(--ct-st-active); }
.ct-out-lost { background: var(--ct-st-lost); }
.ct-out-undetermined, .ct-out-follow_up { background: var(--ct-st-follow_up); }
.ct-out-not_related { background: var(--ct-st-closed); }
.ct-out-missing { background: var(--ct-bad); }
/* "No outcome recorded" is also hatched in the bar and a diamond in the list: beside the grey of "Lost" its colour alone
   is not enough for a red-green colour-blind reader (least of all in the dark theme). */
.ct-stack-part.ct-out-missing { background: repeating-linear-gradient(135deg, var(--ct-bad) 0 5px, color-mix(in oklab, var(--ct-bad) 62%, var(--ct-surface)) 5px 7px); }
.ct-legend-dot.ct-out-missing { border-radius: 1px; transform: rotate(45deg); }
.ct-legend { margin-top: 0.9rem; display: grid; gap: 0.3rem; font-size: var(--ct-text-sm); }
.ct-legend > div { display: flex; justify-content: space-between; gap: 1rem; }
.ct-legend dt { color: var(--ct-fg-2); }
.ct-legend dd { font-family: var(--ct-mono); font-variant-numeric: tabular-nums; color: var(--ct-fg); }
.ct-legend-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 999px; margin-inline-end: 0.45rem; }
.ct-load { margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.ct-load-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; row-gap: 0.25rem; align-items: baseline; }
.ct-load-name { font-size: var(--ct-text-sm); color: var(--ct-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-load-total { font-family: var(--ct-mono); font-size: var(--ct-text-sm); font-variant-numeric: tabular-nums; color: var(--ct-fg); }
.ct-load-track { grid-column: 1 / -1; height: 0.4rem; background: var(--ct-sunken); border-radius: 2px; overflow: hidden; }
.ct-load-bar { display: flex; height: 100%; min-width: 2px; }
.ct-load-bar.ct-load-off { mask-image: linear-gradient(90deg, #000 86%, transparent 86%), repeating-linear-gradient(115deg, #000 0 3px, transparent 3px 6px); mask-composite: add; }
.fi-wi-chart .fi-section-header-heading { font-size: var(--ct-text-2xs); }

/* ================================================================================ small screens */
@media (max-width: 640px) {
    .fi-page-header-main-ctn { padding-block: 1rem; }
    .ct-callhead { position: static; }
    .ct-callhead-facts { gap: 0.9rem 1.25rem; }
    .ct-callhead-number { font-size: 1.25rem; }
    .ct-props .fi-in-entry { row-gap: 0.1rem; }
    .fi-wi-stats-overview-stat-value { font-size: 1.6rem; }
}

/* inputs show focus on their frame, not a second box inside it */
.fi-input:focus-visible, .fi-select-input:focus-visible { outline: none; }
.fi-sidebar .fi-global-search-field .fi-input-wrp:focus-within { box-shadow: inset 0 0 0 1px var(--ct-side-muted); }

/* The call header stays in view: its grid cell is what sticks (the header alone has no room to). */
.ct-callhead { position: static; }
.fi-grid-col:has(> .fi-sc-component > .ct-callhead) { position: sticky; top: 0; z-index: 20; }
.fi-grid-col:has(> .fi-sc-component > .ct-callhead) .ct-callhead { padding-top: 0.75rem; }
@media (max-width: 640px) { .fi-grid-col:has(> .fi-sc-component > .ct-callhead) { position: static; } }
.fi-input-wrp textarea:focus-visible, .fi-fo-textarea textarea:focus-visible { outline: none; }

/* ================================================================================ home page */
.ct-hub { display: grid; gap: 1.25rem; }
.ct-hub-ico { width: 1rem; height: 1rem; flex: none; }
.ct-hub-tagline { margin-top: -0.75rem; font-size: var(--ct-text-md); color: var(--ct-fg-2); }
.ct-hub-strip { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); color: var(--ct-fg); background: var(--ct-sunken); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-hub-strip > span { flex: 1; min-width: 0; }
.ct-hub-strip a, .ct-hub-inline { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ct-hub-strip-alert { box-shadow: inset 3px 0 0 var(--ct-st-follow_up), inset 0 0 0 1px var(--ct-line); }

.ct-hub-toolbar { position: sticky; top: 0; z-index: 15; display: grid; gap: 0.6rem; padding-block: 0.6rem; background: color-mix(in oklab, var(--ct-canvas) 92%, transparent); backdrop-filter: blur(8px); box-shadow: inset 0 -1px 0 var(--ct-line); }
.ct-hub-search { display: flex; align-items: center; gap: 0.6rem; padding: 0 0.8rem; height: 2.6rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong); color: var(--ct-fg-3); transition: box-shadow var(--ct-fast) var(--ct-ease); }
.ct-hub-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ct-fg); color: var(--ct-fg); }
.ct-hub-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font-size: var(--ct-text-md); color: var(--ct-fg); outline: none; box-shadow: none; }
.ct-hub-search input::placeholder { color: var(--ct-fg-3); }
.ct-hub-key { font-family: var(--ct-mono); font-size: var(--ct-text-2xs); padding: 0.1rem 0.4rem; border-radius: 0.25rem; color: var(--ct-fg-3); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-hub-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ct-hub-chip { font-size: var(--ct-text-sm); font-weight: 550; padding: 0.25rem 0.7rem; border-radius: 999px; color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line); transition: background-color var(--ct-fast) var(--ct-ease), color var(--ct-fast) var(--ct-ease); }
.ct-hub-chip:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-hub-chip.is-on { background: var(--ct-fg); color: var(--ct-canvas); box-shadow: none; }

.ct-hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; align-items: start; }
.ct-hub-grid:has(> .ct-hub-side[style*="display: none"]) { grid-template-columns: minmax(0, 1fr); }
.ct-hub-main, .ct-hub-side { display: grid; gap: 1.5rem; min-width: 0; }
.ct-hub-count { font-family: var(--ct-mono); color: var(--ct-fg-3); margin-inline-start: 0.35rem; }
.ct-hub .ct-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ct-hub-main .ct-panel-title { justify-content: flex-start; }

.ct-hub-cards { margin-top: 0.8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.6rem; }
.ct-hub-card { position: relative; display: flex; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); transition: box-shadow var(--ct-fast) var(--ct-ease), background-color var(--ct-fast) var(--ct-ease); }
.ct-hub-card:hover, .ct-hub-card:focus-within { box-shadow: inset 0 0 0 1px var(--ct-line-strong); background: var(--ct-hover); }
.ct-hub-card-link { flex: 1; min-width: 0; display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 3.6rem 0.8rem 0.8rem; border-radius: var(--ct-radius); }
.ct-hub-card-link:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 2px; }
.ct-hub-card-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem; border-radius: var(--ct-radius-sm); color: var(--ct-fg-2); background: var(--ct-sunken); }
.ct-hub-card:hover .ct-hub-card-icon { color: var(--ct-fg); }
.ct-hub-card-text { display: grid; gap: 0.15rem; min-width: 0; }
.ct-hub-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: var(--ct-text-md); font-weight: 600; letter-spacing: -0.01em; color: var(--ct-fg); }
.ct-hub-card-desc { font-size: var(--ct-text-sm); color: var(--ct-fg-2); line-height: 1.4; }
.ct-hub-card-actions { position: absolute; top: 0.5rem; right: 0.45rem; display: flex; gap: 0.1rem; }
.ct-hub-act { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: var(--ct-radius-sm); color: var(--ct-fg-3); transition: background-color var(--ct-fast) var(--ct-ease), color var(--ct-fast) var(--ct-ease), opacity var(--ct-fast) var(--ct-ease); }
.ct-hub-act:hover { background: var(--ct-sunken); color: var(--ct-fg); }
.ct-hub-act .ct-hub-ico { width: 0.9rem; height: 0.9rem; }
.ct-hub-act.is-done { color: var(--ct-st-active); }
.ct-hub-card-actions .ct-hub-act { opacity: 0; }
.ct-hub-card:hover .ct-hub-act, .ct-hub-card:focus-within .ct-hub-act, .ct-hub-card .ct-hub-star.is-on { opacity: 1; }
.ct-hub-star.is-on { color: var(--ct-st-follow_up); }
.ct-hub-star.is-on svg { fill: currentColor; }

.ct-hub-recent { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ct-hub-pill { font-size: var(--ct-text-sm); font-weight: 550; padding: 0.3rem 0.75rem; border-radius: 999px; color: var(--ct-fg); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-hub-pill:hover { background: var(--ct-hover); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }

.ct-hub-notice { margin-top: 0.9rem; padding: 1rem 1.1rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-hub-notice-meta { display: flex; align-items: center; gap: 0.5rem; font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-hub-notice-title { margin: 0.25rem 0 0.4rem; font-size: var(--ct-text-lg); font-weight: 600; letter-spacing: -0.02em; }
.ct-hub-notice .ct-prose + .ct-prose, .ct-hub-notice [x-show] .ct-prose { margin-top: 0.6rem; }
.ct-hub-notice-from { margin-top: 0.6rem; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }

.ct-hub-clock { margin-top: 0.6rem; font-size: var(--ct-text-2xl); line-height: 1.1; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ct-hub-zones { margin-top: 0.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 1rem; font-size: var(--ct-text-sm); }
.ct-hub-zones > div, .ct-hub-forecast > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.ct-hub-zones dt, .ct-hub-forecast dt { color: var(--ct-fg-2); }
.ct-hub-zones dd, .ct-hub-forecast-temp { font-family: var(--ct-mono); font-variant-numeric: tabular-nums; }
.ct-hub-now { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--ct-line); font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-hub-now strong { font-size: var(--ct-text-lg); font-weight: 650; color: var(--ct-fg); margin-inline-end: 0.35rem; }
.ct-hub-forecast { margin-top: 0.5rem; display: grid; gap: 0.25rem; font-size: var(--ct-text-sm); }
.ct-hub-forecast dt { flex: none; width: 5.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-hub-forecast-sum { flex: 1; min-width: 0; color: var(--ct-fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-hub-forecast-temp span { color: var(--ct-fg-3); }
.ct-hub-pay { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--ct-line); font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-hub-pay strong { color: var(--ct-fg); font-weight: 600; }

.ct-hub-hols { margin-top: 0.6rem; display: grid; font-size: var(--ct-text-sm); }
.ct-hub-hols li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid var(--ct-line); }
.ct-hub-hols li:last-child { border-bottom: 0; }
.ct-hub-hol-name { flex: 1; min-width: 0; color: var(--ct-fg); }
.ct-hub-hol-name small { display: block; font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-hub-hol-date { font-family: var(--ct-mono); font-size: var(--ct-text-xs); color: var(--ct-fg-2); white-space: nowrap; }
.ct-hub-hols .is-past .ct-hub-hol-name, .ct-hub-hols .is-past .ct-hub-hol-date { color: var(--ct-fg-3); }
.ct-hub-hols .is-next .ct-hub-hol-name { font-weight: 650; }
.ct-hub-hol-next { font-size: var(--ct-text-2xs); font-weight: 650; letter-spacing: var(--ct-label-track); text-transform: uppercase; color: var(--ct-red); white-space: nowrap; }
.dark .ct-hub-hol-next { color: var(--ct-red-soft); }

.ct-hub-help { margin-top: 0.6rem; display: grid; gap: 0.15rem; }
.ct-hub-help a { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.5rem; margin-inline: -0.5rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); font-weight: 550; color: var(--ct-fg); }
.ct-hub-help a:hover { background: var(--ct-hover); }
.ct-hub-help .ct-hub-ico { color: var(--ct-fg-3); }
.ct-hub-foot { padding-top: 1rem; border-top: 1px solid var(--ct-line); font-size: var(--ct-text-xs); color: var(--ct-fg-3); }

/* quick tools */
.ct-qt { margin-top: 0.7rem; font-size: var(--ct-text-sm); }
.ct-qt-bg { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.8rem; }
.ct-qt-gh { flex-basis: 100%; margin-top: 0.4rem; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-fg-3); }
.ct-qt-gh:first-child { margin-top: 0; }
.ct-qt-b { font-size: var(--ct-text-xs); font-weight: 550; padding: 0.2rem 0.55rem; border-radius: 999px; color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-qt-b:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-qt-b.is-on { background: var(--ct-fg); color: var(--ct-canvas); box-shadow: none; }
.ct-calc[hidden] { display: none; }
.ct-qt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.ct-qt-grid + .ct-qt-msg + .ct-qt-grid { margin-top: 0.6rem; }
.ct-qt label, .ct-qt .ct-qt-tp { display: grid; gap: 0.2rem; font-size: var(--ct-text-xs); color: var(--ct-fg-2); }
.ct-qt .ct-full { grid-column: 1 / -1; }
.ct-qt input, .ct-qt select, .ct-qt textarea { width: 100%; min-width: 0; height: 2rem; padding: 0 0.5rem; border: 0; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); color: var(--ct-fg); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong); font-variant-numeric: tabular-nums; }
.ct-qt select { padding-inline-end: 1.6rem; background-position: right 0.3rem center; }
.ct-qt textarea { height: 8rem; padding: 0.5rem; resize: vertical; }
.ct-qt input:focus, .ct-qt select:focus, .ct-qt textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ct-fg); }
.ct-qt-csel { margin-bottom: 0.5rem; }
.ct-qt-btns { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.ct-qt-go, .ct-qt-clr, .ct-qt-copy { font-size: var(--ct-text-xs); font-weight: 600; padding: 0.35rem 0.8rem; border-radius: var(--ct-radius-sm); }
.ct-qt-go { background: var(--ct-fg); color: var(--ct-canvas); }
.ct-qt-go:hover { opacity: 0.88; }
.ct-qt-clr, .ct-qt-copy { color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-qt-clr:hover, .ct-qt-copy:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-qt-copy { margin-top: 0.5rem; }
.ct-qt-msg { margin-top: 0.6rem; min-height: 1.2rem; color: var(--ct-fg-2); line-height: 1.5; overflow-wrap: anywhere; }
.ct-qt-msg b { color: var(--ct-fg); font-weight: 650; }
.ct-qt-timer { font-family: var(--ct-mono); font-size: var(--ct-text-2xl); font-weight: 600; letter-spacing: -0.04em; }
.ct-tp-sel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
.ct-tp-out { margin-top: 0.6rem; display: grid; gap: 0.25rem; }
.ct-tp-row { display: flex; justify-content: space-between; gap: 1rem; }
.ct-tp-row b { font-weight: 500; color: var(--ct-fg-2); }
.ct-tp-row span { font-family: var(--ct-mono); }
.ct-tp-row i { font-style: normal; color: var(--ct-fg-3); }
.ct-ref { width: 100%; border-collapse: collapse; font-size: var(--ct-text-xs); }
.ct-ref th { text-align: left; font-weight: 600; color: var(--ct-fg-3); padding: 0.25rem 0.4rem 0.25rem 0; border-bottom: 1px solid var(--ct-line-strong); }
.ct-ref td { padding: 0.25rem 0.4rem 0.25rem 0; border-bottom: 1px solid var(--ct-line); font-variant-numeric: tabular-nums; }
.ct-ref-note { margin-top: 0.5rem; font-size: var(--ct-text-xs); color: var(--ct-fg-3); line-height: 1.5; }

@media (max-width: 1100px) { .ct-hub-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .ct-hub-cards { grid-template-columns: minmax(0, 1fr); }
    .ct-hub-card-actions .ct-hub-act { opacity: 1; }
    .ct-hub-key { display: none; }
    .ct-hub-toolbar { position: static; }
}
@media print {
    [data-ct-print="holidays"] body * { visibility: hidden; }
    [data-ct-print="holidays"] .ct-hub-holidays, [data-ct-print="holidays"] .ct-hub-holidays * { visibility: visible; }
    [data-ct-print="holidays"] .ct-hub-holidays { position: absolute; inset: 0 auto auto 0; width: 100%; border: 0; }
    [data-ct-print="holidays"] .ct-hub-act { display: none; }
}

/* ================================================================================ calls: quicker to add, read and find */
/* sidebar: new call */
.ct-newcall { display: flex; align-items: center; gap: 0.55rem; margin: 0 0.1rem 0.6rem; padding: 0.5rem 0.7rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-md); font-weight: 600; color: #fff; background: var(--ct-red); transition: background-color var(--ct-fast) var(--ct-ease); }
.ct-newcall:hover { background: var(--ct-red-strong); }
.ct-newcall svg { width: 1rem; height: 1rem; flex: none; }
.ct-newcall span { flex: 1; }
.ct-newcall .ct-kbd { color: #fff; background: rgb(255 255 255 / 0.18); box-shadow: none; }
.fi-sidebar:not(.fi-sidebar-open) .ct-newcall span, .fi-sidebar:not(.fi-sidebar-open) .ct-newcall .ct-kbd { display: none; }
.fi-sidebar:not(.fi-sidebar-open) .ct-newcall { justify-content: center; padding-inline: 0; }

/* new call: what we already know about the customer */
.ct-custhist { border-radius: var(--ct-radius-sm); background: var(--ct-sunken); padding: 0.7rem 0.8rem; font-size: var(--ct-text-sm); }
.ct-custhist-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 0.75rem; color: var(--ct-fg-2); }
.ct-custhist-head strong { color: var(--ct-fg); font-weight: 600; }
.ct-custhist-head b { color: var(--ct-fg); font-weight: 650; }
.ct-custhist-warn { margin-top: 0.4rem; padding-inline-start: 0.6rem; box-shadow: inset 3px 0 0 var(--ct-st-follow_up); color: var(--ct-fg); }
.ct-custhist-list { margin-top: 0.5rem; display: grid; }
.ct-custhist-list a { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.3rem 0.4rem; margin-inline: -0.4rem; border-radius: var(--ct-radius-sm); }
.ct-custhist-list a:hover { background: var(--ct-hover); }
.ct-custhist-no { font-family: var(--ct-mono); font-weight: 600; }
.ct-custhist-what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ct-fg-2); }
.ct-custhist-when { font-size: var(--ct-text-xs); color: var(--ct-fg-3); white-space: nowrap; }

/* call page */
button.ct-callhead-number { cursor: copy; border-radius: 0; }
button.ct-callhead-number.is-done { color: var(--ct-st-active); }
.ct-callhead-nav { display: inline-flex; gap: 0.15rem; margin-inline-start: 0.25rem; }
.ct-callhead-nav a, .ct-callhead-nav span { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-lg); line-height: 1; color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-callhead-nav a:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-callhead-nav span { color: var(--ct-line-strong); }
.ct-callhead-mail a { font-size: var(--ct-text-sm); }
.ct-chip-warn { color: var(--ct-fg); box-shadow: inset 0 0 0 1px var(--ct-st-follow_up); background: transparent; }
.ct-latest { padding: 0.9rem 1.1rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 3px 0 0 var(--ct-fg), inset 0 0 0 1px var(--ct-line); }
.ct-latest-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.ct-latest-head .ct-panel-title { margin-inline-end: 0.5rem; }
.ct-clamp-short { max-height: 6.2em !important; }
.ct-timeline-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-timeline-bar .ct-more { margin: 0; }
.ct-daygroup, .ct-dayentries { display: flex; flex-direction: column; }
.ct-timeline.ct-newest, .ct-timeline.ct-newest .ct-dayentries { flex-direction: column-reverse; }
.ct-timeline.ct-newest .ct-timeline-bar { order: 1; }
.ct-daygroup .ct-day { margin-top: 1rem; }
.ct-quiet { padding-block: 0.1rem; }
.ct-quiet .ct-head { min-height: 1.4rem; }
.ct-quiet-text { font-size: var(--ct-text-xs); }
.ct-quiet .ct-more { margin: 0; }
/* the facts column shows what is filled in; empty fields come back with one click */
.ct-props:not(.ct-show-empty) .fi-in-entry:has(.fi-in-placeholder) { display: none; }
/* ...together with the slot the fact sat in, so no gap is left where it was.
   (One :has() only: a :has() inside another :has() is not valid CSS and the browser drops the whole rule.) */
.ct-props:not(.ct-show-empty) .fi-grid-col:has(> .fi-sc-component > .fi-in-entry .fi-in-placeholder) { display: none; }
/* A panel of facts with nothing in it goes entirely, heading and all. CallResource marks it (.ct-facts-empty) from the
   panel's own facts: only the server knows which panels are made of facts. The panels built from a view (Files, Chat,
   Time spent ...) hold no facts at all, so "has no filled fact" must never be asked of them here. */
.ct-props:not(.ct-show-empty) .fi-grid-col:has(> .fi-sc-component > .ct-facts-empty) { display: none; }
.ct-empty-toggle { margin: 0; }

/* call list */
.ct-quick { display: grid; gap: 0.5rem; }
.ct-quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.ct-quick-row .ct-more { margin: 0 0 0 0.25rem; }
.ct-quick-views .ct-panel-title { margin-inline-end: 0.4rem; }
.ct-quick-view { display: inline-flex; align-items: center; border-radius: 999px; font-size: var(--ct-text-sm); font-weight: 550; color: var(--ct-fg); background: var(--ct-sunken); }
.ct-quick-view button:first-child { padding: 0.25rem 0.2rem 0.25rem 0.75rem; }
.ct-quick-view button:last-child { padding: 0.25rem 0.6rem 0.25rem 0.3rem; color: var(--ct-fg-3); }
/* A small "x" that removes or closes something darkens under the pointer; it does not turn red (red is not "this removes"). */
.ct-quick-view:hover { box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-quick-view button:hover { color: var(--ct-fg); }
.fi-resource-calls .fi-ta-row { cursor: pointer; }
.ct-preview { display: grid; gap: 0.8rem; }
.ct-preview-facts { margin-top: 0; }
.ct-preview-facts dd { font-family: inherit; text-align: right; overflow-wrap: anywhere; }
.ct-preview .ct-panel-title { margin-top: 0.6rem; padding-top: 0.8rem; border-top: 1px solid var(--ct-line); }
.ct-preview-text { margin-top: 0; }
.ct-preview-update + .ct-preview-update { padding-top: 0.6rem; border-top: 1px solid var(--ct-line); }

/* phone: each call is a card, not a table row cut off at the edge */
@media (max-width: 640px) {
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table thead { display: none; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table, .fi-resource-calls.fi-resource-list-records-page .fi-ta-table tbody { display: block; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.1rem 0.75rem; padding: 0.7rem 0.9rem; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-row > .fi-ta-cell { display: none; padding: 0; min-width: 0; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-row > .fi-ta-cell-id { display: block; grid-area: 1 / 1; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-row > .fi-ta-cell-status { display: block; grid-area: 1 / 2; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-row > .fi-ta-cell-company\.name { display: block; grid-area: 2 / 1 / 3 / 3; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-row .fi-ta-col, .fi-resource-calls.fi-resource-list-records-page .fi-ta-row .fi-ta-text { padding: 0; white-space: normal; }
    .ct-quick-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .ct-quick-row .ct-hub-chip { white-space: nowrap; }
}

/* a narrowed menu shows icons only: the footer's words go */
.fi-sidebar:not(.fi-sidebar-open) .ct-sidefoot { display: none; }
/* an icon never grows past its place, even if a later rule fails to load */
svg.ct-hub-ico { max-width: 1.5rem; max-height: 1.5rem; }

/* ================================================================================ dashboard tables */
.ct-board-scroll { margin-top: 0.7rem; overflow-x: auto; }
.ct-board-table { width: 100%; border-collapse: collapse; font-size: var(--ct-text-sm); }
.ct-board-table th { text-align: left; white-space: nowrap; padding: 0.35rem 0.9rem 0.35rem 0; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-fg-3); border-bottom: 1px solid var(--ct-line-strong); }
.ct-board-table td { padding: 0.4rem 0.9rem 0.4rem 0; border-bottom: 1px solid var(--ct-line); color: var(--ct-fg); vertical-align: top; overflow-wrap: anywhere; }
.ct-board-table tr:last-child td { border-bottom: 0; }
/* A table with more columns than fit puts some of them on a second line under each row (the board table's 'under'):
   the row above it loses its rule, the facts follow each other with their names, and a long text (a description) shows
   two lines until it is clicked. */
.ct-board-table tr.ct-board-over td { border-bottom: 0; padding-bottom: 0.1rem; }
.ct-board-table tr.ct-board-under td { padding-top: 0; padding-bottom: 0.55rem; font-weight: 400; color: var(--ct-fg-2); }
.ct-board-under-facts { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; font-size: var(--ct-text-xs); }
.ct-board-under-facts b, .ct-board-under-long b { margin-inline-end: 0.3rem; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-fg-3); }
.ct-board-under-long { margin-top: 0.15rem; font-size: var(--ct-text-xs); line-height: 1.45; cursor: pointer; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ct-board-under-long.is-open { display: block; overflow: visible; }
.ct-board-under-long:hover { color: var(--ct-fg); }
.ct-board-under-long:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 2px; border-radius: var(--ct-radius-sm); }
@media print { .ct-board-under-long { display: block; overflow: visible; } }
.ct-board-table th:last-child, .ct-board-table td:last-child { padding-inline-end: 0; }
.ct-board-table .ct-end { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-board-table td.ct-end, .ct-board-table .ct-mono { font-family: var(--ct-mono); }
.ct-board-table td:first-child { font-weight: 550; }
.ct-board-table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-board-table .ct-tone-good { color: var(--ct-st-active); }
.ct-board-table .ct-tone-warn { color: var(--ct-st-follow_up); }
.ct-board-empty { margin-top: 0.7rem; }
.ct-board .ct-more { margin-top: 0.5rem; }

/* ================================================================================ dashboards: cards, insights, tabs */
.ct-card { height: 100%; padding: 1rem 1.1rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-card-title { font-size: var(--ct-text-md); font-weight: 650; letter-spacing: -0.01em; color: var(--ct-fg); margin-bottom: 0.7rem; }
.ct-note { margin-top: 0.5rem; padding: 0.55rem 0.75rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); line-height: 1.45; color: var(--ct-fg-2); background: var(--ct-canvas); box-shadow: inset 3px 0 0 var(--ct-st-on_hold), inset 0 0 0 1px var(--ct-line); }
.ct-note strong { color: var(--ct-fg); font-weight: 650; }
.ct-note-good { box-shadow: inset 3px 0 0 var(--ct-st-active), inset 0 0 0 1px var(--ct-line); }
.ct-note-warn { box-shadow: inset 3px 0 0 var(--ct-st-follow_up), inset 0 0 0 1px var(--ct-line); }
.ct-note-down { box-shadow: inset 3px 0 0 var(--ct-bad), inset 0 0 0 1px var(--ct-line); }
/* dashboard tables and panels sit on cards, like the charts beside them */
.ct-board { padding: 1rem 1.1rem; border-top: 0; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); }
/* the tabs of a dashboard: one row that scrolls sideways rather than wrapping into a block */
.fi-page-sub-navigation-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
.fi-page-sub-navigation-tabs .fi-tabs-item { white-space: nowrap; flex: none; }

/* ================================================================================ a tighter menu: less scrolling */
.fi-sidebar-header { padding-block: 0.7rem 0.4rem; }
.fi-sidebar-nav { gap: 0.6rem; padding-block: 0.4rem 0.6rem; scrollbar-width: thin; scrollbar-color: var(--ct-side-active) transparent; }
.fi-sidebar-nav::-webkit-scrollbar { width: 6px; }
.fi-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.fi-sidebar-nav::-webkit-scrollbar-thumb { background: var(--ct-side-active); border-radius: 999px; }
.fi-sidebar-nav-groups { gap: 0.55rem; }
.fi-sidebar-group { gap: 0.1rem; }
.fi-sidebar-group-items { gap: 0; }
.fi-sidebar-group-btn { padding-block: 0.25rem; }
.fi-sidebar-item-btn { padding-block: 0.3rem; }
.ct-newcall { margin-bottom: 0.2rem; padding-block: 0.4rem; }
.fi-sidebar-footer { padding-block: 0.35rem; }
.ct-sidefoot { padding-top: 0.15rem; }

/* dashboards: gauges, briefing, alert chips, bar cells */
.ct-gauges { display: grid; grid-template-columns: repeat(var(--ct-gauge-count, 3), minmax(0, 1fr)); gap: 1rem; }
.ct-gauge { text-align: center; }
.ct-gauge-dial { position: relative; width: min(11rem, 100%); margin: 0.6rem auto 0; }
.ct-gauge-dial svg { display: block; width: 100%; height: auto; }
.ct-gauge-dial strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--ct-text-2xl); font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ct-fg); }
.ct-briefing { padding: 1rem 1.2rem; border-radius: var(--ct-radius); font-size: var(--ct-text-lg); line-height: 1.5; color: var(--ct-fg); background: var(--ct-sunken); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-alertchips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.ct-alertchip { display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: var(--ct-text-sm); font-weight: 550; color: var(--ct-fg); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
a.ct-alertchip:hover { background: var(--ct-hover); }
.ct-alertchip-warn { box-shadow: inset 0 0 0 1px var(--ct-st-follow_up); }
/* bad news: a heavier outline and a diamond in --ct-bad, the same mark and colour an at-risk customer wears (.ct-health-risk), so it does not rest on colour alone */
.ct-alertchip-down { gap: 0.4rem; box-shadow: inset 0 0 0 1.5px var(--ct-bad); }
.ct-alertchip-down::before { content: ''; flex: none; width: 0.45rem; height: 0.45rem; border-radius: 1px; background: var(--ct-bad); transform: rotate(45deg); }
.ct-alertchip-good { box-shadow: inset 0 0 0 1px var(--ct-st-active); }
.ct-board-table td.ct-barcell { position: relative; }
.ct-board-table td.ct-barcell::after { content: ''; position: absolute; left: 0; bottom: 0.15rem; height: 3px; width: var(--ct-bar, 0%); max-width: calc(100% - 0.9rem); border-radius: 2px; background: var(--ct-st-on_hold); }
@media (max-width: 900px) { .ct-gauges { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================================ home page, closer to the original hub */
.fi-page:has(.ct-hub) > .fi-page-header-main-ctn > .fi-header:not(:has(.fi-ac)) { display: none; }
.ct-hub-hero { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 1.1rem 1.3rem; border-radius: var(--ct-radius); color: var(--ct-side-fg);
    background: linear-gradient(120deg, var(--ct-side-bg), var(--ct-side-active)); box-shadow: inset 0 -3px 0 var(--ct-red); }
.ct-hub-logo { display: inline-flex; align-items: center; flex: none; padding: 0.45rem 0.8rem; border-radius: var(--ct-radius); background: #fff; }
.ct-hub-logo img { display: block; height: 2.6rem; width: auto; }
.ct-hub-hero-text { flex: 1; min-width: 14rem; }
.ct-hub-hero-text h1 { font-size: var(--ct-text-xl); font-weight: 700; letter-spacing: -0.03em; color: var(--ct-side-fg-strong); line-height: 1.2; }
.ct-hub-hero-text p { margin-top: 0.15rem; font-size: var(--ct-text-sm); color: var(--ct-side-fg); }
.ct-hub-hero-week { font-weight: 600; letter-spacing: 0.02em; }
.ct-hub-counters { display: flex; gap: 0.5rem; }
.ct-hub-counters > a { display: block; min-width: 5.6rem; padding: 0.4rem 0.7rem; text-align: center; border-radius: var(--ct-radius-sm); background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.ct-hub-counters > a:hover { background: var(--ct-side-hover); }
.ct-hub-counters strong { display: block; font-size: var(--ct-text-lg); font-weight: 700; color: var(--ct-side-fg-strong); font-variant-numeric: tabular-nums; }
.ct-hub-counters span { display: block; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-side-muted); }
.ct-hub-chips { align-items: center; }
.ct-hub-chip { display: inline-flex; align-items: center; gap: 0.45rem; }
.ct-hub-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 999px; flex: none; background: var(--ct-fg-3); }
.ct-hub-chips > .ct-hub-chip:first-child.is-on { background: var(--ct-red); color: #fff; }
.ct-hub-viewtoggle { display: inline-flex; margin-inline-start: auto; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line-strong); overflow: hidden; }
.ct-hub-viewtoggle button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 1.8rem; color: var(--ct-fg-3); }
.ct-hub-viewtoggle button.is-on { background: var(--ct-red); color: #fff; }
.ct-hub-heading { display: flex; align-items: center; gap: 0.6rem; font-size: var(--ct-text-sm); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ct-fg); }
.ct-hub-heading small { margin-inline-start: auto; font-size: var(--ct-text-2xs); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ct-fg-3); }
.ct-hub-heading-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: var(--ct-radius-sm); color: #fff; background: var(--ct-accent, var(--ct-fg-3)); }
.ct-hub-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding-inline: 0.4rem; border-radius: 999px; font-family: var(--ct-mono); font-size: var(--ct-text-2xs); font-weight: 600; letter-spacing: 0; color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-hub-main > .ct-panel { border-top: 0; padding-top: 0; }
.ct-hub-card-icon { color: var(--ct-accent, var(--ct-fg-2)); background: color-mix(in oklab, var(--ct-accent, var(--ct-fg-3)) 13%, transparent); }
.ct-hub-card:hover .ct-hub-card-icon { color: var(--ct-accent, var(--ct-fg)); }
.ct-hub-card:hover, .ct-hub-card:focus-within { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ct-accent, var(--ct-line-strong)) 55%, var(--ct-line-strong)); }
.ct-hub-fav { cursor: grab; }
.ct-hub-fav.is-dragging { opacity: 0.45; }
.ct-hub-list .ct-hub-cards { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
.ct-hub-list .ct-hub-card-link { align-items: center; padding-block: 0.45rem; }
.ct-hub-list .ct-hub-card-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.9rem; }
.ct-hub-notice { position: relative; box-shadow: inset 3px 0 0 var(--ct-red), inset 0 0 0 1px var(--ct-line); }
.ct-hub-notice-tag { float: right; margin-inline-start: 0.75rem; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: var(--ct-text-2xs); font-weight: 650; color: var(--ct-red); box-shadow: inset 0 0 0 1px var(--ct-red); }
.dark .ct-hub-notice-tag { color: var(--ct-red-soft); box-shadow: inset 0 0 0 1px var(--ct-red-soft); }
.ct-hub-notice-title { margin: 0; }
.ct-hub-notice-meta { margin: 0.15rem 0 0.6rem; }
.ct-hub-notice .ct-more { color: var(--ct-red); }
.dark .ct-hub-notice .ct-more { color: var(--ct-red-soft); }
.ct-hub-side > .ct-panel { border-top: 0; padding: 1rem 1.1rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-hub-office-title { justify-content: flex-start !important; }
.ct-hub-date { margin-top: 0.15rem; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-hub-zones { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; grid-template-columns: none; font-size: var(--ct-text-xs); color: var(--ct-fg-2); }
.ct-hub-zones b { font-weight: 700; color: var(--ct-fg); }
.ct-hub-zones i { font-style: normal; font-variant-numeric: tabular-nums; }
.ct-hub-now-main { display: flex; align-items: center; gap: 0.4rem; color: var(--ct-fg); font-size: var(--ct-text-md); }
.ct-hub-now-main strong { margin: 0; font-size: var(--ct-text-md); }
.ct-hub-now-sub { margin-top: 0.2rem; font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-hub-sun, .ct-hub-aqi, .ct-hub-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.6rem; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-hub-sun b { color: var(--ct-fg); font-weight: 600; margin-inline-end: 0.5rem; }
.ct-hub-sun span { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-hub-sun .ct-hub-ico, .ct-hub-pay .ct-hub-ico { color: var(--ct-st-follow_up); }
.ct-hub-pay .ct-hub-ico { color: var(--ct-st-active); }
.ct-aqi-good { background: var(--ct-st-active); } .ct-aqi-mid { background: var(--ct-st-follow_up); } .ct-aqi-bad { background: var(--ct-bad); }
.ct-hub-forecast { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--ct-line); }
.ct-hub-forecast dt { width: 3.2rem; }
.ct-hub-forecast-sum { display: flex; align-items: center; gap: 0.4rem; color: var(--ct-fg-2); }
.ct-hub-forecast-sum b { font-size: var(--ct-text-xs); font-weight: 650; color: var(--ct-st-on_hold); }
.ct-qt-b.is-on { background: var(--ct-red); color: #fff; }
.ct-qt-bg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.ct-qt-gh { grid-column: 1 / -1; }
.ct-qt-b { border-radius: var(--ct-radius-sm); padding-block: 0.35rem; text-align: center; font-weight: 650; color: var(--ct-fg); }
@media (max-width: 640px) { .ct-hub-counters { width: 100%; } .ct-hub-counters > a { flex: 1; min-width: 0; } }
.ct-board-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ct-board-head .ct-more { margin: 0; font-size: var(--ct-text-2xs); letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px var(--ct-line-strong); padding: 0.15rem 0.5rem; }

/* ================================================================================ sales dashboard */
/* ================================================================================ sales dashboard (to fold into call-tracker.css) */
.ct-sales-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ct-sales-csv { flex: none; font-family: var(--ct-mono); font-size: var(--ct-text-2xs); font-weight: 600; letter-spacing: var(--ct-label-track); padding: 0.25rem 0.55rem; border-radius: var(--ct-radius-sm); color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line-strong); transition: background-color var(--ct-fast) var(--ct-ease), color var(--ct-fast) var(--ct-ease); }
.ct-sales-csv:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-board-table td.ct-sales-heat { background: color-mix(in oklab, var(--ct-st-on_hold) calc(var(--ct-heat, 0) * 62%), transparent); }
.ct-board-table tr.ct-sales-total td { font-weight: 650; border-top: 1px solid var(--ct-line-strong); }
.ct-sales-empty { padding: 3rem 1rem; text-align: center; }
.ct-sales-empty h3 { font-size: var(--ct-text-lg); font-weight: 600; letter-spacing: -0.02em; color: var(--ct-fg); }
.ct-sales-empty p { margin-top: 0.4rem; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-sales-refreshed { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-sales-table td:first-child { white-space: nowrap; max-width: 24rem; overflow: hidden; text-overflow: ellipsis; }
.ct-sales-table td.ct-sales-heat { border-bottom-color: transparent; }
/* Outcomes & Quality, RMA, Quotes, Service Levels: the pieces the shared board widgets do not cover. */
.ct-flow-svg a path { transition: stroke-opacity 120ms; }
.ct-flow-svg a:hover path, .ct-flow-svg a:focus-visible path { stroke-opacity: 0.6; }
.ct-loss-row { border-radius: var(--ct-radius-sm); padding: 0.25rem 0.4rem; margin-inline: -0.4rem; }
.ct-loss-row:hover, .ct-loss-row-on { background: var(--ct-hover); }
.ct-loss-row:focus-visible { outline: 2px solid var(--ct-fg-3); outline-offset: 1px; }
.ct-loss-row-on .ct-loss-fill { background: var(--ct-fg); }
@media (max-width: 640px) {
    .ct-funnel-step { grid-template-columns: minmax(0, 1fr) minmax(7rem, 1fr) !important; }
}
/* Sales Link, Incomplete Data, Predict, Mine Text, Intelligence (call dashboard tabs 9, 14–17). */
.ct-board-table .ct-tone-down { color: var(--ct-bad); font-weight: 600; }

/* Mine Text lists: a row is a button (word or phrase on the left, counts on the right). */
.ct-textlist-row { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.4rem; text-align: start; font-size: var(--ct-text-sm); color: var(--ct-fg); border-bottom: 1px solid var(--ct-line); border-radius: var(--ct-radius-sm); transition: background-color var(--ct-fast) var(--ct-ease); }
.ct-textlist-row:hover { background: var(--ct-hover); }
.ct-textlist-row .ct-mono { font-size: var(--ct-text-xs); white-space: nowrap; }
.ct-textlist-up { color: var(--ct-st-follow_up); font-weight: 650; margin-inline-start: 0.25rem; }
.ct-textlist-link { font: inherit; color: inherit; text-align: inherit; text-decoration: underline; text-decoration-color: var(--ct-line-strong); text-underline-offset: 0.2em; }
.ct-textlist-link:hover { text-decoration-color: var(--ct-fg); }

/* Predict: numbered action cards. Blue = a quote to chase, plum (--ct-bad) = a customer at risk, amber = a model to inspect. */
.ct-action { display: flex; align-items: flex-start; gap: 0.75rem; }
a.ct-action:hover { background: var(--ct-hover); }
.ct-action-rank { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: var(--ct-radius-sm); font-family: var(--ct-mono); font-size: var(--ct-text-xs); font-weight: 650; color: var(--ct-surface); background: var(--ct-st-on_hold); }
.ct-action-risk .ct-action-rank { background: var(--ct-bad); }
.ct-action-model .ct-action-rank { background: var(--ct-st-follow_up); }
.ct-action-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ct-action-text .ct-muted { font-size: var(--ct-text-xs); }
.ct-board-table td.ct-mono { white-space: nowrap; }
/* ================================================================================ sales dashboard, second pass */
.ct-sales-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-height: 1.75rem; }
.ct-sales-chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--ct-text-sm); font-weight: 550; padding: 0.2rem 0.65rem; border-radius: 999px; color: var(--ct-fg); background: var(--ct-sunken); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-sales-chip span:first-child { color: var(--ct-fg-3); font-weight: 450; }
.ct-sales-chip:hover { box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-sales-chip span:last-child { color: var(--ct-fg-3); }
.ct-sales-chip:hover span:last-child { color: var(--ct-fg); }
.ct-sales-hint { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-sales-png { margin-inline-start: auto; align-self: flex-start; }
.ct-sales-table th[data-sort] { cursor: pointer; user-select: none; }
.ct-sales-table th[data-sort]:hover { color: var(--ct-fg); }
.ct-sales-table th.is-sorted::after { content: ' ↓'; }
.ct-sales-table th.is-sorted.is-up::after { content: ' ↑'; }
.ct-sales-table tr[data-url] { cursor: pointer; }
.ct-sales-table tr[data-url]:hover td { background: var(--ct-hover); }

/* printing a sales tab: the tab itself, cleanly, with nothing of the application around it */
@media print {
    .fi-sidebar, .fi-topbar, .fi-page-sub-navigation-tabs, .fi-page-header-actions, .fi-header .fi-ac, .ct-sales-filters, .ct-sales-chips, .ct-sales-csv, .ct-more, .fi-breadcrumbs, .fi-page-sub-navigation-select, nav.fi-tabs { display: none !important; }
    .fi-main, .fi-main-ctn, .fi-layout, .fi-body { margin: 0 !important; padding: 0 !important; max-width: none !important; background: #fff !important; }
    .fi-wi-widget, .ct-card, .fi-section { break-inside: avoid; box-shadow: none !important; }
    .ct-board-table tr[x-show] { display: table-row !important; }
    html { font-size: 12px; }
}
/* Part e: Lookup, Excel Generator, and the call page's flags and similar calls. Tokens only. */

/* Lookup: the two pickers and the line that says who is shown */
.ct-lookup-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; }
.ct-lookup-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 9rem; }
.ct-lookup-field-wide { flex: 1 1 16rem; max-width: 28rem; }
.ct-lookup-title { margin-top: 0.9rem; font-size: var(--ct-text-lg); font-weight: 650; letter-spacing: -0.01em; color: var(--ct-fg); overflow-wrap: anywhere; }

/* Excel Generator */
.ct-xg-lead { margin-top: -0.4rem; }
.ct-xg-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-top: 0.9rem; }
.ct-xg-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 11rem; }
.ct-xg-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ct-xg-count { margin-top: 0.8rem; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-xg-count strong { color: var(--ct-fg); font-family: var(--ct-mono); font-weight: 600; }
.ct-xg-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.4rem 1rem; margin-top: 0.8rem; padding: 0.8rem 0; border-top: 1px solid var(--ct-line); border-bottom: 1px solid var(--ct-line); }
.ct-xg-column { display: flex; align-items: center; gap: 0.45rem; font-size: var(--ct-text-sm); color: var(--ct-fg); cursor: pointer; }
.ct-xg-column input { accent-color: var(--ct-fg); }
.ct-xg-preview-title { margin-top: 1rem; }
.ct-xg-preview { max-height: 22rem; overflow: auto; }
.ct-xg-preview th, .ct-xg-preview td { white-space: nowrap; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; }

/* Call page: flag badges and the reminder link */
.ct-callflags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; }
.ct-flag { text-transform: uppercase; letter-spacing: var(--ct-label-track); }
.ct-flag-good { color: var(--ct-fg); box-shadow: inset 0 0 0 1px var(--ct-st-active); background: transparent; }
.ct-callflags-remind { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin-inline-start: auto; }
.ct-callflags-remind .ct-more { margin: 0; box-shadow: inset 0 0 0 1px var(--ct-line-strong); padding: 0.2rem 0.6rem; }
.ct-callflags-note { font-size: var(--ct-text-2xs); }

/* Call page: similar calls */
.ct-similar-list { display: flex; flex-direction: column; }
.ct-similar-list li + li { border-top: 1px solid var(--ct-line); }
.ct-similar-row { display: block; padding: 0.55rem 0.5rem; margin-inline: -0.5rem; border-radius: var(--ct-radius-sm); }
.ct-similar-row:hover { background: var(--ct-hover); }
.ct-similar-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 0.75rem; font-size: var(--ct-text-sm); }
.ct-similar-head strong { font-weight: 600; color: var(--ct-fg); }
.ct-similar-comment { display: block; margin-top: 0.2rem; font-size: var(--ct-text-xs); line-height: 1.45; color: var(--ct-fg-2); overflow-wrap: anywhere; }
/* ================================================================================ dashboard: Reliability and Customer 360 (builder c) */
.ct-c-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; }
.ct-c-lookup { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ct-c-lookup .ct-more { margin: 0; }
.ct-c-input { min-width: 12rem; max-width: 100%; padding: 0.35rem 0.6rem; font-size: var(--ct-text-sm); color: var(--ct-fg); background: var(--ct-surface); border: 0; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-c-input.ct-c-wide { width: 100%; }
.ct-c-link { font-family: inherit; font-weight: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--ct-line-strong); text-underline-offset: 3px; cursor: pointer; }
.ct-c-link:hover { text-decoration-color: var(--ct-fg); }
.ct-board-table .ct-tone-down { color: var(--ct-bad); font-weight: 650; }
.ct-c-chronic { color: var(--ct-fg); background: transparent; box-shadow: inset 0 0 0 1px var(--ct-bad); text-transform: uppercase; letter-spacing: var(--ct-label-track); }
.ct-c-timeline { height: auto; margin: 0.7rem 0; }
.ct-c-timeline .ct-card-title { margin-bottom: 0; }
.ct-c-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; margin: 0.6rem 0; font-size: var(--ct-text-sm); }
.ct-c-facts dt { color: var(--ct-fg-3); }
.ct-c-facts dd { color: var(--ct-fg); }
.ct-c-tl { margin-top: 0.6rem; max-height: 26rem; overflow-y: auto; }
.ct-c-tlrow { display: flex; gap: 0.9rem; padding: 0.45rem 0.3rem; border-top: 1px solid var(--ct-line); font-size: var(--ct-text-sm); border-radius: var(--ct-radius-sm); }
.ct-c-tlrow:hover { background: var(--ct-hover); }
.ct-c-tldate { flex: none; color: var(--ct-fg-2); }
.ct-c-tlbody { flex: 1; min-width: 0; }
.ct-c-tlsub { display: block; font-size: var(--ct-text-xs); }
.ct-c-guide { margin-top: 0.9rem; max-height: 34rem; overflow-y: auto; font-size: var(--ct-text-sm); }
.ct-c-guide .ct-panel-title { margin-top: 1rem; }
.ct-c-gsub { font-size: var(--ct-text-xs); margin: 0.2rem 0 0.6rem; }
.ct-c-gchips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ct-c-gchips span { padding: 0.4rem 0.8rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-xs); color: var(--ct-fg-2); background: var(--ct-sunken); }
.ct-c-gchips b { display: block; font-size: var(--ct-text-md); color: var(--ct-fg); }
.ct-c-gsec { margin-top: 0.6rem; padding: 0.7rem 0.9rem; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-c-gsec h3 { font-weight: 650; color: var(--ct-fg); }
.ct-c-gn { font-weight: 400; font-size: var(--ct-text-xs); }
.ct-c-gex { margin-top: 0.5rem; padding: 0.4rem 0.7rem; border-radius: var(--ct-radius-sm); background: var(--ct-canvas); box-shadow: inset 3px 0 0 var(--ct-line-strong); }
.ct-c-gline { display: block; font-size: var(--ct-text-xs); }
@media (max-width: 40rem) {
    .ct-c-input { min-width: 0; width: 100%; }
    .ct-c-tlrow { flex-direction: column; gap: 0.1rem; }
}
.ct-board-table td.ct-mono { white-space: nowrap; }
/* Call dashboard: Home, Overview, Calls, By Employee, About (builder a). Tokens only. */

/* Home: heading row with the ask box */
.ct-ask { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ct-ask-title { font-size: var(--ct-text-xl); font-weight: 700; letter-spacing: -0.02em; color: var(--ct-fg); }
.ct-ask-form { display: flex; align-items: center; gap: 0.5rem; flex: 0 1 26rem; min-width: 0; }
.ct-ask-form .ct-more { margin: 0; }
.ct-ask-box { flex: 1; min-width: 0; padding: 0.5rem 0.8rem; border-radius: var(--ct-radius); font-size: var(--ct-text-md); color: var(--ct-fg); background: var(--ct-surface); border: 0; box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-ask-box:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ct-fg-2); }

/* Home: the guided tour's player */
.ct-tour { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--ct-canvas); }
.ct-tour-frame { flex: 1; width: 100%; border: 0; }
.ct-tour-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.1rem; font-size: var(--ct-text-md); color: var(--ct-fg); background: var(--ct-surface); border-top: 1px solid var(--ct-line-strong); }
.ct-tour-bar .ct-more { margin: 0; white-space: nowrap; }

/* Home: the ticker of newest calls */
.ct-ticker { overflow: hidden; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-ticker-track { display: inline-flex; white-space: nowrap; animation: ct-ticker 160s linear infinite; }
.ct-ticker:hover .ct-ticker-track, .ct-ticker:focus-within .ct-ticker-track { animation-play-state: paused; }
.ct-ticker-item { padding: 0.6rem 1.4rem; font-size: var(--ct-text-sm); color: var(--ct-fg-3); }
.ct-ticker-item strong { color: var(--ct-fg); font-weight: 650; }
.ct-ticker-item:hover { background: var(--ct-hover); }
@keyframes ct-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ct-ticker { overflow-x: auto; } .ct-ticker-track { animation: none; } }

/* Home: digest and board report (inside a modal) */
.ct-digest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.ct-digest-actions .ct-more { margin: 0; box-shadow: inset 0 0 0 1px var(--ct-line-strong); padding: 0.3rem 0.7rem; }
.ct-digest { padding: 1rem; border-radius: var(--ct-radius-sm); font-family: var(--ct-mono); font-size: var(--ct-text-sm); line-height: 1.55; white-space: pre-wrap; color: var(--ct-fg); background: var(--ct-sunken); }
.ct-report h2 { margin-top: 1.2rem; }
.ct-report p { font-size: var(--ct-text-md); line-height: 1.5; color: var(--ct-fg); }
.ct-report-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.8rem; }
.ct-report-boxes div { padding: 0.7rem 0.9rem; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-report-boxes strong { display: block; margin-top: 0.2rem; font-size: var(--ct-text-xl); font-weight: 700; color: var(--ct-fg); }

/* Overview: rows of three sentences */
.ct-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.ct-strip .ct-note { margin-top: 0; background: var(--ct-surface); }

/* Heatmaps (seasonality; calls per employee per year) */
.ct-heat-key { text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--ct-text-2xs); font-weight: 450; color: var(--ct-fg-3); }
.ct-heat-key i { width: 3.5rem; height: 0.5rem; border-radius: 999px; background: linear-gradient(to right, var(--ct-sunken), var(--ct-st-on_hold)); }
.ct-heat-table { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: var(--ct-text-2xs); font-variant-numeric: tabular-nums; }
.ct-heat-table th { font-weight: 550; color: var(--ct-fg-3); padding: 0.1rem 0.3rem; text-align: center; white-space: nowrap; }
.ct-heat-table th[scope="row"] { text-align: right; color: var(--ct-fg-2); }
.ct-heat-table td { padding: 0; text-align: center; border-radius: 2px; color: var(--ct-fg-2); background: color-mix(in srgb, var(--ct-st-on_hold) var(--ct-heat, 0%), var(--ct-sunken)); }
.ct-heat-table td a, .ct-heat-table td span { display: block; padding: 0.2rem 0.15rem; min-width: 1.6rem; }
.ct-heat-table td a:hover { box-shadow: inset 0 0 0 2px var(--ct-fg); border-radius: 2px; }
.ct-heat-table td.ct-heat-strong { color: var(--ct-surface); }
.dark .ct-heat-table td.ct-heat-strong { color: var(--ct-fg); }

/* By Employee: the handler scorecard */
.ct-scorecard-scroll { max-height: 26rem; overflow-y: auto; }
.ct-scorecard thead th { position: sticky; top: 0; background: var(--ct-surface); }
.ct-scorecard th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.ct-scorecard th button:hover { color: var(--ct-fg); }
.ct-scorecard-row { cursor: pointer; }
.ct-scorecard-row:hover td { background: var(--ct-hover); }
.ct-board-table .ct-tone-down { color: var(--ct-bad); }
.ct-board-table td.ct-tone-warn { font-weight: 650; }
.ct-spark { display: block; color: var(--ct-st-on_hold); }

/* About */
.ct-about-block { margin-top: 1rem; height: auto; }
.ct-about-list { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 0.45rem 1rem; font-size: var(--ct-text-sm); line-height: 1.5; }
.ct-about-list dt { font-weight: 650; color: var(--ct-fg); }
.ct-about-list dd { color: var(--ct-fg-2); }

@media (max-width: 900px) {
    .ct-strip, .ct-report-boxes { grid-template-columns: minmax(0, 1fr); }
    .ct-about-list { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
    .ct-about-list dd { margin-bottom: 0.5rem; }
}

/* dashboards on a phone: the quick-filter buttons wrap instead of running past the edge */
.fi-header .fi-ac { flex-wrap: wrap; row-gap: 0.4rem; }
@media (max-width: 640px) {
    .fi-header .fi-btn-group { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .fi-header .fi-btn-group .fi-btn { flex: none; }
}

/* possible duplicates */
.ct-dupes { height: auto; display: grid; gap: 0.7rem; }
.ct-dupes-go { justify-self: start; font-size: var(--ct-text-sm); font-weight: 600; padding: 0.4rem 0.9rem; border-radius: var(--ct-radius-sm); background: var(--ct-fg); color: var(--ct-canvas); }
.ct-dupes-go:hover { opacity: 0.88; }

/* serial numbers */
.ct-units-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 1rem; align-items: start; }
.ct-units-search { height: 3rem; gap: 0.5rem; padding-inline: 0.5rem 0.4rem; }
.ct-units-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-family: var(--ct-mono); font-size: var(--ct-text-md); color: var(--ct-fg); outline: none; box-shadow: none; }
.ct-units-search .ct-qt-go { padding: 0.45rem 1rem; border-radius: var(--ct-radius-sm); background: var(--ct-fg); color: var(--ct-canvas); font-weight: 600; font-size: var(--ct-text-sm); }
.ct-units-check { height: auto; }
.ct-units-date { display: grid; gap: 0.25rem; font-size: var(--ct-text-xs); color: var(--ct-fg-2); }
.ct-units-date input { height: 2.2rem; padding: 0 0.6rem; border: 0; border-radius: var(--ct-radius-sm); background: var(--ct-surface); color: var(--ct-fg); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-units-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.ct-units-facts dd { font-family: inherit; text-align: right; }
@media (max-width: 900px) { .ct-units-top, .ct-units-facts { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================================ open calls, as tabs */
.ct-opencalls { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem 0; margin-bottom: -0.5rem; min-width: 0; }
.ct-opencalls-list { flex: none; font-size: var(--ct-text-xs); font-weight: 600; padding: 0.3rem 0.7rem; border-radius: var(--ct-radius-sm); color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-opencalls-list:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-opencalls-tabs { display: flex; gap: 0.3rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ct-opencalls-tab { display: inline-flex; align-items: center; flex: none; max-width: 15rem; border-radius: var(--ct-radius-sm); background: var(--ct-sunken); box-shadow: inset 0 0 0 1px var(--ct-line); font-size: var(--ct-text-xs); }
.ct-opencalls-tab a { display: inline-flex; align-items: baseline; gap: 0.4rem; min-width: 0; padding: 0.3rem 0.2rem 0.3rem 0.6rem; color: var(--ct-fg-2); }
.ct-opencalls-tab a b { font-family: var(--ct-mono); font-weight: 600; color: var(--ct-fg); }
.ct-opencalls-tab a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-opencalls-tab button { padding: 0.2rem 0.5rem 0.2rem 0.3rem; color: var(--ct-fg-3); font-size: var(--ct-text-md); line-height: 1; }
.ct-opencalls-tab button:hover { color: var(--ct-fg); }
.ct-opencalls-tab:hover { box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-opencalls-tab.is-on { background: var(--ct-surface); box-shadow: inset 0 -2px 0 var(--ct-red), inset 0 0 0 1px var(--ct-line-strong); }
.ct-opencalls-tab.is-on a { color: var(--ct-fg); }
.ct-opencalls-clear { flex: none; margin: 0; }
@media print { .ct-opencalls { display: none; } }

/* ================================================================================ charts that stay readable */
/* Every dashboard chart gets a box of a set height and fills it, whatever the column width. */
.fi-wi-chart .fi-wi-chart-canvas-ctn { position: relative; height: 21rem; }
.fi-wi-chart .fi-wi-chart-canvas-ctn canvas { max-height: none !important; }
@media (max-width: 640px) { .fi-wi-chart .fi-wi-chart-canvas-ctn { height: 17rem; } }
.ct-opencalls-tab a i { font-style: normal; font-size: var(--ct-text-2xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ct-st-follow_up); }

/* ================================================================================ the menu: pins, recent, one-line footer */
.ct-shortcuts-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; width: 100%; min-width: 0; margin-bottom: 0.3rem; }
.ct-shortcuts-recent { margin-top: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--ct-side-line); }
.ct-sidegroup { min-width: 0; }
.ct-sidegroup-head span { flex: none; }
.ct-sidegroup-head button { white-space: nowrap; }
.ct-sidegroup-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0 0.6rem 0.2rem; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-side-muted); }
.ct-sidegroup-head button { font-size: var(--ct-text-2xs); letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ct-side-muted); padding: 0.1rem 0.35rem; border-radius: var(--ct-radius-sm); }
.ct-sidegroup-head button:hover { background: var(--ct-side-hover); color: var(--ct-side-fg-strong); }
.ct-sidelink { display: flex; align-items: center; border-radius: var(--ct-radius-sm); }
.ct-sidelink:hover { background: var(--ct-side-hover); }
.ct-sidelink a { flex: 1; min-width: 0; padding: 0.25rem 0.6rem; font-size: var(--ct-text-sm); color: var(--ct-side-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-sidelink a:hover { color: var(--ct-side-fg-strong); }
.ct-sidelink button { flex: none; padding: 0 0.5rem; color: var(--ct-side-muted); opacity: 0; font-size: var(--ct-text-md); line-height: 1; }
.ct-sidelink:hover button, .ct-sidelink button:focus-visible { opacity: 1; }
.ct-sidelink button:hover { color: var(--ct-side-fg-strong); }
.ct-sidegroup-empty { padding: 0 0.6rem; font-size: var(--ct-text-xs); color: var(--ct-side-muted); line-height: 1.4; }
.fi-sidebar:not(.fi-sidebar-open) .ct-shortcuts-nav { display: none; }

/* bell and name on one line */
.fi-sidebar-footer { display: flex; flex-direction: row-reverse; align-items: center; gap: 0.25rem; }
.fi-sidebar-footer > :last-child { flex: 1; min-width: 0; }
.fi-sidebar-footer .fi-sidebar-database-notifications-btn { position: relative; padding: 0.45rem; border-radius: var(--ct-radius-sm); color: var(--ct-side-fg); }
.fi-sidebar-footer .fi-sidebar-database-notifications-btn:hover { background: var(--ct-side-hover); color: var(--ct-side-fg-strong); }
.fi-sidebar-footer .fi-sidebar-database-notifications-btn-label { display: none; }
.fi-sidebar-footer .fi-sidebar-database-notifications-btn .fi-badge { position: absolute; top: -0.1rem; right: -0.2rem; min-width: 1rem; height: 1rem; padding: 0 0.25rem; font-size: 0.5625rem; line-height: 1rem; border-radius: 999px; color: #fff !important; background: var(--ct-red) !important; box-shadow: none; }
.fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-footer { flex-direction: column; }

/* the shortcuts list */
.ct-keys-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgb(0 0 0 / 0.45); }
.ct-keys { width: min(32rem, 100%); height: auto; }
.ct-keys dl { display: grid; gap: 0.6rem; margin-bottom: 0.8rem; }
.ct-keys dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; font-size: var(--ct-text-sm); }
.ct-keys dd { color: var(--ct-fg-2); }
.ct-keys kbd { font-family: var(--ct-mono); font-size: var(--ct-text-2xs); padding: 0.15rem 0.4rem; border-radius: 0.25rem; color: var(--ct-fg); background: var(--ct-sunken); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }

/* ================================================================================ call list: whose calls, then which status */
.ct-scope { display: grid; gap: 0.6rem; }
.ct-scope-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ct-scope-tab { min-width: 7.5rem; padding: 0.5rem 1.1rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-md); font-weight: 600; color: var(--ct-fg-2); background: var(--ct-sunken); box-shadow: inset 0 0 0 1px var(--ct-line); transition: background-color var(--ct-fast) var(--ct-ease), color var(--ct-fast) var(--ct-ease); }
.ct-scope-tab:hover { color: var(--ct-fg); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-scope-tab.is-on { background: var(--ct-fg); color: var(--ct-canvas); box-shadow: none; }
.ct-col-text { min-width: 16rem; max-width: 26rem; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
@media (max-width: 640px) { .ct-scope-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .ct-scope-tab { min-width: 0; flex: none; padding-inline: 0.8rem; } }

/* the menu on a short or zoomed-in screen: tighter still, so the groups fit without scrolling */
.ct-sidegroup-head:has(button:only-child) { justify-content: flex-start; padding-bottom: 0; }
@media (max-height: 820px) {
    .fi-sidebar-header { padding-block: 0.45rem 0.25rem; }
    .fi-sidebar-nav { gap: 0.35rem; }
    .fi-sidebar-nav-groups { gap: 0.3rem; }
    .fi-sidebar-item-btn { padding-block: 0.2rem; }
    .fi-sidebar-group-btn { padding-block: 0.15rem; }
    .ct-newcall { padding-block: 0.3rem; margin-bottom: 0; }
    .ct-sidelink a { padding-block: 0.15rem; }
    .ct-shortcuts-nav { gap: 0.3rem; margin-bottom: 0.1rem; }
}

/* ================================================================================ calendars */
.ct-cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ct-cal-nav { display: flex; align-items: center; gap: 0.75rem; }
.ct-cal-nav strong { font-size: var(--ct-text-xl); font-weight: 650; letter-spacing: -0.03em; }
.ct-cal-nav .ct-more { margin: 0; }
.ct-callhead-nav button { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-lg); line-height: 1; color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-callhead-nav button:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: var(--ct-radius); overflow: hidden; background: var(--ct-line); gap: 1px; box-shadow: 0 0 0 1px var(--ct-line); }
.ct-cal-head { padding: 0.4rem 0.6rem; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); background: var(--ct-sunken); }
.ct-cal-day { display: flex; flex-direction: column; gap: 0.2rem; min-height: 6.5rem; padding: 0.35rem; background: var(--ct-surface); min-width: 0; }
.ct-cal-day.is-out { background: var(--ct-canvas); }
.ct-cal-day.is-out .ct-cal-num { color: var(--ct-fg-3); }
.ct-cal-num { align-self: flex-end; min-width: 1.6rem; height: 1.6rem; padding-inline: 0.3rem; border-radius: 999px; font-family: var(--ct-mono); font-size: var(--ct-text-xs); color: var(--ct-fg-2); display: inline-flex; align-items: center; justify-content: center; }
button.ct-cal-num:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-cal-day.is-today .ct-cal-num { background: var(--ct-red); color: #fff; font-weight: 650; }
.ct-cal-event { display: block; width: 100%; text-align: left; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: var(--ct-text-xs); font-weight: 550; color: var(--ct-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in oklab, var(--ct-st-on_hold) 16%, transparent); box-shadow: inset 2px 0 0 var(--ct-st-on_hold); }
.ct-cal-production { background: color-mix(in oklab, var(--ct-st-follow_up) 18%, transparent); box-shadow: inset 2px 0 0 var(--ct-st-follow_up); }
.ct-cal-event:hover { filter: brightness(0.95); }
.ct-cal-next { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.1rem 0.75rem; width: 100%; text-align: left; padding: 0.45rem 0.5rem; margin-inline: -0.5rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); }
.ct-cal-next:hover { background: var(--ct-hover); }
.ct-cal-next .ct-muted { grid-column: 2; font-size: var(--ct-text-xs); }
@media (max-width: 640px) { .ct-cal-day { min-height: 4.2rem; padding: 0.2rem; } .ct-cal-event { font-size: 0.625rem; padding-inline: 0.2rem; } .ct-cal-head { padding-inline: 0.2rem; text-align: center; } }

/* Recent: one slim row that stays at the foot of the menu; its list opens above it on a click, so it never covers the menu by itself */
.ct-shortcuts-recent { position: sticky; bottom: -0.6rem; z-index: 2; margin: auto -0.7rem -0.6rem; width: auto; padding: 0; background: var(--ct-side-bg); border-top: 1px solid var(--ct-side-line); }
.ct-shortcuts-recent:not(:has(.ct-recent)) { display: none; }
.ct-recent { position: relative; }
.ct-recent-btn { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.45rem 1.3rem; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-side-muted); }
.ct-recent-btn:hover { background: var(--ct-side-hover); color: var(--ct-side-fg-strong); }
.ct-recent-last { flex: 1; min-width: 0; text-align: left; text-transform: none; letter-spacing: 0; font-weight: 450; font-size: var(--ct-text-xs); color: var(--ct-side-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-recent-btn svg { width: 0.9rem; height: 0.9rem; flex: none; transition: transform var(--ct-fast) var(--ct-ease); }
.ct-recent-btn svg.is-open { transform: rotate(180deg); }
.ct-recent-list { position: absolute; left: 0.5rem; right: 0.5rem; bottom: calc(100% + 0.3rem); padding: 0.3rem; border-radius: var(--ct-radius); background: var(--ct-side-field); box-shadow: 0 0 0 1px var(--ct-side-line), 0 12px 30px -8px rgb(0 0 0 / 0.6); }

/* ================================================================================ text size
   Everything is sized in rem, so one number scales the whole application. Standard is a step under the
   browser's own size (the screens read large at 100%); each person can pick smaller or larger under their name. */
html { font-size: 93.75%; }
html[data-ct-size="smaller"] { font-size: 87.5%; }
html[data-ct-size="larger"] { font-size: 106.25%; }

/* ================================================================================ call form: customer card, comments log, files */
.ct-custcard { border-radius: var(--ct-radius-sm); background: var(--ct-sunken); padding: 0.7rem 0.8rem; font-size: var(--ct-text-sm); display: grid; gap: 0.45rem; }
.ct-custcard-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.ct-custcard-name strong { font-weight: 600; color: var(--ct-fg); }
.ct-custcard-name span { color: var(--ct-fg-3); font-size: var(--ct-text-xs); }
.ct-custcard dl { display: grid; gap: 0.2rem; margin: 0; }
.ct-custcard dl > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.6rem; }
.ct-custcard dt { color: var(--ct-fg-3); }
.ct-custcard dd { margin: 0; color: var(--ct-fg); overflow-wrap: anywhere; }
.ct-custcard dd a:hover { text-decoration: underline; }
.ct-custcard details dl { margin-top: 0.35rem; }
.ct-custcard summary { cursor: pointer; display: inline-block; margin: 0; list-style: none; }
.ct-custcard summary::-webkit-details-marker { display: none; }
.ct-formlog { display: grid; gap: 0.6rem; max-height: 19rem; overflow-y: auto; scrollbar-width: thin; padding-right: 0.25rem; }
.ct-formlog-entry { padding-left: 0.7rem; box-shadow: inset 2px 0 0 var(--ct-line); }
.ct-formlog-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-formlog-head strong { font-size: var(--ct-text-sm); font-weight: 600; color: var(--ct-fg); }
.ct-formlog-body { font-size: var(--ct-text-sm); color: var(--ct-fg-2); white-space: pre-wrap; overflow-wrap: anywhere; }
a.ct-file-link:hover { text-decoration: underline; color: var(--ct-fg); }

/* ================================================================================ lighter forms: shorter boxes, less air between them */
.fi-main .fi-sc-form { gap: 1rem; }
.fi-main .fi-fo-field { row-gap: 0.3rem; }
.fi-main .fi-fo-field-label-content { font-size: var(--ct-text-sm); font-weight: 500; color: var(--ct-fg-2); }
.fi-main .fi-input, .fi-main .fi-select-input { padding-block: 0.3rem; font-size: var(--ct-text-md); line-height: 1.5rem; }
/* the searchable dropdowns are built differently from the plain ones: bring them to the same height */
.fi-main .fi-select-input.fi-async-component-content { padding-block: 0; }
.fi-main .fi-select-input.fi-async-component-content > div { min-height: 2.1rem; display: flex; align-items: center; }
.fi-main .fi-select-input.fi-async-component-content > div > * { flex: 1; min-width: 0; }
.fi-main .fi-fo-textarea textarea { font-size: var(--ct-text-md); line-height: 1.55; }
.fi-main form .fi-section .fi-grid, .fi-main form .fi-sc.fi-grid { gap: 0.8rem 1rem; }
.fi-main form .fi-section-header { padding-block: 0.6rem 0.2rem; }
.fi-main .fi-fo-field-wrp-helper-text, .fi-main .fi-sc-text.fi-fo-field-helper-text { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.fi-main .fi-fo-repeater-item-content { padding: 0.6rem 0.8rem; }
.fi-main .fi-fo-repeater-item-header { padding: 0.15rem 0.6rem; }

/* ================================================================================ call list: status pills, the customer line, overdue rows */
.fi-ta-cell .ct-status, .ct-preview .ct-status { padding: 0.1rem 0.6rem 0.1rem 0.5rem; border-radius: 999px; font-size: var(--ct-text-xs); font-weight: 600;
    background: color-mix(in oklab, var(--ct-dot, var(--ct-st-closed)) 13%, transparent); color: color-mix(in oklab, var(--ct-dot, var(--ct-st-closed)) 62%, var(--ct-fg)); }
.fi-ta-cell .ct-status-closed, .fi-ta-cell .ct-status-undetermined, .fi-ta-cell .ct-status-not_related { background: var(--ct-sunken); color: var(--ct-fg-2); }
.ct-col-customer .fi-ta-text-item { font-size: var(--ct-text-md); color: var(--ct-fg); }
.ct-col-customer .fi-ta-text-description { max-width: 34rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-ta-row.ct-row-overdue { box-shadow: inset 3px 0 0 var(--ct-st-follow_up); }
.fi-ta-row.ct-row-overdue .fi-ta-cell-due-on .fi-ta-text-item { color: var(--ct-st-follow_up); font-weight: 600; }

/* ================================================================================ loading: a soft placeholder, and a dim while figures refresh */
@keyframes ct-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.fi-loading-section { min-height: 9rem; border-radius: var(--ct-radius); box-shadow: inset 0 0 0 1px var(--ct-line) !important;
    background: linear-gradient(90deg, var(--ct-sunken) 30%, var(--ct-hover) 45%, var(--ct-sunken) 60%) 0 0 / 300% 100% !important; animation: ct-shimmer 1.6s linear infinite; }
.fi-loading-section .fi-loading-indicator { opacity: 0.35; }
.fi-wi-widget { transition: opacity var(--ct-fast) var(--ct-ease); }
.fi-wi-widget.ct-busy, .ct-busy > .fi-wi-widget { opacity: 0.55; }
.fi-btn, .fi-icon-btn, .fi-dropdown-list-item, .fi-tabs-item, .ct-scope-tab, .ct-cal-event { transition: background-color var(--ct-fast) var(--ct-ease), color var(--ct-fast) var(--ct-ease), box-shadow var(--ct-fast) var(--ct-ease), transform var(--ct-fast) var(--ct-ease); }
.fi-btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .fi-loading-section { animation: none; } .fi-btn:active { transform: none; } }

/* ================================================================================ sign-in: the company's logo above the form */
.ct-brand-official { display: block; height: 2.9rem; width: auto; padding: 0.3rem 0.5rem; margin-left: -0.5rem; border-radius: var(--ct-radius-sm); background: #fff; }

/* ================================================================================ call list: as many columns in sight as the window allows
   The old list showed thirteen columns at once. Narrow padding, a capped customer column and short cells bring
   most of them into view on a laptop; the rest is one sideways scroll away (or fold the menu with the arrow). */
@media (min-width: 641px) {
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell > *, .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell { padding-inline: 0.45rem !important; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell:first-child > *, .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell:first-child { padding-inline-start: 0.9rem !important; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-text-item { font-size: var(--ct-text-xs); }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .fi-ta-text { padding-inline: 0; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer { width: 15rem; max-width: 15rem; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-item { font-size: var(--ct-text-sm); display: block; max-width: 14rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-description { max-width: 14rem; }
    .fi-resource-calls.fi-resource-list-records-page .ct-person { gap: 0.3rem; }
    .fi-resource-calls.fi-resource-list-records-page .ct-person .ct-avatar { display: none; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-content-ctn { scrollbar-width: thin; }
    /* names and models wrap onto two lines, as they did in the old list, rather than pushing columns off the screen */
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-model-summary .fi-ta-text-item, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-opened-by\.name .fi-ta-text-item, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-assigned-to\.name .fi-ta-text-item,
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-contact\.name .fi-ta-text-item, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-company\.parent\.name .fi-ta-text-item, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-updated-at .fi-ta-text-item,
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-assigned-to\.name .ct-person { white-space: normal; line-height: 1.3; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-model-summary .fi-ta-text-item { display: block; width: 7.5rem; overflow-wrap: anywhere; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-opened-by\.name .fi-ta-text-item, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-assigned-to\.name .ct-person, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-contact\.name .fi-ta-text-item { display: block; width: 5.4rem; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-company\.parent\.name .fi-ta-text-item { display: block; width: 6.2rem; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-updated-at .fi-ta-text-item { display: block; width: 4.4rem; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell { white-space: normal; line-height: 1.25; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer { width: 13rem; max-width: 13rem; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-item, .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-description { max-width: 12.2rem; }
}

/* ================================================================================ depth and finish
   The owner asked for a more finished look (session 7): a soft canvas with white panels lifted off it by a
   hairline and a quiet shadow, rounder corners, a segmented control for "whose calls", a marked current
   place in the menu, and calmer buttons and fields. Everything still runs on the tokens above. */
:root {
    --ct-canvas: #f5f5f7;
    --ct-radius: 0.75rem;
    --ct-radius-sm: 0.5rem;
    --ct-shadow: 0 1px 2px rgb(17 17 19 / 0.04), 0 6px 20px -10px rgb(17 17 19 / 0.12);
    --ct-shadow-lift: 0 2px 4px rgb(17 17 19 / 0.05), 0 14px 34px -14px rgb(17 17 19 / 0.22);
    --ct-red-top: #e3353c;
    --ct-ring: color-mix(in oklab, var(--ct-red) 16%, transparent);
    --ct-side-top: #141518;
    --ct-side-bottom: #0c0d0f;
}
.dark {
    --ct-canvas: #0a0a0c;
    --ct-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03), 0 10px 26px -14px rgb(0 0 0 / 0.7);
    --ct-shadow-lift: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 18px 40px -16px rgb(0 0 0 / 0.85);
}

/* page: room to breathe, a title with presence */
.fi-main { padding-inline: clamp(1rem, 2.4vw, 2.25rem); }
.fi-page-header-main-ctn, .fi-page-content { row-gap: 1.25rem; }
.fi-header { padding-block: 0.35rem 0.25rem; }
.fi-header-heading { font-size: 1.65rem; letter-spacing: -0.035em; }

/* panels: tables, sections, tiles and cards all sit on the same white surface */
.fi-section:not(.fi-section-not-contained) { background: var(--ct-surface); border-top: 0; border-radius: var(--ct-radius); box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow); }
.fi-section:not(.fi-section-not-contained) > .fi-section-header { padding: 0.85rem 1.15rem 0; }
.fi-main form .fi-section:not(.fi-section-not-contained) > .fi-section-header { padding: 0.85rem 1.15rem 0; }
.fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn > .fi-section-content { padding: 0.75rem 1.15rem 1.1rem; }
.fi-ta-ctn, .fi-wi-stats-overview-stat, .ct-card, .ct-board, .ct-cal { background: var(--ct-surface); border-radius: var(--ct-radius); box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow); }
.ct-cal { background: var(--ct-line); }
.ct-panel { border-top: 0; padding: 0.95rem 1.15rem 1.1rem; background: var(--ct-surface); border-radius: var(--ct-radius); box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow); }
.ct-preview .ct-panel, .fi-modal-window .ct-panel { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.fi-ta-header-cell { background: color-mix(in oklab, var(--ct-sunken) 55%, var(--ct-surface)); }
.fi-ta-row { border-color: var(--ct-line); }
.ct-custcard, .ct-custhist { background: var(--ct-canvas); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-callhead { background: color-mix(in oklab, var(--ct-surface) 94%, transparent); border-radius: var(--ct-radius); padding: 0.9rem 1.15rem; box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow); }
.fi-grid-col:has(> .fi-sc-component > .ct-callhead) .ct-callhead { padding-top: 0.9rem; }

/* whose calls: one segmented control instead of five grey buttons */
.ct-scope-tabs { display: inline-flex; width: fit-content; flex-wrap: nowrap; gap: 0.15rem; padding: 0.25rem; max-width: 100%; border-radius: calc(var(--ct-radius-sm) + 0.25rem); background: color-mix(in oklab, var(--ct-sunken) 80%, var(--ct-line)); overflow-x: auto; scrollbar-width: none; }
.ct-scope-tab { flex: none; min-width: 6.25rem; padding: 0.4rem 1rem; border-radius: var(--ct-radius-sm); background: transparent; box-shadow: none; color: var(--ct-fg-2); }
.ct-scope-tab:hover { box-shadow: none; color: var(--ct-fg); background: color-mix(in oklab, var(--ct-surface) 55%, transparent); }
.ct-scope-tab.is-on { background: var(--ct-surface); color: var(--ct-fg); box-shadow: 0 0 0 1px var(--ct-line), 0 1px 3px rgb(17 17 19 / 0.12); }

/* menu: a little depth, and the current place marked in the brand's red */
.fi-sidebar.fi-main-sidebar { background: linear-gradient(180deg, var(--ct-side-top), var(--ct-side-bottom)); }
.ct-shortcuts-recent { background: var(--ct-side-bottom); }
.fi-sidebar-item-btn { border-radius: var(--ct-radius-sm); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { box-shadow: inset 2px 0 0 var(--ct-red); }
.ct-newcall { border-radius: var(--ct-radius-sm); }

/* buttons and fields */
.fi-btn { border-radius: var(--ct-radius-sm); }
.fi-btn.fi-color-primary:not(.fi-outlined) { background: linear-gradient(180deg, var(--ct-red-top), var(--ct-red)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 1px 2px rgb(17 17 19 / 0.25), 0 4px 10px -4px color-mix(in oklab, var(--ct-red) 55%, transparent); }
.fi-btn.fi-color-primary:not(.fi-outlined):hover { background: linear-gradient(180deg, var(--ct-red), var(--ct-red-strong)); }
.fi-btn.fi-color-gray:not(.fi-color-primary) { background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong), 0 1px 2px rgb(17 17 19 / 0.05); }
.fi-btn.fi-color-gray:not(.fi-color-primary):hover { background: var(--ct-hover); }
.fi-input-wrp { border-radius: var(--ct-radius-sm); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong), 0 1px 1px rgb(17 17 19 / 0.03); transition: box-shadow var(--ct-fast) var(--ct-ease); }
.fi-main .fi-input-wrp:focus-within { box-shadow: inset 0 0 0 1px var(--ct-red), 0 0 0 3px var(--ct-ring); }
.ct-hub-chip { background: var(--ct-surface); }

/* dialogs and side panels float clearly above the page */
.fi-modal-window { border-radius: calc(var(--ct-radius) + 0.25rem); box-shadow: var(--ct-shadow-lift); }
.fi-modal-slide-over-window { border-radius: 0; }
.fi-dropdown-panel { border-radius: var(--ct-radius); box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow-lift); }
@media print { .fi-section, .fi-ta-ctn, .ct-card, .ct-board, .ct-callhead { box-shadow: none !important; } }

/* ================================================================================ call page loose ends */
/* the reminder sits under the assignee in the header; its explanation is the tooltip */
.ct-callhead-remind { display: inline-block; margin: 0.25rem 0 0; font-size: var(--ct-text-2xs); }
/* Save stays at the foot of the window on the long call form */
/* (styled on the bar itself: a filter or transform on its parent would stop it sticking to the window) */
.fi-sticky .fi-ac { background: var(--ct-surface); border-radius: var(--ct-radius); box-shadow: 0 0 0 1px var(--ct-line), var(--ct-shadow-lift); padding: 0.6rem 0.9rem; z-index: 15; }

/* ================================================================================ call list: every column of the old list in sight, no sideways scroll
   From laptop width up the table is fitted to the window: each column takes a share of the width and its
   text wraps inside it (the old list did the same). Narrower windows keep the sideways scroll. */
@media (min-width: 1100px) {
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table { table-layout: fixed; width: 100%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-id { width: 7%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-company\.name { width: 12.5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-status { width: 8%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-assigned-to\.name { width: 7.5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-opened-on { width: 6.5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-due-on { width: 5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-updated-at { width: 7%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-model-summary { width: 8.5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-opened-by\.name { width: 7.5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-dept-group { width: 5.5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-contact\.name { width: 7.5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-company\.parent\.name { width: 7%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-standard-offering { width: 4%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell > *, .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell { padding-inline: 0.3rem !important; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell:first-child > *, .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell:first-child { padding-inline-start: 0.8rem !important; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell { font-size: 0.6rem !important; letter-spacing: 0.02em; white-space: normal; overflow-wrap: normal; vertical-align: bottom; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell .fi-icon { width: 0.7rem; height: 0.7rem; flex: none; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-btn, .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell > * { gap: 0.15rem; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell { overflow: hidden; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .fi-ta-text-item, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .ct-person { display: block; width: auto !important; max-width: 100% !important; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer { width: auto; max-width: none; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer, .fi-resource-calls.fi-resource-list-records-page .ct-col-customer * { min-width: 0; max-width: 100% !important; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-item { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-description { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-id .fi-ta-text-item { white-space: nowrap; overflow-wrap: normal; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .ct-status { padding: 0.08rem 0.4rem 0.08rem 0.35rem; gap: 0.3rem; font-size: 0.68rem; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .ct-status::before { width: 0.4rem; height: 0.4rem; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-actions { gap: 0; justify-content: flex-end; }
    /* a click on the row already opens the quick look, so only the pencil is shown here */
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-actions > :last-child:not(:first-child) { display: none; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-actions .fi-icon-btn { width: 1.3rem; height: 1.3rem; margin: 0; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-actions-cell > *, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell:has(.fi-ta-actions) > * { padding-inline: 0.15rem !important; }
}

/* ================================================================================ files: remove; an action that only opens from a link */
.ct-file-remove { margin: 0; opacity: 0; transition: opacity var(--ct-fast) var(--ct-ease); }
.ct-entry:hover .ct-file-remove, .ct-file-remove:focus-visible { opacity: 1; }
@media (hover: none) { .ct-file-remove { opacity: 1; } }

/* ================================================================================ a call on paper (More > Print or save as PDF) */
@media print {
    @page { margin: 14mm 12mm; }
    .fi-resource-calls.fi-resource-view-record-page .ct-noprint, .fi-resource-calls .ct-callhead-nav, .fi-resource-calls .ct-timeline-bar,
    .fi-no, .fi-modal, .ct-file-remove, .fi-section-collapse-btn, .fi-section-header-actions { display: none !important; }
    .fi-resource-calls.fi-resource-view-record-page::before { content: 'La Marche Mfg. Co.  ·  Call Tracker'; display: block; padding-bottom: 6pt; margin-bottom: 8pt; border-bottom: 1.5pt solid var(--ct-red); font-size: 9pt; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: #111; }
    .fi-resource-calls .ct-callhead { position: static !important; background: #fff !important; backdrop-filter: none; padding: 0 0 8pt !important; border-radius: 0; border-bottom: 0.75pt solid #999; }
    .fi-resource-calls .fi-section:not(.fi-section-not-contained) { background: #fff; border-radius: 0; border-top: 0.75pt solid #bbb; }
    .fi-resource-calls .fi-section:not(.fi-section-not-contained) > .fi-section-header { padding: 6pt 0 0; }
    .fi-resource-calls .fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn > .fi-section-content { padding: 4pt 0 8pt; }
    /* everything written is printed in full: nothing folded, nothing shortened */
    .fi-resource-calls .ct-clamp { max-height: none !important; -webkit-line-clamp: unset !important; overflow: visible !important; mask-image: none !important; }
    .fi-resource-calls .fi-section-content-ctn { display: block !important; height: auto !important; }
    .fi-resource-calls .ct-props .fi-in-entry:has(.fi-in-placeholder) { display: none; }
    /* on paper the empty facts are left out whether or not "Show empty fields" was pressed: so are their slots and a panel with nothing else */
    .fi-resource-calls .ct-props .fi-grid-col:has(> .fi-sc-component > .fi-in-entry .fi-in-placeholder),
    .fi-resource-calls .ct-props .fi-grid-col:has(> .fi-sc-component > .ct-facts-empty) { display: none; }
    .fi-resource-calls .ct-entry, .fi-resource-calls .ct-daygroup .ct-day { break-inside: avoid; }
    .fi-resource-calls a { color: inherit !important; text-decoration: none !important; }
    .fi-resource-calls .ct-status { background: none !important; padding: 0 !important; color: #111 !important; }
    /* paper is narrow, so the phone layout's menu button and its grey overlay would otherwise print */
    .fi-sidebar-close-overlay, .fi-layout-sidebar-toggle-btn-ctn, .fi-topbar-ctn, .fi-modal-close-overlay, .ct-opencalls, .ct-callhead-remind { display: none !important; }
    html, body, .fi-body, .fi-layout, .fi-main-ctn, .fi-main, .fi-page { background: #fff !important; overflow: visible !important; height: auto !important; min-height: 0 !important; }
    .fi-resource-calls .fi-section, .fi-resource-calls .fi-grid-col, .fi-resource-calls .fi-sc-component { break-inside: auto !important; }
    .fi-resource-calls .ct-callhead { flex-wrap: wrap; gap: 6pt 14pt; box-shadow: none !important; }
    .fi-resource-calls .ct-callhead-facts { flex-wrap: wrap; gap: 4pt 14pt; }
    .fi-resource-calls .ct-latest { display: none; }
    .fi-resource-calls .ct-body { max-width: none; }
    html { font-size: 11px; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ================================================================================ small things that make it pleasant to use */
/* text selection and keyboard focus in the brand's colour; a visible ring wherever the keyboard lands */
::selection { background: color-mix(in oklab, var(--ct-red) 22%, transparent); }
.fi-body :is(a, button, [role="button"], [tabindex]):focus-visible { outline: 2px solid var(--ct-red); outline-offset: 2px; border-radius: var(--ct-radius-sm); }
.fi-sidebar :is(a, button):focus-visible { outline-color: var(--ct-red-soft); }
/* quiet scrollbars everywhere, not only in the menu */
.fi-body * { scrollbar-width: thin; scrollbar-color: var(--ct-line-strong) transparent; }
.fi-sidebar * { scrollbar-color: var(--ct-side-active) transparent; }
/* the menu's counters are information, not alarms */
.fi-sidebar-item .fi-badge { background: var(--ct-side-active) !important; color: var(--ct-side-fg) !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000 !important; font-size: var(--ct-text-2xs); padding: 0.05rem 0.45rem; min-width: 0; }
.fi-sidebar-item .fi-badge * { color: inherit !important; }
.fi-sidebar-item.fi-active .fi-badge { background: color-mix(in oklab, var(--ct-red) 30%, var(--ct-side-active)) !important; color: var(--ct-side-fg-strong) !important; }
/* status tabs: the count reads as a small pill, the chosen tab's in the brand's red */
.fi-tabs-item .fi-badge { background: var(--ct-sunken) !important; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: var(--ct-text-2xs); }
.fi-tabs-item.fi-active .fi-badge { background: color-mix(in oklab, var(--ct-red) 12%, transparent) !important; color: var(--ct-red-strong) !important; }
.dark .fi-tabs-item.fi-active .fi-badge { color: var(--ct-red-soft) !important; }
/* the one-click filters show clearly which are on */
.ct-hub-chip { transition: background-color var(--ct-fast) var(--ct-ease), color var(--ct-fast) var(--ct-ease), box-shadow var(--ct-fast) var(--ct-ease), transform var(--ct-fast) var(--ct-ease); }
.ct-hub-chip:hover { box-shadow: inset 0 0 0 1px var(--ct-line-strong), 0 1px 2px rgb(17 17 19 / 0.06); }
.ct-quick-row .ct-hub-chip.is-on { background: var(--ct-fg); color: var(--ct-surface); box-shadow: 0 1px 3px rgb(17 17 19 / 0.25); }
/* rows that open something say so; tiles that lead somewhere lift a little */
.fi-ta-row:has(.fi-ta-col[wire\:click], a.fi-ta-col, button.fi-ta-col) { cursor: pointer; }
a.fi-wi-stats-overview-stat, a.ct-card, .ct-hub-tile { transition: transform var(--ct-fast) var(--ct-ease), box-shadow var(--ct-fast) var(--ct-ease); }
a.fi-wi-stats-overview-stat:hover, a.ct-card:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--ct-line-strong), var(--ct-shadow-lift); }
.fi-wi-stats-overview-stat-value, .ct-fact-value, .fi-ta-cell-id, .fi-ta-cell-quote-value { font-variant-numeric: tabular-nums; }
/* messages that pop up: rounded, lifted, with a coloured edge for what kind they are */
.fi-no-notification { border-radius: var(--ct-radius) !important; box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow-lift) !important; background: var(--ct-surface) !important; }
.fi-no-notification.fi-status-success { box-shadow: inset 3px 0 0 var(--ct-st-active), inset 0 0 0 1px var(--ct-line), var(--ct-shadow-lift) !important; }
.fi-no-notification.fi-status-warning { box-shadow: inset 3px 0 0 var(--ct-st-follow_up), inset 0 0 0 1px var(--ct-line), var(--ct-shadow-lift) !important; }
.fi-no-notification.fi-status-danger { box-shadow: inset 3px 0 0 var(--ct-bad), inset 0 0 0 1px var(--ct-line), var(--ct-shadow-lift) !important; }
/* its mark takes the same colour as its edge (Filament's own red would read as the brand's) */
.fi-no-notification.fi-status-danger .fi-no-notification-icon { color: var(--ct-bad) !important; }
/* breadcrumbs step back; empty lists look intended */
.fi-breadcrumbs { opacity: 0.85; }
.fi-ta-empty-state-icon-bg { border-radius: var(--ct-radius) !important; box-shadow: inset 0 0 0 1px var(--ct-line); }
/* long text is easier to read at a measured width */
.ct-body, .ct-formlog-body { max-width: 78ch; }
/* the pagination bar belongs to the table's panel */
.fi-ta-ctn .fi-pagination { padding: 0.6rem 0.9rem; font-size: var(--ct-text-sm); }

/* ================================================================================ sign-in: two halves on a wide screen */
.ct-signin-side { display: none; }
@media (min-width: 1024px) {
    .fi-simple-layout:has(.ct-signin-side) { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding-left: 52%; background: var(--ct-surface); }
    .fi-simple-layout:has(.ct-signin-side)::before { display: none; }
    .ct-signin-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 3rem 3.5rem; color: var(--ct-side-fg-strong); background: linear-gradient(150deg, var(--ct-side-top), var(--ct-side-bottom) 70%); position: fixed; inset: 0 48% 0 0; }
    .ct-signin-side-top img { height: 3rem; width: auto; padding: 0.4rem 0.7rem; border-radius: var(--ct-radius-sm); background: #fff; }
    .ct-signin-kicker { font-size: var(--ct-text-2xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 650; color: var(--ct-red-soft); }
    .ct-signin-side h2 { margin-top: 0.8rem; max-width: 22ch; font-size: 2.3rem; line-height: 1.12; font-weight: 650; letter-spacing: -0.035em; }
    .ct-signin-side ul { margin-top: 1.6rem; display: grid; gap: 0.6rem; font-size: var(--ct-text-md); color: var(--ct-side-fg); }
    .ct-signin-side li { padding-left: 1.1rem; position: relative; }
    .ct-signin-side li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 0.4rem; height: 0.4rem; border-radius: 999px; background: var(--ct-red); }
    .ct-signin-side-foot { font-size: var(--ct-text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ct-side-muted); position: relative; z-index: 1; }
    .ct-signin-wave { position: absolute; left: -5%; right: -5%; bottom: 3.5rem; width: 110%; height: 9rem; color: var(--ct-red); opacity: 0.22; }
    .fi-simple-layout:has(.ct-signin-side) .fi-simple-main-ctn { grid-column: 2; align-self: center; justify-self: center; width: 100%; padding: 2rem; }
    .fi-simple-layout:has(.ct-signin-side) .fi-simple-main { box-shadow: none !important; background: transparent !important; max-width: 26rem; margin-inline: auto; }
    .fi-simple-layout:has(.ct-signin-side) .ct-brand-official { display: none; }
    .fi-simple-layout:has(.ct-signin-side) .fi-simple-layout-header { grid-column: 2; }
}

/* ================================================================================ call header: the customer first, status as a pill */
.ct-callhead-who > a:first-of-type { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.025em; color: var(--ct-head-fg); }
.ct-callhead .ct-callhead-line .ct-status { padding: 0.12rem 0.65rem 0.12rem 0.55rem; border-radius: 999px; font-size: var(--ct-text-xs); font-weight: 600;
    background: color-mix(in oklab, var(--ct-dot, var(--ct-st-closed)) 14%, transparent); color: color-mix(in oklab, var(--ct-dot, var(--ct-st-closed)) 62%, var(--ct-fg)); }

/* ================================================================================ history as a conversation */
.ct-entry .ct-bubble { padding: 0.55rem 0.8rem 0.65rem; border-radius: 0.25rem var(--ct-radius) var(--ct-radius) var(--ct-radius); background: var(--ct-canvas); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-entry.ct-quiet .ct-bubble { padding: 0; background: none; box-shadow: none; border-radius: 0; }
/* what you wrote yourself stands out from what others wrote */
.ct-entry.ct-mine .ct-bubble { background: color-mix(in oklab, var(--ct-st-on_hold) 8%, var(--ct-surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ct-st-on_hold) 22%, var(--ct-line)); }
.ct-entry.ct-mine .ct-author::after { content: ' · you'; font-weight: 450; color: var(--ct-fg-3); }
.ct-file-thumb { display: inline-block; margin-top: 0.4rem; border-radius: var(--ct-radius-sm); overflow: hidden; box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow); line-height: 0; }
.ct-file-thumb img { display: block; max-width: 14rem; max-height: 9rem; object-fit: cover; background: var(--ct-sunken); }
@media print { .ct-entry .ct-bubble { background: none !important; box-shadow: none !important; padding: 0 !important; } .ct-tour { display: none !important; } }

/* ================================================================================ home: tile icons in one style */
.ct-hub-card-icon { width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; color: var(--ct-accent, var(--ct-fg-2)); background: color-mix(in oklab, var(--ct-accent, var(--ct-fg-3)) 10%, var(--ct-surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ct-accent, var(--ct-fg-3)) 22%, transparent); transition: transform var(--ct-fast) var(--ct-ease); }
.ct-hub-card:hover .ct-hub-card-icon { transform: scale(1.06); }
.ct-hub-card:hover { box-shadow: inset 0 0 0 1px var(--ct-line-strong), var(--ct-shadow); }

/* ================================================================================ welcome tour */
.ct-tour { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgb(10 10 12 / 0.55); backdrop-filter: blur(3px); }
.ct-tour-card { width: min(30rem, 100%); padding: 1.6rem 1.7rem 1.3rem; border-radius: calc(var(--ct-radius) + 0.35rem); background: var(--ct-surface); color: var(--ct-fg); box-shadow: var(--ct-shadow-lift); border-top: 3px solid var(--ct-red); }
.ct-tour-count { font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); }
.ct-tour-card h2 { margin-top: 0.35rem; font-size: 1.35rem; font-weight: 650; letter-spacing: -0.03em; }
.ct-tour-card h2 + p { margin-top: 0.5rem; font-size: var(--ct-text-md); line-height: 1.55; color: var(--ct-fg-2); min-height: 4.6em; }
.ct-tour-dots { display: flex; gap: 0.35rem; margin-top: 0.9rem; }
.ct-tour-dots span { width: 1.4rem; height: 0.2rem; border-radius: 999px; background: var(--ct-line-strong); transition: background-color var(--ct-fast) var(--ct-ease); }
.ct-tour-dots span.is-on { background: var(--ct-red); }
.ct-tour-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; }
.ct-tour-actions .ct-more { margin: 0; }
.ct-tour-actions > span { display: inline-flex; gap: 0.5rem; }
.ct-tour-btn { padding: 0.45rem 1rem; font-size: var(--ct-text-sm); }

/* ================================================================================ dashboard filters as one bar */
.fi-section.ct-filterbar:not(.fi-section-not-contained) > .fi-section-header, .fi-main form .fi-section.ct-filterbar:not(.fi-section-not-contained) > .fi-section-header { padding: 0.7rem 1.15rem 0.75rem; align-items: center; cursor: pointer; }
.fi-section.ct-filterbar .fi-section-header-heading { color: var(--ct-fg); }
.fi-section.ct-filterbar .fi-section-header-description { font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.fi-section.ct-filterbar .fi-section-header-text-ctn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 1rem; }
.fi-section.ct-filterbar > .fi-section-content-ctn > .fi-section-content { padding: 0.4rem 1.15rem 1rem; }

/* the customer's other calls under the contact: a labelled box that folds */
.ct-custhist-sum { cursor: pointer; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); list-style: none; display: flex; align-items: center; gap: 0.4rem; }
.ct-custhist-sum::-webkit-details-marker { display: none; }
.ct-custhist-sum::after { content: '›'; font-size: 1rem; line-height: 1; transition: transform var(--ct-fast) var(--ct-ease); }
.ct-custhist[open] > .ct-custhist-sum { margin-bottom: 0.45rem; }
.ct-custhist[open] > .ct-custhist-sum::after { transform: rotate(90deg); }

/* ================================================================================ company and contact pages: a head like a call's */
.ct-custhead { position: static; }
.ct-custhead-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.ct-custhead-name h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; color: var(--ct-fg); }
.ct-custhead-name p { margin-top: 0.1rem; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-custhead-avatar { width: 2.75rem; height: 2.75rem; font-size: 0.95rem; border-radius: 0.8rem; flex: none; }
.ct-custhead .ct-status { padding: 0.12rem 0.65rem 0.12rem 0.55rem; border-radius: 999px; font-size: var(--ct-text-xs); font-weight: 600; background: color-mix(in oklab, var(--ct-st-active) 14%, transparent); color: color-mix(in oklab, var(--ct-st-active) 62%, var(--ct-fg)); }
.ct-custhead-reach { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin-top: 0.55rem; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-custhead-reach a:hover { color: var(--ct-fg); text-decoration: underline; }
/* the name is in the head below, so the page title above it would only repeat it */
.fi-resource-companies.fi-resource-view-record-page .fi-header-heading, .fi-resource-contacts.fi-resource-view-record-page .fi-header-heading { display: none; }

/* ================================================================================ a new call in steps */
.fi-resource-calls.fi-resource-create-record-page .fi-sc-wizard { max-width: 62rem; }
.fi-sc-wizard-header { background: var(--ct-surface); border-radius: var(--ct-radius); box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow); overflow: hidden; }
.fi-sc-wizard-header-step-label { font-weight: 600; font-size: var(--ct-text-md); }
.fi-sc-wizard-header-step-description { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.fi-sc-wizard-footer { padding-top: 0.25rem; }

/* ================================================================================ one-click sentences above a comment box */
.ct-templates { gap: 0.3rem !important; }
/* quiet chips, not buttons: red stays for the one action that saves */
.ct-templates .fi-btn, .ct-templates .fi-btn.fi-color-primary:not(.fi-outlined) { padding: 0.15rem 0.6rem; font-size: var(--ct-text-xs); font-weight: 550; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ct-line-strong) !important; background: var(--ct-surface) !important; color: var(--ct-fg-2) !important; }
.ct-templates .fi-btn .fi-btn-label, .ct-templates .fi-btn.fi-color-primary:not(.fi-outlined) .fi-btn-label { color: inherit !important; }
.ct-templates .fi-btn:hover, .ct-templates .fi-btn.fi-color-primary:not(.fi-outlined):hover { color: var(--ct-fg) !important; background: var(--ct-hover) !important; }

/* ================================================================================ a company's timeline */
.ct-custline { display: grid; gap: 0.25rem; max-height: 34rem; overflow-y: auto; padding-right: 0.4rem; }
.ct-custline-entry { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0.75rem; padding: 0.45rem 0; border-top: 1px solid var(--ct-line); font-size: var(--ct-text-sm); }
.ct-custline .ct-day + .ct-custline-entry { border-top: 0; }
.ct-custline-when { font-family: var(--ct-mono); font-size: var(--ct-text-xs); color: var(--ct-fg-3); padding-top: 0.1rem; }
.ct-custline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; }
.ct-custline-head a.ct-mono { font-weight: 600; color: var(--ct-fg); }
.ct-custline-head a.ct-mono:hover { text-decoration: underline; }
.ct-custline-head strong { font-weight: 600; }
.ct-custline-head .ct-status { font-size: var(--ct-text-xs); }
.ct-custline-text { margin-top: 0.15rem; color: var(--ct-fg-2); max-width: 90ch; }
.ct-custline-opened .ct-custline-head strong { color: var(--ct-fg); }
/* the tick-box column added by "with the ticked calls" takes little room in the fitted list */
@media (min-width: 1100px) { .fi-resource-calls.fi-resource-list-records-page .fi-ta-selection-cell, .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell.fi-ta-selection-cell { width: 2rem; padding-inline: 0.5rem 0 !important; } }

/* ================================================================================ more on the first screen
   Measured on a 1290 x 640 window: the call list's first row sat 371px down and three calls fitted. */
/* breadcrumbs repeat what the menu already shows; their line now holds the tabs of the calls you have open,
   whether or not any are open, so opening one no longer pushes the page down */
.fi-breadcrumbs { display: none; }
.fi-header.fi-header-has-breadcrumbs { gap: 0; }
.ct-opencalls { min-height: 2.1rem; padding-top: 0.45rem; margin-bottom: -0.35rem; }
.ct-opencalls.is-empty > * { visibility: hidden; }
.fi-header { padding-block: 0.1rem 0; }
.fi-header-heading { font-size: 1.45rem; }

/* the call list: tighter rows between title and table, quick filters as one menu at the end of the tab row */
.fi-resource-calls.fi-resource-list-records-page .fi-page-content > .fi-grid, .fi-resource-calls.fi-resource-list-records-page .fi-page-content .fi-sc-has-gap { row-gap: 0.55rem; }
.fi-resource-calls.fi-resource-list-records-page .fi-page-header-main-ctn { row-gap: 0.6rem; }
.fi-resource-calls.fi-resource-list-records-page .ct-scope-tab { padding: 0.28rem 0.9rem; font-size: var(--ct-text-sm); min-width: 5.5rem; }
.fi-resource-calls.fi-resource-list-records-page .fi-tabs-item { padding-block: 0.35rem; }
.ct-quick { position: relative; }
.ct-quick-menu { position: absolute; right: 0; top: -2.55rem; z-index: 6; display: flex; align-items: center; gap: 0.35rem; }
.ct-quick-menu .ct-hub-chip { padding: 0.2rem 0.65rem; font-size: var(--ct-text-xs); }
.ct-quick-pop { position: absolute; right: 0; top: calc(100% + 0.35rem); min-width: 15rem; display: grid; gap: 0.1rem; padding: 0.35rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow-lift); }
.ct-quick-item { text-align: left; padding: 0.35rem 0.6rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); color: var(--ct-fg-2); display: flex; align-items: center; gap: 0.5rem; }
.ct-quick-item::before { content: ''; width: 0.85rem; height: 0.85rem; border-radius: 0.25rem; box-shadow: inset 0 0 0 1.5px var(--ct-line-strong); flex: none; }
.ct-quick-item.is-on { color: var(--ct-fg); font-weight: 600; }
.ct-quick-item.is-on::before { background: var(--ct-fg); box-shadow: none; }
.ct-quick-item:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-quick-pop .ct-more { margin: 0.2rem 0.4rem; justify-self: start; }
.ct-quick:not(:has(.ct-hub-strip, .ct-quick-views)) { height: 0; }
@media (max-width: 900px) { .ct-quick-menu { position: static; flex-wrap: wrap; } .ct-quick:not(:has(.ct-hub-strip, .ct-quick-views)) { height: auto; } .ct-quick-pop { right: auto; left: 0; } }
.fi-resource-calls.fi-resource-list-records-page .fi-ta-header-toolbar { padding-block: 0.4rem; }

/* rows of one height: one line a cell, cut with "…" (the full text is in the quick look and on hover), two for the customer */
@media (min-width: 1100px) {
    /* names, models and dates may take two short lines, never three */
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .fi-ta-text-item, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .ct-person { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; overflow-wrap: anywhere; line-height: 1.22; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-id .fi-ta-text-item, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-status .fi-ta-text-item { display: block; white-space: nowrap; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-item { display: block; -webkit-line-clamp: unset; white-space: nowrap; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell > * { padding-block: 0.3rem !important; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-col .fi-ta-text { padding-block: 0 !important; gap: 0; }
    .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-description { margin-top: 0; line-height: 1.25; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell { padding-block: 0.35rem !important; }
}

/* a long description folds (taller than a folded history entry) */
/* (the fold was only defined for history entries; the description needs the hiding and the fade spelled out too) */
.ct-prose.ct-clamp { overflow: hidden; mask-image: linear-gradient(180deg, #000 78%, transparent); }
.ct-clamp.ct-clamp-tall { max-height: 15rem; }

/* the call's head on one band: who on the left, the facts in one line on the right */
.ct-callhead { padding: 0.65rem 1.15rem; gap: 0.5rem 1.5rem; flex-wrap: nowrap; align-items: center; }
.fi-grid-col:has(> .fi-sc-component > .ct-callhead) .ct-callhead { padding-top: 0.65rem; }
.ct-callhead-main { flex: 1 1 auto; min-width: 12rem; }
.ct-callhead-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-callhead-who > a:first-of-type { font-size: 1.2rem; }
.ct-callhead-facts { flex: none; flex-wrap: nowrap; gap: 1.1rem; align-items: flex-start; }
.ct-callhead-facts .ct-fact-value { margin-top: 0.1rem; }
.ct-callhead-remind { margin-top: 0.1rem; }
@media (max-width: 1100px) { .ct-callhead { flex-wrap: wrap; } .ct-callhead-facts { flex-wrap: wrap; } .ct-callhead-who { white-space: normal; } }
.fi-resource-calls.fi-resource-view-record-page .fi-page-content .fi-sc-has-gap { gap: 0.8rem; }

/* dashboards: the top takes less of the screen, and the tab row shows that there is more to its right */
.fi-page-sub-navigation-tabs .fi-tabs-item { padding: 0.3rem 0.55rem; font-size: var(--ct-text-xs); gap: 0.3rem; }
.fi-page-sub-navigation-tabs .fi-tabs-item .fi-icon { width: 0.95rem; height: 0.95rem; }
.fi-page-sub-navigation-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); padding-right: 3rem; }
.fi-header-subheading { font-size: var(--ct-text-sm); margin-top: 0.1rem; }
.fi-section.ct-filterbar .fi-section-header-text-ctn, .fi-section.ct-filterbar .fi-section-header-heading-ctn { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.9rem; }
.fi-section.ct-filterbar:not(.fi-section-not-contained) > .fi-section-header, .fi-main form .fi-section.ct-filterbar:not(.fi-section-not-contained) > .fi-section-header { padding: 0.45rem 1rem; }

/* search: a wide panel in the middle of the window, one line a result */
/* (the panel is positioned from the menu it lives in: just past the menu's right edge, over the page) */
@media (max-width: 1023px) { .fi-global-search-results-ctn { position: absolute !important; left: 0 !important; top: 100% !important; transform: none !important; width: 100% !important; box-shadow: 0 0 0 1px var(--ct-line), var(--ct-shadow-lift) !important; } }
.fi-global-search-results-ctn { position: fixed !important; top: 4.5rem; left: calc(100% + 2.5rem) !important; right: auto !important; transform: none; width: min(46rem, calc(100vw - 17rem - 5rem)) !important; max-width: none !important; max-height: 72vh; overflow-y: auto; z-index: 50; border-radius: calc(var(--ct-radius) + 0.25rem); box-shadow: 0 0 0 1px var(--ct-line), var(--ct-shadow-lift), 0 0 0 100vmax rgb(10 10 12 / 0.28); background: var(--ct-surface); }
.fi-global-search-result-group-header { padding: 0.45rem 1rem; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); background: var(--ct-canvas); }
.fi-global-search-result-link { display: flex; align-items: baseline; gap: 0.2rem 1rem; flex-wrap: wrap; padding: 0.45rem 1rem; }
.fi-global-search-result-heading { font-size: var(--ct-text-sm); font-weight: 600; color: var(--ct-fg); }
.fi-global-search-result-details { display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; margin: 0; font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.fi-global-search-result-detail { display: inline; }
.fi-global-search-result-detail-label { display: none; }
.fi-global-search-result:hover, .fi-global-search-result:focus-within { background: var(--ct-hover); }

/* the filter bar's two texts on one line; dashboards a little tighter between their parts */
.fi-section.ct-filterbar .fi-section-header :is(div):has(> .fi-section-header-heading) { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.9rem; }
.fi-section.ct-filterbar .fi-section-header-description { margin: 0; }
.fi-page:has(.fi-page-sub-navigation-tabs) .fi-page-header-main-ctn, .fi-page:has(.fi-page-sub-navigation-tabs) .fi-page-content { row-gap: 0.7rem; }

/* ================================================================================ round of small fixes (owner's list)
   the pencil sits first in a call row, as it did in the old list, so it cannot fall off the right edge */
@media (min-width: 1100px) {
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-actions-header-cell, .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell:has(> .fi-ta-actions) { width: 2rem; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell:has(> .fi-ta-actions) > .fi-ta-actions { padding-inline: 0.1rem !important; justify-content: center; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-actions > :last-child:not(:first-child) { display: none; }
}
/* home: the greeting is one slim band, so the tools start on the first screen */
.ct-hub-hero { padding: 0.55rem 1rem; gap: 0.9rem; }
.ct-hub-hero-text h1 { font-size: 1.15rem; }
.ct-hub-hero-text p { font-size: var(--ct-text-xs); margin: 0; display: inline; }
.ct-hub-hero-text p + p::before { content: ' · '; }
.ct-hub-logo { padding: 0.25rem 0.55rem; }
.ct-hub-logo img { height: 1.7rem; }
.ct-hub-hero .ct-hub-stat, .ct-hub-hero [class*="ct-hub-stat"] { padding-block: 0.25rem; }
/* every list: the compact rows of the call list */
.fi-resource-list-records-page .fi-ta-cell > *, .fi-resource-list-records-page .fi-ta-cell .fi-ta-col { padding-block: 0.35rem; }
.fi-resource-list-records-page .fi-ta-text-item { font-size: var(--ct-text-sm); line-height: 1.3; }
.fi-resource-list-records-page .fi-ta-header-cell { padding-block: 0.4rem !important; }
.fi-resource-list-records-page .fi-ta-header-toolbar { padding-block: 0.4rem; }
/* buttons in two sizes: the usual one, and the large one that saves a form */
.fi-header .fi-btn, .fi-page-header-actions .fi-btn, .fi-btn.fi-size-sm, .fi-btn.fi-size-md, .ct-tour-btn { padding: 0.4rem 0.85rem; font-size: var(--ct-text-sm); line-height: 1.25rem; min-height: 0; gap: 0.4rem; }
.fi-btn.fi-size-sm .fi-icon, .fi-btn.fi-size-md .fi-icon, .fi-header .fi-btn .fi-icon { width: 1rem; height: 1rem; }
.fi-ac .fi-btn[type="submit"], .fi-sticky .fi-ac .fi-btn, .fi-sc-wizard-footer .fi-btn { padding: 0.5rem 1.1rem; font-size: var(--ct-text-md); }
/* the letter that presses a button from the keyboard */
[data-ct-key]::after { content: attr(data-ct-key); text-transform: uppercase; font-family: var(--ct-mono); font-size: 0.6rem; line-height: 1; padding: 0.15rem 0.3rem; border-radius: 0.25rem; margin-left: 0.15rem; opacity: 0.75; box-shadow: inset 0 0 0 1px currentColor; }
@media (hover: none) { [data-ct-key]::after { display: none; } }
/* an open call's tab shows a dot while its form has changes that are not saved */
.ct-opencalls-tab .ct-unsaved { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--ct-st-follow_up); display: inline-block; margin-left: 0.15rem; }
/* a person's own photo where their initials were */
img.ct-avatar-photo { object-fit: cover; padding: 0; background: var(--ct-sunken); }
.fi-avatar { object-fit: cover; }

/* ================================================================================ call page: quick update bar, status picker, jump links, files */
/* fixed to the foot of the window and centred in the page area, clear of the menu at every width */
.ct-quicknote { position: fixed; bottom: 0.7rem; left: 50%; transform: translateX(-50%); width: calc(100vw - 2rem); z-index: 18; }
@media (min-width: 1024px) { .ct-quicknote { left: calc(50% + 8.5rem); width: min(46rem, calc(100vw - 17rem - 5rem)); } }
.fi-resource-calls.fi-resource-view-record-page .fi-main { padding-bottom: 4.5rem; }
.ct-quicknote { display: flex; gap: 0.5rem; padding: 0.45rem 0.5rem 0.45rem 0.9rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: 0 0 0 1px var(--ct-line-strong), var(--ct-shadow-lift); }
.ct-quicknote input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--ct-text-md); color: var(--ct-fg); }
.ct-quicknote input::placeholder { color: var(--ct-fg-3); }
.ct-quicknote:focus-within { box-shadow: 0 0 0 1px var(--ct-red), 0 0 0 4px var(--ct-ring), var(--ct-shadow-lift); }
/* The bar is for the screen. It is fixed to the window, so on paper it would be stamped on the foot of every page, over the call. */
@media print { .ct-quicknote, .ct-jump, .ct-statuspick-btn > span[aria-hidden] { display: none !important; } }
.ct-statuspick { position: relative; display: inline-flex; }
.ct-statuspick-btn { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 999px; font-size: var(--ct-text-2xs); color: var(--ct-fg-3); }
.ct-statuspick-btn:hover .ct-status { filter: brightness(0.96); }
.ct-statuspick-pop { position: absolute; left: 0; top: calc(100% + 0.3rem); z-index: 30; display: grid; gap: 0.15rem; min-width: 10rem; padding: 0.35rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow-lift); }
.ct-statuspick-pop button { text-align: left; padding: 0.3rem 0.45rem; border-radius: var(--ct-radius-sm); }
.ct-statuspick-pop button:hover:not(:disabled) { background: var(--ct-hover); }
.ct-statuspick-pop button:disabled { opacity: 0.45; }
.ct-jump { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.45rem; }
.ct-jump a { padding: 0.15rem 0.6rem; border-radius: 999px; font-size: var(--ct-text-xs); font-weight: 550; color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line); background: var(--ct-surface); }
.ct-jump a:hover { color: var(--ct-fg); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-jump a span { font-family: var(--ct-mono); font-size: var(--ct-text-2xs); color: var(--ct-fg-3); margin-left: 0.15rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* (a link to a panel stops under the call's sticky rows: their real height is --ct-stuck, see "B" near the end of this file) */
#call-description, #call-units, #call-history, #call-files { scroll-margin-top: calc(var(--ct-stuck, 0px) + var(--ct-gap-1)); }
.ct-files { display: grid; gap: 0.1rem; }
.ct-files-row { padding: 0.35rem 0; border-top: 1px solid var(--ct-line); }
.ct-files-row:first-child { border-top: 0; padding-top: 0; }
.ct-files-name { font-size: var(--ct-text-sm); font-weight: 550; overflow-wrap: anywhere; }
.ct-files-name a:hover { text-decoration: underline; }
.ct-files-meta { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-files .ct-more { margin: 0.4rem 0 0; justify-self: start; }

/* ================================================================================ call list: headings that stay, stale rows, resizable columns, hover card */
@media (min-width: 1100px) {
    /* the table is fitted to the window, so nothing scrolls sideways inside it and its headings can stick to the top */
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-ctn, .fi-resource-calls.fi-resource-list-records-page .fi-ta-content-ctn, .fi-resource-calls.fi-resource-list-records-page .fi-ta-content { overflow: visible; }
    .fi-resource-calls.fi-resource-list-records-page thead .fi-ta-header-cell, .fi-resource-calls.fi-resource-list-records-page thead th { position: sticky; top: 0; z-index: 12; background: color-mix(in oklab, var(--ct-sunken) 55%, var(--ct-surface)); box-shadow: inset 0 -1px 0 var(--ct-line); }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell { position: sticky; }
    .ct-colgrip { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 13; touch-action: none; }
    .ct-colgrip:hover, .ct-colgrip.is-dragging { background: color-mix(in oklab, var(--ct-red) 45%, transparent); }
    body.ct-resizing { cursor: col-resize; user-select: none; }
}
/* a call nobody has touched for two weeks carries a faint tint (overdue keeps its amber edge) */
.fi-ta-row.ct-row-stale { background: color-mix(in oklab, var(--ct-st-follow_up) 5%, transparent); }
.ct-hovercard { position: fixed; z-index: 55; max-width: 24rem; padding: 0.6rem 0.75rem; border-radius: var(--ct-radius); background: var(--ct-surface); color: var(--ct-fg-2); font-size: var(--ct-text-sm); line-height: 1.45; box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow-lift); pointer-events: none; }
.ct-hovercard b { display: block; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); margin-bottom: 0.15rem; }

/* ================================================================================ dashboards: a chart can fill the window; the Home board's top is shorter */
.ct-chart-expand { position: absolute; top: 0.55rem; right: 0.6rem; z-index: 3; width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ct-radius-sm); color: var(--ct-fg-3); opacity: 0; transition: opacity var(--ct-fast) var(--ct-ease); }
.fi-wi-chart { position: relative; }
.fi-wi-chart:hover .ct-chart-expand, .ct-chart-expand:focus-visible, .ct-chart-full .ct-chart-expand { opacity: 1; }
.ct-chart-expand:hover { background: var(--ct-hover); color: var(--ct-fg); }
.fi-wi-chart:has(.ct-png, [class*="png"]) .ct-chart-expand { right: 3.6rem; }
.fi-wi-chart.ct-chart-full { position: fixed; inset: 1rem; z-index: 70; margin: 0; }
.fi-wi-chart.ct-chart-full > .fi-section { height: 100%; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--ct-line), 0 0 0 100vmax rgb(10 10 12 / 0.6); }
.fi-wi-chart.ct-chart-full .fi-section-content-ctn, .fi-wi-chart.ct-chart-full .fi-section-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fi-wi-chart.ct-chart-full .fi-wi-chart-canvas-ctn { height: calc(100vh - 9.5rem) !important; }
@media print { .ct-chart-expand { display: none; } }
.ct-ask { align-items: center; }
.ct-ask .ct-panel-title { display: none; }
.ct-ask-title { font-size: 1.05rem; }
.ct-briefing { padding: 0.55rem 0.85rem; font-size: var(--ct-text-sm); line-height: 1.45; }
.ct-alertchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0.35rem; }
.ct-alertchips > * { flex: none; font-size: var(--ct-text-xs); padding-block: 0.15rem; }
.fi-page:has(.ct-ask) .fi-wi-widget + .fi-wi-widget, .fi-page:has(.ct-ask) .fi-page-content .fi-grid { row-gap: 0.6rem; }

/* ================================================================================ empty lists and panels in one style */
.fi-ta-empty-state { padding-block: 2rem; }
.fi-ta-empty-state-content { max-width: 26rem; margin-inline: auto; }
.fi-ta-empty-state-heading { font-size: var(--ct-text-md); font-weight: 600; letter-spacing: -0.01em; }
.fi-ta-empty-state-description { font-size: var(--ct-text-sm); color: var(--ct-fg-3); margin-top: 0.15rem; }
.fi-ta-empty-state-icon-bg { width: 2.4rem; height: 2.4rem; margin-bottom: 0.5rem; }
.fi-ta-empty-state-icon-bg .fi-icon { width: 1.2rem; height: 1.2rem; }
.ct-muted:only-child { padding: 0.25rem 0; }

/* ================================================================================ ONE SYSTEM (consistency pass)
   Later rounds had drifted apart: this block is the single place that says how far apart things sit, what a
   panel looks like, which four sizes text comes in, and where red may appear. It comes last on purpose. */
:root {
    /* three gaps, nothing else: inside a panel, between panels, between parts of a page */
    --ct-gap-1: 0.5rem;
    --ct-gap-2: 0.9rem;
    --ct-gap-3: 1.4rem;
    /* four sizes of text (plus the one big figure): small print, body, heading, page title */
    --ct-text-2xs: 0.7rem;
    --ct-text-xs: 0.7rem;
    --ct-text-sm: 0.84rem;
    --ct-text-md: 0.84rem;
    --ct-text-lg: 1.05rem;
    --ct-text-xl: 1.45rem;
    --ct-pop: 110ms;
}

/* ---- spacing */
.fi-page-header-main-ctn, .fi-page-content, .fi-page:has(.fi-page-sub-navigation-tabs) .fi-page-header-main-ctn, .fi-page:has(.fi-page-sub-navigation-tabs) .fi-page-content { row-gap: var(--ct-gap-2); }
.fi-page-content > .fi-grid, .fi-page-content .fi-sc-has-gap, .fi-wi, .fi-page:has(.ct-ask) .fi-page-content .fi-grid, .fi-resource-calls.fi-resource-view-record-page .fi-page-content .fi-sc-has-gap { gap: var(--ct-gap-2); }
.fi-main form .fi-section .fi-grid, .fi-main form .fi-sc.fi-grid, .fi-modal .fi-sc-has-gap, .fi-modal .fi-grid { gap: var(--ct-gap-2) var(--ct-gap-2); }
.fi-resource-calls.fi-resource-list-records-page .fi-page-content > .fi-grid, .fi-resource-calls.fi-resource-list-records-page .fi-page-content .fi-sc-has-gap, .fi-resource-calls.fi-resource-list-records-page .fi-page-header-main-ctn { row-gap: var(--ct-gap-1); }
.fi-section:not(.fi-section-not-contained) > .fi-section-header { padding: var(--ct-gap-2) 1.1rem 0; }
.fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn > .fi-section-content { padding: var(--ct-gap-1) 1.1rem var(--ct-gap-2); }
.ct-card, .ct-panel, .ct-board { padding: var(--ct-gap-2) 1.1rem; }

/* ---- one panel: white, hairline, quiet shadow, a small grey label. No coloured edges; what a note means is said by a dot before it:
   blue for a plain remark, green for good, amber for "watch", and for bad news the plum of --ct-bad as a diamond (a shape as well as a colour). */
.ct-latest, .ct-note, .ct-note-good, .ct-note-warn, .ct-note-down, .ct-hub-notice, .ct-hub-strip-alert, .ct-custhist-warn { box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-latest { box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow); }
.ct-note::before, .ct-custhist-warn::before, .ct-hub-strip-alert::before { content: ''; display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 999px; margin-right: 0.45rem; vertical-align: 0.08em; background: var(--ct-st-on_hold); }
.ct-note-good::before { background: var(--ct-st-active); }
.ct-note-warn::before, .ct-custhist-warn::before, .ct-hub-strip-alert::before { background: var(--ct-st-follow_up); }
.ct-note-down::before { background: var(--ct-bad); border-radius: 1px; transform: rotate(45deg); }
.ct-custhist-warn { padding-inline-start: 0.6rem; }
.fi-section-header-heading, .fi-ta-header-heading, .ct-card-title, .ct-panel-title { font-size: var(--ct-text-xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); }

/* ---- type: titles step clearly above headings, headings above body */
.fi-header-heading { font-size: var(--ct-text-xl); }
.ct-custhead-name h2, .ct-callhead-who > a:first-of-type, .ct-ask-title, .ct-cal-nav strong, .ct-hub-hero-text h1, .ct-tour-card h2 { font-size: var(--ct-text-lg); }
.ct-callhead-number { font-size: var(--ct-text-lg); }
.fi-fo-field-label-content, .fi-in-entry-label, .fi-btn, .fi-tabs-item, .fi-sidebar-item-label, .fi-input, .fi-select-input, .fi-ta-text-item { font-size: var(--ct-text-sm); }
.fi-sidebar-item-btn .fi-sidebar-item-label { font-size: var(--ct-text-sm); }

/* ---- red is for the one main action on a screen and for where you are in the menu; everything else steps back */
.fi-tabs-item.fi-active { box-shadow: inset 0 -2px 0 var(--ct-fg); }
.fi-tabs-item.fi-active .fi-badge, .dark .fi-tabs-item.fi-active .fi-badge { background: var(--ct-fg) !important; color: var(--ct-surface) !important; }
.ct-figure strong, .dark .ct-figure strong { color: var(--ct-fg); }
/* what Filament calls "danger" under a figure or in a table is bad news here: --ct-bad, never its own red, which reads as the brand's */
.fi-wi-stats-overview-stat-description.fi-color-danger, .fi-wi-stats-overview-stat-description.fi-color-danger *, .fi-ta-text-item.fi-color-danger, .fi-color-danger.fi-ta-text-item * { color: var(--ct-bad) !important; }
/* ...and so is the small trend line under such a figure (Filament paints it in the colour of these two empty elements) */
.fi-wi-stats-overview-stat-chart.fi-color-danger .fi-wi-stats-overview-stat-chart-border-color { color: var(--ct-bad) !important; }
.fi-wi-stats-overview-stat-chart.fi-color-danger .fi-wi-stats-overview-stat-chart-bg-color { color: color-mix(in oklab, var(--ct-bad) 9%, transparent) !important; }
.ct-tour-card { border-top-color: var(--ct-line-strong); }
.ct-tour-dots span.is-on { background: var(--ct-fg); }
.ct-custcard a, .ct-callhead a { color: inherit; }
.fi-main .fi-input-wrp:focus-within { box-shadow: inset 0 0 0 1px var(--ct-fg-2), 0 0 0 3px color-mix(in oklab, var(--ct-fg) 9%, transparent); }
.ct-quicknote:focus-within { box-shadow: 0 0 0 1px var(--ct-fg-2), 0 0 0 4px color-mix(in oklab, var(--ct-fg) 9%, transparent), var(--ct-shadow-lift); }
.fi-body :is(a, button, [role="button"], [tabindex]):focus-visible { outline-color: var(--ct-fg-2); }
::selection { background: color-mix(in oklab, var(--ct-st-on_hold) 22%, transparent); }

/* ---- icons in one style: outline, the menu's grey, on a plain tile */
.ct-hub-card-icon, .ct-hub-heading-icon { color: var(--ct-fg-2); background: var(--ct-sunken); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-hub-card:hover .ct-hub-card-icon { color: var(--ct-fg); }
.ct-hub-heading-icon { width: 1.5rem; height: 1.5rem; }

/* ---- every list: text wraps inside its column rather than pushing the table off the screen; statuses are pills */
.fi-resource-list-records-page:not(.fi-resource-calls) .fi-ta-table { width: 100%; }
.fi-resource-list-records-page:not(.fi-resource-calls) .fi-ta-text-item { white-space: normal; overflow-wrap: anywhere; }
.fi-resource-list-records-page .fi-badge { border-radius: 999px; font-weight: 600; }

/* ---- every field the same height and every label the same size, in a page, a dialog or a filter bar */
.fi-body .fi-input, .fi-body .fi-select-input { padding-block: 0.3rem; font-size: var(--ct-text-sm); line-height: 1.5rem; }
.fi-body .fi-select-input.fi-async-component-content { padding-block: 0; }
.fi-body .fi-select-input.fi-async-component-content > div { min-height: 2.1rem; display: flex; align-items: center; }
.fi-body .fi-select-input.fi-async-component-content > div > * { flex: 1; min-width: 0; }
.fi-body .fi-fo-field { row-gap: 0.3rem; }
.fi-body .fi-fo-field-label-content { font-size: var(--ct-text-sm); font-weight: 500; color: var(--ct-fg-2); }
.fi-sidebar .fi-global-search-field .fi-input { padding-block: 0.4rem; }

/* ---- the menu's own lines (pin, recent) read like the items above them */
.ct-sidegroup-head button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.25rem 0.6rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); font-weight: 500; color: var(--ct-side-muted); letter-spacing: 0; text-transform: none; }
.ct-sidegroup-head button:hover { background: var(--ct-side-hover); color: var(--ct-side-fg-strong); }
.ct-sidegroup-head:has(button:only-child) { padding: 0; }
.ct-recent-btn { padding: 0.45rem 1.3rem; font-size: var(--ct-text-xs); }
.ct-recent-last { font-size: var(--ct-text-sm); }

/* ---- everything that pops open does it the same way: a short fade */
@keyframes ct-pop { from { opacity: 0; } to { opacity: 1; } }
.fi-dropdown-panel, .ct-hovercard, .ct-quick-pop, .ct-statuspick-pop, .ct-recent-list, .fi-global-search-results-ctn, .fi-modal-window, .fi-no-notification { animation: ct-pop var(--ct-pop) var(--ct-ease); }
@media (prefers-reduced-motion: reduce) { .fi-dropdown-panel, .ct-hovercard, .ct-quick-pop, .ct-statuspick-pop, .ct-recent-list, .fi-global-search-results-ctn, .fi-modal-window, .fi-no-notification { animation: none; } }

/* ---- phone: a call designed for a thumb */
@media (max-width: 640px) {
    /* one row of buttons that slides sideways, not two rows */
    .fi-resource-calls.fi-resource-view-record-page .fi-header .fi-ac, .fi-resource-calls.fi-resource-view-record-page .fi-page-header-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.2rem; }
    .fi-resource-calls.fi-resource-view-record-page .fi-header .fi-btn { flex: none; }
    /* the customer on a line of their own, the contact and address smaller beneath */
    .ct-callhead-who { white-space: normal; display: grid; gap: 0.1rem; }
    .ct-callhead-who > span { font-size: var(--ct-text-sm); }
    .ct-callhead-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; }
    /* anything tapped is at least a fingertip tall */
    .ct-more, .ct-jump a, .ct-callhead-nav a, .ct-callhead-nav span, .ct-statuspick-btn, .ct-opencalls-tab a, .ct-opencalls-list, .ct-files-name a, .ct-hub-chip, .ct-scope-tab, .fi-tabs-item { min-height: 2.75rem; display: inline-flex; align-items: center; }
    .ct-callhead-nav a, .ct-callhead-nav span { min-width: 2.75rem; justify-content: center; }
    .ct-quicknote { bottom: 0.5rem; }
    .ct-quicknote input { font-size: 1rem; min-height: 2.5rem; }
}

/* ---- a light menu, for people who find the dark one heavy (their choice, under their name; dark mode keeps the dark menu) */
html[data-ct-menu="light"]:not(.dark) {
    --ct-side-bg: #fbfbfc; --ct-side-top: #fdfdfe; --ct-side-bottom: #f6f6f8; --ct-side-line: #e6e6e9; --ct-side-fg: #55565c; --ct-side-fg-strong: #111113;
    --ct-side-muted: #8b8c93; --ct-side-hover: #f0f0f3; --ct-side-active: #e8e8ec; --ct-side-field: #ffffff;
}
html[data-ct-menu="light"]:not(.dark) .fi-sidebar.fi-main-sidebar { border-inline-end: 1px solid var(--ct-line); }
html[data-ct-menu="light"]:not(.dark) .ct-kbd { background: var(--ct-side-active); box-shadow: none; color: var(--ct-side-fg); }
html[data-ct-menu="light"]:not(.dark) .ct-recent-list { box-shadow: 0 0 0 1px var(--ct-line), var(--ct-shadow-lift); }
html[data-ct-menu="light"]:not(.dark) .ct-signin-side { --ct-side-fg-strong: #ffffff; --ct-side-fg: #b9bac1; --ct-side-muted: #72737b; --ct-side-top: #141518; --ct-side-bottom: #0c0d0f; }

/* ---- two panes: the list on the left, the chosen call on the right (the "Split view" switch on the call list) */
.ct-split-pane { display: none; }
@media (min-width: 1100px) {
    /* the whole page, its title and buttons included, gives the pane its room */
    .fi-resource-calls.fi-resource-list-records-page:has(.ct-split-pane) { margin-right: calc((100vw - 17rem) * 0.38); }
    .fi-resource-calls.fi-resource-list-records-page:has(.ct-split-pane) .fi-header { flex-wrap: wrap; row-gap: var(--ct-gap-1); }
    .ct-split-pane { display: flex; flex-direction: column; position: fixed; top: 3.2rem; right: clamp(1rem, 2.4vw, 2.25rem); bottom: 0.9rem; width: calc((100vw - 17rem) * 0.38 - 1rem); z-index: 14; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow); overflow: hidden; }
    .ct-split-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.9rem; box-shadow: inset 0 -1px 0 var(--ct-line); }
    .ct-split-head strong { font-family: var(--ct-mono); font-size: var(--ct-text-lg); }
    .ct-split-head span { display: inline-flex; gap: 0.4rem; }
    .ct-split-body { flex: 1; overflow-y: auto; padding: 0.8rem 0.9rem; }
    .ct-split-empty { margin: auto; padding: 2rem; text-align: center; color: var(--ct-fg-3); font-size: var(--ct-text-sm); }
    /* with half the width, the list keeps the columns a person scans by; the rest are in the pane */
    .fi-resource-calls.fi-resource-list-records-page:has(.ct-split-pane) :is(.fi-ta-header-cell, .fi-ta-cell):is([class*="-updated-at"], [class*="-model-summary"], [class*="-opened-by"], [class*="-dept-group"], [class*="-contact"], [class*="company.parent"], [class*="-standard-offering"], [class*="-due-on"]) { display: none; }
    .fi-resource-calls.fi-resource-list-records-page:has(.ct-split-pane) .fi-ta-header-cell-status { width: 6.2rem; }
    .fi-resource-calls.fi-resource-list-records-page:has(.ct-split-pane) .fi-ta-header-cell-id { width: 4.2rem; }
    .fi-resource-calls.fi-resource-list-records-page:has(.ct-split-pane) .fi-ta-header-cell-opened-on { width: 5.2rem; }
    .fi-resource-calls.fi-resource-list-records-page:has(.ct-split-pane) .fi-ta-header-cell-assigned-to\.name { width: 6.5rem; }
    .fi-resource-calls.fi-resource-list-records-page:has(.ct-split-pane) .fi-ta-selection-cell { width: 2rem; }
    .fi-resource-calls.fi-resource-list-records-page:has(.ct-split-pane) .fi-ta-header-cell-company\.name { width: auto; }
    .fi-ta-row.ct-row-chosen { background: var(--ct-hover) !important; box-shadow: inset 3px 0 0 var(--ct-fg); }
}
.fi-ta-actions .ct-choose-action, .fi-ta-actions :has(> .ct-choose-action) { display: none; }

.fi-section.ct-filterbar:not(.fi-section-not-contained) > .fi-section-header, .fi-main form .fi-section.ct-filterbar:not(.fi-section-not-contained) > .fi-section-header { padding: 0.55rem 1.1rem 0.6rem; }

/* ================================================================================ edit page (owner's screenshot) and small additions */
/* the one-click sentences sit on one line that slides sideways, instead of stacking into five rows */
.ct-templates, .ct-templates .fi-fo-toggle-buttons, .fi-fo-toggle-buttons.ct-templates { display: flex; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 0.3rem; }
.ct-templates > *, .ct-templates .fi-fo-toggle-buttons > * { flex: none; }
/* Save and Cancel are a small pill at the foot of the window, on the right: nothing is hidden under a full-width bar */
.fi-sticky .fi-ac { width: auto !important; left: auto !important; right: clamp(1rem, 2.4vw, 2.25rem); margin: 0 !important; padding: 0.4rem 0.5rem; border-radius: 999px; }
.fi-resource-calls.fi-resource-edit-record-page .fi-main, .fi-resource-calls.fi-resource-create-record-page .fi-main { padding-bottom: 4.5rem; }
/* a chosen contact stays on one line, cut with "…": the card under it has the details */
.fi-main .fi-select-input-value-ctn, .fi-main .fi-select-input-value-label, .fi-main .fi-select-input-btn > span:first-child { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* "Change" beside a fact in the call's head */
.ct-fact-edit { margin-left: 0.35rem; font-size: var(--ct-text-2xs); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ct-fg-3); text-decoration: underline; text-underline-offset: 2px; }
.ct-fact-edit:hover { color: var(--ct-fg); }
@media print { .ct-fact-edit { display: none; } }
/* saved views beside "whose calls" */
.ct-scope { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ct-gap-1); }
.ct-scope > .ct-hub-strip { flex-basis: 100%; }
.ct-viewtab { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ct-line-strong); background: var(--ct-surface); font-size: var(--ct-text-sm); }
.ct-viewtab button:first-child { padding: 0.25rem 0.2rem 0.25rem 0.75rem; font-weight: 550; color: var(--ct-fg-2); }
.ct-viewtab button:first-child:hover { color: var(--ct-fg); }
.ct-viewtab button:last-child { padding: 0.25rem 0.6rem 0.25rem 0.3rem; color: var(--ct-fg-3); }
.ct-viewtab button:last-child:hover { color: var(--ct-fg); }
/* a call that changed since you last opened it: a dot before its number; the row the keyboard is on: a dark edge */
.fi-ta-row.ct-row-changed .fi-ta-cell-id .fi-ta-text-item::before { content: ''; display: inline-block; width: 0.42rem; height: 0.42rem; border-radius: 999px; margin-right: 0.3rem; vertical-align: 0.1em; background: var(--ct-st-on_hold); }
.fi-ta-row.ct-row-selected { background: var(--ct-hover) !important; box-shadow: inset 3px 0 0 var(--ct-fg); }
/* the bell's list: quieter rows, read ones stepped back */
.fi-no-database .fi-no-notification { animation: none; box-shadow: none !important; border-radius: 0 !important; border-bottom: 1px solid var(--ct-line); }
.fi-no-database .fi-no-notification-title { font-size: var(--ct-text-sm); font-weight: 600; }
.fi-no-database .fi-no-notification-body { font-size: var(--ct-text-sm); color: var(--ct-fg-2); white-space: pre-line; }
.fi-no-database .fi-no-notification-date { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }

/* dark mode: the little trend line under a figure sat on a white band */
.dark .fi-wi-stats-overview-stat-chart, .dark .fi-wi-stats-overview-stat-chart canvas { background: transparent !important; }
.dark .fi-wi-stats-overview-stat-chart { opacity: 0.85; mix-blend-mode: screen; }

/* ================================================================================ change a field where it is shown; the bell's list by day */
.ct-inplace { cursor: pointer; border-radius: var(--ct-radius-sm); padding: 0.05rem 0.3rem; margin: 0.05rem -0.3rem 0; text-align: left; }
.ct-inplace:hover, .ct-inplace-entry:hover { background: var(--ct-hover); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-inplace-entry { cursor: pointer; border-radius: var(--ct-radius-sm); padding: 0.1rem 0.35rem; margin: -0.1rem -0.35rem; }
.ct-inplace-entry:hover::after, .ct-inplace:hover::after { content: '✎'; margin-left: 0.4rem; font-size: 0.75em; color: var(--ct-fg-3); }
@media print { .ct-inplace:hover::after, .ct-inplace-entry:hover::after { content: none; } }
.ct-bell-day { padding: 0.55rem 1.5rem 0.3rem; font-size: var(--ct-text-xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-fg-3); background: var(--ct-canvas); }
.fi-no-notification-unread-ctn { box-shadow: inset 3px 0 0 var(--ct-st-on_hold); }
.fi-no-notification-read-ctn { opacity: 0.72; }

/* ================================================================================ calendar bars; home toolbar; dashboards on a phone; sign-in photo */
.ct-cal-event.is-from { margin-left: calc(-0.35rem - 1px); width: calc(100% + 0.35rem + 1px); border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: none; }
.ct-cal-event.is-on { margin-right: calc(-0.35rem - 1px); width: calc(100% + 0.35rem + 1px); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ct-cal-event.is-from.is-on { width: calc(100% + 0.7rem + 2px); }
.ct-cal-event[draggable="true"] { cursor: grab; }
.ct-cal-day { position: relative; }
/* home: search and the category chips share one line, so the tools start higher */
.ct-hub-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ct-gap-1) var(--ct-gap-2); padding-block: 0.4rem; }
.ct-hub-toolbar > .ct-hub-search { flex: 0 1 20rem; height: 2.1rem; }
.ct-hub-toolbar > :not(.ct-hub-search) { flex: 1 1 24rem; min-width: 0; }
/* dashboards on a phone: figures two to a row, charts and tables the full width */
@media (max-width: 640px) {
    .fi-wi-stats-overview-stats-ctn, .fi-wi-stats-overview .fi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: var(--ct-gap-1); }
    .fi-wi-stats-overview-stat { padding: 0.6rem 0.7rem; }
    .fi-wi-stats-overview-stat-value { font-size: 1.25rem; }
    .fi-page:has(.fi-page-sub-navigation-tabs) .fi-wi > *, .fi-page:has(.fi-page-sub-navigation-tabs) .fi-wi .fi-grid-col { grid-column: 1 / -1 !important; }
    .fi-header .fi-ac { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .fi-header .fi-ac .fi-btn { flex: none; }
}
@media (min-width: 1024px) {
    /* sized and placed to stand clear of the headline and the three lines beside it */
    .ct-signin-photo { position: absolute; right: 1.5rem; bottom: 5.5rem; height: min(34vh, 17rem); width: auto; filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.55)); z-index: 0; }
    .ct-signin-side-top, .ct-signin-side-mid { position: relative; z-index: 1; }
    .ct-signin-side ul { max-width: 20rem; }
    @media (max-width: 1200px) { .ct-signin-photo { display: none; } }
    .ct-signin-wave { opacity: 0.14; }
}

/* sign-in: the mark and name on the dark half */
.ct-signin-side-top .ct-brand { color: #fff; gap: 0.8rem; }
.ct-signin-side-top .ct-brand-mark { width: 2.6rem; height: 2.6rem; }
.ct-signin-side-top .ct-brand-name { font-size: 1.25rem; }
.ct-signin-side-top .ct-brand-sub { font-size: 0.68rem; }

/* home banner: the mark and name straight on the dark band, no white box */
.ct-hub-logo.ct-hub-logo-mark { background: none; padding: 0 0.9rem 0 0; margin-right: 0.2rem; border-right: 1px solid var(--ct-side-line); border-radius: 0; }
.ct-hub-logo-mark .ct-brand { color: #fff; gap: 0.65rem; }
.ct-hub-logo-mark .ct-brand-mark { width: 2.1rem; height: 2.1rem; }
.ct-hub-logo-mark .ct-brand-name { font-size: 1rem; }

/* ================================================================================ help, team, quote board, duplicate warning, recent searches, list on paper */
.ct-help { display: grid; gap: var(--ct-gap-2); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .ct-help { grid-template-columns: 1fr; } }
.ct-help-how > div { padding: 0.55rem 0; border-top: 1px solid var(--ct-line); }
.ct-help-how > div:first-child { border-top: 0; }
.ct-help-how dt { font-weight: 600; font-size: var(--ct-text-sm); }
.ct-help-how dd { margin: 0.1rem 0 0; font-size: var(--ct-text-sm); color: var(--ct-fg-2); line-height: 1.5; max-width: 75ch; }
.ct-help-keys > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.6rem; padding: 0.3rem 0; font-size: var(--ct-text-sm); align-items: center; }
.ct-help-keys dd { margin: 0; color: var(--ct-fg-2); }
.ct-help .ct-kbd { background: var(--ct-sunken); color: var(--ct-fg); box-shadow: inset 0 0 0 1px var(--ct-line-strong); font-size: var(--ct-text-xs); padding: 0.2rem 0.4rem; }
.ct-team td, .ct-team th { vertical-align: middle; }
.ct-team a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--ct-line-strong); }
.ct-team a.ct-team-warn { color: var(--ct-st-follow_up); }
.ct-team-bar { width: 30%; }
.ct-team-bar span { display: block; height: 0.5rem; min-width: 2px; border-radius: 999px; background: var(--ct-st-on_hold); opacity: 0.75; }
.ct-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ct-gap-2); align-items: start; }
@media (max-width: 1000px) { .ct-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ct-kanban { grid-template-columns: 1fr; } }
.ct-kanban-col { display: grid; gap: 0.45rem; padding: 0.6rem; border-radius: var(--ct-radius); background: var(--ct-sunken); box-shadow: inset 0 0 0 1px var(--ct-line); min-height: 8rem; align-content: start; }
.ct-kanban-col.is-over { box-shadow: inset 0 0 0 2px var(--ct-fg-2); }
.ct-kanban-col header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding: 0.1rem 0.25rem 0.2rem; font-size: var(--ct-text-sm); }
.ct-kanban-col header span { font-size: var(--ct-text-xs); color: var(--ct-fg-3); font-variant-numeric: tabular-nums; }
.ct-kanban-card { display: grid; gap: 0.1rem; padding: 0.5rem 0.65rem; border-radius: var(--ct-radius-sm); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line), 0 1px 2px rgb(17 17 19 / 0.05); }
.ct-kanban-card[draggable="true"] { cursor: grab; }
.ct-kanban-card:hover { box-shadow: inset 0 0 0 1px var(--ct-line-strong), var(--ct-shadow); }
.ct-kanban-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: var(--ct-text-sm); }
.ct-kanban-top em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-kanban-who { font-size: var(--ct-text-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-kanban-meta { font-size: var(--ct-text-xs); color: var(--ct-fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-dupwarn { padding: 0.55rem 0.75rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); background: color-mix(in oklab, var(--ct-st-follow_up) 10%, var(--ct-surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ct-st-follow_up) 40%, var(--ct-line)); display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; align-items: baseline; }
.ct-dupwarn a { text-decoration: underline; text-underline-offset: 2px; }
.ct-viewtab-star { padding: 0.25rem 0 0.25rem 0.6rem; color: var(--ct-fg-3); font-size: var(--ct-text-sm); }
.ct-viewtab-star.is-on { color: var(--ct-st-follow_up); }
.ct-viewtab .ct-viewtab-star + button { padding-left: 0.3rem; }
.fi-global-search-field { position: relative; }
.ct-recent-searches { position: fixed; z-index: 60; display: grid; gap: 0.05rem; padding: 0.35rem; border-radius: var(--ct-radius); background: var(--ct-side-field, #18191c); box-shadow: 0 0 0 1px var(--ct-side-line, #1e1f23), 0 12px 30px -8px rgb(0 0 0 / 0.5); animation: ct-pop var(--ct-pop) var(--ct-ease); }
.ct-recent-searches b { padding: 0.15rem 0.5rem 0.25rem; font-size: var(--ct-text-xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 650; color: var(--ct-side-muted); }
.ct-recent-searches button { text-align: left; padding: 0.3rem 0.5rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); color: var(--ct-side-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-recent-searches button:hover { background: var(--ct-side-hover); color: var(--ct-side-fg-strong); }
/* a list on paper: the table and its title, nothing else */
@media print {
    .fi-resource-list-records-page .fi-header .fi-ac, .fi-resource-list-records-page .fi-ta-header-toolbar, .fi-resource-list-records-page .fi-pagination, .fi-resource-list-records-page .ct-quick, .fi-resource-list-records-page .ct-viewtab,
    .fi-resource-list-records-page .fi-ta-selection-cell, .fi-resource-list-records-page .fi-ta-cell:has(> .fi-ta-actions), .fi-resource-list-records-page .fi-ta-actions-header-cell, .ct-split-pane, .ct-colgrip, .ct-hovercard { display: none !important; }
    .fi-resource-list-records-page { margin: 0 !important; }
    .fi-resource-list-records-page .fi-ta-ctn { box-shadow: none !important; border-radius: 0; }
    .fi-resource-list-records-page thead th { position: static !important; }
    .fi-resource-list-records-page .fi-ta-row { break-inside: avoid; }
    .fi-resource-list-records-page .fi-tabs-item:not(.fi-active), .fi-resource-list-records-page .ct-scope-tab:not(.is-on) { display: none; }
}

/* menus open above everything on the page; the call's head no longer needs to sit on top (it does not stick any more) */
.fi-dropdown-panel { z-index: 45; }
.ct-callhead { z-index: 1; }

/* ================================================================================ working together on calls: checklist, related calls, time, customer note, key account, customer map */
.ct-chip-key { color: var(--ct-fg); background: transparent; box-shadow: inset 0 0 0 1px var(--ct-st-follow_up); }
.ct-pinned { display: grid; gap: 0.15rem; padding: 0.6rem 0.9rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 3px 0 0 var(--ct-st-follow_up), inset 0 0 0 1px var(--ct-line); font-size: var(--ct-text-sm); color: var(--ct-fg); white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-pinned-in { margin-top: 0; background: var(--ct-surface); }
.ct-checklist { display: grid; gap: 0.3rem; }
.ct-checklist-count { height: 0.3rem; border-radius: 999px; background: var(--ct-sunken); overflow: hidden; }
.ct-checklist-count span { display: block; height: 100%; border-radius: 999px; background: var(--ct-st-active); transition: width var(--ct-fast) var(--ct-ease); }
.ct-checklist-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; align-items: start; padding: 0.3rem 0.35rem; margin-inline: -0.35rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); color: var(--ct-fg); cursor: pointer; }
.ct-checklist-item:hover { background: var(--ct-hover); }
.ct-checklist-item input { margin-top: 0.15rem; width: 1rem; height: 1rem; accent-color: var(--ct-st-active); cursor: inherit; }
.ct-checklist-item.is-done > span { color: var(--ct-fg-3); }
.ct-checklist-item small { display: block; font-size: var(--ct-text-2xs); color: var(--ct-fg-3); }
.ct-related-row .ct-files-name { display: flex; align-items: center; gap: 0.4rem; }
.ct-related-unlink { margin-inline-start: auto; width: 1.3rem; height: 1.3rem; border-radius: var(--ct-radius-sm); color: var(--ct-fg-3); line-height: 1; opacity: 0; }
.ct-related-row:hover .ct-related-unlink, .ct-related-unlink:focus-visible { opacity: 1; }
.ct-related-unlink:hover { background: var(--ct-hover); color: var(--ct-fg); }
@media (hover: none) { .ct-related-unlink { opacity: 1; } }
.ct-time-total { font-size: var(--ct-text-sm); color: var(--ct-fg-2); margin-bottom: 0.3rem; }
.ct-time-total strong { font-size: var(--ct-text-lg); font-weight: 650; color: var(--ct-fg); font-variant-numeric: tabular-nums; }
.ct-map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ct-gap-1); font-size: var(--ct-text-sm); }
.ct-map-switch { display: inline-flex; padding: 2px; border-radius: var(--ct-radius); background: var(--ct-sunken); }
.ct-map-switch button { padding: 0.3rem 0.8rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); font-weight: 550; color: var(--ct-fg-2); }
.ct-map-switch button.is-on { background: var(--ct-surface); color: var(--ct-fg); box-shadow: 0 0 0 1px var(--ct-line); }
.ct-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: var(--ct-gap-2); align-items: start; }
@media (max-width: 900px) { .ct-map-layout { grid-template-columns: minmax(0, 1fr); } }
.ct-map { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; max-width: 46rem; margin-inline: auto; transition: opacity var(--ct-fast) var(--ct-ease); }
.ct-map.is-loading { opacity: 0.5; }
.ct-map-tile { position: relative; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; border-radius: var(--ct-radius-sm); background: var(--ct-sunken); line-height: 1.1; overflow: hidden; }
.ct-map-tile:not(.is-empty):hover { box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-map-tile.is-picked { box-shadow: inset 0 0 0 2px var(--ct-fg); }
.ct-map-tile.is-empty { cursor: default; }
.ct-map-tile.is-empty .ct-map-code { color: var(--ct-fg-3); font-weight: 500; }
.ct-map-dot { position: absolute; inset: 0; margin: auto; border-radius: 999px; background: color-mix(in oklab, var(--ct-st-on_hold) 30%, transparent); }
.ct-map-code { position: relative; font-size: var(--ct-text-xs); font-weight: 650; color: var(--ct-fg); }
.ct-map-n { position: relative; font-size: var(--ct-text-2xs); color: var(--ct-fg-2); font-variant-numeric: tabular-nums; }
.ct-map-else { margin-inline-start: 0.5rem; color: var(--ct-fg-2); }
.ct-map-else:hover { color: var(--ct-fg); text-decoration: underline; }
.ct-map-side h4 { margin-top: var(--ct-gap-1); }
.ct-map-list { display: grid; margin: 0.3rem 0 0; padding: 0; list-style: none; font-size: var(--ct-text-sm); }
.ct-map-list li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.3rem 0; border-top: 1px solid var(--ct-line); }
.ct-map-list li:first-child { border-top: 0; }
.ct-map-list li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.ct-map-list :is(a, button):hover { text-decoration: underline; }
.ct-map-list strong { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .ct-map { gap: 2px; } .ct-map-n { display: none; } .ct-map-code { font-size: var(--ct-text-2xs); } }
@media print { .ct-pinned { box-shadow: none; border: 1px solid #999; } }
.ct-custhead + .ct-pinned { margin-top: var(--ct-gap-1); }
.ct-custhead .ct-callhead-facts { flex: 1 1 24rem; flex-wrap: wrap; justify-content: flex-end; row-gap: 0.6rem; }

/* ================================================================================ who can open what */
.ct-access-scroll { overflow-x: auto; }
.ct-access-table { font-size: var(--ct-text-sm); }
.ct-access-table th.ct-access-col { height: 10.5rem; padding: 0 0.15rem 0.4rem; vertical-align: bottom; text-align: center; }
.ct-access-table th.ct-access-col span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 10rem; overflow: hidden; text-overflow: ellipsis; }
.ct-access-table td:first-child { white-space: nowrap; font-weight: 550; }
.ct-access-table td:first-child a:hover { text-decoration: underline; }
.ct-access-cell { text-align: center; padding-inline: 0.15rem !important; }
.ct-access-mark { display: inline-grid; place-content: center; width: 1.35rem; height: 1.35rem; border-radius: 999px; color: var(--ct-fg-3); line-height: 1; }
.ct-access-mark.is-on { color: var(--ct-st-active); font-weight: 700; }
.ct-access-mark.is-changed { box-shadow: inset 0 0 0 1.5px var(--ct-st-follow_up); }
.ct-access-mark.is-temp { color: var(--ct-st-on_hold); }
@media print { .ct-access-scroll { overflow: visible; } .ct-access-table { font-size: 8pt; } .ct-access-mark.is-changed { box-shadow: inset 0 0 0 1px #000; } }

/* ================================================================================ good answers, why quotes are lost, automation */
.ct-answers { display: grid; gap: 0.35rem; padding: 0.7rem 0.9rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 3px 0 0 var(--ct-st-active), inset 0 0 0 1px var(--ct-line); }
.ct-answers-row { display: grid; gap: 0.1rem; padding: 0.35rem 0.4rem; margin-inline: -0.4rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); color: var(--ct-fg); }
.ct-answers-row:hover { background: var(--ct-hover); }
.ct-answers-row strong { font-weight: 600; }
.ct-answers-text { color: var(--ct-fg-2); overflow-wrap: anywhere; }
.ct-lost { margin-top: var(--ct-gap-2); display: grid; gap: 0.35rem; }
.ct-lost-row { display: grid; grid-template-columns: minmax(8rem, 16rem) minmax(4rem, 1fr) 3rem minmax(5rem, 9rem); gap: 0.75rem; align-items: center; font-size: var(--ct-text-sm); }
.ct-lost-row .ct-team-bar { width: auto; }
.ct-lost-row strong { text-align: end; font-variant-numeric: tabular-nums; }
.ct-automation { display: grid; gap: var(--ct-gap-2); max-width: 56rem; }
/* "E-mail and background work": on a phone the names in the first column break between words, never inside one */
.ct-automation .ct-board-table td:first-child { overflow-wrap: normal; }

/* ================================================================================ quote lines, parts, RMA board */
.ct-lines .ct-board-table tfoot td { border-top: 1px solid var(--ct-line-strong); padding-top: 0.5rem; }
.ct-lines-foot { display: flex; gap: 1rem; margin-top: 0.5rem; }
.ct-lines-foot .ct-more { margin: 0; }
.ct-kanban.ct-kanban-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1050px) { .ct-kanban.ct-kanban-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ct-kanban-6 .ct-kanban-col { padding: 0.45rem; }
.ct-kanban-6 .ct-kanban-meta { display: none; }
@media (max-width: 700px) { .ct-kanban.ct-kanban-6 { grid-template-columns: 1fr; } }

/* ================================================================================ goals, customer scorecard */
.ct-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--ct-gap-1); margin-bottom: var(--ct-gap-2); }
.ct-goal { display: grid; gap: 0.3rem; padding: 0.65rem 0.85rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); }
.ct-goal-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.ct-goal-period { font-size: var(--ct-text-2xs); color: var(--ct-fg-3); white-space: nowrap; }
.ct-goal-fig { display: flex; align-items: baseline; gap: 0.5rem; }
.ct-goal-fig strong { font-size: var(--ct-text-xl); font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ct-fg); }
.ct-goal-fig span { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-goal-bar { height: 0.3rem; border-radius: 999px; background: var(--ct-sunken); overflow: hidden; }
.ct-goal-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ct-st-follow_up); }
.ct-goal.is-met .ct-goal-bar span { background: var(--ct-st-active); }
.ct-score { display: grid; gap: var(--ct-gap-2); }
.ct-score-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--ct-gap-1); }
.ct-score-tile { display: grid; gap: 0.1rem; padding: 0.6rem 0.8rem; border-radius: var(--ct-radius-sm); background: var(--ct-sunken); }
.ct-score-tile strong { font-size: var(--ct-text-lg); font-weight: 650; color: var(--ct-fg); font-variant-numeric: tabular-nums; }
.ct-score-tile span { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-score-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--ct-gap-2); }
.ct-score-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.6rem; height: 7.5rem; margin-top: 0.4rem; }
.ct-score-bars > div { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: end; gap: 0.2rem; min-height: 0; }
.ct-score-bar { width: 70%; min-height: 2px; border-radius: var(--ct-radius-sm) var(--ct-radius-sm) 0 0; background: color-mix(in oklab, var(--ct-st-on_hold) 55%, transparent); align-self: end; }
.ct-score-n { font-size: var(--ct-text-2xs); color: var(--ct-fg-2); font-variant-numeric: tabular-nums; }
.ct-score-y { font-size: var(--ct-text-2xs); color: var(--ct-fg-3); }

/* ================================================================================ call board, home feed, quick call */
.ct-board-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ct-gap-1) var(--ct-gap-2); }
.ct-board-bar .ct-more { margin: 0 0 0 auto; }
.ct-kanban.ct-kanban-wide { grid-template-columns: repeat(var(--ct-cols, 4), minmax(11rem, 1fr)); overflow-x: auto; }
.ct-kanban-late { color: var(--ct-st-follow_up); font-style: normal; }
.ct-feed { display: grid; gap: 0.1rem; margin-top: var(--ct-gap-2); }
.ct-feed-row { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: baseline; padding: 0.35rem 0.5rem; margin-inline: -0.5rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-feed-row:hover { background: var(--ct-hover); }
.ct-feed-row.is-new { box-shadow: inset 2px 0 0 var(--ct-st-follow_up); color: var(--ct-fg); }
.ct-feed-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-feed-text strong { font-weight: 600; color: var(--ct-fg); }
.ct-feed-text em { font-style: normal; color: var(--ct-fg-3); }
.ct-feed-when { font-size: var(--ct-text-xs); color: var(--ct-fg-3); white-space: nowrap; }
.ct-quickcall { display: grid; gap: var(--ct-gap-2); max-width: 34rem; }
@media (max-width: 560px) { .ct-feed-row { grid-template-columns: 3.2rem minmax(0, 1fr); } .ct-feed-when { display: none; } .ct-feed-text { white-space: normal; } }

/* ================================================================================ custom fields, bulk import */
.ct-custom { display: grid; gap: 0.35rem; margin: 0; font-size: var(--ct-text-sm); }
.ct-custom > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; }
.ct-custom dt { color: var(--ct-fg-3); }
.ct-custom dd { margin: 0; color: var(--ct-fg); overflow-wrap: anywhere; white-space: pre-wrap; }
.ct-import { display: grid; gap: var(--ct-gap-1); }
.ct-import-box { width: 100%; border-radius: var(--ct-radius-sm); border: 0; box-shadow: inset 0 0 0 1px var(--ct-line-strong); background: var(--ct-surface); color: var(--ct-fg); font-family: var(--ct-mono); font-size: var(--ct-text-xs); padding: 0.6rem 0.75rem; white-space: pre; overflow: auto; }
.ct-import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.ct-import-actions .ct-more { margin: 0; cursor: pointer; }

/* ================================================================================ customer-visible updates, tags, chat */
.ct-entry-share { margin-inline-start: auto; font-size: var(--ct-text-2xs); color: var(--ct-fg-3); border-radius: var(--ct-radius-sm); padding: 0 0.35rem; opacity: 0; }
.ct-entry:hover .ct-entry-share, .ct-entry-share:focus-visible { opacity: 1; }
.ct-entry-share:hover { color: var(--ct-fg); background: var(--ct-hover); }
@media (hover: none) { .ct-entry-share { opacity: 1; } }
.ct-tag { font-family: var(--ct-mono); font-weight: 500; }
.ct-tag:hover { color: var(--ct-fg); }
.ct-chat { display: grid; gap: 0.5rem; }
.ct-chat-list { display: grid; gap: 0.4rem; max-height: 16rem; overflow-y: auto; scrollbar-width: thin; }
.ct-chat-msg { display: grid; gap: 0.05rem; padding: 0.35rem 0.55rem; border-radius: var(--ct-radius-sm); background: var(--ct-sunken); font-size: var(--ct-text-sm); justify-self: start; max-width: 92%; }
.ct-chat-msg.is-mine { justify-self: end; background: color-mix(in oklab, var(--ct-st-on_hold) 12%, var(--ct-surface)); }
.ct-chat-who { font-size: var(--ct-text-2xs); color: var(--ct-fg-3); }
.ct-chat-body { color: var(--ct-fg); overflow-wrap: anywhere; white-space: pre-wrap; }
.ct-chat-form { display: flex; gap: 0.4rem; align-items: center; }
.ct-chat-form input { flex: 1; min-width: 0; border: 0; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line-strong); background: var(--ct-surface); color: var(--ct-fg); font-size: var(--ct-text-sm); padding: 0.35rem 0.55rem; }
.ct-chat-form .ct-more { margin: 0; }

/* ================================================================================ quote revisions, account plan */
.ct-revisions { margin-top: 0.5rem; }
.ct-revisions summary { cursor: pointer; display: inline-block; list-style: none; margin: 0; }
.ct-revisions summary::-webkit-details-marker { display: none; }
.ct-plan { display: grid; gap: var(--ct-gap-1); }
.ct-plan-goals { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--ct-text-sm); color: var(--ct-fg); padding: 0.6rem 0.8rem; border-radius: var(--ct-radius-sm); background: var(--ct-sunken); }

/* ================================================================================ failure analysis, articles, complaint record */
.ct-fail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ct-gap-2); align-items: start; }
@media (max-width: 900px) { .ct-fail-grid { grid-template-columns: minmax(0, 1fr); } }
.ct-fail-grid .ct-lost { margin-top: 0; }
.ct-lost-row.ct-fail-row { grid-template-columns: minmax(6rem, 13rem) minmax(3rem, 1fr) 3rem; }
.ct-article { display: grid; gap: var(--ct-gap-1); font-size: var(--ct-text-md); color: var(--ct-fg); }
.ct-article-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.ct-article-pictures { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--ct-gap-1); }
.ct-article-pictures img { width: 100%; border-radius: var(--ct-radius-sm); box-shadow: 0 0 0 1px var(--ct-line); }
.ct-8d { display: grid; gap: 0.45rem; }
.ct-8d-step { display: grid; gap: 0.1rem; padding-left: 0.7rem; box-shadow: inset 2px 0 0 var(--ct-line); font-size: var(--ct-text-sm); }
.ct-8d-step.is-filled { box-shadow: inset 2px 0 0 var(--ct-st-active); }
.ct-8d-step div { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ct-fg); }

/* ================================================================================ data quality */
.ct-dq-open { text-align: start; }
.ct-dq-open:not(:disabled):hover strong { text-decoration: underline; }
.ct-dq-list { max-width: 44rem; margin-top: 0.5rem; }

/* ================================================================================ campaigns, drawing, dictation, mentions, what's new */
.ct-campaign-status { border: 0; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line-strong); background: var(--ct-surface); color: var(--ct-fg); font-size: var(--ct-text-sm); padding: 0.2rem 1.6rem 0.2rem 0.5rem; }
.ct-draw { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; background: color-mix(in oklab, #000 55%, transparent); }
.ct-draw-box { display: grid; gap: 0.6rem; max-width: min(56rem, 100%); max-height: 100%; padding: 0.9rem; border-radius: var(--ct-radius); background: var(--ct-surface); color: var(--ct-fg); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
.ct-draw-box canvas { max-width: 100%; max-height: 66vh; border-radius: var(--ct-radius-sm); box-shadow: 0 0 0 1px var(--ct-line-strong); background: #fff; touch-action: none; cursor: crosshair; }
.ct-draw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: var(--ct-text-sm); }
.ct-draw-bar .ct-draw-go { margin-inline-start: auto; padding: 0.35rem 0.9rem; border-radius: var(--ct-radius-sm); background: var(--ct-red); color: #fff; font-weight: 600; }
.ct-draw-bar button:not(.ct-draw-go) { padding: 0.3rem 0.7rem; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-dictate { flex: none; width: 2rem; height: 2rem; border-radius: 999px; color: var(--ct-fg-2); display: grid; place-content: center; }
.ct-dictate:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-dictate.is-on { color: var(--ct-surface); background: var(--ct-st-active); }
.ct-mention-list { position: fixed; z-index: 90; display: grid; min-width: 12rem; max-height: 14rem; overflow: auto; padding: 0.25rem; border-radius: var(--ct-radius-sm); background: var(--ct-surface); box-shadow: 0 0 0 1px var(--ct-line-strong), 0 8px 24px rgba(0, 0, 0, 0.18); font-size: var(--ct-text-sm); }
.ct-mention-list button { text-align: start; padding: 0.3rem 0.55rem; border-radius: var(--ct-radius-sm); color: var(--ct-fg); }
.ct-mention-list button.is-on, .ct-mention-list button:hover { background: var(--ct-hover); }
.ct-news { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; width: min(24rem, calc(100vw - 2rem)); display: grid; gap: 0.5rem; padding: 0.9rem 1rem; border-radius: var(--ct-radius); background: var(--ct-surface); color: var(--ct-fg); box-shadow: 0 0 0 1px var(--ct-line-strong), 0 10px 30px rgba(0, 0, 0, 0.18); font-size: var(--ct-text-sm); }
.ct-news ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: 0.2rem; color: var(--ct-fg-2); }
.ct-news-go { justify-self: end; padding: 0.3rem 0.8rem; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line-strong); font-weight: 600; }
.ct-calllink { text-decoration: underline; text-decoration-color: var(--ct-line-strong); text-underline-offset: 2px; }
.ct-calllink:hover { text-decoration-color: currentColor; }
@media print { .ct-news, .ct-draw { display: none; } }
.ct-quoted summary { cursor: pointer; display: inline-block; list-style: none; }
.ct-quoted summary::-webkit-details-marker { display: none; }
.ct-quoted .ct-body { margin-top: 0.35rem; padding-left: 0.7rem; box-shadow: inset 2px 0 0 var(--ct-line-strong); color: var(--ct-fg-2); }

/* ================================================================================ tabs, arrangement, history filters, list editing, menu search */
.ct-calltabs { display: flex; flex-wrap: wrap; gap: 0.2rem; align-items: center; margin-top: 0.9rem; padding: 0.2rem; border-radius: var(--ct-radius); background: var(--ct-sunken); }
.ct-calltabs button { padding: 0.3rem 0.75rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); font-weight: 550; color: var(--ct-fg-2); }
.ct-calltabs button:hover { color: var(--ct-fg); }
.ct-calltabs .ct-calltabs-arrange { margin-left: auto; font-weight: 450; }
.ct-arrange { position: absolute; z-index: 40; width: min(21rem, calc(100vw - 1rem)); padding: 0.9rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: 0 0 0 1px var(--ct-line-strong), var(--ct-shadow-lift); font-size: var(--ct-text-sm); color: var(--ct-fg); }
.ct-arrange p { margin: 0.15rem 0 0.6rem; color: var(--ct-fg-3); font-size: var(--ct-text-xs); }
.ct-arrange-list { max-height: 55vh; overflow-y: auto; }
.ct-arrange-row { display: flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0; }
.ct-arrange-row label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5rem; }
.ct-arrange-row label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-arrange-row button { width: 1.6rem; height: 1.6rem; border-radius: var(--ct-radius-sm); color: var(--ct-fg-2); }
.ct-arrange-row button:hover { background: var(--ct-hover); color: var(--ct-fg); }
.ct-arrange-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--ct-line); }

.ct-history-filter { display: inline-flex; gap: 0.1rem; padding: 0.12rem; border-radius: var(--ct-radius-sm); background: var(--ct-sunken); }
.ct-history-filter button { padding: 0.12rem 0.5rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-xs); color: var(--ct-fg-2); }
.ct-history-filter button.is-on { background: var(--ct-surface); color: var(--ct-fg); box-shadow: 0 0 0 1px var(--ct-line); }
.ct-timeline[data-show="note"] .ct-entry:not([data-kind="note"]),
.ct-timeline[data-show="change"] .ct-entry:not([data-kind="change"]),
.ct-timeline[data-show="file"] .ct-entry:not([data-kind="file"]) { display: none; }
.ct-newmark { padding: 0.05rem 0.4rem; border-radius: 99px; font-size: var(--ct-text-2xs); font-weight: 600; color: var(--ct-fg); background: var(--ct-sunken); box-shadow: 0 0 0 1px var(--ct-line-strong); }
.ct-entry-new { box-shadow: inset 2px 0 0 var(--ct-fg-2); }

/* The facts about the call stay beside the history while it scrolls. */
@media (min-width: 1280px) {
    .fi-resource-calls .fi-grid-col:has(> .fi-sc-component > .ct-props) { position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 5.5rem); overflow-y: auto; scrollbar-width: thin; }
}

.ct-cell-action { display: none !important; }
[data-ct-edit] { cursor: cell; }
/* The call number stays in sight when a wide list is scrolled sideways. */
/* Only where the list is a table (not the stacked cards of a phone). The cell is opaque so text does not show through
   while scrolling, and takes the row's own tint (stale, hovered, chosen) on top of the surface colour. */
@media (min-width: 768px) {
    .fi-resource-calls .fi-ta-table .fi-ta-cell-id, .fi-resource-calls .fi-ta-table .fi-ta-header-cell-id { position: sticky; left: 0; z-index: 1; background: var(--ct-surface); box-shadow: 1px 0 0 var(--ct-line); }
    .fi-resource-calls .fi-ta-table .fi-ta-row.ct-row-stale .fi-ta-cell-id { background: color-mix(in oklab, var(--ct-st-follow_up) 5%, var(--ct-surface)); }
    .fi-resource-calls .fi-ta-table .fi-ta-row:hover .fi-ta-cell-id, .fi-resource-calls .fi-ta-table .fi-ta-row.ct-row-selected .fi-ta-cell-id, .fi-resource-calls .fi-ta-table .fi-ta-row.ct-row-chosen .fi-ta-cell-id { background: var(--ct-hover); }
}

.ct-menusearch { width: 100%; margin: 0.1rem 0 0.2rem; padding: 0.35rem 0.6rem; border: 0; outline: 0; border-radius: var(--ct-radius-sm); background: var(--ct-side-field); box-shadow: inset 0 0 0 1px var(--ct-side-line); color: inherit; font-size: var(--ct-text-sm); }
.ct-menusearch::placeholder { color: var(--ct-fg-3); }
.ct-menu-miss { display: none !important; }
.ct-menu-filtering .fi-sidebar-group-items { display: flex !important; flex-direction: column; }
.ct-draft-back { box-shadow: inset 0 -2px 0 var(--ct-fg-3); }
@media print { .ct-calltabs, .ct-history-filter, .ct-menusearch { display: none !important; } }
/* "Group by" sits in the list's toolbar; the rule that tucks away the last row button must not take it too. */
.fi-resource-calls.fi-resource-list-records-page .fi-ta-header-toolbar .fi-ta-actions { justify-content: flex-start; }
.fi-resource-calls.fi-resource-list-records-page .fi-ta-header-toolbar .fi-ta-actions > .fi-ta-grouping-settings { display: flex !important; }
.fi-ta-grouping-settings-fields label { font-size: var(--ct-text-sm); color: var(--ct-fg-2); }

/* ================================================================================ customer health, morning summary */
/* Health is a prompt to look, never the brand's red: a green dot for good, an amber ring for watch, and for at risk
   a filled diamond and a heavier outline in the colour for bad (--ct-bad), as on the alert chips and the Predict cards. */
.ct-health { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: var(--ct-text-xs); font-weight: 600; color: var(--ct-fg); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-health::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 999px; flex: none; background: var(--ct-st-active); }
.ct-health-watch::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ct-st-follow_up); }
.ct-health-risk { box-shadow: inset 0 0 0 1.5px var(--ct-bad); }
.ct-health-risk::before { background: var(--ct-bad); border-radius: 1px; transform: rotate(45deg); }
.ct-health-quiet { color: var(--ct-fg-2); }
.ct-health-quiet::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ct-st-closed); }
.ct-health-why { margin: 0.5rem 0 0; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-morning .ct-score-tiles { margin-bottom: 0.4rem; }
a.ct-score-tile { text-decoration: none; transition: background-color var(--ct-fast) var(--ct-ease); }
a.ct-score-tile:hover { background: var(--ct-hover); }
.ct-score-tile small { font-size: var(--ct-text-xs); }
.ct-list-totals { margin: 0.6rem 0 0; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-list-totals strong { color: var(--ct-fg); font-variant-numeric: tabular-nums; }

/* ================================================================================ dashboards: shared widgets */
/* Rows of bars with their numbers, the count behind a figure, "How this is counted", "the first N of M". */
/* [widgets-css-start] */
/* ---- a ranked bar chart drawn as rows (resources/views/filament/boards/bars.blade.php, ChartKit::rows).
   The look is the one Failure analysis has, and the rows carry its classes (.ct-lost-row with a .ct-team-bar):
   the whole name, a bar, the number. Added here: the columns are as wide as their longest name and number
   (one grid for the list, shared by the rows), a fourth column holds the count behind a rate, a row can be a
   link, a bar says good, watch or bad, and on a phone the name gets a line of its own above its bar. */
.ct-bars { margin-top: 0.1rem; container-type: inline-size; }
.ct-bars-head { text-align: end; font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-fg-3); padding-bottom: 0.3rem; margin-bottom: 0.2rem; border-bottom: 1px solid var(--ct-line); }
.ct-bars-list { display: grid; grid-template-columns: fit-content(45%) minmax(3rem, 1fr) max-content; column-gap: 0.75rem; row-gap: 0.05rem; margin: 0 -0.4rem; padding: 0; list-style: none; }
.ct-bars-based .ct-bars-list { grid-template-columns: fit-content(40%) minmax(3rem, 1fr) max-content max-content; }
.ct-bars-list > li, .ct-lost-row.ct-bars-row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
.ct-lost-row.ct-bars-row { padding: 0.3rem 0.4rem; border-radius: var(--ct-radius-sm); color: var(--ct-fg); text-decoration: none; }
a.ct-bars-row { transition: background-color var(--ct-fast) var(--ct-ease); }
a.ct-bars-row:hover { background: var(--ct-hover); }
a.ct-bars-row:focus-visible { outline: 2px solid var(--ct-st-on_hold); outline-offset: -2px; }
.ct-bars-name { min-width: 0; line-height: 1.3; overflow-wrap: break-word; }
.ct-bars-row .ct-bars-track { position: relative; height: 0.5rem; border-radius: 999px; background: var(--ct-sunken); }
.ct-bars-row .ct-bars-fill { position: relative; height: 100%; }
.ct-bars-good .ct-bars-fill { background: var(--ct-st-active); }
.ct-bars-warn .ct-bars-fill { background: var(--ct-st-follow_up); }
.ct-bars-down .ct-bars-fill { background: var(--ct-bad); }
.ct-bars-row strong { font-weight: 600; white-space: nowrap; }
.ct-bars-base { font-size: var(--ct-text-xs); color: var(--ct-fg-3); white-space: nowrap; text-align: end; font-variant-numeric: tabular-nums; }
/* A bar far longer than the rest is drawn to the end of the row with a break in it: it is longer than it looks.
   The break is the track's, laid over the bar, so the bar itself has the strength of every other bar. */
.ct-bars-track.ct-bars-cut::after { content: ''; position: absolute; top: -0.2rem; bottom: -0.2rem; inset-inline-end: 1rem; width: 0.7rem; background: linear-gradient(110deg, transparent 0 18%, var(--ct-surface) 18% 40%, transparent 40% 60%, var(--ct-surface) 60% 82%, transparent 82%); }
/* Values below zero: the bars grow left and right from a zero line. */
.ct-bars-signed .ct-bars-track::before { content: ''; position: absolute; top: -0.2rem; bottom: -0.2rem; inset-inline-start: var(--ct-bars-zero, 0%); width: 1px; background: var(--ct-line-strong); }
/* A browser without shared grid columns: columns of a set width (the view sends the length of the longest number). */
@supports not (grid-template-columns: subgrid) {
    .ct-bars-list { display: block; }
    .ct-bars-list > li { display: block; }
    .ct-lost-row.ct-bars-row { grid-template-columns: minmax(5rem, 38%) minmax(3rem, 1fr) var(--ct-bars-num, 3rem); }
    .ct-bars-based .ct-lost-row.ct-bars-row { grid-template-columns: minmax(5rem, 34%) minmax(3rem, 1fr) var(--ct-bars-num, 3rem) var(--ct-bars-base, 5rem); }
}
/* In a card too narrow for name, bar and number side by side, the name gets its own line above the bar, so neither
   is squeezed. Asked of the card itself (a chart can be a third of a wide page or the whole of a phone's); rows
   with the count behind a rate need the room sooner. A browser that cannot ask the card is asked for the screen. */
@container (max-width: 18rem) {
    .ct-bars-list { grid-template-columns: minmax(3rem, 1fr) max-content; }
    .ct-lost-row.ct-bars-row { row-gap: 0.25rem; padding-block: 0.45rem; }
    .ct-bars-name { grid-column: 1 / -1; }
}
@container (max-width: 25rem) {
    .ct-bars-based .ct-bars-list { grid-template-columns: minmax(3rem, 1fr) max-content max-content; }
    .ct-bars-based .ct-lost-row.ct-bars-row { row-gap: 0.25rem; padding-block: 0.45rem; }
    .ct-bars-based .ct-bars-name { grid-column: 1 / -1; }
}
@supports not (container-type: inline-size) {
    @media (max-width: 640px) {
        .ct-bars-list { grid-template-columns: minmax(3rem, 1fr) max-content; }
        .ct-bars-based .ct-bars-list { grid-template-columns: minmax(3rem, 1fr) max-content max-content; }
        .ct-lost-row.ct-bars-row { row-gap: 0.25rem; padding-block: 0.45rem; }
        .ct-bars-name { grid-column: 1 / -1; }
    }
}
/* "PNG" on a chart drawn as rows. The sales toolbar puts that button on every chart that has a canvas; rows carry
   their own (chart.blade.php), shown only where the toolbar is on the page, so the call dashboards stay as they are. */
.ct-bars-png { display: none; }
body:has(.ct-sales-chips) .ct-bars-png { display: inline-block; }
.fi-section-header-after-ctn:has(> .ct-bars-png) { align-self: flex-start; }
body:not(:has(.ct-sales-chips)) .fi-section-header-after-ctn:has(> .ct-bars-png) { display: none; }
/* Rows need no "fill the window" button, and neither does a sentence that says there is nothing to draw. */
.fi-wi-chart.ct-chart-rows .ct-chart-expand, .fi-wi-chart.ct-chart-empty .ct-chart-expand { display: none; }
.fi-wi-chart.ct-chart-empty .ct-board-empty { margin-top: 0; }

/* ---- "The first 12 of 57." under a chart, a table or a list that is cut */
.ct-cut { margin-top: 0.6rem; font-size: var(--ct-text-xs); line-height: 1.5; color: var(--ct-fg-3); }

/* ---- the count behind a figure ("from 252 of 2,933 quotes"), small under the value of a tile or a dial */
.ct-basis { display: block; margin-top: 0.3rem; font-size: var(--ct-text-xs); line-height: 1.35; font-weight: 450; letter-spacing: 0; color: var(--ct-fg-3); font-variant-numeric: tabular-nums; }

/* ---- how a tile's figure moved (BoardStats: 'trend' and 'against'; resources/views/filament/boards/trend.blade.php, against.blade.php).
   The small line shares the value's row, so it adds no height. It is grey, with the last point (today's figure) dark:
   the line says where the figure went, never whether that is good. Its first and last value open under it when the
   pointer is on the line, when the line has the keyboard's focus, and when a tile that is a link has it.
   The change sits where a tile's note sits and reads as one sentence: first the change, with an arrow for its
   direction and, when the direction means something, a word and a colour (green better, amber watch, the plum of
   --ct-bad worse; never the brand's red, never the colour alone); then in grey what it is set against. One
   sentence and not two blocks, so a row of five tiles is at most one line taller than it was (on a phone, two
   tiles to a row, a tile that had no note is two lines taller: the sentence needs them). */
.ct-valued { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ct-gap-1); }
.ct-trend { flex: 0 1 4.5rem; min-width: 2.5rem; height: 1.75rem; margin-bottom: 0.2rem; border-radius: var(--ct-radius-sm); cursor: default; }
.ct-trend > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ct-trend path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ct-trend-line { stroke: var(--ct-fg-3); stroke-width: 1.5px; }
.ct-trend-dot { stroke: var(--ct-fg-3); stroke-width: 3px; }
.ct-trend-end { stroke: var(--ct-fg); stroke-width: 5px; }
.ct-trend-ends { display: none; position: absolute; z-index: 30; top: calc(100% + 0.3rem); inset-inline: 0; padding: 0.45rem 0.6rem; border-radius: var(--ct-radius-sm); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong), var(--ct-shadow-lift);
    font-size: var(--ct-text-xs); line-height: 1.4; font-weight: 550; letter-spacing: 0; color: var(--ct-fg); font-variant-numeric: tabular-nums; }
.ct-trend-what { display: block; font-weight: 450; color: var(--ct-fg-2); }
.ct-trend:hover > .ct-trend-ends, .ct-trend:focus > .ct-trend-ends, a.fi-wi-stats-overview-stat:focus-visible .ct-trend-ends { display: block; }
/* The two values open over what follows, as "How this is counted" does: a tile that holds a line does not cut them off. */
.fi-wi-stats-overview-stat:has(.ct-trend) { overflow: visible; }
.fi-wi-stats-overview-stat-description:has(.ct-against) { display: block; }
.ct-against { display: block; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ct-against-change { white-space: nowrap; font-weight: 650; color: var(--ct-fg); }
/* What it is set against is read, not skimmed: the darker of the two greys (7:1 on the tile; the lighter one measures 3.4:1). */
.ct-against-words, .ct-against-note { color: var(--ct-fg-2); }
.ct-against-good .ct-against-change { color: color-mix(in oklab, var(--ct-st-active) 72%, var(--ct-fg)); }
.ct-against-warn .ct-against-change { color: color-mix(in oklab, var(--ct-st-follow_up) 72%, var(--ct-fg)); }
.ct-against-down .ct-against-change { color: var(--ct-bad); }
@media print { .ct-trend-ends { display: none !important; } }
/* On a phone the value is smaller than the line was high: the line is lowered to it, so the row is no taller for it. */
@media (max-width: 640px) { .ct-trend { flex-basis: 3.75rem; height: 1.2rem; margin-bottom: 0; } }

/* ---- "How this is counted" (resources/views/filament/boards/how.blade.php): a <details>, so a tap, a click and
   the keyboard all open it. At the foot of a panel it is a line of text and the sentence opens under it. On a tile
   or a dial (.ct-how-corner) it is an "i" in the corner and the sentence opens just under the card, over what
   follows, so the figure it explains stays in sight; on a phone it opens as a sheet along the bottom of the
   screen, where a tile is too narrow to hold it. */
.ct-how { margin-top: 0.6rem; font-size: var(--ct-text-xs); color: var(--ct-fg-2); }
.ct-how > summary { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.4rem; margin-inline-start: -0.4rem; border-radius: var(--ct-radius-sm); list-style: none; cursor: pointer; font-weight: 600; color: var(--ct-fg-3); transition: background-color var(--ct-fast) var(--ct-ease), color var(--ct-fast) var(--ct-ease); }
.ct-how > summary::-webkit-details-marker { display: none; }
.ct-how > summary:hover, .ct-how[open] > summary { background: var(--ct-hover); color: var(--ct-fg); }
.ct-how > summary:focus-visible { outline: 2px solid var(--ct-st-on_hold); outline-offset: 1px; }
.ct-how-mark { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; flex: none; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; font-family: var(--ct-mono); font-size: var(--ct-text-2xs); font-weight: 700; line-height: 1; }
.ct-how-text { margin-top: 0.35rem; max-width: 46rem; line-height: 1.5; font-weight: 450; letter-spacing: 0; text-transform: none; text-align: start; color: var(--ct-fg-2); }
.ct-stat, .ct-gauge { position: relative; }
.ct-stat { height: 100%; }
.ct-stat > .fi-wi-stats-overview-stat { height: 100%; }
.ct-stat .fi-wi-stats-overview-stat-label-ctn { padding-inline-end: 1.4rem; }
.ct-gauge:has(.ct-how-corner) > .ct-panel-title { padding-inline: 1.4rem; }
.ct-how-corner { margin: 0; }
.ct-how-corner > summary { position: absolute; z-index: 2; top: 0.3rem; inset-inline-end: 0.3rem; margin: 0; padding: 0.3rem; }
.ct-how-corner .ct-how-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ct-how-corner > .ct-how-text { position: absolute; z-index: 30; top: calc(100% + 0.25rem); inset-inline: 0; margin: 0; padding: 0.55rem 0.7rem; border-radius: var(--ct-radius-sm); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong), var(--ct-shadow-lift); }
@media (max-width: 640px) {
    /* The rule "figures two to a row" (dashboards on a phone, above) also split the frame around the tiles in two,
       so a row of tiles used only the left half of the screen. The frame is one column; the tiles inside it are two. */
    .fi-wi-stats-overview > .fi-grid { grid-template-columns: minmax(0, 1fr) !important; }
    /* A tile with a trend line: two to a row, the change under the value takes two lines, and the trend line
       (drawn along the foot of the tile) ran through the second. The foot is kept free for it. */
    .fi-wi-stats-overview-stat:has(.fi-wi-stats-overview-stat-chart) { padding-bottom: 1.75rem; }
    .ct-how > summary { min-height: 2.75rem; }
    .ct-how-corner > summary { top: 0; inset-inline-end: 0; min-width: 2.75rem; justify-content: center; }
    .ct-how-corner > .ct-how-text { position: fixed; top: auto; bottom: 0.75rem; inset-inline: 0.75rem; padding: 0.8rem 0.9rem; font-size: var(--ct-text-sm); }
}
@media print {
    .ct-how > summary { display: none; }
    .ct-how-corner > .ct-how-text { position: static; padding: 0; box-shadow: none; margin-top: 0.35rem; }
}
/* [widgets-css-end] */

/* ================================================================================ dashboards: the page frame */
/* The period and department switches, and "More" at the end of the tab row. */
/* [frame-css-start] */
/* The switches: the same segmented control as "whose calls" on the call list, a little smaller, each with its name before it. */
.ct-frame-switches { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ct-gap-1) 1.5rem; }
.ct-frame-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; min-width: 0; max-width: 100%; }
.ct-frame-switch-name { font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-fg-3); }
.ct-frame-switch .ct-scope-tab { min-width: 0; padding: 0.28rem 0.8rem; font-size: var(--ct-text-sm); }
.ct-frame-switch .ct-scope-tab:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 1px; }
/* a period or department that is not one of the positions: it is a position of its own at the end of the row, lit,
   with a cross that takes it away (a row with nothing lit read as switched off) */
.ct-frame-switch-own { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.ct-frame-switch-own > span[aria-hidden] { font-size: var(--ct-text-2xs); color: var(--ct-fg-3); }
.ct-frame-switch-own:hover > span[aria-hidden] { color: var(--ct-fg); }
/* under the title: first what the figures are counted for, then what the tab is about */
.ct-period-line { display: block; color: var(--ct-fg); font-weight: 550; }
.ct-period-about { display: block; }
/* phone: each switch fills the width, its positions side by side in equal parts (a long name takes two lines), nothing to scroll sideways */
@media (max-width: 640px) {
    .ct-frame-switches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
    .ct-frame-switch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
    .ct-frame-switch .ct-scope-tabs { display: grid; width: 100%; overflow: visible; }
    .ct-frame-switch .ct-frame-switch-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ct-frame-switch .ct-frame-switch-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ct-frame-switch .ct-frame-switch-own { grid-column: 1 / -1; }
    .ct-frame-switch .ct-scope-tab { justify-content: center; text-align: center; white-space: normal; line-height: 1.2; padding-inline: 0.3rem; font-size: var(--ct-text-xs); }
}

/* The folded filter bar says what is on beside its name, on one line, with room under it. (Filament puts the bar's class on a
   wrapper around the section, so the earlier rules written for ".fi-section.ct-filterbar" never took effect and the summary
   sat cut off against the bar's lower edge.) */
.ct-filterbar .fi-section:not(.fi-section-not-contained) > .fi-section-header { align-items: center; padding: 0.55rem 1.1rem 0.6rem; }
.ct-filterbar .fi-section-header-text-ctn { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.9rem; }
.ct-filterbar .fi-section-header-description { margin: 0; overflow: visible; font-size: var(--ct-text-sm); line-height: 1.4; color: var(--ct-fg-2); }

/* The tab row: the tabs scroll sideways as before, and "More" stays at the end of the row, outside the part that scrolls.
   Below 48rem Filament shows its one-button menu of tabs instead of the row (the tabs behind "More" are in it, under that name). */
.ct-tabrow { display: none; align-items: stretch; width: 100%; min-width: 0; box-shadow: inset 0 -1px 0 var(--ct-line); }
@media (min-width: 48rem) { .ct-tabrow { display: flex; } }
.ct-tabrow > .fi-page-sub-navigation-tabs { flex: 1 1 auto; width: auto; min-width: 0; box-shadow: none; }
/* once the row has been moved along (the open tab is brought into sight when the page is drawn), its left edge fades like its
   right one, so it is plain there are tabs on that side too. A mask only reads how solid the colour is, so any solid token does. */
.ct-tabrow.is-moved > .fi-page-sub-navigation-tabs { -webkit-mask-image: linear-gradient(90deg, transparent, var(--ct-fg) 2rem, var(--ct-fg) calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, transparent, var(--ct-fg) 2rem, var(--ct-fg) calc(100% - 3rem), transparent); }
.ct-tabrow-more { flex: none; display: flex; }
.ct-tabrow-more > .fi-dropdown-trigger { display: flex; }
.ct-tabrow-more > .fi-dropdown-trigger > .fi-tabs-item { padding: 0.3rem 0.55rem; font-size: var(--ct-text-xs); gap: 0.3rem; white-space: nowrap; }
.ct-tabrow-more > .fi-dropdown-trigger > .fi-tabs-item .fi-icon { width: 0.95rem; height: 0.95rem; }
.ct-tabrow-open { color: var(--ct-fg); }
/* in the list, the tab that is open is marked the way the row marks it: the brand's red says "you are here" */
.ct-tabrow-more .fi-dropdown-list-item[aria-current='page'] { box-shadow: inset 2px 0 0 var(--ct-red); font-weight: 650; }
@media print { .ct-tabrow { display: none !important; } }

/* About: every panel is as tall as its text (the first one used to stretch to the height of the whole page), one tab under the other. */
.ct-about .ct-card { height: auto; }
.ct-about .ct-card + .ct-card { margin-top: 1rem; }
.ct-about-lead { max-width: 75ch; font-size: var(--ct-text-sm); line-height: 1.5; color: var(--ct-fg-2); }
.ct-about-tab { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--ct-line); }
.ct-about-name { font-size: var(--ct-text-md); font-weight: 650; color: var(--ct-fg); }
.ct-about-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-about-what { max-width: 75ch; margin-top: 0.1rem; font-size: var(--ct-text-sm); line-height: 1.5; color: var(--ct-fg-2); }
.ct-about-none { margin-top: 0.35rem; font-size: var(--ct-text-sm); color: var(--ct-fg-3); }
.ct-about-tab .ct-about-list { margin-top: 0.5rem; }
.ct-about-list dt a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The Performance report tab (the page carries .ct-report-page): eight columns, one line a row, and the other eight
   details of a call on a second line under it (the board table's 'under'), so nothing is off the right edge. A long
   text in a column (a model, a category) ends in "…"; left to wrap, narrow columns broke words in the middle. The first
   cell is left alone so the focus ring of its link is not cut. */
.ct-report-page .ct-board-table tr:not(.ct-board-under) td { white-space: nowrap; overflow-wrap: normal; }
.ct-report-page .ct-board-table tr:not(.ct-board-under) td:not(:first-child) { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1400px) {
    .ct-report-page .ct-board-table th, .ct-report-page .ct-board-table tr:not(.ct-board-under) td { padding-inline-end: 0.55rem; }
    .ct-report-page .ct-board-table tr:not(.ct-board-under) td:not(:first-child) { max-width: 10.5rem; }
}
/* Where the eight columns still do not fit (a small window, a phone) they scroll sideways inside the panel, and the
   second line stays put, as wide as the panel: the panel is the measure (cqw). */
.ct-report-page .ct-board-scroll { container-type: inline-size; }
.ct-report-page .ct-board-table tr.ct-board-under td > * { position: sticky; left: 0; max-width: 100cqw; }
/* [frame-css-end] */

/* Calls come first (the owner, 1 Dec 2026: "call list seems like an afterthought").
   In the menu: the Calls item is the first one, larger than the others, in the strong menu colour with the brand's mark on its icon.
   (Found by its address: the menu's items carry no name of their own.) */
.fi-sidebar-nav .fi-sidebar-item:has(> a[href$="/calls"]) .fi-sidebar-item-label { font-size: var(--ct-text-lg); font-weight: 650; letter-spacing: -0.01em; color: var(--ct-side-fg-strong) !important; }
.fi-sidebar-nav .fi-sidebar-item:has(> a[href$="/calls"]) .fi-sidebar-item-icon { color: var(--ct-red-soft) !important; }
.fi-sidebar-nav .fi-sidebar-item:has(> a[href$="/calls"]) > a { padding-block: 0.5rem; background: var(--ct-side-field); box-shadow: inset 2px 0 0 var(--ct-red); }
.fi-sidebar-nav .fi-sidebar-item:has(> a[href$="/calls"]) > a:hover { background: var(--ct-side-active); }
/* What is in a folded group of the menu, shown beside the menu while the pointer rests on the group's heading
   (public/js/call-tracker.js). Drawn in the menu's own colours, so it reads as a part of it in the dark and the light menu. */
.ct-menu-peek { position: fixed; z-index: 70; min-width: 13rem; max-width: 20rem; max-height: calc(100vh - 1rem); overflow-y: auto; padding: 0.35rem;
    border-radius: var(--ct-radius); background: var(--ct-side-bg); box-shadow: 0 0 0 1px var(--ct-side-line), var(--ct-shadow); }
.ct-menu-peek a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0.6rem; border-radius: var(--ct-radius-sm);
    font-size: var(--ct-text-md); color: var(--ct-side-fg); }
.ct-menu-peek a:hover, .ct-menu-peek a:focus-visible { background: var(--ct-side-hover); color: var(--ct-side-fg-strong); outline: none; }
.ct-menu-peek-count { font-size: var(--ct-text-xs); font-weight: 600; color: var(--ct-side-muted); }
/* The small card under a call number or a serial number while the pointer rests on it (public/js/call-tracker.js).
   It takes no clicks: the link under the pointer works as before. Statuses are words here, never a colour of their own. */
.ct-hover-card { position: fixed; z-index: 70; width: max-content; min-width: 14rem; max-width: min(22rem, calc(100vw - 1rem)); padding: 0.7rem 0.8rem; pointer-events: none;
    border-radius: var(--ct-radius); background: var(--ct-surface); color: var(--ct-fg-2); font-size: var(--ct-text-sm); line-height: 1.45;
    box-shadow: 0 0 0 1px var(--ct-line), var(--ct-shadow-lift, var(--ct-shadow)); }
.ct-hover-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.3rem; }
.ct-hover-card-name { font-family: var(--ct-mono); font-size: var(--ct-text-xs); font-weight: 600; color: var(--ct-fg-3); }
.ct-hover-card-chip { padding: 0.05rem 0.45rem; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line); font-size: var(--ct-text-2xs); font-weight: 600; color: var(--ct-fg-2); white-space: nowrap; }
.ct-hover-card-main { font-size: var(--ct-text-md); font-weight: 650; color: var(--ct-fg); overflow-wrap: anywhere; }
.ct-hover-card-line { overflow-wrap: anywhere; }
.ct-hover-card-quote { margin-top: 0.45rem; padding-top: 0.45rem; border-top: 1px solid var(--ct-line); color: var(--ct-fg); overflow-wrap: anywhere; }
.ct-hover-card-by { font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-hover-card-flag { font-weight: 600; color: var(--ct-bad); }
/* On the home page: the block of calls above everything else. */
.ct-hub-calls { display: grid; gap: 0.9rem; box-shadow: inset 0 3px 0 var(--ct-red), var(--ct-shadow); }
.ct-hub-calls-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.ct-hub-calls-title { font-size: var(--ct-text-xl); font-weight: 650; letter-spacing: -0.02em; color: var(--ct-fg); }
.ct-hub-calls-find { flex: 1 1 18rem; display: flex; gap: 0.4rem; }
.ct-hub-calls-find input { flex: 1; min-width: 0; padding: 0.5rem 0.75rem; border-radius: var(--ct-radius-sm); background: var(--ct-surface); color: var(--ct-fg); box-shadow: inset 0 0 0 1px var(--ct-line-strong); font-size: var(--ct-text-md); }
.ct-hub-calls-find input:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 1px; }
.ct-hub-calls-go, .ct-hub-calls-new { padding: 0.5rem 0.9rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-md); font-weight: 600; background: var(--ct-fg); color: var(--ct-canvas); }
.ct-hub-calls-new { background: transparent; color: var(--ct-fg); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-hub-calls-go:hover { opacity: 0.88; } .ct-hub-calls-new:hover { background: var(--ct-hover); }
.ct-hub-calls-actions { display: flex; gap: 0.4rem; }
.ct-hub-calls-list { padding: 0.5rem 0.9rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-md); font-weight: 600; background: var(--ct-red); color: var(--ct-side-fg-strong); }
.ct-hub-calls-list:hover { background: var(--ct-red-strong); }
.ct-hub-calls-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0.4rem 2rem; }
.ct-hub-calls-row { font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-hub-calls-row strong { color: var(--ct-fg); font-weight: 600; }
.ct-hub-calls-late { color: var(--ct-bad); font-weight: 600; }
.ct-hub-calls-none { margin-bottom: 0.3rem; font-size: var(--ct-text-sm); }
/* "Since yesterday", as one row at the foot of the block: a few figures, each a link where it has calls to show. */
.ct-hub-calls-since { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1.4rem; padding-top: 0.7rem; border-top: 1px solid var(--ct-line); font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-hub-calls-since-name { font-size: var(--ct-text-2xs); letter-spacing: var(--ct-label-track); text-transform: uppercase; font-weight: 600; color: var(--ct-fg-3); }
.ct-hub-calls-since strong { color: var(--ct-fg); font-weight: 650; font-variant-numeric: tabular-nums; }
.ct-hub-calls-since a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The administrators' "Home page settings": a small link at the foot of the page. */
.ct-hub-admin { margin-top: 0.5rem; text-align: end; }

/* "Viewing as …" (App\Support\ViewAs): a bar across the top of every screen while an administrator looks as somebody
   else. Dark on light and light on dark, so it cannot be overlooked; not the red, which is the brand's. */
.ct-view-as { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 1rem;
    padding: 0.45rem 1rem; background: var(--ct-fg); color: var(--ct-canvas); font-size: var(--ct-text-sm); }
.ct-view-as-note { color: var(--ct-line-strong); }
.ct-view-as-back { padding: 0.2rem 0.75rem; border-radius: var(--ct-radius-sm); background: var(--ct-canvas); color: var(--ct-fg); font-weight: 600; font-size: var(--ct-text-sm); }
.ct-view-as-back:hover { background: var(--ct-hover); }
.ct-view-as-back:focus-visible { outline: 2px solid var(--ct-canvas); outline-offset: 2px; }

/* ================================================================================ service dashboard and service pages */
/* [service-css-start] */
/* RMA board: a card says what the return is and who has it, in full (the six-column board hides a card's small line and would cut it short);
   a column's count and "oldest" go under its name, whole, when the column is too narrow for both. */
.ct-rma .ct-kanban-meta.ct-rma-line { display: block; white-space: normal; }
.ct-rma .ct-kanban-col header { flex-wrap: wrap; }
.ct-rma .ct-kanban-col header span { white-space: nowrap; }
/* [service-css-end] */

/* ================================================================================ sign-in with Microsoft: the button under the form; the page that sets it up */
.ct-signin-other { margin-top: 1.25rem; display: grid; gap: 0.9rem; }
.ct-signin-or { display: flex; align-items: center; gap: 0.75rem; font-size: var(--ct-text-xs); color: var(--ct-fg-3); }
.ct-signin-or::before, .ct-signin-or::after { content: ''; flex: 1; height: 1px; background: var(--ct-line); }
.ct-signin-microsoft { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 2.5rem; padding: 0.5rem 1rem; border: 1px solid var(--ct-line-strong); border-radius: var(--ct-radius-sm); background: var(--ct-surface); color: var(--ct-fg); font-size: var(--ct-text-md); font-weight: 550; text-decoration: none; }
.ct-signin-microsoft:hover { background: var(--ct-hover); }
.ct-signin-microsoft:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 2px; }
.ct-signin-microsoft svg { flex: none; }
/* What a person is told after a sign-in with Microsoft that did not work: a notice, in the colour for "watch", never the brand's red. */
.ct-signin-told { padding: 0.65rem 0.8rem; border: 1px solid var(--ct-line-strong); border-left: 3px solid var(--ct-st-follow_up); border-radius: var(--ct-radius-sm); background: var(--ct-sunken); color: var(--ct-fg); font-size: var(--ct-text-sm); line-height: 1.5; }
.ct-signin-told a { text-decoration: underline; font-weight: 550; white-space: nowrap; }
.ct-steps { list-style: decimal; padding-left: 1.4rem; display: grid; gap: 0.5rem; max-width: 72ch; font-size: var(--ct-text-md); line-height: 1.55; }
.ct-copyable { font-family: var(--ct-mono); font-size: var(--ct-text-sm); padding: 0.15rem 0.4rem; border-radius: var(--ct-radius-sm); background: var(--ct-sunken); user-select: all; overflow-wrap: anywhere; }
.ct-nowrap { white-space: nowrap; }

/* ================================================================================ reading and scrolling (the owner, 1 Dec 2026)
   Eight small helps on a call's page and on the call list. The script half is the last block of call-tracker.js,
   under the same letters. Colours and sizes are the tokens from the top of this file; red appears twice, both
   times as "where you are" (the section being read, never a status). */

/* ---- A. long updates in a call's history fold to their first six lines
   The script marks an update that really is longer (.is-long) and the ones the person opened (.is-open). */
.ct-fold.is-long:not(.is-open) > .ct-body { max-height: 9.3em; max-height: 6lh; overflow: hidden; mask-image: linear-gradient(180deg, #000 62%, transparent); }
.ct-fold-btn[hidden], [data-ct-fold-all][hidden] { display: none; }
.ct-fold-btn:focus-visible, .ct-history-tools .ct-more:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 1px; }
@media print {
    /* everything written is printed in full: nothing folded */
    .fi-resource-calls .ct-fold > .ct-body { max-height: none !important; overflow: visible !important; mask-image: none !important; }
}

/* ---- B. the section buttons of a call stay in view and show where you are
   The header, the tabs and the row of buttons are one block that sticks to the top. It is opaque, so what scrolls
   under it does not show through between its parts. --ct-stuck is how tall the part that stays is (set by the script). */
.fi-resource-calls .fi-grid-col:has(> .fi-sc-component > .ct-jump) { background: var(--ct-canvas); padding-bottom: var(--ct-gap-1); box-shadow: 0 1px 0 var(--ct-line); }
/* An administrator's "Viewing as …" bar stays at the very top: this block, and the headings of the call list, stick under it
   and not behind it. --ct-bar is the bar's real height (set by the script; nothing when there is no bar). */
.fi-resource-calls .fi-grid-col:has(> .fi-sc-component > .ct-jump) { top: var(--ct-bar, 0px); }
@media (min-width: 1100px) {
    .fi-resource-calls.fi-resource-list-records-page thead .fi-ta-header-cell, .fi-resource-calls.fi-resource-list-records-page thead th { top: var(--ct-bar, 0px); }
}
.fi-resource-calls .fi-grid-col:has(> .fi-sc-component > .ct-jump) + .fi-grid-col { margin-top: calc(var(--ct-gap-1) * -1); }
.fi-resource-calls.fi-resource-view-record-page [id^="call-"], .fi-resource-calls.fi-resource-view-record-page .ct-timeline .ct-entry { scroll-margin-top: calc(var(--ct-stuck, 0px) + var(--ct-gap-1)); }
.fi-resource-calls.fi-resource-view-record-page [id^="call-"]:focus { outline: none; }
/* the column of facts that stays beside the history starts under the sticky rows, however tall they are, instead of sliding under them */
@media (min-width: 1280px) {
    .fi-resource-calls .fi-grid-col:has(> .fi-sc-component > .ct-props) { top: calc(var(--ct-stuck, 4.5rem) + var(--ct-gap-1)); max-height: calc(100vh - var(--ct-stuck, 4.5rem) - var(--ct-gap-3)); }
}
.ct-jump[hidden], .ct-jump a[hidden] { display: none; }
.ct-jump a { display: inline-flex; align-items: center; gap: 0.3rem; transition: color var(--ct-fast) var(--ct-ease), box-shadow var(--ct-fast) var(--ct-ease); }
.ct-jump a span { margin-left: 0; }
.ct-jump a:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 1px; }
/* where you are: the brand's mark, kept small */
.ct-jump a[aria-current="true"] { color: var(--ct-fg); font-weight: 650; box-shadow: inset 0 0 0 1px var(--ct-fg-3); }
.ct-jump a[aria-current="true"]::before { content: ''; flex: none; width: 0.4rem; height: 0.4rem; border-radius: 999px; background: var(--ct-red); }
@media (max-width: 640px) {
    /* on a phone the header scrolls away and only the row of buttons stays; it scrolls sideways instead of wrapping */
    .fi-resource-calls .fi-grid-col:has(> .fi-sc-component > .ct-jump) { position: sticky; top: var(--ct-jump-up, -200vh); z-index: 20; }
    .ct-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: calc(var(--ct-gap-1) * -1); padding-inline: var(--ct-gap-1); }
    .ct-jump::-webkit-scrollbar { display: none; }
    .ct-jump a { flex: none; white-space: nowrap; }
}
@media print { .fi-resource-calls .fi-grid-col:has(> .fi-sc-component > .ct-jump) { position: static !important; background: none; box-shadow: none; padding-bottom: 0; } }

/* ---- C. search inside a call's history, "Newest" and "Oldest", "Unfold all" */
.ct-timeline-bar { flex-wrap: wrap; row-gap: var(--ct-gap-1); }
.ct-history-tools { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--ct-gap-1) var(--ct-gap-2); }
.ct-history-search { flex: 0 1 16rem; min-width: 9rem; }
.ct-history-search input { width: 100%; padding: 0.25rem 0.6rem; border: 0; outline: 2px solid transparent; outline-offset: 1px; border-radius: var(--ct-radius-sm); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong); color: var(--ct-fg); font-size: var(--ct-text-sm); }
.ct-history-search input::placeholder { color: var(--ct-fg-3); }
.ct-history-search input:focus { box-shadow: inset 0 0 0 1px var(--ct-fg-2), 0 0 0 3px color-mix(in oklab, var(--ct-fg) 9%, transparent); }
.ct-history-found { font-variant-numeric: tabular-nums; color: var(--ct-fg-2); }
.ct-history-found:empty { display: none; }
.ct-history-go { display: inline-flex; gap: var(--ct-gap-1); margin-inline-start: auto; }
.ct-history-tools .ct-more { margin: 0; }
/* (the outline of the box is see-through here, where the ring above shows the focus; with forced colours the ring is not
   drawn and the outline is, in the system's own colour) */
/* on screen only: a search that is still in the box must not shorten the print-out */
@media screen { .ct-timeline .ct-entry.ct-miss, .ct-timeline .ct-daygroup.ct-miss { display: none; } }
/* a found word: a neutral band from the text colour, light and dark, so it is not read as a status */
mark.ct-found { padding: 0 0.1em; border-radius: var(--ct-radius-sm); color: inherit; background: color-mix(in oklab, var(--ct-fg) 16%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--ct-fg) 38%, transparent); }
@media print { mark.ct-found { padding: 0; background: none; box-shadow: none; } }
/* while words are being looked for, an entry that has them is shown whole: unfolded, and with a repeat's text open */
.ct-timeline:has(.ct-history-tools.is-searching) .ct-fold > .ct-body { max-height: none; overflow: visible; mask-image: none; }
.ct-timeline:has(.ct-history-tools.is-searching) .ct-fold-btn, .ct-timeline:has(.ct-history-tools.is-searching) [data-ct-fold-all] { display: none; }
.ct-timeline:has(.ct-history-tools.is-searching) .ct-entry.ct-quiet .ct-body:has(mark.ct-found) { display: block !important; }
/* the entry "Newest" or "Oldest" went to, for a moment */
.ct-entry.ct-entry-flash .ct-bubble, .ct-entry.ct-quiet.ct-entry-flash { box-shadow: 0 0 0 2px var(--ct-fg-2); border-radius: var(--ct-radius-sm); }
.ct-entry:focus { outline: none; }
@media (max-width: 640px) { .ct-history-search { flex: 1 1 100%; } .ct-history-search input { font-size: 1rem; min-height: 2.5rem; } .ct-history-go { margin-inline-start: 0; } }

/* ---- D. "Back to the top"
   Below the dialogs and the call's own sticky rows; above the quick update bar when a call has one (--ct-totop-lift)
   and to the left of the split view's pane (--ct-totop-aside), both set by the script. */
.ct-totop { position: fixed; z-index: 17; right: calc(var(--ct-gap-3) + var(--ct-totop-aside, 0px)); bottom: calc(var(--ct-gap-2) + var(--ct-totop-lift, 0px) + env(safe-area-inset-bottom, 0px)); width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--ct-surface); color: var(--ct-fg-2); box-shadow: 0 0 0 1px var(--ct-line-strong), var(--ct-shadow-lift); opacity: 0; visibility: hidden; transform: translateY(var(--ct-gap-1)); transition: opacity var(--ct-fast) var(--ct-ease), transform var(--ct-fast) var(--ct-ease), visibility 0s linear var(--ct-fast); }
.ct-totop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ct-totop:hover { color: var(--ct-fg); background: var(--ct-hover); }
.ct-totop:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 2px; }
.ct-totop svg { width: 1.1rem; height: 1.1rem; }
body:has(.fi-modal-open) .ct-totop { display: none; }
@media (max-width: 640px) { .ct-totop { right: var(--ct-gap-2); } }
@media (prefers-reduced-motion: reduce) { .ct-totop { transition: none; transform: none; } }
@media print { .ct-totop { display: none !important; } }

/* ---- E. back on the call list: the call last looked at
   A neutral mark, not a status: a soft band, a line above and below, and a "return" arrow after the number. The row's
   own edge (overdue, chosen) stays: in a table the lines are drawn on the cells, on a phone's card on the card. */
.fi-ta-row.ct-row-last { background: color-mix(in oklab, var(--ct-fg) 6%, var(--ct-surface)) !important; }
.fi-ta-row.ct-row-last .fi-ta-cell-id .fi-ta-text-item::after { content: '\21A9'; margin-inline-start: 0.3rem; font-family: var(--ct-mono); font-weight: 450; color: var(--ct-fg-2); }
@media (min-width: 641px) { .fi-ta-row.ct-row-last > .fi-ta-cell { box-shadow: inset 0 1px 0 var(--ct-fg-3), inset 0 -1px 0 var(--ct-fg-3); } }
@media (max-width: 640px) {
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-row.ct-row-last { box-shadow: inset 0 1px 0 var(--ct-fg-3), inset 0 -1px 0 var(--ct-fg-3); }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-row.ct-row-last.ct-row-overdue { box-shadow: inset 3px 0 0 var(--ct-st-follow_up), inset 0 1px 0 var(--ct-fg-3), inset 0 -1px 0 var(--ct-fg-3); }
}
@media print { .fi-ta-row.ct-row-last { background: none !important; } .fi-ta-row.ct-row-last > .fi-ta-cell { box-shadow: none; } .fi-ta-row.ct-row-last .fi-ta-cell-id .fi-ta-text-item::after { content: none; } }

/* ---- F. "Compact rows" / "Roomy rows" on the call list
   The button names what a click will do. Compact is one line a call: the line under the company goes (it is in the
   quick look and on the call), no cell wraps, and the space above and below shrinks, so about twice as many calls fit. */
html[data-ct-density='compact'] .ct-density-compact, html:not([data-ct-density='compact']) .ct-density-roomy { display: none; }
.fi-resource-calls.fi-resource-list-records-page .fi-ta-header-toolbar .ct-density-switch { white-space: nowrap; }
@media (min-width: 641px) {
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-description { display: none; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .fi-ta-text-item,
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .ct-person,
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .ct-col-customer .fi-ta-text-item { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; line-height: 1.3; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell > * { padding-block: 0.28rem !important; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell:has(> .fi-ta-actions) { padding-block: 0 !important; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .fi-ta-text { padding-block: 0 !important; gap: 0; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .fi-ta-placeholder { padding-block: 0 !important; line-height: 1.3; font-size: var(--ct-text-xs); }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .fi-ta-text-description { display: none; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell .ct-status { padding-block: 0; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-actions .fi-icon-btn { width: 1.15rem; height: 1.15rem; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-row .fi-ta-selection-cell { padding-block: 0 !important; }
    /* What is never cut: the call number, the status and the dates. Their text shows whole (no "…"); the free text beside
       them (company, people, model, parent company) is what gives way. */
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page :is(.fi-ta-cell-id, .fi-ta-cell-status, .fi-ta-cell-opened-on, .fi-ta-cell-due-on, .fi-ta-cell-updated-at, .fi-ta-cell-dept-group, .fi-ta-cell-standard-offering) .fi-ta-text-item { width: auto !important; max-width: none !important; overflow: visible; text-overflow: clip; }
    /* An overdue call still says so, in words, on the same line: "Overdue · 2 days ago". */
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-due-on .fi-ta-text { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 0.25rem; white-space: nowrap; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-due-on .fi-ta-text-description { display: block; margin: 0; font-size: var(--ct-text-xs); font-weight: 600; line-height: 1.3; color: var(--ct-st-follow_up); }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-due-on .fi-ta-text-description::after { content: ' \00B7'; }
}
@media (min-width: 1100px) {
    /* Where the table is fitted to the window, the columns that are never cut get the room their longest text needs (the
       status and the due date with the room for their pencil), and the others share what is left (the company takes
       whatever remains). A column a person dragged keeps their width. */
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-id { width: 4.2rem; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-status { width: 6.3rem; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-opened-on { width: 4.6rem; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-due-on { width: 8.8rem; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-updated-at { width: 3.7rem; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-dept-group { width: 3.4rem; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-standard-offering { width: 2.7rem; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-company\.name { width: auto; }
    /* "Last updated" in its short form, the day without the time of day (the whole of it is still there for the pointer and
       for a screen reader): the day is handed over by the column as --ct-short. */
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-updated-at .fi-ta-text[style*="--ct-short"] > span { font-size: 0; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-cell-updated-at .fi-ta-text[style*="--ct-short"] > span::after { content: var(--ct-short); font-size: var(--ct-text-xs); }
}
@media (min-width: 1280px) {
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-assigned-to\.name { width: 7%; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-model-summary { width: 7%; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-opened-by\.name { width: 5%; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-contact\.name { width: 6.5%; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-company\.parent\.name { width: 5%; }
}
@media screen and (min-width: 1100px) and (max-width: 1279.98px) {
    /* TEN COLUMNS (the owner, 2 Dec 2026). A window this narrow cannot hold thirteen columns on one line each without
       cutting the dates, so compact rows leave three out here by themselves: "Open by", "Parent company" and "Std. offer".
       With ten the list is fitted to the window like the wider ones: nothing scrolls sideways.
       The three stay ticked under "More columns", which says why they are not showing and brings each back with one click
       (kept for the person as ctNarrowKeep, on <html> as data-ct-narrow-keep: "openedby", "parent", "std"). And a person
       who has chosen their own columns sees exactly those (data-ct-columns="own", from the page): nothing is left out of a
       choice. So does a person who has dragged a column to a width of their own (data-ct-widths, from the script): widths
       saved for the wider table do not fit this one, and a fitted table cannot be scrolled. In all three cases the list is
       as wide as it needs and scrolls sideways, as it did here before, with the call number and the company frozen at the
       left ("G" below) and the cue that there is more to the right; nothing is ever out of reach.
       On the screen only: a printed list holds every column the person shows, whatever the window was. */
    html[data-ct-density='compact']:not([data-ct-columns='own']):not([data-ct-widths]):not([data-ct-narrow-keep~='openedby']) .fi-resource-calls.fi-resource-list-records-page .fi-ta-table :is(.fi-ta-header-cell-opened-by\.name, .fi-ta-cell-opened-by\.name),
    html[data-ct-density='compact']:not([data-ct-columns='own']):not([data-ct-widths]):not([data-ct-narrow-keep~='parent']) .fi-resource-calls.fi-resource-list-records-page .fi-ta-table :is(.fi-ta-header-cell-company\.parent\.name, .fi-ta-cell-company\.parent\.name),
    html[data-ct-density='compact']:not([data-ct-columns='own']):not([data-ct-widths]):not([data-ct-narrow-keep~='std']) .fi-resource-calls.fi-resource-list-records-page .fi-ta-table :is(.fi-ta-header-cell-standard-offering, .fi-ta-cell-standard-offering) { display: none; }
    /* What the six columns that are never cut leave (they, the tick box and the row's button take 35.2rem between them) is
       shared by the four columns of free text: the company a good third of it, the person a quarter (the pencil stands in
       that column), the model and the caller a fifth each. Measured against the list's own width, not the window's,
       because the menu beside it may be open or folded away. Measured with the menu open: the company has 93 px at 1100,
       119 px at 1180 and 151 px at 1279 (thirteen columns at 1280 leave it 104 px); with the menu folded away 157 px or more.
       (Not in the split view, which shows five columns of its own choosing in its narrower list.) */
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .fi-ta-content-ctn { container-type: inline-size; }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page:not(:has(.ct-split-pane)) .fi-ta-header-cell-assigned-to\.name { width: 9%; width: calc((100cqi - 35.2rem) * 0.26); }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page:not(:has(.ct-split-pane)) .fi-ta-header-cell-model-summary { width: 7%; width: calc((100cqi - 35.2rem) * 0.2); }
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page:not(:has(.ct-split-pane)) .fi-ta-header-cell-contact\.name { width: 7%; width: calc((100cqi - 35.2rem) * 0.2); }
    /* A person's own columns, or one of the three brought back: as wide as the list needs. */
    html[data-ct-density='compact']:is([data-ct-columns='own'], [data-ct-narrow-keep], [data-ct-widths]) .fi-resource-calls.fi-resource-list-records-page .fi-ta-table { table-layout: auto; width: auto; min-width: 100%; }
    html[data-ct-density='compact']:is([data-ct-columns='own'], [data-ct-narrow-keep], [data-ct-widths]) .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell { width: auto; }
    html[data-ct-density='compact']:is([data-ct-columns='own'], [data-ct-narrow-keep], [data-ct-widths]) .fi-resource-calls.fi-resource-list-records-page .fi-ta-content-ctn { overflow-x: auto; scrollbar-width: thin; --ct-x-cue: 1; }
    /* No dragging of widths in this band (as before): a width dragged in the fitted list would turn it into the scrolling one under the pointer. */
    html[data-ct-density='compact'] .fi-resource-calls.fi-resource-list-records-page .ct-colgrip { display: none; }
}
/* "More columns" beside each of the three: why it is not showing, and the way to bring it back (the script adds the two
   pieces to the panel; they show only where the rule above is at work). */
.ct-col-narrow { display: none; }
@media screen and (min-width: 1100px) and (max-width: 1279.98px) {
    html[data-ct-density='compact']:not([data-ct-columns='own']):not([data-ct-widths]) .fi-ta-col-manager-item:has(> .ct-col-narrow) { flex-wrap: wrap; }
    html[data-ct-density='compact']:not([data-ct-columns='own']):not([data-ct-widths]) .ct-col-narrow { display: block; flex: 1 0 100%; margin: 0.1rem 0 0.2rem 1.75rem; font-size: var(--ct-text-2xs); color: var(--ct-fg-2); line-height: 1.35; }
    .ct-col-narrow .ct-more { margin: 0; text-decoration: underline; text-underline-offset: 2px; }
    .ct-col-narrow .ct-col-narrow-kept, html[data-ct-narrow-keep~='openedby'] .ct-col-narrow[data-ct-narrow='openedby'] .ct-col-narrow-out,
    html[data-ct-narrow-keep~='parent'] .ct-col-narrow[data-ct-narrow='parent'] .ct-col-narrow-out, html[data-ct-narrow-keep~='std'] .ct-col-narrow[data-ct-narrow='std'] .ct-col-narrow-out { display: none; }
    html[data-ct-narrow-keep~='openedby'] .ct-col-narrow[data-ct-narrow='openedby'] .ct-col-narrow-kept, html[data-ct-narrow-keep~='parent'] .ct-col-narrow[data-ct-narrow='parent'] .ct-col-narrow-kept,
    html[data-ct-narrow-keep~='std'] .ct-col-narrow[data-ct-narrow='std'] .ct-col-narrow-kept { display: inline; }
}
/* a phone shows each call as a card: there is nothing to make compact */
@media (max-width: 640px) { .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-toolbar .ct-density-switch { display: none; } }
@media print { .ct-density-switch { display: none !important; } }

/* ---- G. the company stays beside the call number when the list scrolls sideways
   From 900px up (narrower, two frozen columns would eat the list: there only the number stays, as before). The
   second frozen column starts where the first ends: the script measures that (--ct-freeze-id, --ct-freeze-company).
   Each frozen cell is opaque and takes the row's own tint; its edge shows once the list has moved sideways. */
@media (min-width: 900px) {
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-cell-id, .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-header-cell-id { left: var(--ct-freeze-id, 0px); }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-cell-company\.name { position: sticky; left: var(--ct-freeze-company, 0px); z-index: 1; background: var(--ct-surface); }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table thead .fi-ta-header-cell-company\.name { left: var(--ct-freeze-company, 0px); }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table thead .fi-ta-header-cell-id, .fi-resource-calls.fi-resource-list-records-page .fi-ta-table thead .fi-ta-header-cell-company\.name { position: sticky; z-index: 13; background: color-mix(in oklab, var(--ct-sunken) 55%, var(--ct-surface)); }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-cell-id, .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-header-cell-id { box-shadow: none; }
    html[data-ct-list-x] .fi-resource-calls.fi-resource-list-records-page .fi-ta-table :is(.fi-ta-cell-id, .fi-ta-header-cell-id, .fi-ta-cell-company\.name, .fi-ta-header-cell-company\.name) { box-shadow: 1px 0 0 var(--ct-line-strong); }
    html[data-ct-list-x] .fi-resource-calls.fi-resource-list-records-page .fi-ta-table thead :is(.fi-ta-header-cell-id, .fi-ta-header-cell-company\.name) { box-shadow: 1px 0 0 var(--ct-line-strong), inset 0 -1px 0 var(--ct-line); }
    /* the row's own tint, on top of the surface colour: untouched for two weeks, under the pointer, chosen with the keyboard or in the split view, ticked, last opened */
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row.ct-row-stale .fi-ta-cell-company\.name { background: color-mix(in oklab, var(--ct-st-follow_up) 5%, var(--ct-surface)); }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row.fi-selected :is(.fi-ta-cell-id, .fi-ta-cell-company\.name) { background: var(--ct-sunken); }  /* the ticked row's own colour: see the rule after this block */
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row:hover .fi-ta-cell-company\.name, .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row.ct-row-selected .fi-ta-cell-company\.name, .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row.ct-row-chosen .fi-ta-cell-company\.name { background: var(--ct-hover); }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row.ct-row-last :is(.fi-ta-cell-id, .fi-ta-cell-company\.name) { background: color-mix(in oklab, var(--ct-fg) 6%, var(--ct-surface)); box-shadow: inset 0 1px 0 var(--ct-fg-3), inset 0 -1px 0 var(--ct-fg-3); }
    html[data-ct-list-x] .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row.ct-row-last.ct-row-overdue .fi-ta-cell-id { box-shadow: inset 3px 0 0 var(--ct-st-follow_up), 1px 0 0 var(--ct-line-strong), inset 0 1px 0 var(--ct-fg-3), inset 0 -1px 0 var(--ct-fg-3); }
    html[data-ct-list-x] .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row.ct-row-last :is(.fi-ta-cell-id, .fi-ta-cell-company\.name) { box-shadow: 1px 0 0 var(--ct-line-strong), inset 0 1px 0 var(--ct-fg-3), inset 0 -1px 0 var(--ct-fg-3); }
    /* a row's edge (overdue, chosen) is drawn on the row and would be covered by the frozen number once the list has moved: the number then carries it */
    html[data-ct-list-x] .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row.ct-row-overdue .fi-ta-cell-id { box-shadow: inset 3px 0 0 var(--ct-st-follow_up), 1px 0 0 var(--ct-line-strong); }
    html[data-ct-list-x] .fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row:is(.ct-row-selected, .ct-row-chosen) .fi-ta-cell-id { box-shadow: inset 3px 0 0 var(--ct-fg), 1px 0 0 var(--ct-line-strong); }
}
@media (min-width: 768px) and (max-width: 899.98px) {
    .fi-resource-calls .fi-ta-table .fi-ta-row.fi-selected .fi-ta-cell-id { background: var(--ct-sunken); }
    .fi-resource-calls .fi-ta-table .fi-ta-row:hover .fi-ta-cell-id, .fi-resource-calls .fi-ta-table .fi-ta-row.ct-row-selected .fi-ta-cell-id, .fi-resource-calls .fi-ta-table .fi-ta-row.ct-row-chosen .fi-ta-cell-id { background: var(--ct-hover); }
    .fi-resource-calls .fi-ta-table .fi-ta-row.ct-row-last .fi-ta-cell-id { background: color-mix(in oklab, var(--ct-fg) 6%, var(--ct-surface)); }
}
/* A ticked row is one colour from edge to edge: the row is given the same token as its frozen cells (the panel's own
   colour for a ticked row is a different grey, and see-through in the dark theme, which an opaque frozen cell cannot match).
   It lies over the "untouched for two weeks" tint and under the pointer's, the keyboard's and the last-opened marks. */
.fi-resource-calls.fi-resource-list-records-page .fi-ta-table .fi-ta-row.fi-selected { background: var(--ct-sunken); }

/* ---- H. "Show 25 more" under the call list */
.ct-showmore { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--ct-gap-1) var(--ct-gap-2); font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.ct-showmore-btn { padding: 0.35rem 0.9rem; border-radius: var(--ct-radius-sm); background: var(--ct-surface); color: var(--ct-fg); font-size: var(--ct-text-sm); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ct-line-strong), var(--ct-shadow); transition: background-color var(--ct-fast) var(--ct-ease); }
.ct-showmore-btn:hover { background: var(--ct-hover); }
.ct-showmore-btn:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 2px; }
.ct-showmore-btn[disabled] { opacity: 0.6; cursor: progress; }
.ct-showmore-count { font-variant-numeric: tabular-nums; }
.ct-showmore-cap { flex: 1 0 100%; text-align: center; color: var(--ct-fg-3); font-size: var(--ct-text-xs); }
@media (max-width: 640px) { .ct-showmore-btn { min-height: 2.75rem; } }
@media print { .ct-showmore { display: none !important; } }

/* ================================================================================ dashboards: find it, reach it
   (the owner, 2 Dec 2026: "it was there, but the page made it look missing"). One block for six things:
   a table's tools (count, "Show all", "Find in this table…", headings that sort), a ranked chart opened in full,
   the tab row that puts what does not fit under "More tabs", the "Filtered by" strip, the second line of a
   report's row, and the cue on anything that scrolls sideways. Tokens only. */

/* ---- a real button for "Show all 57" / "Show the first 500" / "Show all 228" (it was 10.5px grey text) */
.ct-show { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.6rem; padding: 0.3rem 0.75rem; font-size: var(--ct-text-sm); font-weight: 600; color: var(--ct-fg);
    background: var(--ct-surface); border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line-strong); cursor: pointer; white-space: nowrap; }
.ct-show:hover { background: var(--ct-hover); box-shadow: inset 0 0 0 1px var(--ct-fg-3); }
.ct-show:focus-visible, .ct-board-table th[data-ct-sort]:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 2px; }
[hidden].ct-show, .ct-board-table tr[hidden], .ct-bars-list > li[hidden], .ct-tbl-find .ct-more[hidden] { display: none !important; }

/* ---- a table's tools, beside its heading: the count, the button, the find box */
.ct-tbl-head { align-items: flex-end; }
.ct-tbl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.4rem 0.6rem; margin-inline-start: auto; }
.ct-tbl-tools .ct-show { margin-top: 0; }
.ct-tbl-count { font-size: var(--ct-text-xs); color: var(--ct-fg-2); font-variant-numeric: tabular-nums; }
.ct-tbl-find { flex-wrap: nowrap; gap: 0.15rem; }
.ct-tbl-find .ct-c-input { min-width: 11rem; }
.ct-cut.is-loud { color: var(--ct-fg); font-weight: 550; }
/* The mark that a heading sorts stands in the gap that already follows every heading, so no column gets wider for it
   (eight marks made the Performance report 24px wider than its panel at 1280). The last heading has no such gap: its mark is in line. */
.ct-board-table th[data-ct-sort] { position: relative; cursor: pointer; user-select: none; }
.ct-board-table th[data-ct-sort]:hover { color: var(--ct-fg); }
.ct-board-table th[data-ct-sort]::after { content: '↕'; position: absolute; right: 0.15rem; bottom: 0.35rem; opacity: 0.4; letter-spacing: 0; }
.ct-board-table th[data-ct-sort]:last-child::after { position: static; margin-inline-start: 0.2rem; }
.ct-board-table th[data-ct-sort].is-sorted { color: var(--ct-fg); }
.ct-board-table th[data-ct-sort].is-sorted::after { content: '↓'; opacity: 1; }
.ct-board-table th[data-ct-sort].is-sorted.is-up::after { content: '↑'; }
@media (max-width: 640px) { .ct-tbl-tools { justify-content: flex-start; margin-inline-start: 0; width: 100%; } .ct-tbl-find, .ct-tbl-find .ct-c-input { flex: 1 1 auto; } }
@media print { .ct-tbl-tools, .ct-show { display: none !important; } .ct-board-table tr[hidden] { display: table-row !important; } }

/* ---- a ranked chart opened in full ("Show all 228"): the whole list scrolls inside the panel, "Find…" above it */
.ct-rank { margin-top: 0.2rem; }
.ct-rank-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--ct-line); }
.ct-rank-head .ct-tbl-find, .ct-rank-head .ct-c-input { flex: 1 1 8rem; min-width: 0; }
.ct-rank-scroll { max-height: 26rem; overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 0.5rem; scrollbar-width: thin; }
.ct-rank-scroll:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 2px; }
@media print { .ct-rank-scroll { max-height: none; overflow: visible; } .ct-rank-head .ct-tbl-find { display: none; } }

/* ---- the tab row once it has been measured (call-tracker.js, "Dashboard tabs"): what does not fit is under "More tabs",
   so the row no longer scrolls and has no faded edge: nothing is cut. */
.ct-tabrow[data-ct-fit] > .fi-page-sub-navigation-tabs, .ct-tabrow[data-ct-fit].is-moved > .fi-page-sub-navigation-tabs { overflow: hidden; -webkit-mask-image: none; mask-image: none; padding-right: 0; }
.ct-tabrow .fi-tabs-item[hidden], .ct-tabrow-more[hidden], .ct-tabrow-more [data-ct-tab-copy][hidden] { display: none !important; }
/* Until it has been measured the row keeps its place but is not drawn: all seventeen tabs showed for a moment in the old
   scrolling row before "More tabs" took the rest. Should the script never come, the row shows itself after a second
   and scrolls sideways as it used to: nothing stays invisible. */
.ct-tabrow:not([data-ct-fit]) { visibility: hidden; animation: ct-tabrow-late 0s linear 1s forwards; }
@keyframes ct-tabrow-late { to { visibility: visible; } }
.ct-tabrow-more [data-ct-tab-count] { color: var(--ct-fg-2); font-variant-numeric: tabular-nums; }

/* ---- anything that scrolls sideways says so (call-tracker.js, "Anything that scrolls sideways") */
[data-ct-x-wrap] { position: relative; }
.ct-x-cue { position: absolute; z-index: 3; width: 0; pointer-events: none; }
.ct-x-cue::before { content: ''; position: absolute; top: 0; bottom: 0; width: 1.5rem; pointer-events: none; }
.ct-x-cue[data-ct-x-end]::before { right: 0; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--ct-fg) 13%, transparent)); }
.ct-x-cue[data-ct-x-start]::before { left: 0; background: linear-gradient(270deg, transparent, color-mix(in oklab, var(--ct-fg) 13%, transparent)); }
.ct-x-more { position: absolute; top: 0.1rem; pointer-events: auto; padding: 0.1rem 0.45rem; font-size: var(--ct-text-2xs); font-weight: 650; line-height: 1.5; white-space: nowrap; color: var(--ct-fg);
    background: var(--ct-surface); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ct-line-strong); cursor: pointer; }
.ct-x-more:hover { background: var(--ct-hover); box-shadow: inset 0 0 0 1px var(--ct-fg-3); }
.ct-x-more:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 1px; }
.ct-x-cue[data-ct-x-end] .ct-x-more { right: 0.15rem; }
.ct-x-cue[data-ct-x-start] .ct-x-more { left: 0.15rem; }
/* The first column of a dashboard table (and of the access overview's grid) stays put while the rest scrolls under it,
   only where the table is wider than its panel. Filament's own tables are left as they are. */
:is(.ct-board-scroll, .ct-access-scroll)[data-ct-x-wide] > table > thead > tr > th:first-child,
:is(.ct-board-scroll, .ct-access-scroll)[data-ct-x-wide] > table > tbody > tr:not(.ct-board-under) > :first-child { position: sticky; left: 0; z-index: 1; background: var(--ct-x-under, var(--ct-surface)); }
:is(.ct-board-scroll, .ct-access-scroll)[data-ct-x-wide] > table > thead > tr > th:first-child { z-index: 2; }
/* A ranking begins with its "#": the name beside it stays too (the script measures the "#" and marks the region data-ct-x-pin). */
.ct-board-scroll[data-ct-x-wide][data-ct-x-pin='2'] > table > thead > tr > th:nth-child(2),
.ct-board-scroll[data-ct-x-wide][data-ct-x-pin='2'] > table > tbody > tr:not(.ct-board-under) > td:nth-child(2) { position: sticky; left: var(--ct-x-pin, 0); z-index: 1; background: var(--ct-x-under, var(--ct-surface)); }
.ct-board-scroll[data-ct-x-wide][data-ct-x-pin='2'] > table > thead > tr > th:nth-child(2) { z-index: 2; }
.ct-board-scroll[data-ct-x-pin='2']:is([data-ct-x='start'], [data-ct-x='both']) > table > * > tr:not(.ct-board-under) > :first-child { box-shadow: none; }
.ct-board-scroll[data-ct-x-pin='2']:is([data-ct-x='start'], [data-ct-x='both']) > table > * > tr:not(.ct-board-under) > :nth-child(2) { box-shadow: 1px 0 0 var(--ct-line-strong); }
:is(.ct-board-scroll, .ct-access-scroll):is([data-ct-x='start'], [data-ct-x='both']) > table > * > tr:not(.ct-board-under) > :first-child { box-shadow: 1px 0 0 var(--ct-line-strong); }
/* Prefer fitting to scrolling: a heading of a dashboard table may take two lines (a column was never narrower than its
   heading, and five long headings pushed the last columns of a half-width panel off its edge). Words are never broken. */
.ct-board-table th, .ct-board-table th.ct-end { white-space: normal; overflow-wrap: normal; word-break: keep-all; vertical-align: bottom; }
@media print { .ct-x-cue { display: none !important; } }

/* ================================================================================ call list: nothing looks missing (the owner, 2 Dec 2026)
   What a browser does with these rules is checked by tests/browser/935-call-list-finds.test.cjs. */

/* ---- L1. "Quick filters": the menu opens over the list's heading row, and the chip never lies on a tab's count
   Stacking on the call list, lowest first: the frozen cells 1, the headings 12 and 13, the split view's pane 14, THIS MENU 30,
   dialogs 40, the panel's own menus 45, the "View as" bar 60. (The menu was at 6: two of its ten entries lay under the headings.) */
.ct-quick-menu, .ct-quick-pop { z-index: 30; }
/* Where the chip, with the filters that are on beside it, has no room at the end of the tab row, it takes a line of its own
   under the tabs: always below 1280px, and wider than that whenever the script measures that it would touch the last tab
   (data-ct-quick-under on <html>; call-tracker.js, "the call list: nothing looks missing"). */
@media (min-width: 900.02px) and (max-width: 1279.98px) {
    .ct-quick-menu { position: relative; top: auto; right: auto; justify-content: flex-end; flex-wrap: wrap; }
    .ct-quick:not(:has(.ct-hub-strip, .ct-quick-views)) { height: auto; }
}
@media (min-width: 1280px) {
    html[data-ct-quick-under] .ct-quick-menu { position: relative; top: auto; right: auto; justify-content: flex-end; flex-wrap: wrap; }
    html[data-ct-quick-under] .ct-quick:not(:has(.ct-hub-strip, .ct-quick-views)) { height: auto; }
}

/* ---- L2. the line above the list: where else a search matches, and where the call is whose number was typed */
.ct-finds { display: grid; gap: var(--ct-gap-1); padding: 0.5rem 0.8rem; border-radius: var(--ct-radius-sm); background: var(--ct-sunken); box-shadow: inset 3px 0 0 var(--ct-fg-2), inset 0 0 0 1px var(--ct-line); font-size: var(--ct-text-sm); color: var(--ct-fg); }
.ct-finds-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0; min-width: 0; }
.ct-finds-line > span, .ct-finds-line > strong { min-width: 0; overflow-wrap: anywhere; }
.ct-finds-go { display: inline-flex; align-items: baseline; gap: 0.35rem; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--ct-surface); color: var(--ct-fg); font-size: var(--ct-text-sm); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ct-line-strong); transition: background-color var(--ct-fast) var(--ct-ease); }
.ct-finds-go:hover { background: var(--ct-hover); }
.ct-finds-go:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 2px; }
.ct-finds-go b { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ct-finds-go { min-height: 2.75rem; align-items: center; } }
@media print { .ct-finds { display: none !important; } }

/* ---- "Filtered by": the filters that follow a person from tab to tab, in plain sight above the figures (Call and Service dashboards).
   The chips are the Sales dashboard's (.ct-sales-chip); the strip has its own class, because .ct-sales-chips also switches the charts' "PNG" buttons on. */
.ct-filtered { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.5rem 0.75rem; border-radius: var(--ct-radius); background: var(--ct-sunken); box-shadow: inset 0 0 0 1px var(--ct-line-strong); }
.ct-filtered .ct-panel-title { color: var(--ct-fg); margin-inline-end: 0.2rem; }
.ct-filtered .ct-sales-chip { background: var(--ct-surface); cursor: pointer; max-width: 100%; overflow-wrap: anywhere; text-align: start; }
.ct-filtered .ct-sales-chip:focus-visible, .ct-filtered .ct-more:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 1px; }
.ct-filtered .ct-more { margin: 0; }
@media print { .ct-filtered .ct-more, .ct-filtered .ct-sales-hint, .ct-filtered .ct-sales-chip span:last-child { display: none; } }

/* ---- Reports: the list of calls. The columns that fit are columns, one line a row; the rest are under each row with their names. */
.ct-report-list .ct-board-table tr:not(.ct-board-under) td { white-space: nowrap; overflow-wrap: normal; }
.ct-report-list .ct-board-table tr:not(.ct-board-under) td:not(:first-child) { max-width: 13rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1400px) {
    .ct-report-list .ct-board-table th, .ct-report-list .ct-board-table tr:not(.ct-board-under) td { padding-inline-end: 0.55rem; }
    .ct-report-list .ct-board-table tr:not(.ct-board-under) td:not(:first-child) { max-width: 9rem; }
}
@media (max-width: 1200px) {
    .ct-report-list .ct-board-table th, .ct-report-list .ct-board-table tr:not(.ct-board-under) td { padding-inline-end: 0.4rem; }
    .ct-report-list .ct-board-table tr:not(.ct-board-under) td:not(:first-child) { max-width: 7.5rem; }
}
.ct-report-list .ct-board-scroll { container-type: inline-size; }
.ct-report-list .ct-board-table tr.ct-board-under td > * { position: sticky; left: 0; max-width: 100cqw; }

/* ---- L3. the status tabs of the call list are never cut
   Seven tabs with their counts are about 860px; the list is 790px wide in an 1100px window, and narrower still in the
   split view. The row used to scroll sideways there, with "Closed" off the edge and nothing to say so. Now the tabs sit
   closer together below 1280px, and wherever they still do not fit the last ones go onto a second line. */
.fi-resource-calls.fi-resource-list-records-page .fi-page-content .fi-tabs { flex-wrap: wrap; overflow: visible; }
.fi-resource-calls.fi-resource-list-records-page .fi-page-content .fi-tabs .fi-tabs-item { flex: none; white-space: nowrap; }
@media (min-width: 900.02px) and (max-width: 1279.98px) { .fi-resource-calls.fi-resource-list-records-page .fi-page-content .fi-tabs .fi-tabs-item { padding-inline: 0.4rem; gap: 0.3rem; } }

/* ================================================================================ boards of cards: counts, "Show more", "Find on this board" (2 Dec 2026)
   The Quote board, the RMA board and the call list's "Board view" (resources/views/filament/pages/kanban/, App\Filament\Concerns\BoardOfCards).
   The owner: "it was there, but the page made it look missing". A column says at its TOP how many it holds and how many are drawn;
   the button that draws more is at its foot; one box above the columns finds a card among all of them, drawn or not. */
.ct-kanban-find { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.ct-kanban-find-box { position: relative; flex: 0 1 20rem; min-width: 12rem; }
.ct-kanban-find-box input { width: 100%; padding: 0.4rem 2rem 0.4rem 0.7rem; border: 0; outline: 2px solid transparent; outline-offset: 1px; border-radius: var(--ct-radius-sm); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong); color: var(--ct-fg); font-size: var(--ct-text-md); }
.ct-kanban-find-box input::placeholder { color: var(--ct-fg-3); }
.ct-kanban-find-box input:focus { box-shadow: inset 0 0 0 1px var(--ct-fg-2), 0 0 0 3px color-mix(in oklab, var(--ct-fg) 9%, transparent); }
.ct-kanban-find-clear { position: absolute; inset-block: 0; inset-inline-end: 0; width: 2rem; border-radius: var(--ct-radius-sm); color: var(--ct-fg-3); font-size: var(--ct-text-lg); line-height: 1; }
.ct-kanban-find-clear:hover { color: var(--ct-fg); }
.ct-kanban-find-says { flex: 1 1 14rem; font-size: var(--ct-text-sm); color: var(--ct-fg-3); overflow-wrap: anywhere; }
.ct-kanban-find-says strong { color: var(--ct-fg); font-weight: 650; }
/* The count sits beside the column's name and goes under it where the column is narrow (six columns on the RMA board). */
.ct-kanban-col header { flex-wrap: wrap; }
.ct-kanban-col header span { margin-inline-start: auto; text-align: end; color: var(--ct-fg-2); }
.ct-kanban.ct-rma .ct-kanban-col header span { white-space: normal; }      /* "None of 2 match · oldest 36 days" is wider than one of six columns */
.ct-kanban-order { margin: -0.3rem 0 0; padding-inline: 0.25rem; font-size: var(--ct-text-2xs); line-height: 1.35; color: var(--ct-fg-3); }
.ct-kanban-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0; padding: 0.15rem 0.25rem 0.1rem; font-size: var(--ct-text-xs); line-height: 1.4; color: var(--ct-fg-3); }
.ct-kanban-more { padding: 0.3rem 0.7rem; border-radius: var(--ct-radius-sm); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line-strong); color: var(--ct-fg); font-size: var(--ct-text-xs); font-weight: 600; white-space: nowrap; }
.ct-kanban-more:hover { background: var(--ct-hover); }
.ct-kanban-more[disabled] { opacity: 0.6; cursor: progress; }
.ct-kanban-more:focus-visible, .ct-kanban-find-clear:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 1px; }
/* An empty board under a narrow scope says so and offers the wide one ("Nothing under My calls. Show All calls"). */
.ct-kanban-none { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin: 0; padding: 0.6rem 0.8rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line); font-size: var(--ct-text-md); color: var(--ct-fg-2); }
@media (max-width: 640px) {
    .ct-kanban-find-box { flex-basis: 100%; }
    .ct-kanban-find-box input { font-size: var(--ct-text-lg); padding-block: 0.55rem; }      /* large enough that a phone does not zoom the page on focus */
    .ct-kanban-find-clear { width: 2.75rem; }
    .ct-kanban-more { min-height: 2.75rem; padding-inline: 1rem; font-size: var(--ct-text-sm); }
    /* Board view has five scopes: on a phone they go onto a second line instead of sliding off the edge with nothing to say so. */
    .ct-board-bar [data-ct-board-scopes] { flex-wrap: wrap; overflow: visible; }
}
@media print { .ct-kanban-find, .ct-kanban-more { display: none !important; } }

/* ---- a call's page for a sign-in that only reads: one quiet line where "Add update" and "Edit" would be (AdminPanelProvider) */
.ct-readonly { margin: 0; align-self: center; font-size: var(--ct-text-sm); line-height: 1.35; color: var(--ct-fg-3); }

/* ---- My work: the line under "Assigned to me" ("8 of 1,207 · Open them in the call list") is ordinary text, not a label */
.fi-wi-table .fi-ta-header-description { font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
.fi-wi-table .fi-ta-header-description .ct-c-link { color: var(--ct-fg); font-weight: 600; }
.ct-quick:has(.ct-finds) { display: grid; gap: var(--ct-gap-1); height: auto; }
.ct-finds-dot { color: var(--ct-fg-3); }
/* A sales table in a half-width panel was a few pixels wider than the panel at 1280: a little less air between its columns there. */
@media (max-width: 1320px) { .ct-board-table.ct-sales-table th:not(:last-child), .ct-board-table.ct-sales-table td:not(:last-child) { padding-inline-end: 0.55rem; } }

/* ---- L4. pages that were cut at the right with no way to scroll
   Administration > "Sign in with Microsoft", Automation and Call e-mails share one wrapper: its single column took the
   width of its widest content (a long address, a table) instead of the page's, and the page cut what stuck out. */
.ct-automation { grid-template-columns: minmax(0, 1fr); }
.ct-automation .ct-copyable, .ct-automation code { overflow-wrap: anywhere; }
/* Team: the table scrolls inside its panel on a narrow screen (.ct-board-scroll), and the bar gives way first. */
.ct-team-scroll { margin-top: 0; }
@media (max-width: 900px) { .ct-team .ct-team-bar { width: auto; min-width: 2.5rem; } .ct-team th, .ct-team td { white-space: nowrap; } }
/* A call's heading: with several people on a call the facts no longer run past the right edge. The block keeps room for
   the customer's name beside it, and the list of people wraps inside it (everything else in it stays on one line). */
.ct-callhead-facts { max-width: 100%; }
.ct-callhead-facts > div:last-child { min-width: 0; }
.ct-callhead-facts > div:last-child > .ct-fact-value { flex-wrap: wrap; row-gap: 0.15rem; }
@media (min-width: 1100.02px) { .ct-callhead:not(.ct-custhead) > .ct-callhead-facts { max-width: calc(100% - 14rem); } }
/* Users: the row's buttons stay in view when the table is wider than the window; and a button that is shown but not possible. */
@media (min-width: 900px) {
    .fi-resource-users .fi-ta-table td:has(> .fi-ta-actions) { position: sticky; right: 0; z-index: 1; background: var(--ct-surface); box-shadow: -1px 0 0 var(--ct-line); }
    .fi-resource-users .fi-ta-table .fi-ta-row:hover td:has(> .fi-ta-actions) { background: var(--ct-hover); }
}
.ct-action-off, .ct-action-off:hover { opacity: 0.5; cursor: not-allowed; }

/* ---- a Sales table's tools: "Find in all 4,106…", how many match, the CSV button */
.ct-sales-head .ct-tbl-tools { flex: none; max-width: 100%; }
.ct-sales-head .ct-tbl-tools .ct-sales-csv { margin: 0; }
.ct-tbl-place { font-weight: 400; font-size: var(--ct-text-xs); }
@media (max-width: 640px) { .ct-sales-head { flex-wrap: wrap; } }

/* ---- L5. controls that say what they are
   The list's "Filters" and "More columns" buttons carry their names; below 1100px the words give way to the icons (the
   names stay for a screen reader). */
.fi-resource-calls.fi-resource-list-records-page .fi-ta-header-toolbar .ct-toolbar-named { white-space: nowrap; }
@media (max-width: 1099.98px) {
    /* (The words are the button's own text, so they are shrunk to nothing rather than taken out: the name is still read out.) */
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-toolbar .ct-toolbar-named { font-size: 0; gap: 0; padding-inline: 0.45rem; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-toolbar .ct-toolbar-named .fi-badge { font-size: var(--ct-text-2xs); margin-inline-start: 0.25rem; }
}
/* A cell of the list that can be changed in place shows a small pencil while the pointer or the keyboard is on its row. */
.fi-resource-calls.fi-resource-list-records-page .fi-ta-table td[data-ct-edit] { position: relative; }
.ct-cell-pencil { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ct-radius-sm); background: var(--ct-surface); color: var(--ct-fg-2); box-shadow: inset 0 0 0 1px var(--ct-line-strong); opacity: 0; transition: opacity var(--ct-fast) var(--ct-ease); }
.ct-cell-pencil svg { width: 0.72rem; height: 0.72rem; }
.fi-ta-row:hover .ct-cell-pencil, .fi-ta-row:focus-within .ct-cell-pencil, .fi-ta-row.ct-row-selected .ct-cell-pencil, .ct-cell-pencil:focus-visible { opacity: 1; }
.ct-cell-pencil:hover { color: var(--ct-fg); background: var(--ct-hover); }
.ct-cell-pencil:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: 1px; }
@media (hover: none) { .ct-cell-pencil { opacity: 0.7; } }
@media (max-width: 640px), print { .ct-cell-pencil { display: none !important; } }
/* A call: the one line that stands where panels hidden with "Arrange" would be. */
.ct-hidden-panels { grid-column: 1 / -1; margin: 0; padding: 0.35rem 0.7rem; border-radius: var(--ct-radius-sm); box-shadow: inset 0 0 0 1px var(--ct-line); color: var(--ct-fg-2); font-size: var(--ct-text-xs); display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; }
.ct-hidden-panels .ct-more { margin: 0; text-decoration: underline; text-underline-offset: 2px; }
/* A row of a Sales table lights up under the pointer: the cells that stay in place light up with it. */
.ct-board-scroll[data-ct-x-wide] > table.ct-sales-table > tbody > tr[data-url]:hover > td:first-child,
.ct-board-scroll[data-ct-x-wide][data-ct-x-pin='2'] > table.ct-sales-table > tbody > tr[data-url]:hover > td:nth-child(2) { background: var(--ct-hover); }
/* The name that stays beside a ranking's "#" keeps room for a word or two on a phone. */
.ct-board-scroll[data-ct-x-wide][data-ct-x-pin='2'] > table > tbody > tr:not(.ct-board-under) > td:nth-child(2) { min-width: 7.5rem; overflow-wrap: break-word; }
/* Room for the pencil: the value of such a cell ends where the pencil begins, so the pencil never lies on its last letters.
   (Compact rows give the status and the due date exactly the width their text needs: "F" above counts the pencil in.) */
@media (min-width: 641px) {
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-table td[data-ct-edit] .fi-ta-text { padding-inline-end: 1.3rem; }
}
/* Ordinary rows share the window's width by percentages ("every column of the old list in sight", above). The three columns
   that carry a pencil get the room for it from the columns of free text beside them; the sum is what it was (94%). */
@media (min-width: 1100px) {
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-status { width: 9%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-assigned-to\.name { width: 8.5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-due-on { width: 7%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-id { width: 6.5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-model-summary { width: 8%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-opened-by\.name { width: 7%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-dept-group { width: 5%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-contact\.name { width: 7%; }
    .fi-resource-calls.fi-resource-list-records-page .fi-ta-header-cell-company\.parent\.name { width: 5.5%; }
}
/* Users in a narrower window: a name breaks between its words and an address before its "@", never inside a word; and the row's
   buttons are their icons (their names stay for a screen reader and on hover), so the table needs less room. */
.fi-resource-users .fi-ta-table .fi-ta-cell .fi-ta-text-item { overflow-wrap: normal; word-break: normal; hyphens: none; }
.fi-resource-users .fi-ta-table .fi-ta-cell-email .fi-ta-text-item { white-space: normal; }
@media (max-width: 1439.98px) {
    .fi-resource-users .fi-ta-table .fi-ta-actions .fi-link { font-size: 0; gap: 0; }
    .fi-resource-users .fi-ta-table .fi-ta-actions .fi-link .fi-icon { width: 1.15rem; height: 1.15rem; }
}
/* Below 1280px the cells of the Users table stand closer together, so that it still fits an 1100px window and nothing has to
   hide under the frozen buttons. (Narrower than that it scrolls sideways, with the buttons kept in view.) */
@media (min-width: 900px) and (max-width: 1279.98px) {
    .fi-resource-users .fi-ta-table .fi-ta-cell .fi-ta-text, .fi-resource-users .fi-ta-table .fi-ta-cell .fi-ta-icon, .fi-resource-users .fi-ta-table .fi-ta-header-cell { padding-inline: 0.35rem; }
    .fi-resource-users .fi-ta-table .fi-ta-cell:first-child .fi-ta-text, .fi-resource-users .fi-ta-table .fi-ta-header-cell:first-child { padding-inline-start: 0.9rem; }
}

/* ================================================================================ a call: the everyday buttons (the owner, 2 Dec 2026)
   "Close call" (on a closed call "Reopen"), "Add files" and, while nobody has the call, "Assign to me" are buttons of their
   own in the header, after "Edit". Each is on the page twice, as that button ([data-ct-out]) and as an entry under "More"
   ([data-ct-in]); these rules show exactly one of the two. Where the row of buttons would not fit on one line, the script
   says how many to fold back under "More" (data-ct-head-fold on <html>, 1 to 3: "Assign to me" first, then "Add files",
   "Close call" last). On a phone all three stay under "More", as before. */
@media (min-width: 640.02px) {
    html:not([data-ct-head-fold]) [data-ct-in], html[data-ct-head-fold='1'] [data-ct-in]:not([data-ct-in='assign']), html[data-ct-head-fold='2'] [data-ct-in='close'] { display: none !important; }
    html[data-ct-head-fold] [data-ct-out='assign'], html:is([data-ct-head-fold='2'], [data-ct-head-fold='3']) [data-ct-out='files'], html[data-ct-head-fold='3'] [data-ct-out='close'] { display: none !important; }
}
@media (max-width: 640px) { [data-ct-out] { display: none !important; } }
@media print { [data-ct-out] { display: none !important; } }

/* ================================================================================ call list: "Someone's calls" (the owner, 2 Dec 2026)
   The sixth choice in the row of scopes, and its picker of people. The button looks like the other five; the picker hangs
   under it, above the list's headings and under dialogs like the "Quick filters" menu (30). */
.ct-scope-row { position: relative; width: fit-content; max-width: 100%; }
.ct-scope-row > .ct-scope-tabs { display: flex; }
.ct-someone-pop { position: absolute; z-index: 30; top: calc(100% + 0.35rem); right: 0; width: min(19rem, calc(100vw - 2rem)); display: grid; gap: 0.35rem; padding: 0.4rem; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: inset 0 0 0 1px var(--ct-line), var(--ct-shadow-lift); }
.ct-someone-find { width: 100%; padding: 0.35rem 0.6rem; border-radius: var(--ct-radius-sm); background: var(--ct-surface); color: var(--ct-fg); font-size: var(--ct-text-sm); box-shadow: inset 0 0 0 1px var(--ct-line-strong); border: 0; }
.ct-someone-find:focus { outline: 2px solid var(--ct-fg); outline-offset: 1px; }
.ct-someone-list { display: grid; gap: 0.1rem; max-height: min(22rem, 55vh); overflow-y: auto; }
.ct-someone-item { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; text-align: left; padding: 0.35rem 0.6rem; border-radius: var(--ct-radius-sm); font-size: var(--ct-text-sm); color: var(--ct-fg); }
.ct-someone-item:hover, .ct-someone-item:focus-visible { background: var(--ct-hover); }
.ct-someone-item:focus-visible { outline: 2px solid var(--ct-fg); outline-offset: -2px; }
.ct-someone-item.is-on { font-weight: 600; box-shadow: inset 3px 0 0 var(--ct-fg); }
.ct-someone-item.is-gone, .ct-someone-item small { color: var(--ct-fg-2); }
.ct-someone-item small { font-size: var(--ct-text-xs); }
.ct-someone-item b { flex: none; font-family: var(--ct-mono); font-weight: 500; font-size: var(--ct-text-xs); color: var(--ct-fg-2); font-variant-numeric: tabular-nums; }
.ct-someone-none { margin: 0; padding: 0.35rem 0.6rem; font-size: var(--ct-text-sm); color: var(--ct-fg-2); }
@media (max-width: 640px) { .ct-someone-item { min-height: 2.75rem; align-items: center; } }
@media print { .ct-someone-pop { display: none !important; } }

/* ---- Administration > Problems: the report of a problem, line for line as it is copied (text from an error or a
   browser, printed as text). Long lines break instead of pushing the page wide. */
.ct-problem-lines { font-size: var(--ct-text-sm); line-height: 1.6; color: var(--ct-fg-2); overflow-wrap: anywhere; word-break: break-word; }
