/* ==========================================================================
   Nationwide Auto Parts CRM - design system
   One hand-written stylesheet, no build step, no third-party CSS.

   1. Tokens (dark "Midnight" default, light "Daylight")
   2. Base
   3. App shell: sidebar, top bar, page
   4. Components
   5. Screens
   6. Utilities, print
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #080d17;
  --bg-sunken: #060a12;
  --surface: #0f1726;
  --surface-2: #141e31;
  --surface-3: #1a263d;
  --surface-hover: #18233a;
  --overlay: rgba(4, 7, 13, 0.72);

  /* lines */
  --border: #1f2c45;
  --border-strong: #2b3c5c;
  --border-focus: #e5b84f;
  /* The edge of a box to type in, of a tick box and of a switch: 3 to 1 against the card it stands on (--border-strong is 1.6). */
  --border-input: #566a90;

  /* text. --text-3 is the quietest text colour: it keeps 4.5:1 on every surface below, do not make it fainter. */
  --text: #e8edf6;
  --text-2: #aab6cb;
  --text-3: #8090ac;
  --text-inverse: #0b1220;

  /* brand: navy and brass, taken from the company shield */
  --brand: #e5b84f;
  --brand-hover: #f0c968;
  --brand-active: #d3a53a;
  --brand-ink: #1b1403;
  --brand-soft: rgba(229, 184, 79, 0.12);
  --brand-line: rgba(229, 184, 79, 0.34);

  --link: #7fb0ff;
  --link-hover: #a8c9ff;

  /* status hues: fg / soft background / line */
  --gray: #a3afc4;      --gray-soft: rgba(148, 163, 190, 0.13);   --gray-line: rgba(148, 163, 190, 0.28);
  --blue: #7db0ff;      --blue-soft: rgba(79, 141, 255, 0.15);    --blue-line: rgba(79, 141, 255, 0.36);
  --indigo: #a5a8ff;    --indigo-soft: rgba(124, 128, 255, 0.16); --indigo-line: rgba(124, 128, 255, 0.36);
  --violet: #c9a4ff;    --violet-soft: rgba(168, 112, 255, 0.16); --violet-line: rgba(168, 112, 255, 0.36);
  --cyan: #6fd6ee;      --cyan-soft: rgba(45, 190, 222, 0.14);    --cyan-line: rgba(45, 190, 222, 0.34);
  --teal: #5fdcc0;      --teal-soft: rgba(38, 198, 166, 0.14);    --teal-line: rgba(38, 198, 166, 0.34);
  --green: #6fdc8c;     --green-soft: rgba(52, 199, 100, 0.14);   --green-line: rgba(52, 199, 100, 0.34);
  --amber: #f3c969;     --amber-soft: rgba(240, 180, 60, 0.14);   --amber-line: rgba(240, 180, 60, 0.34);
  --orange: #ffa666;    --orange-soft: rgba(255, 138, 61, 0.15);  --orange-line: rgba(255, 138, 61, 0.36);
  --red: #ff8a8a;       --red-soft: rgba(244, 78, 78, 0.15);      --red-line: rgba(244, 78, 78, 0.38);
  --pink: #ff9bd0;      --pink-soft: rgba(240, 90, 170, 0.15);    --pink-line: rgba(240, 90, 170, 0.36);

  /* --danger is for lines and marks; --danger-solid is the fill behind white text (4.5:1) */
  --danger: #f25f5f;
  --danger-hover: #f67a7a;
  --danger-solid: #d23c3c;
  --danger-solid-hover: #c03232;
  --success: #3ccf78;

  /* shape */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --ring: 0 0 0 3px rgba(229, 184, 79, 0.28);

  /* type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs: 13.5px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;

  /* layout */
  --sidebar-w: 252px;
  --sidebar-w-collapsed: 64px;
  --topbar-h: 56px;
  --control-h: 34px;
  --control-h-sm: 28px;
  --control-h-lg: 40px;
  /* The one height of a filter bar: its boxes and its Search button, in every module (see "Filter bars" below). */
  --filter-h: 32px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f3f5f9;
  --bg-sunken: #e9edf3;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f7;
  --surface-hover: #f1f4f9;
  --overlay: rgba(15, 23, 42, 0.45);

  --border: #dde3ec;
  --border-strong: #c5cedc;
  --border-input: #7f8ba1;
  /* 3 to 1 and more against every light surface (#b8860b was 2.8 on the sunken ones). Against --border-input it is
     only 1.4 to 1: a box to type in therefore marks the focus with a line of 2px, not with the colour of its edge alone. */
  --border-focus: #946a00;

  --text: #121a2b;
  --text-2: #4a5873;
  --text-3: #5b6880;
  --text-inverse: #ffffff;

  --brand: #14294d;
  --brand-hover: #1c386a;
  --brand-active: #0e1e3a;
  --brand-ink: #ffffff;
  --brand-soft: rgba(20, 41, 77, 0.08);
  --brand-line: rgba(20, 41, 77, 0.28);

  --link: #1d4fc4;
  --link-hover: #153c97;

  --gray: #4f5d78;      --gray-soft: #eef1f6;   --gray-line: #d5dce8;
  --blue: #1d53c9;      --blue-soft: #e6eeff;   --blue-line: #bcd0fb;
  --indigo: #4347c9;    --indigo-soft: #ebebff; --indigo-line: #c9caf8;
  --violet: #7236c9;    --violet-soft: #f1e8ff; --violet-line: #d9c4f9;
  --cyan: #0a7590;      --cyan-soft: #e0f6fb;   --cyan-line: #a9e0ee;
  --teal: #0a7862;      --teal-soft: #dff7f1;   --teal-line: #a6e3d5;
  --green: #197a3c;     --green-soft: #e2f6e9;  --green-line: #ade0bf;
  --amber: #8a5a00;     --amber-soft: #fdf2d6;  --amber-line: #efd491;
  --orange: #b04a0b;    --orange-soft: #ffeede; --orange-line: #f6c9a3;
  --red: #c02626;       --red-soft: #fde8e8;    --red-line: #f5bcbc;
  --pink: #b3236f;      --pink-soft: #fde7f2;   --pink-line: #f4bbd7;

  --danger: #d03535;
  --danger-hover: #b92a2a;
  --danger-solid: #d03535;
  --danger-solid-hover: #b92a2a;
  --success: #1f9d55;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 6px 20px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.18), 0 2px 6px rgba(16, 24, 40, 0.08);
  --ring: 0 0 0 3px rgba(29, 79, 196, 0.22);
}

/* 2. Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--border-strong) transparent;
  /* The top bar and the save bar stick to the edges of the window and lie over the page. When the browser brings
     something into view (the box the Tab key or Shift+Tab lands on, the page after "Skip to content", the section a
     link jumps to), it keeps this much room free, so the box that has the focus is never under a bar and nobody
     types into a box they cannot see. */
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}
/* The room for the save bar, on the pages that have one. 62px is the bar with its buttons in one row; where they wrap
   (a narrow window) the bar is higher, and access.js then puts the height it measures in place of this. */
html:has(.actionbar) { scroll-padding-bottom: 76px; }
/* On a phone the bar of the order page has two rows, and three lines of words with a long hint (order.css): up to
   123px. The room is kept here as well, for the moment before access.js has measured the bar. */
@media (max-width: 640px) { html:has(.order-actionbar) { scroll-padding-bottom: 140px; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.5;
  /* What people read is what is stored. The font would otherwise redraw letters as signs wherever they stand in a
     certain neighbourhood (its "contextual alternates", which a browser applies unless told not to): an x between
     two digits became a multiplication sign (4x4, 5x114.3, the user name rvk3x9c) and "->" an arrow. Switched off
     for every text of the CRM; it is inherited, also by the boxes of a form. Do not set font-feature-settings
     anywhere: where it is set it replaces what is inherited, and "calt", "dlig" and "frac" must never be on. */
  font-variant-ligatures: no-contextual;
  /* A word longer than its line (a name, a part or an e-mail address typed as one run of letters) breaks inside its
     box instead of reaching past it and making the page wider than the window. This alone changes no width of a
     column or a card; where such a word stands in a row of parts (a flex row), the part also needs "min-width: 0;
     overflow-wrap: anywhere", as the record headings and the alerts below have. */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 620; letter-spacing: -0.011em; line-height: 1.25; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
/* Where a component shows the focus with a glow (box-shadow: var(--ring)) and a coloured edge, it keeps an outline
   that cannot be seen (transparent) instead of "outline: none": a high-contrast theme takes glows away and draws
   every outline in its own colour, so the focus is still marked there. Do the same in a stylesheet of a page. */

::selection { background: var(--brand-soft); color: var(--text); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.icon { flex: none; stroke-width: 1.75; }

/* A figure is never broken over two lines ("$18,99" above "9.99" reads as two amounts): where it is too long for its
   place it reaches past it, whole. */
.num, .tabular { font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.mono { font-family: var(--mono); font-size: 0.94em; letter-spacing: -0.01em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* A fact that only a tooltip holds, on something that cannot take the focus (the full date behind "3h ago"):
   access.js copies the tooltip into data-told, and this writes it after the element's own words for screen readers,
   out of sight like .sr-only. Nothing is added to the text of the page itself. */
[data-told]::after {
  content: " (" attr(data-told) ")";
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* First stop of the Tab key on every page: jumps over the menu and the top bar to the page itself. */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: var(--radius);
  font-weight: 600; box-shadow: var(--shadow); transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--brand-ink); outline: 2px solid var(--text); outline-offset: 2px; }
/* The page takes the focus after that jump; it is not something to draw a ring around. */
.page:focus { outline: none; }

/* 3. App shell ------------------------------------------------------------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.18s var(--ease);
}
.app[data-sidebar="collapsed"] { grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr); }

/* Sidebar */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg-sunken);
  border-right: 1px solid var(--border);
  z-index: 40;
}
.sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  height: var(--topbar-h); padding: 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text); flex: none;
}
.sidebar__brand:hover { color: var(--text); }
.sidebar__logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--border-strong); }
.sidebar__brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.sidebar__brand-name { font-weight: 650; font-size: 13.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__brand-sub { font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }

.sidebar__scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 8px 16px; scrollbar-width: thin; }

.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 2px; }
.nav-group__label {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 4px 10px; margin-bottom: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-3); background: none; border: 0; border-radius: var(--radius-sm);
}
button.nav-group__label:hover { color: var(--text-2); }
.nav-group__label .icon { transition: transform 0.15s var(--ease); opacity: 0.7; }
.nav-group[data-open="false"] .nav-group__label .icon { transform: rotate(-90deg); }
.nav-group[data-open="false"] .nav-group__items { display: none; }

.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 10px; margin: 1px 0;
  border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 13px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item .icon { color: var(--text-3); transition: color 0.12s; }
.nav-item:hover .icon { color: var(--text-2); }
.nav-item__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-item__count {
  min-width: 22px; padding: 0 6px; height: 18px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--text-3); background: var(--surface-2);
}
/* A count of zero is quieter, not fainter: the text keeps its contrast, the fill goes. */
.nav-item__count[data-zero="true"] { background: none; box-shadow: inset 0 0 0 1px var(--border); font-weight: 500; }
/* The one count that asks for attention (overdue reminders). It pulses three times after the page opens, then rests. */
.nav-item__count[data-alert="true"] { color: var(--brand-ink); background: var(--brand); box-shadow: none; font-weight: 600; animation: blink 1.6s ease-in-out 3; }
:root[data-theme="light"] .nav-item__count[data-alert="true"] { color: #fff; background: var(--danger-solid); }

.nav-item[aria-current="page"] { background: var(--brand-soft); color: var(--text); }
.nav-item[aria-current="page"] .icon { color: var(--brand); }
.nav-item[aria-current="page"]::before {
  content: ""; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand);
}
.nav-item[aria-current="page"] .nav-item__count:not([data-alert="true"]) { color: var(--text); background: var(--surface-3); box-shadow: none; }
.nav-item:focus-visible { outline-offset: -2px; }

.nav-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin: 0 4.5px; background: var(--gray); }

.sidebar__footer { flex: none; border-top: 1px solid var(--border); padding: 8px; }
.sidebar__collapse { width: 100%; margin: 0; background: none; border: 0; text-align: left; }
.sidebar__collapse-key { margin-left: auto; }

/* Folded to icons. Only on a screen wide enough to keep the menu beside the page; on a small screen it slides over the page in full. */
@media (min-width: 901px) {
  .app[data-sidebar="collapsed"] .sidebar__brand-text,
  .app[data-sidebar="collapsed"] .nav-item__label,
  .app[data-sidebar="collapsed"] .nav-item__count,
  .app[data-sidebar="collapsed"] .sidebar__collapse-key { display: none; }
  /* A thin line stands in for the group heading (the heading button itself goes, so the Tab key does not stop on something unseen). */
  .app[data-sidebar="collapsed"] .nav-group__label { display: none; }
  .app[data-sidebar="collapsed"] .nav-group + .nav-group::before { content: ""; display: block; height: 1px; margin: 8px 12px 10px; background: var(--border); }
  .app[data-sidebar="collapsed"] .nav-group[data-open="false"] .nav-group__items { display: block; }
  .app[data-sidebar="collapsed"] .nav-item { justify-content: center; padding: 0; }
  .app[data-sidebar="collapsed"] .sidebar__brand { justify-content: center; padding: 0; }
  .app[data-sidebar="collapsed"] .sidebar__collapse .icon { transform: scaleX(-1); }
  /* The count is out of sight, so a count that asks for attention leaves a dot on its icon. */
  .app[data-sidebar="collapsed"] .nav-item:has(.nav-item__count[data-alert="true"])::after {
    content: ""; position: absolute; top: 5px; right: 12px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 2px var(--bg-sunken);
  }
  :root[data-theme="light"] .app[data-sidebar="collapsed"] .nav-item:has(.nav-item__count[data-alert="true"])::after { background: var(--danger-solid); }
}

/* Main column */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  height: var(--topbar-h); padding: 0 20px 0 12px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__search {
  display: flex; align-items: center; gap: 10px;
  flex: 1; max-width: 520px; height: 36px; padding: 0 10px 0 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-3); font-size: 13px; text-align: left;
  transition: border-color 0.12s, background 0.12s;
}
.topbar__search:hover { border-color: var(--border-strong); color: var(--text-2); background: var(--surface-2); }
.topbar__search:focus-visible { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--border-focus); box-shadow: var(--ring); }
.topbar__search { min-width: 36px; }
.topbar__search-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar__nav { flex: none; }
.topbar__actions { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
/* (.topbar in front of a button's class: these have to win over the .btn rules further down.) */
.topbar .topbar__orders { padding: 0 10px; }

/* Reminders bell: rings (and carries the number) only while something is overdue. */
.topbar__bell { position: relative; }
.topbar__badge { position: absolute; top: -3px; right: -3px; }
.topbar__bell-ringing { display: none; color: var(--amber); }
.topbar__bell:not([data-overdue="0"]) .topbar__bell-quiet { display: none; }
.topbar__bell:not([data-overdue="0"]) .topbar__bell-ringing { display: block; }

/* Theme switch: the icon and the words name the theme the button switches to. */
.theme-icon--to-dark, .theme-label--to-dark { display: none; }
:root[data-theme="light"] .theme-icon--to-light, :root[data-theme="light"] .theme-label--to-light { display: none; }
:root[data-theme="light"] .theme-icon--to-dark { display: block; }
:root[data-theme="light"] .theme-label--to-dark { display: inline; }

/* The person's own menu ("Account and more") */
.topbar .topbar__user-button { position: relative; gap: 7px; padding: 0 8px 0 4px; }
.topbar__user-name { max-width: 140px; color: var(--text); }
.topbar__user-chevron { color: var(--text-3); }
.topbar .menu__panel { max-width: calc(100vw - 16px); }
/* Entries that stand in for top bar buttons: shown only while their button has no room (see below). */
.topbar .topbar__more { display: none; }
.topbar__more::after { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
:root[data-theme="light"] .topbar__more::after, :root[data-theme="light"] .topbar__user-button::after { background: var(--blue); }
.topbar:has(.notes-menu:not([data-unseen="0"])) .topbar__more--notes::after,
body:has(.board[data-unread="true"]) .topbar__more--board::after { content: ""; }

/* Top bar: narrow windows -----------------------------------------------------
   The steps follow the width of the top bar itself, not of the window, so they
   are right with the side menu open, folded or out of the way. In this order:
   key hints go, the name gives way to the initials, labels fold into their
   icons, the theme switch moves into the person's menu, the search box becomes
   a button, and last Orders, Notifications and the Team board move into the
   person's menu too. Nothing is dropped and nothing runs past the edge.
   Change a step here and in the copy for old browsers right below. */
.topbar { container: topbar / inline-size; }
@container topbar (max-width: 1150px) {
  .topbar__search kbd { display: none; }
}
@container topbar (max-width: 1040px) {
  .topbar__user-name { display: none; }
  .topbar .topbar__user-button { padding: 0 4px; }
}
@container topbar (max-width: 900px) {
  .topbar__label, .topbar__gp-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .topbar .topbar__new, .topbar .topbar__orders { width: var(--control-h); padding: 0; }
}
@container topbar (max-width: 720px) {
  .topbar .topbar__theme { display: none; }
  .topbar .menu__item.topbar__more--theme { display: flex; }
  .topbar .menu__sep.topbar__more--theme { display: block; }
}
@container topbar (max-width: 600px) {
  .topbar__search { flex: none; width: var(--control-h); height: var(--control-h); padding: 0; justify-content: center; }
  .topbar__search-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}
@container topbar (max-width: 500px) {
  .topbar .topbar__orders, .topbar .notes-menu, .topbar .topbar__board { display: none; }
  .topbar .topbar__more--orders, .topbar .topbar__more--notes, .topbar .topbar__more--board { display: flex; }
  .topbar__actions { gap: 4px; }
  .topbar__gp > .icon, .topbar__user-chevron { display: none; }
  .topbar .topbar__user-button { padding: 0 2px; }
  /* Something new behind the person's menu: the same quiet dot the two buttons show. */
  .topbar:has(.notes-menu:not([data-unseen="0"])) .topbar__user-button::after,
  body:has(.board[data-unread="true"]) .topbar__user-button::after {
    content: ""; position: absolute; top: 1px; right: 0; width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 2px var(--bg);
  }
}
/* The same steps for a browser without container queries (before 2023), by the width of the window. */
@supports not (container-type: inline-size) {
  @media (max-width: 1400px) { .topbar__search kbd { display: none; } }
  @media (max-width: 1290px) { .topbar__user-name { display: none; } .topbar .topbar__user-button { padding: 0 4px; } }
  @media (max-width: 1150px) {
    .topbar__label, .topbar__gp-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .topbar .topbar__new, .topbar .topbar__orders { width: var(--control-h); padding: 0; }
  }
  @media (max-width: 970px) {
    .topbar .topbar__theme { display: none; }
    .topbar .menu__item.topbar__more--theme { display: flex; }
    .topbar .menu__sep.topbar__more--theme { display: block; }
  }
  @media (max-width: 600px) {
    .topbar__search { flex: none; width: var(--control-h); height: var(--control-h); padding: 0; justify-content: center; }
    .topbar__search-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  }
  @media (max-width: 500px) {
    .topbar .topbar__orders, .topbar .notes-menu, .topbar .topbar__board { display: none; }
    .topbar .topbar__more--orders, .topbar .topbar__more--notes, .topbar .topbar__more--board { display: flex; }
    .topbar__actions { gap: 4px; }
    .topbar__gp > .icon, .topbar__user-chevron { display: none; }
    .topbar .topbar__user-button { padding: 0 2px; }
  }
}

.env-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 5px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--amber); background: var(--amber-soft); border-bottom: 1px solid var(--amber-line);
}

.page { flex: 1; padding: 22px 28px 48px; min-width: 0; }
.page--narrow { max-width: 880px; margin: 0 auto; width: 100%; }
.page--medium { max-width: 1180px; margin: 0 auto; width: 100%; }

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.page-header__main { min-width: 0; }
.page-header__title { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-header__sub { margin-top: 3px; color: var(--text-2); font-size: 13px; }
.page-header__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.breadcrumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12.5px; color: var(--text-3); }
.breadcrumbs a { color: var(--text-3); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .icon { opacity: 0.6; }

.app-footer { padding: 14px 28px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; }

/* 4. Components ------------------------------------------------------------ */

/* Buttons */
.btn {
  --btn-bg: var(--surface-2); --btn-bg-hover: var(--surface-3); --btn-fg: var(--text); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: var(--control-h); padding: 0 13px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-border); border-radius: var(--radius);
  font-size: 13px; font-weight: 560; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.05s, box-shadow 0.12s;
  user-select: none;
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); border-color: var(--border-focus); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
/* A filled button has no edge that could change colour (a brass edge on the brass button says nothing): a line around it. */
.btn--primary:focus-visible, .btn--success:focus-visible, .btn--danger-solid:focus-visible { outline-color: var(--border-focus); }

.btn--primary { --btn-bg: var(--brand); --btn-bg-hover: var(--brand-hover); --btn-fg: var(--brand-ink); --btn-border: transparent; font-weight: 620; }
/* White on this green is 5 to 1 (on the lighter #1f9d55 it was 3.5); under the pointer it goes darker, never lighter. */
.btn--success { --btn-bg: #15803d; --btn-bg-hover: #126b33; --btn-fg: #fff; --btn-border: transparent; font-weight: 620; }
.btn--danger { --btn-bg: transparent; --btn-bg-hover: var(--red-soft); --btn-fg: var(--red); --btn-border: var(--red-line); }
.btn--danger-solid { --btn-bg: var(--danger-solid); --btn-bg-hover: var(--danger-solid-hover); --btn-fg: #fff; --btn-border: transparent; }
.btn--ghost { --btn-bg: transparent; --btn-bg-hover: var(--surface-2); --btn-border: transparent; --btn-fg: var(--text-2); }
.btn--ghost:hover { color: var(--text); }
.btn--sm { height: var(--control-h-sm); padding: 0 9px; font-size: 12.5px; border-radius: var(--radius-sm); gap: 5px; }
.btn--lg { height: var(--control-h-lg); padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--icon { width: var(--control-h); padding: 0; }
.btn--icon.btn--sm { width: var(--control-h-sm); }
/* A button with a long label may wrap: in a narrow window the label breaks into lines instead of reaching past its card. */
.btn--wrap { max-width: 100%; height: auto; min-height: var(--control-h); padding-block: 5px; white-space: normal; line-height: 1.3; text-align: left; }
.btn--sm.btn--wrap { min-height: var(--control-h-sm); }
/* Waiting for the server. Set by app.js on the button of a form the browser is sending, or by NAP.busy(). */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin 0.6s linear infinite;
}
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

kbd, .kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
  font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px;
}

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); min-height: 50px; }
.card__title { font-size: 13.5px; font-weight: 620; display: flex; align-items: center; gap: 8px; }
.card__title .icon { color: var(--text-3); }
.card__sub { font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.card__actions { display: flex; align-items: center; gap: 6px; }
.card__body { padding: 16px; }
.card__body--flush { padding: 0; }
.card__footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card--accent { border-color: var(--brand-line); box-shadow: 0 0 0 1px var(--brand-soft), var(--shadow-sm); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--main-aside { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.grid--aside-main { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-all { grid-column: 1 / -1; }

/* Stat tiles */
.stat { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0; display: block; color: var(--text); position: relative; }
a.stat { transition: border-color 0.12s, background 0.12s, transform 0.12s; }
a.stat:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.stat__label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 550; color: var(--text-3); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__value { margin-top: 6px; font-size: 26px; font-weight: 650; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.1; overflow-wrap: normal; }
.stat__value small { font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.stat__meta { margin-top: 6px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat--brand .stat__value { color: var(--brand); }
.trend-up { color: var(--green); } .trend-down { color: var(--red); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field__label { font-size: 12px; font-weight: 560; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.field__hint { font-size: 12px; color: var(--text-3); }
/* "This box is full": app.js puts it under any box that has reached its maxlength. */
.field__hint--full { color: var(--amber); font-weight: 560; }
/* The same note for a box that stands in a row of boxes without a .field of its own (the search boxes above a list).
   app.js lays it over the page right under its box, so the row stays as it is; it shows while the cursor is in that
   box, so it never lies on a neighbour somebody wants to reach. */
.field__hint--floating {
  display: none; position: absolute; z-index: 15; margin: 0; width: max-content; max-width: min(300px, calc(100vw - 16px));
  padding: 6px 10px; border: 1px solid var(--amber-line); border-radius: var(--radius-sm);
  background: var(--surface-3); box-shadow: var(--shadow); line-height: 1.4; white-space: normal; text-align: left;
}
:focus + .field__hint--floating { display: block; }
.field__hint--floating:empty { visibility: hidden; }
.field__error { font-size: 12px; color: var(--red); display: flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
/* The edge of a box marked wrong is the full red for lines and marks, 3 to 1 and more against the card in both
   themes (the pale --red-line was 1.6 to 1: the boxes a person had to find were the faintest on the form). */
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }

.input, .select, .textarea {
  width: 100%; height: var(--control-h); padding: 0 11px;
  background: var(--bg-sunken); color: var(--text);
  border: 1px solid var(--border-input); border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.4;
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
  appearance: none; -webkit-appearance: none;
}
:root[data-theme="light"] .input, :root[data-theme="light"] .select, :root[data-theme="light"] .textarea { background-color: #fff; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--border-input) 55%, var(--text-2)); }
/* A box that has the focus draws a line of 2px in the focus colour inside its own edge (the edge itself and the
   pixel next to it). The colour of the edge alone no longer tells enough since the edge is --border-input: from that
   to the focus colour is 3 to 1 in the dark theme and only 1.4 to 1 in the light one. The line stands against the
   inside of the box (4.8 to 1 and more in both themes), and a high-contrast theme draws it in its own colour. */
.input:focus, .select:focus, .textarea:focus { border-color: var(--border-focus); box-shadow: var(--ring); outline: 2px solid var(--border-focus); outline-offset: -2px; }
.input[readonly], .textarea[readonly] { background: var(--surface-2); color: var(--text-2); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.textarea { height: auto; min-height: 84px; padding: 8px 11px; resize: vertical; line-height: 1.5; }
.select {
  padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238090ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.select option { background: var(--surface); color: var(--text); }
.input--sm, .select--sm { height: var(--control-h-sm); font-size: 12.5px; padding-left: 9px; border-radius: var(--radius-sm); }
.input--lg { height: var(--control-h-lg); font-size: 15px; }
.input--money { text-align: right; font-variant-numeric: tabular-nums; }
input[type="date"].input, input[type="datetime-local"].input, input[type="time"].input { font-variant-numeric: tabular-nums; }
input[type="number"].input { -moz-appearance: textfield; }
input[type="number"].input::-webkit-outer-spin-button, input[type="number"].input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.input-group { display: flex; align-items: stretch; position: relative; }
.input-group__addon {
  display: inline-flex; align-items: center; padding: 0 10px; height: var(--control-h);
  background: var(--surface-2); border: 1px solid var(--border-input); color: var(--text-3); font-size: 13px; white-space: nowrap;
}
.input-group__addon:first-child { border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.input-group__addon:last-child { border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.input-group .input:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group .input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon > .input { padding-left: 32px; }

.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text); }
.check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex: none; border: 1.5px solid var(--border-input); border-radius: 4px; background: var(--bg-sunken); display: grid; place-content: center; transition: background 0.1s, border-color 0.1s; cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: ""; width: 9px; height: 9px; background: var(--brand-ink); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input[type="radio"]:checked::after { clip-path: none; border-radius: 50%; width: 6px; height: 6px; }
/* A tick box and the option of a strip have no edge of their own that could light up, so the focus draws a solid
   line around them (the glow alone was too faint to see: under 2 to 1). */
.check input:focus-visible { box-shadow: var(--ring); outline: 2px solid var(--border-focus); outline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; margin: 0; border-radius: 20px; background: var(--surface-3); border: 1px solid var(--border-input); position: relative; transition: background 0.15s, border-color 0.15s; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-2); transition: transform 0.15s var(--ease), background 0.15s; }
.switch input:checked { background: var(--brand); border-color: var(--brand); }
.switch input:checked::after { transform: translateX(14px); background: var(--brand-ink); }

.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 14px; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }

.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 6px; }

.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset__legend { padding: 0; margin-bottom: 12px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 8px; width: 100%; }
.fieldset__legend::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Segmented control (radio group shown as buttons) */
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 5px; font-size: 12.5px; font-weight: 560; color: var(--text-2); transition: background 0.12s, color 0.12s; white-space: nowrap; }
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { box-shadow: var(--ring); outline: 2px solid var(--border-focus); outline-offset: 0; }
.segmented input:checked + span[data-tone="green"] { background: var(--green-soft); color: var(--green); }
.segmented input:checked + span[data-tone="red"] { background: var(--red-soft); color: var(--red); }
.segmented input:checked + span[data-tone="amber"] { background: var(--amber-soft); color: var(--amber); }

/* Pills and badges */
.pill {
  --pill-fg: var(--gray); --pill-bg: var(--gray-soft); --pill-line: var(--gray-line);
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
  border-radius: var(--radius-full); border: 1px solid var(--pill-line);
  background: var(--pill-bg); color: var(--pill-fg);
  font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1; letter-spacing: 0.005em;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill--plain::before { display: none; }
.pill--lg { height: 26px; padding: 0 11px; font-size: 12.5px; }
.pill[data-tone="blue"] { --pill-fg: var(--blue); --pill-bg: var(--blue-soft); --pill-line: var(--blue-line); }
.pill[data-tone="indigo"] { --pill-fg: var(--indigo); --pill-bg: var(--indigo-soft); --pill-line: var(--indigo-line); }
.pill[data-tone="violet"] { --pill-fg: var(--violet); --pill-bg: var(--violet-soft); --pill-line: var(--violet-line); }
.pill[data-tone="cyan"] { --pill-fg: var(--cyan); --pill-bg: var(--cyan-soft); --pill-line: var(--cyan-line); }
.pill[data-tone="teal"] { --pill-fg: var(--teal); --pill-bg: var(--teal-soft); --pill-line: var(--teal-line); }
.pill[data-tone="green"] { --pill-fg: var(--green); --pill-bg: var(--green-soft); --pill-line: var(--green-line); }
.pill[data-tone="amber"] { --pill-fg: var(--amber); --pill-bg: var(--amber-soft); --pill-line: var(--amber-line); }
.pill[data-tone="orange"] { --pill-fg: var(--orange); --pill-bg: var(--orange-soft); --pill-line: var(--orange-line); }
.pill[data-tone="red"] { --pill-fg: var(--red); --pill-bg: var(--red-soft); --pill-line: var(--red-line); }
.pill[data-tone="pink"] { --pill-fg: var(--pink); --pill-bg: var(--pink-soft); --pill-line: var(--pink-line); }
.pill[data-tone="brand"] { --pill-fg: var(--brand); --pill-bg: var(--brand-soft); --pill-line: var(--brand-line); }

.nav-dot[data-tone="blue"] { background: var(--blue); } .nav-dot[data-tone="indigo"] { background: var(--indigo); }
.nav-dot[data-tone="violet"] { background: var(--violet); } .nav-dot[data-tone="cyan"] { background: var(--cyan); }
.nav-dot[data-tone="teal"] { background: var(--teal); } .nav-dot[data-tone="green"] { background: var(--green); }
.nav-dot[data-tone="amber"] { background: var(--amber); } .nav-dot[data-tone="orange"] { background: var(--orange); }
.nav-dot[data-tone="red"] { background: var(--red); } .nav-dot[data-tone="pink"] { background: var(--pink); }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full); font-size: 11px; font-weight: 650; background: var(--surface-3); color: var(--text-2); font-variant-numeric: tabular-nums; }
.badge--brand { background: var(--brand); color: var(--brand-ink); }
.badge--danger { background: var(--danger-solid); color: #fff; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* Reference numbers (quote and order numbers) */
.ref { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
a.ref:hover { color: var(--brand); }
.ref--muted { color: var(--text-3); font-weight: 500; }

/* Avatar */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text-2); font-size: 11px; font-weight: 650; flex: none; letter-spacing: 0.02em; }
.avatar--sm { width: 22px; height: 22px; font-size: 9.5px; }
.avatar--lg { width: 40px; height: 40px; font-size: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: inherit; }
/* A table wider than its card takes the focus so that the arrow keys scroll it (access.js gives it a name); the line is drawn inside, where the card cannot cut it off. */
.table-wrap:focus-visible { outline-offset: -2px; }
/* Room left and right of every cell, and at the two outer edges of the table. A table that needs other room sets
   these two on itself (.my-table { --table-cell-x: 8px; --table-edge-x: 8px; }); a padding rule of its own would
   lose against the first and last column rules below, which is how a fixed-width last column once came out 8px short. */
/* position: what lies hidden inside a table (a .sr-only label in a heading) stays inside the box the table scrolls
   in, also where a page unpins its headings; otherwise such a label makes the whole page wider than the window. */
.table { position: relative; width: 100%; font-size: 13px; --table-cell-x: 12px; --table-edge-x: 16px; overflow-wrap: normal; }   /* a cell never breaks a figure in two; long text is clipped by its page (.cell-truncate) or widens the list, which scrolls */
.table th {
  position: sticky; top: 0; z-index: 1;
  padding: 9px var(--table-cell-x); text-align: left; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3);
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.table th:first-child { padding-left: var(--table-edge-x); } .table td:first-child { padding-left: var(--table-edge-x); }
.table th:last-child { padding-right: var(--table-edge-x); } .table td:last-child { padding-right: var(--table-edge-x); }
.table td { padding: 10px var(--table-cell-x); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.08s; }
.table tbody tr:hover { background: var(--surface-hover); }
.table tr[data-href] { cursor: pointer; }
.table .is-unread td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.table .is-unread .cell-primary { font-weight: 650; }
.table .is-flagged td { background: var(--amber-soft); }
.table--compact td { padding: 7px var(--table-cell-x); }
.table .t-right, .t-right { text-align: right; }
.table .t-center, .t-center { text-align: center; }
.table .t-nowrap { white-space: nowrap; }
.table th a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
/* A heading that is a link sorts the whole list on the server (the order lists, 360 Search). Like the button below
   it is 27px high to press; the margin takes the padding back, so the heading and its column stay as they were.
   (Only a link that stands in the heading cell itself: two links stacked in one cell each sit in a line of their
   own that cuts off whatever reaches past it.) */
.table th > a { margin: -5px -4px; padding: 5px 4px; border-radius: var(--radius-xs); }
.table th a:hover { color: var(--text); }
/* A heading that sorts the rows on the page. app.js puts the words of every list heading into such a button
   (the guide for developers says which); it looks like the heading it replaces and takes no room of its own. The arrow
   is drawn beside the words, in the room between two columns, so nothing moves when it appears. */
.th-sort {
  /* 27px high to press and to show the focus around; the margin takes the padding back, so the heading stays as high as it was. */
  position: relative; display: inline-block; margin: -5px -4px; padding: 5px 4px; border: 0; border-radius: var(--radius-xs); background: none;
  font: inherit; color: inherit; letter-spacing: inherit; word-spacing: inherit; text-transform: inherit; text-align: inherit;
  text-rendering: inherit; white-space: inherit; vertical-align: top; cursor: pointer;
}
.th-sort:hover, th[aria-sort] > .th-sort { color: var(--text); }
.table th:has(> button.th-sort) { cursor: pointer; }   /* a click anywhere in the heading cell sorts (app.js): the cell shows the hand as the words do */
.table th:has(> a[href]:only-child) { cursor: pointer; }   /* the same where the heading holds one link that sorts (a list the server sorts) */
.th-sort:focus-visible { outline-offset: 1px; }
.th-sort::before { content: ""; position: absolute; inset: -3px -2px; }   /* easier to hit than the words alone */
.th-sort::after {
  content: ""; position: absolute; left: 100%; top: 50%; margin: -3px 0 0 1px;
  border: 4px solid transparent; border-top-width: 0; border-bottom: 5px solid var(--text-3);
  visibility: hidden;
}
/* In the last column the arrow stands in front of the words: behind them it could reach past the edge of the table
   and give the box the list scrolls in a sideways scroll bar. */
th:last-child > .th-sort::after { left: auto; right: 100%; margin: -3px 1px 0 0; }
th:last-child > .th-sort::before { right: 0; }
.th-sort:hover::after, .th-sort:focus-visible::after { visibility: visible; }
th[aria-sort] > .th-sort::after { visibility: visible; border-bottom-color: var(--brand); }
th[aria-sort="descending"] > .th-sort::after { transform: rotate(180deg); }
.table tfoot td { background: var(--surface-2); font-weight: 620; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.cell-primary { font-weight: 560; color: var(--text); }
.cell-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
/* Right-aligned row buttons. Works on a <td> (stays a table cell) and on a <div>. */
.cell-actions { text-align: right; white-space: nowrap; }
.cell-actions > * { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.cell-actions > form { margin: 0 0 0 4px; }
div.cell-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
div.cell-actions > * { margin-left: 0; }
.cell-stack { display: flex; flex-direction: column; min-width: 0; }
.cell-truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Toolbar above tables */
.toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar__search { flex: 1; min-width: 200px; max-width: 360px; }
/* Filter bars. The row over a list or a report that narrows it down looks the same in every module: boxes and
   buttons of one height (--filter-h) with 13px text in the boxes, and "Search" is the plain small button
   (class "btn btn--sm"); the brand colour stays for the one main action of a page. The bars are the toolbars
   that are forms (lead lists, yards, audit list, Activity Log, Outbox, the Dashboard's lead search), the
   order lists (order-lists.css), the period row of the reports (reports.css), the filters of the Audit Report
   (audit.css) and of the Yards Report (yards.css), and the row of 360 Search (search.css). They used to be
   32, 34 and 40px high, with a plain button here and a brand one there. */
.toolbar .select, .toolbar .input { height: var(--filter-h); font-size: 13px; }
form.toolbar .btn { height: var(--filter-h); }
.toolbar .select { width: auto; min-width: 130px; }
.toolbar__spacer { flex: 1; }
.toolbar__count { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }

/* Chips row for status filters */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full);
  color: var(--text-2); font-size: 12.5px; font-weight: 550; white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.chip:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.chip[aria-current="true"], .chip.is-active { background: var(--brand-soft); border-color: var(--brand-line); color: var(--text); }
.chip__count { font-size: 11.5px; font-weight: 650; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip[aria-current="true"] .chip__count { color: var(--brand); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
/* The page links break into rows where they have no room: on a middle page of a long list ("1 … 5 6 7 8 9 … 109")
   they are about 330px wide, more than a narrow phone has, and the whole page scrolled sideways. */
.pagination__pages { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-width: 0; }
.pagination__page { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 550; font-variant-numeric: tabular-nums; }
.pagination__page:hover { background: var(--surface-2); color: var(--text); }
.pagination__page[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.pagination__page[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.pagination__gap { padding: 0 4px; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; color: var(--text-2); font-weight: 560; font-size: 13px; white-space: nowrap; background: none; border: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--text); }
.tab[aria-selected="true"]::after, .tab[aria-current="page"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px 2px 0 0; }
.tab .badge { margin-left: 2px; }
[role="tabpanel"][hidden] { display: none; }

/* Definition lists (read-only facts) */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 18px; }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { min-width: 0; }
.fact__label { font-size: 11.5px; font-weight: 560; color: var(--text-3); letter-spacing: 0.02em; margin-bottom: 2px; }
.fact__value { font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.fact__value--lg { font-size: 16px; font-weight: 620; }
.fact__value:empty::after { content: "—"; color: var(--text-3); }

/* Alerts */
.alert { display: flex; gap: 10px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--blue-line); background: var(--blue-soft); color: var(--text); font-size: 13px; align-items: flex-start; }
.alert .icon { margin-top: 2px; color: var(--blue); }
/* The words of an alert stay inside it, a word of 300 letters without a space included (a message from outside the CRM). */
.alert > div, .alert > p, .alert > span { min-width: 0; overflow-wrap: anywhere; }
/* The same for words that stand in the alert itself, without a part of their own around them. */
.alert { overflow-wrap: anywhere; }
.alert--success { border-color: var(--green-line); background: var(--green-soft); } .alert--success .icon { color: var(--green); }
.alert--warning { border-color: var(--amber-line); background: var(--amber-soft); } .alert--warning .icon { color: var(--amber); }
.alert--error { border-color: var(--red-line); background: var(--red-soft); } .alert--error .icon { color: var(--red); }
.alert__title { font-weight: 620; }

/* Toasts: the short messages the CRM answers with ("Order saved.").
   They appear directly below the top bar, in the middle of the page's column, as wide as the longest of them needs
   (500px at most). They never lie over the top bar: its Today figure, the search box and the person's menu stay in view and
   in reach while a message is shown, and a red message stays until it is closed. (Over the top bar they hid the
   figure; at the bottom right they lay over "Save lead", over the newest note of an order and, on a phone, over the
   boxes of a form.) The middle is where a page keeps the fewest buttons: its title stands on the left, its buttons
   on the right. --toasts-left and --toasts-right are the edges of the page's column; --toasts-top is where the top
   bar ends at the moment (app.js sets it: on a copy with a banner above the bar that changes with the scrolling).
   The box itself takes no click: only the messages do. */
.toasts {
  --toasts-left: 12px; --toasts-right: 12px;
  position: fixed; top: calc(var(--toasts-top, var(--topbar-h)) + 8px); left: var(--toasts-left); right: var(--toasts-right); margin-inline: auto; z-index: 120;
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
  width: fit-content; max-width: min(500px, calc(100vw - var(--toasts-left) - var(--toasts-right)));
}
body:has(.app) .toasts { --toasts-left: calc(var(--sidebar-w) + 20px); --toasts-right: 20px; }
body:has(.app[data-sidebar="collapsed"]) .toasts { --toasts-left: calc(var(--sidebar-w-collapsed) + 20px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px; line-height: 1.4; background: var(--surface-3); border: 1px solid var(--border-strong); border-left: 3px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 13px; animation: toast-in 0.22s var(--ease); }
.toast[data-type="success"] { border-left-color: var(--success); } .toast[data-type="success"] .icon { color: var(--green); }
.toast[data-type="error"] { border-left-color: var(--danger); } .toast[data-type="error"] .icon { color: var(--red); }
.toast[data-type="warning"] { border-left-color: var(--amber); } .toast[data-type="warning"] .icon { color: var(--amber); }
.toast[data-type="info"] .icon { color: var(--blue); }
.toast__body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* 28 by 28 to press (the cross itself stays 14); pulled to the right so the words keep their room. */
.toast__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: -6px; background: none; border: 0; color: var(--text-3); padding: 0; border-radius: var(--radius-sm); }
.toast__close:hover { color: var(--text); background: var(--surface-2); }
.toast.is-leaving { animation: toast-out 0.18s var(--ease) forwards; }

/* Dialogs */
.dialog { padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: hidden; }
.dialog--wide { width: min(820px, calc(100vw - 32px)); }
.dialog--full { width: min(1100px, calc(100vw - 32px)); height: calc(100vh - 64px); }
.dialog::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
.dialog[open] { display: flex; flex-direction: column; animation: dialog-in 0.18s var(--ease); }
.dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.dialog__title { font-size: 16px; font-weight: 640; }
.dialog__body { padding: 4px 18px 16px; overflow-y: auto; color: var(--text-2); font-size: 13.5px; flex: 1; }
.dialog__body[tabindex] { overscroll-behavior: contain; }   /* a list that takes the keys keeps them: at its end the page behind it does not scroll on */
.dialog__body:focus-visible { outline-offset: -2px; }   /* the focus line is drawn inside the edge: the dialog cuts off whatever lies outside */
.dialog__body--flush { padding: 0; }
.dialog__footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* Dropdown menus */
.menu { position: relative; display: inline-block; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 210px; padding: 5px; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: none; }
.menu__panel--left { right: auto; left: 0; }
.menu[data-open="true"] .menu__panel { display: block; animation: pop-in 0.12s var(--ease); }
.menu__item { display: flex; align-items: center; gap: 9px; width: 100%; height: 32px; padding: 0 9px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font-size: 13px; font-weight: 500; text-align: left; white-space: nowrap; }
.menu__item:hover { background: var(--surface-hover); color: var(--text); }
.menu__item:focus-visible { background: var(--surface-hover); color: var(--text); outline: 2px solid var(--border-focus); outline-offset: -2px; }
.menu__item .icon { color: var(--text-3); }
.menu__item--danger { color: var(--red); } .menu__item--danger .icon { color: var(--red); }
.menu__sep { height: 1px; margin: 5px 0; background: var(--border); }
.menu__header { padding: 8px 9px 6px; font-size: 12px; color: var(--text-3); }
.menu__header strong { display: block; color: var(--text); font-size: 13px; font-weight: 620; }

/* Command palette */
.palette { padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(640px, calc(100vw - 32px)); margin-top: 12vh; overflow: hidden; }
.palette::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
.palette[open] { animation: dialog-in 0.14s var(--ease); }
.palette__input-row { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.palette__input-row .icon { color: var(--text-3); }
/* The box itself shows no ring (it fills the row); the row's lower edge lights up instead. */
.palette__input-row:focus-within { box-shadow: inset 0 -2px 0 var(--border-focus); }
.palette__input { flex: 1; min-width: 0; height: 52px; background: none; border: 0; font-size: 15px; color: var(--text); outline: none; }
.palette__input::placeholder { color: var(--text-3); opacity: 1; }
.palette__results { max-height: min(56vh, 460px); overflow-y: auto; padding: 6px; }
.palette__section { padding: 8px 10px 4px; font-size: 11px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.palette__item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius); color: var(--text); cursor: pointer; }
.palette__item .icon { color: var(--text-3); }
.palette__item[aria-selected="true"] { background: var(--brand-soft); }
.palette__item[aria-selected="true"] .icon { color: var(--brand); }
.palette__item-main { flex: 1; min-width: 0; }
.palette__item-title { font-weight: 560; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__item-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__empty { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
/* Under "No ... matches": how an older quote is found. */
.palette__hint { max-width: 62ch; margin: 8px auto 0; font-size: 12.5px; line-height: 1.5; }
.palette__footer { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 11.5px; color: var(--text-3); }
.palette__footer span { display: inline-flex; align-items: center; gap: 5px; }

/* Timeline (quote history, order notes, activity) */
.timeline { position: relative; display: flex; flex-direction: column; }
.timeline__item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: 13.5px; top: 28px; bottom: 0; width: 1px; background: var(--border); }
.timeline__item:last-child::before { display: none; }
.timeline__marker { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-3); z-index: 1; }
.timeline__marker[data-tone="brand"] { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.timeline__marker[data-tone="green"] { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.timeline__marker[data-tone="blue"] { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue); }
.timeline__marker[data-tone="red"] { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.timeline__marker[data-tone="amber"] { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.timeline__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; min-height: 28px; padding-top: 4px; }
.timeline__who { font-weight: 620; }
.timeline__when { font-size: 12px; color: var(--text-3); margin-left: auto; white-space: nowrap; }
/* The stored date and time of a note or a history line stand next to its age as words ("Yesterday · Dec 1, 2026
   9:49 PM"), as the previous CRM printed them: a tooltip alone cannot be reached with the keyboard or by touch.
   The words are those of the element's title, so a view has nothing to add. */
.timeline__when[title]::after { content: " \00b7  " attr(title); }
/* An entry older than a week shows its day instead of an age ("Nov 25"), and the line would say the day twice
   ("Nov 25 · Nov 25, 2026 10:05 AM"). access.js writes the stored date and time into such a line and marks it;
   nothing is added to it here. */
.timeline__when[data-whole]::after { content: none; }
.timeline__body { margin-top: 2px; font-size: 13px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline__body--note { margin-top: 6px; padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
/* A note the server prints with its line breaks as <br>: keeping the typed line ends as well would show every break twice. */
.timeline__body--note:has(br) { white-space: normal; }

/* Pipeline stepper (order progress) */
.pipeline { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.pipeline__step { position: relative; flex: 1 0 auto; min-width: 104px; padding: 9px 14px 9px 22px; background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 580; white-space: nowrap; border: 0; text-align: left; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); margin-left: -6px; transition: background 0.12s, color 0.12s; }
.pipeline__step:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); margin-left: 0; padding-left: 14px; border-radius: var(--radius) 0 0 var(--radius); }
.pipeline__step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%); border-radius: 0 var(--radius) var(--radius) 0; }
.pipeline__step small { display: block; font-size: 10.5px; font-weight: 500; opacity: 0.8; margin-top: 1px; }
.pipeline__step.is-done { background: var(--green-soft); color: var(--green); }
.pipeline__step.is-current { background: var(--brand); color: var(--brand-ink); }
button.pipeline__step:hover:not(.is-current) { background: var(--surface-3); color: var(--text); }

/* Empty states */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 44px 20px; text-align: center; color: var(--text-3); }
.empty__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); margin-bottom: 6px; }
.empty__title { color: var(--text); font-weight: 620; font-size: 14px; }
.empty__text { max-width: 380px; font-size: 13px; }
.empty .btn { margin-top: 10px; }

/* Money summary (pricing panels) */
.ledger { display: flex; flex-direction: column; font-size: 13px; }
.ledger__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.ledger__row:last-child { border-bottom: 0; }
.ledger__label { color: var(--text-2); }
.ledger__value { font-variant-numeric: tabular-nums; font-weight: 560; white-space: nowrap; }
.ledger__row--total { border-top: 1px solid var(--border-strong); border-bottom: 0; margin-top: 4px; padding-top: 10px; }
.ledger__row--total .ledger__label { color: var(--text); font-weight: 620; }
.ledger__row--total .ledger__value { font-size: 18px; font-weight: 680; letter-spacing: -0.02em; }
.ledger__value--pos { color: var(--green); } .ledger__value--neg { color: var(--red); }

/* Sticky action bar at the bottom of long forms */
.actionbar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px -28px -48px; padding: 12px 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
.actionbar__info { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; min-width: 0; }
.actionbar__buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: none; flex: none; }
form.is-dirty .dirty-dot { display: inline-block; }

/* Vehicle chip: year make model, the unit reps think in */
.vehicle { display: inline-flex; align-items: center; gap: 7px; font-weight: 560; min-width: 0; }
.vehicle .icon { color: var(--text-3); }
.vehicle__part { color: var(--text-2); font-weight: 450; }

/* Copy button */
/* The copy mark is the last element of the button and waits for the pointer or the keyboard; an icon in front of
   the text (a phone, an envelope) is part of the text and always shown. No font is set here, so .num and .mono work
   on the button itself. The button is measured by its content, so a max-width of 100% fits it exactly although it
   reaches 4px past the text on each side. */
.copy { box-sizing: content-box; display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px; margin: -4px; border-radius: 4px; color: inherit; cursor: copy; }
.copy:hover { background: var(--surface-3); }
.copy > .icon { color: var(--text-3); }
.copy > .icon:last-child { opacity: 0; transition: opacity 0.12s; }
.copy:hover > .icon:last-child, .copy:focus-visible > .icon:last-child { opacity: 1; }
.copy.is-copied > .icon:last-child { opacity: 1; color: var(--green); }

/* Sticky notes */
.note-card { padding: 14px; border-radius: var(--radius-lg); background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--text); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }

/* Progress bar */
.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
/* The width of the bar is a figure of the record: the page names it in a data attribute and its script sets it
   (no page carries a style attribute). Until then the bar is empty, never full. */
.progress__bar { width: 0; height: 100%; border-radius: 6px; background: var(--brand); transition: width 0.3s var(--ease); }
.progress__bar[data-tone="green"] { background: var(--success); }
.progress__bar[data-tone="red"] { background: var(--danger); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); min-height: 14px; }

/* 5. Screens --------------------------------------------------------------- */

/* Sign in */
.guest { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg); }
.guest__art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 48px;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(229, 184, 79, 0.16), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(58, 104, 190, 0.28), transparent 60%),
    linear-gradient(160deg, #0a1428 0%, #0b1a36 55%, #091120 100%);
  border-right: 1px solid var(--border); color: #e8edf6; }
.guest__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); }
.guest__brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.guest__brand img { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(229,184,79,0.4), 0 10px 30px rgba(0,0,0,0.5); }
.guest__brand-name { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.guest__brand-sub { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #e5b84f; }
.guest__headline { position: relative; z-index: 1; max-width: 460px; }
.guest__headline .guest__slogan { margin-top: 0; color: inherit; font-size: 38px; font-weight: 660; letter-spacing: -0.035em; line-height: 1.08; }
.guest__headline .guest__slogan em { font-style: normal; color: #e5b84f; }
.guest__headline p { margin-top: 14px; color: #aab6cb; font-size: 15px; line-height: 1.6; }
.guest__foot { position: relative; z-index: 1; font-size: 12px; color: #7686a3; display: flex; gap: 18px; flex-wrap: wrap; }
.guest__foot span { display: inline-flex; align-items: center; gap: 6px; }
.guest__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px; }
/* The logo and the company name above the form, for a window too narrow for the picture at the left (see "Responsive"). */
.guest__mark { display: none; align-items: center; gap: 12px; width: 100%; max-width: 380px; }
.guest__mark img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border-strong); }
.guest__mark-name { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.guest__mark-sub { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.guest__form { width: 100%; max-width: 380px; }
.guest__form h1, .guest__form h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.025em; }
.guest__form > p { margin-top: 6px; color: var(--text-2); margin-bottom: 26px; }

/* Error page */
.error-page { display: grid; place-items: center; min-height: 60vh; text-align: center; }
/* The number of the error: small and quiet under the words (it is for the person somebody reports the page to). */
.error-page__code { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
/* A long line of details scrolls in its box and the page stays as wide as the window. */
.error-page__box { align-items: center; min-width: 0; max-width: min(520px, 100%); }
.error-page__title { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.error-page pre { text-align: left; max-width: min(900px, 100%); overflow: auto; padding: 14px; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; color: var(--text-2); }

/* Record header (quote / order workspace) */
.record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.record-head__ids { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.record-head__number { font-family: var(--mono); font-size: 22px; font-weight: 680; letter-spacing: -0.02em; }
.record-head__title { margin-top: 4px; font-size: 15px; color: var(--text); font-weight: 560; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.record-head__meta { margin-top: 6px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.record-head__meta span, .record-head__meta a { display: inline-flex; align-items: center; gap: 5px; }
.record-head__meta a { color: var(--text-2); } .record-head__meta a:hover { color: var(--link-hover); }
/* A long word without a space in a heading (a customer name, a part, a phone number or an e-mail address of 100 and
   more characters) breaks where the line ends; the heading never pushes the page wider than the window and never
   runs under what stands beside it. */
.record-head > :first-child { min-width: 0; }
.record-head__title, .record-head__title > *, .record-head__title .vehicle > *,
.record-head__meta > *, .record-head__meta .copy > span { min-width: 0; overflow-wrap: anywhere; }
.record-head__meta .copy { max-width: 100%; text-align: left; }
/* A part too long for the line goes under the vehicle as a whole. (Kept beside it, the two shared the line by their
   lengths and a part of 150 letters squeezed "2013 Subaru Outback" into a column three letters wide.) */
.record-head__title .vehicle { flex-wrap: wrap; }

/* 6. Utilities ------------------------------------------------------------- */

.muted { color: var(--text-3); } .subtle { color: var(--text-2); }
.strong { font-weight: 620; } .small { font-size: 12.5px; } .xs { font-size: 11.5px; }
.pos { color: var(--green); } .neg { color: var(--red); } .warn { color: var(--amber); } .brand { color: var(--brand); }
/* A figure below zero. pricing.js puts this class on a gross profit that has gone negative. */
.is-negative { color: var(--red); }
.nowrap { white-space: nowrap; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.hidden, [hidden] { display: none !important; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; } .inline-form { display: inline; }
/* Fixed widths, in pixels, for the boxes of a search bar above a list. */
.w-84 { width: 84px; } .w-120 { width: 120px; } .w-140 { width: 140px; } .w-150 { width: 150px; }
.w-160 { width: 160px; } .w-170 { width: 170px; } .w-180 { width: 180px; }
/* A row of search boxes that ends with a count (the lead page): with "Clear" shown and a long count ("More than 50
   leads") the row was a few pixels longer than its card at 1440 with the side menu open, and the count dropped to a
   second line. In such a row a box with a width class gives way first, by up to 16px, before the row breaks; with
   room it is as wide as its class says (the boxes take the room of a line before the spacer does: the 1000). On a
   wide screen a count that stands on a line of its own all the same stays at the right; on a phone or a tablet it
   stands at the left under the boxes, as it always did. */
.toolbar--give > .w-140 { flex: 1000 1 124px; min-width: 0; max-width: 140px; }
.toolbar--give > .w-150 { flex: 1000 1 134px; min-width: 0; max-width: 150px; }
.toolbar--give > .w-170 { flex: 1000 1 154px; min-width: 0; max-width: 170px; }
.toolbar--give > .w-180 { flex: 1000 1 164px; min-width: 0; max-width: 180px; }
@media (min-width: 901px) { .toolbar--give > .toolbar__count { margin-left: auto; } }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.blink { animation: blink 1.6s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Responsive */
@media (max-width: 1280px) {
  .grid--main-aside { grid-template-columns: minmax(0, 1fr) 320px; }
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid--main-aside, .grid--aside-main { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app, .app[data-sidebar="collapsed"] { grid-template-columns: minmax(0, 1fr); }
  /* The side menu slides over the page. While it is closed it is hidden for good (not only moved away), so the
     Tab key and a screen reader skip it and it adds nothing to the width of the page. */
  .sidebar {
    position: fixed; left: 0; top: 0; width: min(var(--sidebar-w), calc(100vw - 48px));
    transform: translateX(-100%); visibility: hidden; box-shadow: none;
    transition: transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .app[data-mobile-nav="open"] .sidebar { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform 0.2s var(--ease), visibility 0s; }
  .app[data-mobile-nav="open"]::after { content: ""; position: fixed; inset: 0; z-index: 35; background: var(--overlay); }
  .sidebar__footer { display: none; }
  .page { padding: 16px 16px 40px; }
  .actionbar { margin: 20px -16px -40px; padding: 10px 16px; }
  .grid--2, .grid--3, .grid--5 { grid-template-columns: minmax(0, 1fr); }
  .form-grid > * { grid-column: 1 / -1; }
  .guest { grid-template-columns: minmax(0, 1fr); }
  .guest__art { display: none; }
  .guest__mark { display: flex; }
  .topbar { padding: 0 12px; }
  /* No side menu beside the page: the messages take the width of the top bar (of a phone), at most their own. */
  body:has(.app) .toasts, body:has(.app[data-sidebar="collapsed"]) .toasts { --toasts-left: 12px; --toasts-right: 12px; }
  .app-footer { padding: 12px 16px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .palette { margin-top: 8px; }
  .palette .palette__tip { display: none; }
  .dialog { max-height: calc(100vh - 24px); }
  .guest__panel { padding: 24px 16px; }
}

/* High contrast ---------------------------------------------------------------
   A person who needs it switches a contrast theme on in Windows (the browser calls it "forced colours"). The system
   then paints every page with its own few colours and takes glows, shadows and fills away. Whatever the CRM shows
   with a fill or a glow alone would be gone: where the focus is, which option of a strip is chosen, a tick, the page
   that is open, the step an order is at. Each of them gets a line, or the system's own colours for "chosen", here.
   (!important: these have to hold against the colour variants above and against the stylesheet of any page.) */
@media (forced-colors: active) {
  /* The focus: one solid line everywhere, also where a page's own stylesheet replaced the outline by a glow. */
  :focus-visible { outline: 2px solid Highlight !important; outline-offset: 2px; }
  .skip-link:focus { outline-color: CanvasText !important; }
  .page:focus { outline: none !important; }
  .topbar, .actionbar { background: Canvas; }
  /* Drawn inside the control where a line around it would be cut off by its card or by its own shape. */
  .nav-item:focus-visible, .menu__item:focus-visible, .tab:focus-visible, .pipeline__step:focus-visible,
  .palette__input:focus-visible, summary:focus-visible, div[tabindex]:focus-visible { outline-offset: -3px !important; }
  .segmented { gap: 4px; padding: 4px; }
  .segmented input:focus-visible + span { outline: 2px solid CanvasText !important; outline-offset: 1px; }
  /* The open page in the side menu and the step an order is at are filled with the system's colour for a chosen
     entry (below) and draw the focus inside themselves: a line in that same colour could not be seen on the fill,
     so there the line takes the colour of the words on it. */
  .nav-item[aria-current="page"]:focus-visible, .pipeline__step.is-current:focus-visible, .pipeline__step[aria-current]:focus-visible { outline-color: HighlightText !important; }

  /* What is chosen or open: the system's colours for a chosen entry. */
  .segmented input:checked + span, .nav-item[aria-current="page"], .chip[aria-current="true"], .chip.is-active,
  .pagination__page[aria-current="page"], .pipeline__step.is-current, .pipeline__step[aria-current],
  .palette__item[aria-selected="true"] {
    forced-color-adjust: none; background: Highlight !important; color: HighlightText !important;
    border-color: Highlight !important; box-shadow: none !important;
  }
  .nav-item[aria-current="page"] .icon, .nav-item[aria-current="page"] .nav-item__count:not([data-alert="true"]),
  .chip[aria-current="true"] .chip__count, .chip.is-active .chip__count, .palette__item[aria-selected="true"] *,
  .pipeline__step.is-current small { color: HighlightText !important; background: none !important; box-shadow: none !important; }
  .nav-item[aria-current="page"]::before { content: none; }
  .tab[aria-selected="true"]::after, .tab[aria-current="page"]::after { forced-color-adjust: none; background: Highlight; height: 3px; }

  /* The steps of an order's road are told apart by their fill; here each gets an edge and keeps its whole box. */
  .pipeline { gap: 3px; }
  .pipeline__step, .pipeline__step:first-child, .pipeline__step:last-child { clip-path: none; margin-left: 0; padding-left: 12px; border: 1px solid ButtonBorder; border-radius: 0; }

  /* A tick, a switch that is on, a bar that shows how much: all drawn with fills. */
  .check input:checked, .switch input:checked { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  .check input:checked::after, .switch input:checked::after { forced-color-adjust: none; background: HighlightText; }
  .switch input::after { forced-color-adjust: none; background: CanvasText; }
  .progress { border: 1px solid CanvasText; }
  .progress__bar { forced-color-adjust: none; background: Highlight; }
  .dirty-dot { forced-color-adjust: none; background: Highlight; }
  /* The arrow of a sorted column is made of edges; three of them must stay unseen. */
  .th-sort::after { forced-color-adjust: none; border-bottom-color: CanvasText; }
  th[aria-sort] > .th-sort::after { border-bottom-color: Highlight; }
}

/* ==========================================================================
   On paper
   A page printed from the browser (Ctrl+P) comes out as a compact record: what
   it says, without the furniture of the screen. The papers of an order are the
   invoice, the purchase order and the internal breakdown; this is for the
   working screens people print now and then (an order, a quote, a list).
   ========================================================================== */
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --text-2: #222; --text-3: #444; --border: #ccc; --border-strong: #999; --border-input: #999; }
  /* Nothing on paper can be clicked: no menu, no bars, no buttons, no links to other parts of the page. The status
     road of an order goes too (it is wider than a sheet; the status stands as words in the heading above it). */
  .sidebar, .topbar, .env-banner, .actionbar, .toasts, .skip-link, .page-header__actions, .toolbar, .pagination, .no-print,
  .breadcrumbs, .pipeline, .order-jump, .btn, .copy .icon { display: none !important; }
  .app { display: block; }
  .page { padding: 0; max-width: none; }
  /* A card may continue on the next sheet. (A card that had to stay whole went to a sheet of its own and left the
     sheet before it half empty: an order took six sheets.) Its heading stays with what follows it, and one box,
     one row of a table and one entry of a history are never cut in two. */
  .card { box-shadow: none; break-inside: auto; }
  .card__header, .page-header, .record-head { break-inside: avoid; break-after: avoid; }
  .field, .fact, .timeline__item, .table tr, .alert { break-inside: avoid; }
  .card__header { min-height: 0; padding: 6px 12px; }
  .card__body { padding: 8px 12px; }
  .stack, .grid { gap: 8px; }
  .table th { position: static; background: #f0f0f0 !important; color: #000; }
  /* A count beside a title: a frame and black figures, whether the browser prints backgrounds or not. */
  .badge { background: none !important; border: 1px solid #999; color: #000 !important; }
  a { color: inherit; }
  /* The boxes of a form stand side by side as in a wide window (a sheet is narrower than the window the one-column
     layout was made for), lower, and an empty one is printed empty, without its example text. A long text is
     printed whole where the browser can make the box as high as its text. */
  .form-grid { gap: 5px 12px; }
  .form-grid > .col-2 { grid-column: span 2; } .form-grid > .col-3 { grid-column: span 3; } .form-grid > .col-4 { grid-column: span 4; }
  .form-grid > .col-5 { grid-column: span 5; } .form-grid > .col-6 { grid-column: span 6; } .form-grid > .col-8 { grid-column: span 8; }
  .form-grid > .col-9 { grid-column: span 9; } .form-grid > .col-12 { grid-column: span 12; }
  .input, .select, .textarea { height: auto; min-height: 26px; padding: 3px 8px; background: #fff; box-shadow: none; }
  .textarea { field-sizing: content; height: auto !important; min-height: 26px !important; resize: none; }   /* !important: a script or the page's own stylesheet set the height the box has on the screen */
  .input::placeholder, .textarea::placeholder { color: transparent; }
  .field__hint { display: none; }
  /* What is chosen must show without colours and backgrounds (a browser prints neither by default): the chosen
     option of a strip gets a frame and heavy letters, a tick box and a switch are the browser's own. */
  .segmented input:checked + span { outline: 1.5px solid #000; outline-offset: -1px; font-weight: 700; color: #000; box-shadow: none; }
  .check input, .switch input { appearance: auto; -webkit-appearance: auto; width: 14px; height: 14px; }
  .check input::after, .switch input::after { content: none; }
  /* A form that only sends something (the e-mail to the customer on an order) and the picture of an empty list
     say nothing on paper. */
  section#mailbox, .empty__icon { display: none; }
  .empty { padding: 8px 12px; }
  /* Notes and history beside a quote or an order are printed whole, not cut at the height of the pane they scroll in
     on the screen. (quote.css and order.css set those heights and are loaded after this file: hence !important.) */
  .quote-aside, .order-aside { position: static !important; max-height: none !important; }
  .quote-aside > .card { display: block !important; overflow: visible !important; }
  .quote-compose { display: none !important; }   /* the box a new note is typed into */
  .quote-scroll, .order-timeline { max-height: none !important; overflow: visible !important; }
  /* Nor is the pane kept at the least height it has on the screen: with two notes that was an empty band, and for an
     order whose third sheet was full it was a fourth sheet with nothing on it. */
  .order-timeline { min-height: 0 !important; }
  .table-wrap { overflow: visible; }
  /* A record with a form (an order, a quote) is printed a little smaller, so that it comes out on two to three sheets. */
  .page:has(.record-head) { zoom: 0.87; }
}

/* ==========================================================================
   Keyboard shortcuts dialog
   ========================================================================== */
.shortcuts__intro { margin-bottom: 12px; font-size: 12.5px; color: var(--text-2); }
.shortcuts__columns { columns: 2; column-gap: 32px; }
.shortcuts__section { break-inside: avoid; padding-bottom: 14px; }
.shortcuts__group { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.shortcuts { margin: 0; display: grid; gap: 2px; }
.shortcuts__row { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 4px 0; }
.shortcuts__row dt { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0; }
.shortcuts__row dd { margin: 0; color: var(--text); }
.shortcuts__then { font-size: 11.5px; color: var(--text-3); }
@media (max-width: 720px) {
  .shortcuts__columns { columns: 1; }
}
