/* The house palette, named once (Vikrant, 5 Oct 2026). Every page loads this first and
   picks from it for the page's objective: shades of red (burgundy first, crimson only to
   mean "today"), black, the white-to-beige range, gold. Any other colour appears only to
   mean something — green is "all clear", amber is "waiting for its first run" (the Jobs page's dot, 26 Oct 2026). A page
   never invents a shade of its own. */
:root {
  /* the shades, by name */
  --burgundy: #7A1F2B; --burgundy-deep: #5E1520; --crimson: #B3261E; --crimson-deep: #8C1D17; --rose: #F5E7E9; --rose-deep: #E9C3C8;
  --ivory: #FDFCFA; --cream: #F6F3EE; --beige: #E4DED4; --walnut: #5C544B; --walnut-light: #6B635A;   /* quiet text: #7E756A read at 4.4:1 on ivory, under the 4.5 a line of text needs; 5.8 now (28 Oct 2026) */
  --gold: #9A7B3F; --gold-deep: #7E6331; --gold-soft: #F2EADC;
  --black: #2A2521; --green: #3F7149; --green-soft: #EAF3EA; --amber: #C98A2E;   /* green darkened from #4E8A5A, which read at 4.0:1 on ivory, to 5.6 (28 Oct 2026) */
  /* green means all good, and nothing else: paid in full, sent, nothing left, a count that came right. The one green:
     the #2E7D4F sixteen rules typed (4 Nov 2026) is this green now, named --green: --fine is set again to the old #4E8A5A
     in board.css, book.css and others, which the Office's pages load after this sheet. */

  /* the working names the stylesheets use; a sheet or a template never names them again (4 Nov 2026: --wine had been
     typed again in fourteen sheets and three templates, the invoice's paper a shade off the burgundy) */
  --wine: var(--burgundy); --wine-deep: var(--burgundy-deep); --wine-on: #FFF4F2; --wine-soft: var(--rose);
  --red: var(--crimson); --red-deep: var(--crimson-deep); --red-soft: #F4C9C5;
  --paper: var(--cream); --surface: var(--ivory); --rule: var(--beige);
  --ink: var(--black); --soft: var(--walnut); --quiet: var(--walnut-light);
  --fine: var(--green); --fine-soft: var(--green-soft); --waiting: var(--amber);
}

/* A picture says its width and height (4 Nov 2026: 0 of the Boutique's 92 did, and each page jumped as they loaded), so
   the browser holds its room before it arrives. Its height follows its width, so a sheet that sets only the width never
   stretches it; inside :where() this weighs nothing, and a sheet that sets a height keeps it. */
:where(img[width][height]) { height: auto; }

/* A photograph chosen is a photograph shown (14 Oct 2026): the strip under any image upload, the same on every
   screen — the picture, its name, a cross to leave it out before it is sent. Drawn by designs/photos.js. */
.photo-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photo-previews[hidden] { display: none; }
.photo-preview { position: relative; margin: 0; width: 96px; display: flex; flex-direction: column; gap: 4px; }
.photo-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--rule); background: var(--paper); display: block; }
.photo-preview figcaption { font-size: .7rem; color: var(--quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-out { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.photo-out:hover { border-color: var(--wine); color: var(--wine); }

/* The draft keeper's one line (22 Oct 2026): what was typed and not yet saved has been put back. */
.draft-restored { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--wine, #7A1F2B); color: var(--wine, #7A1F2B); background: rgba(122, 31, 43, .06); font-size: .9rem;
  grid-column: 1 / -1; flex-basis: 100%; width: 100%; box-sizing: border-box; }   /* a whole row wherever it lands, so a grid or a flex row is never shifted by it (26 Oct 2026) */
/* Since 29 Oct 2026 the line is a slip that slides away (designs/said.js); what stays is a burgundy edge on each box put
   back, until the page is saved, so the eye still finds what was typed and not sent. */
.is-restored { box-shadow: inset 3px 0 0 var(--wine); }

/* The house's space, named by what it separates (Vikrant, 30 Oct 2026: "think batching for clean presentation"). The
   sheets had used some twenty spacings, 8, 10, 12 and 14 px the most, so the gap inside a group and the gap between
   groups were never told apart. A screen drawn or redrawn takes its space from these. A tile is a small card holding one
   figure, four of them across a column (the Home's Pulse, 31 Oct 2026): a card's 24 would leave its words no width. */
:root { --in-a-batch: 4px; --between-batches: 16px; --inside-a-card: 24px; --inside-a-tile: 16px; --between-cards: 24px; --between-sections: 40px;
        --above-the-title: 32px; }   /* under the bar, before a page's title, at every width (1 Nov 2026): a page takes it when redrawn */

/* A batch: a title and its tagline, a label and its field, a line and its facts. Its lines sit at their own line height,
   "almost like a tagline to the above"; space goes between batches, never inside one. */
.batch > * { margin-block: 0; }
.batch > * + * { margin-block-start: var(--in-a-batch); }

/* Every field wears the house's dress unless its screen dresses it otherwise (30 Oct 2026: "the dates field are
   seriously ugly"). Inside :where() these weigh nothing, so a screen's own rule always wins. The dropdown's arrow is
   drawn by the house (below), the one rule here that outweighs a screen, so a background set whole cannot wipe it. */
:where(input:not([type=checkbox], [type=radio], [type=hidden], [type=file], [type=range], [type=color], [type=submit], [type=button], [type=reset], [type=image]), select, textarea) {
  box-sizing: border-box; min-height: 44px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 12px;   /* 44px: a finger's target */
  background-color: var(--ivory); color: var(--ink); font: inherit;   /* ivory by name: the Office's older sheet makes --surface a cream the screens' own fields do not wear */
  line-height: normal;   /* the page's own line height came in with the face and stood a box 4px above the dropdown beside it */
}
:where(textarea) { line-height: 1.5; }
:where(input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=number], input[inputmode=decimal]) { font-variant-numeric: tabular-nums; }   /* a figure in a box of text, 21,247, as in a number box (the Masters, 14 Nov 2026) */
/* Chrome's dropdown stands 2px taller than a box with the same padding, in Lato and Manrope at 16 and 17.6px alike
   (measured 30 Oct 2026); a pixel less above and below puts a row of fields on one height. */
:where(select) { padding-block: 9px; }
/* A field still empty speaks in the quiet grey: the browser's own placeholder grey is cold, and an empty date in full
   ink read as a date typed in (the blind reader, 30 Oct 2026). Only a required date can be told empty from outside. */
:where(input, textarea)::placeholder { color: var(--quiet); opacity: 1; }
:where(input[type=date]:required:invalid, input[type=time]:required:invalid)::-webkit-datetime-edit { color: var(--quiet); }
/* The day's calendar in the field's quiet tone, never the browser's pure black, the one black mark on the page (the
   fresh readers, 16 Nov 2026, every round); Safari draws none. */
:where(input[type=date], input[type=time], input[type=datetime-local], input[type=month])::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
/* The ticks and the choices take the house's wine. On the Office the house draws them (Vikrant, 12 Nov 2026: a warm tick
   and arrow for every Office page, the round choice in the same warm line): an ivory square, or circle, in the walnut
   line, filled wine when ticked or chosen, with an ivory check, a dash for a list part-ticked, or an ivory dot. The check
   and the dash are strokes drawn as the house's own icons are, smooth at every size and centred in the box; a check cut
   from the box's corners stood jagged, heavier than its label and a pixel off its centre (the blind readers). A screen
   that sizes its tick keeps its size; a reader in forced colours keeps the browser's own. The client's surfaces keep the
   browser's tick in the wine. */
:where(input[type=checkbox], input[type=radio]) { accent-color: var(--wine); }
:where(.has-office-shell) :where(input[type=checkbox], input[type=radio]) {
  appearance: none; -webkit-appearance: none; position: relative; box-sizing: border-box; flex-shrink: 0;
  width: 1.25rem; height: 1.25rem; vertical-align: -0.3em;   /* 20px, the size most screens give their own; the browser's 13px read as a speck */
  border: 1.5px solid var(--quiet); border-radius: 4px; background-color: var(--ivory); color: var(--wine-on); cursor: pointer;
}
:where(.has-office-shell) :where(input[type=radio]) { border-radius: 50%; margin: 3px 3px 3px 4px; }   /* the tick's margins: the browser's own (none below) stood a round choice 1.5px lower in a shared row */
:where(.has-office-shell) :where(input[type=checkbox])::before {
  content: ""; position: absolute; inset: 0; background-color: currentColor; transform: scale(0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.25 6.75 11 12 5.25'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.25 6.75 11 12 5.25'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
:where(.has-office-shell) :where(input[type=checkbox]:indeterminate)::before {   /* some of a list ticked: a dash of the check's own stroke */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M4.5 8h7'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M4.5 8h7'/%3E%3C/svg%3E");
}
:where(.has-office-shell) :where(input[type=radio])::before {
  content: ""; position: absolute; inset: calc(50% - .1875rem); border-radius: 50%; background-color: currentColor; transform: scale(0);
}
:where(.has-office-shell) :where(input[type=checkbox]:checked, input[type=checkbox]:indeterminate, input[type=radio]:checked) { border-color: var(--wine); background-color: var(--wine); }
:where(.has-office-shell) :where(input[type=checkbox]:checked, input[type=checkbox]:indeterminate, input[type=radio]:checked)::before { transform: none; }
:where(.has-office-shell) :where(input[type=checkbox]:disabled, input[type=radio]:disabled) { opacity: .45; cursor: default; }   /* there, but not to be tapped: the rule's line on paper all but vanished */
/* Switched off and ticked or chosen, it is walnut, not a wine faded to a third pink beside the chip's and the menu's; its
   words go quiet as a switched-off field's do, so it is not read as a live choice with its box missing (the blind reader). */
:where(.has-office-shell) :where(input[type=checkbox]:disabled:checked, input[type=checkbox]:disabled:indeterminate, input[type=radio]:disabled:checked) { opacity: .75; border-color: var(--quiet); background-color: var(--quiet); }   /* its check 3.2:1, still read: at half strength it stood 2:1 */
:where(.has-office-shell) :where(label:has(> input:is([type=checkbox], [type=radio]):disabled)) { color: var(--quiet); }
/* The dropdown's arrow is the house's too: a walnut chevron where the browser's ink one stood, a stroke drawn as the
   house's icons are, over the browser's own dropdown (one line, as wide as its longest choice, a long one cut short with
   an ellipsis) and in Safari on the floor's iPads as in Chrome; the list that opens stays the browser's (his choice, arrow
   only). It is painted as the dropdown's picture, which some fifty screens wipe by setting the background whole, so the
   picture and the room beside the text are the one thing here that outweighs a screen: a screen keeps its own fill,
   border and padding, and loses only the arrow it never meant to drop. A picture cannot read the house's colours, so
   the chevron's walnut is written in it (--soft, and --quiet when switched off; a test holds them to the tokens). A
   list shown open has no arrow to draw. */
:where(.has-office-shell) :where(select:not([multiple], [size])) {
  appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
  padding-block: 10px;   /* a box's own: the 2px the browser's dropdown added above (the 9px further up) go with it */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235C544B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5'/%3E%3C/svg%3E") !important;
  background-position: right 8px center !important;   /* its point's end at the date's calendar */
  background-size: .75rem .5rem !important; background-repeat: no-repeat !important;   /* 12 by 8, grown with the reader's type as the calendar is */
  padding-inline-end: calc(18px + .5rem) !important;   /* 26px, the room the browser's own arrow took, so a dropdown keeps its width */
}
:where(.has-office-shell) :where(select:not([multiple], [size]):disabled) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236B635A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5'/%3E%3C/svg%3E") !important;
}
@media (forced-colors: active) {
  :where(.has-office-shell) :where(input[type=checkbox], input[type=radio]) { appearance: auto; -webkit-appearance: auto; }
  :where(.has-office-shell) :where(input[type=checkbox], input[type=radio])::before { content: none; }
  :where(.has-office-shell) :where(select:not([multiple], [size])) { appearance: auto; -webkit-appearance: auto; background-image: none !important; }
}
/* Chrome pads a date field's insides and its calendar icon, which stood it 6px taller than the box and the dropdown beside
   it; with that padding gone, a row of fields shares one height. */
:where(input[type=date], input[type=time], input[type=datetime-local], input[type=month])::-webkit-calendar-picker-indicator { cursor: pointer; padding: 0; margin-block: 0; margin-inline-end: -8px; }   /* in ink, at the inset of the dropdown's arrow */
:where(input[type=date], input[type=time], input[type=datetime-local], input[type=month])::-webkit-datetime-edit { padding: 0; }
:where(input[type=date], input[type=time], input[type=datetime-local], input[type=month])::-webkit-datetime-edit-fields-wrapper { padding: 0; }
:where(input:focus-visible, select:focus-visible, textarea:focus-visible) { outline: 2px solid var(--wine); outline-offset: 1px; }
:where(.has-office-shell) :where(input[type=checkbox]:focus-visible, input[type=radio]:focus-visible) { outline-offset: 2px; }   /* clear of the tick's own line: 1px off, the two ran into one heavy edge */
:where(input:not([type=checkbox], [type=radio]):disabled, select:disabled, textarea:disabled) { background-color: var(--paper); color: var(--quiet); }
/* On the Office a field's edge is the quiet line, the tick's own (Vikrant, 21 Nov 2026: "Fields only, quiet"). A field's
   ivory is the card's own, 1.03:1, so its edge is all that draws the box, and the rule's sand stood 1.3:1 on the card and
   1.2 on the paper: the careers form's readers could not find its fields on a phone, and the front page's search was the
   faintest thing on an iPad's first screen, each bent alone (20 and 16 Nov 2026). The quiet line stands 5.7:1, over the
   3:1 a control's edge needs. An act, a chip and a card keep the sand, so a box to type in is told from an act to press;
   a field switched off keeps it too, so off is told from on. Ringed by the keyboard, its edge is the ring: wine, the ring
   laid over it, one line. Any other edge inside the ring drew two: the dark one the heaviest thing on the front page
   (its last blind reader, 16 Nov), the sand one a held box paler than the boxes at rest (the edges' reader, 21 Nov). The
   Office's alone, as its tick: the Boutique, the App and the Club keep their own. */
:where(.has-office-shell) :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=file], [type=range], [type=color], [type=submit], [type=button], [type=reset], [type=image]), select, textarea) { border-color: var(--quiet); }
:where(.has-office-shell) :where(input:not([type=checkbox], [type=radio], [type=file]):focus-visible, select:focus-visible, textarea:focus-visible) { border-color: var(--wine); outline-offset: -1px; }
:where(.has-office-shell) :where(input:not([type=checkbox], [type=radio]):disabled, select:disabled, textarea:disabled) { border-color: var(--rule); }
/* A file's button is the house's act and the file's name the quiet line beside it, not the browser's grey Choose File
   (4 Nov 2026, the receipt's invoice). A screen that draws its own file control keeps it. */
:where(input[type=file]) { min-height: 44px; color: var(--soft); font: inherit; }
:where(input[type=file])::file-selector-button {
  min-height: 44px; margin-right: 8px; padding: 0 var(--between-batches); border: 1px solid var(--rule); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-family: var(--formal); cursor: pointer;
}

/* The date as three boxes (designs/_date_boxes.html, 20 Oct 2026), the Office's one date control, dressed here once
   (12 Nov 2026). Five sheets had each dressed it their own way, and its month chips missed a finger: 40px wide on
   Finance's pages, 35px tall on the client forms (four blind readers of the book of gold rates). Vikrant: "Go", every
   part at least 44 by 44. The day and the year side by side, the twelve months beneath as equal chips that fill the
   field: twelve to a row where the field holds them (twelve 44px chips and eleven 4px gaps, 572px, 35.75rem), six to a
   row below that, four, then three, never a ragged seven and five. The three stand on one grid, the day and the year
   each half its row on the months' columns, so every edge sits on it and the row above the months ends where they end
   (the eye: "edges sit on the grid"); the box around the grid is what the rows are chosen by, since a container cannot
   ask its own width. A chip is the house's chip (.hl-chip): the
   rule's edge, the 8px corner, its word in the serif as every choice; on a page not yet in the house's faces it keeps
   the page's own face (Vikrant: "The page's own face"), and a box is the page's own field. */
.date-boxes { container-type: inline-size; }
.date-boxes .date-grid { display: grid; grid-template-columns: repeat(12, minmax(44px, 1fr)); gap: var(--in-a-batch); }
.date-grid .date-day, .date-grid .date-year { grid-row: 1; grid-column: span 6; box-sizing: border-box; width: 100%; min-width: 0; }   /* placed, never dressed: each half the row */
.date-grid .date-months { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: var(--in-a-batch); }
/* A month is a button (12 Nov 2026), so Tab reaches it and Space or Enter chooses it; dressed as the chip it was, the
   browser's own button undone (its grey face, its padding, its small system type), and the house's ring when the keyboard
   is on it, as Inventory's answers. */
.date-grid .date-months button {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-family: var(--formal, inherit); font-size: .95rem;
  cursor: pointer; user-select: none; -webkit-appearance: none; appearance: none;
}
.date-grid .date-months button.on { border-color: var(--wine-soft); background: var(--wine-soft); color: var(--wine); font-weight: 600; }   /* the house's chosen chip */
.date-grid .date-months button:focus-visible { outline: 2px solid var(--wine); outline-offset: 1px; }
/* the widths in rem, 16px to a rem at the browser's own type: a reader who sets a larger type takes fewer months to a
   row, so a month's word keeps its room in the chip (at 130% it had 3px a side on a phone; the blind reader, 12 Nov 2026) */
@container (max-width: 35.748rem) {   /* six 44px chips and five gaps, 284px */
  .date-boxes .date-grid { grid-template-columns: repeat(6, minmax(44px, 1fr)); }
  .date-grid .date-day, .date-grid .date-year { grid-column: span 3; }
}
@container (max-width: 17.748rem) {   /* four and three, 188px */
  .date-boxes .date-grid { grid-template-columns: repeat(4, minmax(44px, 1fr)); }
  .date-grid .date-day, .date-grid .date-year { grid-column: span 2; }
}
@container (max-width: 11.748rem) {   /* three to a row leave no room for two boxes of two: each takes its own row */
  .date-boxes .date-grid { grid-template-columns: repeat(3, minmax(44px, 1fr)); }
  .date-grid .date-day { grid-column: 1 / -1; }
  .date-grid .date-year { grid-row: 2; grid-column: 1 / -1; }
  .date-grid .date-months { grid-row: 3; }
}

/* The house's list page, named once (1 Nov 2026). Vikrant: a part added to a screen wears the house's classes, and a
   screen's own sheet only places things, never a new size, corner or chip; and the ERP's look is Gondolin 2.0's ("Study
   what Gondolin 2.0 is doing - that is the ERP's design and stlyistics - follow that"). So these are Clearance's and the
   home's own measures (clearance.css, home.css), as hl- (the house's list): its choices one card of chips, the chosen
   filled wine-soft; a card of rows, each a name and the line beneath it; the act on the row, 48px, the first burgundy;
   no bar at the foot. Their faces are theirs too: a name, a title, an act and a figure that is the point in the serif; a
   label, the line beneath, a day and a count in the sans. A page's sheet loads before this one, so a page that must
   differ says so with a more particular selector. */
.hl-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--between-batches) var(--between-cards); }   /* the title's batch; the page's ways on at its right */
.hl-title { margin: 0; font-family: var(--formal); font-size: 2.25rem; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.hl-tagline { color: var(--soft); font-family: var(--plain); font-size: 1rem; line-height: 1.4; font-variant-numeric: tabular-nums; text-wrap: balance; }   /* the menu's hint in even lines wherever it wraps, said here once (Vikrant, 16 Nov 2026, "Even lines"): forty pages each said pretty or balance, and pretty left *a person.* alone under Bills in */
.hl-head-2 { margin: 0; font-family: var(--formal); font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--ink); }   /* a section's head over its card, as the home's Needs you (home.css .home-head h2) */
.hl-figure { font-family: var(--formal); font-size: 1.75rem; font-weight: 600; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }   /* the figure the page is for, seen first; the home's own (.home-fig) */

/* The choices: a quiet label, then its chips, each a word and its count; the chosen one filled. */
.hl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hl-label { min-width: 48px; color: var(--soft); font-family: var(--plain); font-size: .84rem; }   /* a quiet word: a filter's name, a row's kind */
/* A row led by its word keeps a line that wraps under its chips, never under the word (Vikrant, 13 Nov 2026, "Under its
   chips"), as Clearance's Show and Desk do (clearance.css .clear-chips): on a 390 phone Incentives' November had fallen
   flush left under *Month*, and in larger type the chosen month too. The word stands in a room of its own at the row's
   left, the row hanging its chips from the room's edge, so every row of a card starts its chips on one edge as well. The
   room is in rem, so it grows as its word does in larger type; it holds the longest word a card leads with, Statement.
   A card whose words are all short says so with `--chips-word`, as Names' Show and Sort take Clearance's 3.5rem, so no
   word stands far from its chips. The phone's alone, where a card's rows stand one beneath another: on a wide screen
   Statements' Company, Month and Statement sit along one line and a room left Month 32px from its chips and Statement
   11 (the blind reader, 13 Nov 2026). */
@media (max-width: 760px) {
  .hl-chips:has(> .hl-label:first-child) { padding-left: var(--chips-word, 4.5rem); }
  .hl-chips > .hl-label:first-child { flex: none; box-sizing: border-box; width: calc(var(--chips-word, 4.5rem) - 8px); min-width: 0; margin-left: calc(-1 * var(--chips-word, 4.5rem)); }
}
.hl-chip {
  display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 44px; padding: 0 var(--between-batches);
  border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font-family: var(--formal); font-size: .95rem;
  text-decoration: none; white-space: nowrap;
}
.hl-chip b { color: var(--soft); font-family: var(--plain); font-weight: 400; font-variant-numeric: tabular-nums; }
.hl-chip:hover { border-color: var(--ink); }
.hl-chip.is-here, .hl-chip:has(> :checked) { border-color: var(--wine-soft); background: var(--wine-soft); color: var(--wine); font-weight: 600; }
.hl-chip.is-here b, .hl-chip:has(> :checked) b { color: var(--wine); }
/* A chip that is a form's choice (12 Nov 2026, the client forms; Inventory's answer and the instalment's way to pay had
   each written it for themselves): a label round its dot or tick. The dot is hidden and the whole chip is the target;
   the chosen is filled as above; a key's focus rings it as a field's. */
label.hl-chip { position: relative; cursor: pointer; user-select: none; }
:where(.hl-chip > input[type=radio], .hl-chip > input[type=checkbox]) { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.hl-chip:has(> :focus-visible) { outline: 2px solid var(--wine); outline-offset: 1px; }
.hl-chip.is-none { color: var(--quiet); }

/* A card of rows, a rule between them; a row's name and the line beneath it are one batch. */
.hl-rows { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.hl-row { padding: var(--between-batches) var(--inside-a-card); border-top: 1px solid var(--rule); }
.hl-row:first-child { border-top: 0; }
/* A card's first and last rows take its corner (Vikrant, 16 Nov 2026: "Yes, one house rule"), so a marked row's wine
   edge, a row's ground and a key's ring follow the curve: a ticked melt, a picked name or client, a memo's piece or a
   tick the draft keeper put back drew its edge square through the round corner when it stood first or last. Inventory's
   Take out had clipped its card for it (15 Nov 2026); a clip on every card would cut what stands past a row's edge, a
   row's ring, a menu or a slip, and a sticky foot would stop at the card, so the rows take the corner instead. The
   card's 12px less its 1px edge is the curve inside it. A hidden box, a template or a script is no row: a form's own
   hidden fields stand first in it. */
.hl-rows > :where(:nth-child(1 of :not([type=hidden], [hidden], script, template))) { border-top-left-radius: calc(12px - 1px); border-top-right-radius: calc(12px - 1px); }
.hl-rows > :where(:nth-last-child(1 of :not([type=hidden], [hidden], script, template))) { border-bottom-left-radius: calc(12px - 1px); border-bottom-right-radius: calc(12px - 1px); }
/* A group's head inside a card: a band on the paper over its run of rows, as Clearance's desk heads (clearance.css
   .clear-desk-head), so a head stands out from the names it heads and one card holds every group of a part (the Clients'
   third blind reader, 12 Nov 2026: five boxes for six rows, their heads the names' own size). */
.hl-band { display: flex; align-items: center; gap: var(--between-batches); box-sizing: border-box; min-height: 44px; margin: 0; padding: 10px var(--inside-a-card);
  border-top: 1px solid var(--rule); background: var(--paper); color: var(--ink); font-family: var(--formal); font-size: .95rem; font-weight: 600; line-height: 1.3; }
.hl-band:first-child { border-top: 0; border-radius: 12px 12px 0 0; }
.hl-name { font-family: var(--formal); font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }   /* a row's name, or the figure it is about */
/* A name in a list that opens something says so at rest (Vikrant, 16 Nov 2026: "Underline at rest", "A quiet underline
   in the name's ink, as a link in a sentence wears"): in ink with an underline only under a pointer it said nothing on an
   iPad, which never hovers. The Office draws one underline, quiet, for every link that wears one, a list's name and a link
   in a sentence alike: a hairline in its own ink softened, close under the word, stepping round a g or a y. The
   browser's own was the ink at full strength, thicker in larger type; nine names down a list read as a column of web
   links (the blind reader, 16 Nov 2026). Set .3em down at 45%, it stood midway between the name and its line beneath and
   was the darkest line on the card, so it read as a divider (the third reader): at .15em it is the name's own mark, the
   ink skipping round a descender, and at 30% it is 1.9:1 on the card, the name 16.5:1 and the card's rules 1.3:1. The
   rule weighs nothing, so a page that dresses its own line (a struck word, a dotted act) keeps it. */
:where(.has-office-shell) :where(a[href], a[href] > .hl-name:first-child, a[href] > :first-child .hl-name:first-child) { text-underline-offset: .15em; text-decoration-skip-ink: auto; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); }
/* A name opens four ways, and each wears the line: it is the link; its words are; its batch is, the name with the line
   beneath (Tickets, the bench's found row); or the whole row is and nothing on it says Open, so its first name says it
   (Bills in, Returns), never a figure beside it. A row that says Open has its sign, so its name stays plain, whether the
   row is the link or holds one (All clients, Clients); a page whose Open is its own act keeps plain the names of a card
   whose every row says Open (Trials' On trial), and a card whose acts change row by row wears the line on every name, one
   look down the card (the Registers, Trials' pay); a name a page gives its own chevron keeps that one sign (Hiring's side
   by side, Test entries). A page draws no underline of its own on a list's name, at rest or under a pointer. An anchor with no
   address is no way in. The row's own rule weighs nothing, so a name struck through as undone stays struck. */
a.hl-name:where([href]), .hl-name > a:where([href]), a.batch:where([href]) > .hl-name:first-child { text-decoration-line: underline; }   /* an address weighs nothing, so a page that keeps its names plain still outweighs the rule */
.hl-row:has(.hl-open) :is(a.hl-name, .hl-name > a) { text-decoration-line: none; }   /* its Open is its sign; the browser underlines a link of itself */
.hl-name > a { color: inherit; }   /* the name's own ink, never the browser's blue */
:where(a.hl-row[href]:not(:has(.hl-open)) > :first-child .hl-name:first-child) { text-decoration-line: underline; }
/* The underline asks for a tap on the word, so the word is a thumb's 44 to tap, the line's height unmoved, as a way in
   named in a line is (the masters, the bank, a PO's facts); it outweighs a batch's own margins, which would let the
   padding move the line. A page that gave its names a target of its own keeps it, and a box of its own (Hiring,
   Auditions, Trials, All clients, Clients: a 44 that gives the line 22px) keeps the padding off it, which would give a
   name in larger type its whole line and move the row. Where the batch or the whole row is the link, the target is the
   batch or the row. */
a.hl-name:where([href]), .hl-name > a:where([href]) { padding-block: 13px; margin-block: -13px; }
.hl-beneath { color: var(--soft); font-family: var(--plain); font-size: .9rem; line-height: 1.4; }
.hl-when { color: var(--ink); font-family: var(--plain); font-size: .92rem; font-variant-numeric: tabular-nums; }   /* a day, a place, a fact read across the row */
.hl-said { color: var(--soft); font-family: var(--plain); font-size: .95rem; font-variant-numeric: tabular-nums; }   /* a count or a sentence beside a card */
.hl-name > .hl-said { font-weight: 400; }   /* a name's want said quietly in the name's own line, so a row's lines stand level; bold, a blank stood as a name (Arriving's third blind reader, 12 Nov 2026) */
.hl-open { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--in-a-batch); min-height: 44px; color: var(--wine); font-family: var(--formal); text-decoration: none; white-space: nowrap; }   /* a row's way in, as Watching's Open */
/* A piece's picture in a list, at its row's left (Vikrant, 17 Nov 2026, on a client's brief: "56px square"): the whole
   piece on the paper, never cropped, in the 8px corner the Registers' and Pieces to check's squares keep. A piece with no
   picture of its own says so in the square (his "Photograph needed"), in a label's size, so the rows stand level whether
   a piece has its picture or not. The picture is the piece's own, never a sister's (`own_photograph.shown`). */
.hl-pic { display: block; flex: none; box-sizing: border-box; width: 3.5rem; height: 3.5rem; overflow: hidden; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.hl-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hl-pic.is-none { display: grid; place-items: center; padding: 2px; color: var(--soft); font-family: var(--plain); font-size: .84rem; line-height: 1.1; text-align: center; }
.hl-empty { padding: var(--inside-a-card); border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.hl-empty p { margin: 0; font-family: var(--formal); font-size: 1.35rem; font-weight: 600; color: var(--ink); }

/* The act: the rule's edge, the 8px corner, 48px; its word and its chevron apart; the first, burgundy. */
.hl-act {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--between-batches); box-sizing: border-box; min-height: 48px;
  padding: 0 var(--between-batches); border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink);
  font: inherit; font-family: var(--formal); font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.hl-act:hover, .hl-act[aria-expanded="true"] { border-color: var(--ink); }
.hl-act.is-first { border-color: var(--wine); background: var(--wine); color: var(--wine-on); }
.hl-act.is-first:hover { border-color: var(--wine-deep); background: var(--wine-deep); }
.hl-act.is-off { color: var(--quiet); pointer-events: none; }   /* a page-turn with nowhere to go */
/* A quiet act: its word and its chevron in ink, no box, a finger's 48 tall, so the one box on a page is the act to press
   first (Clearance's quiet acts, Vikrant, 8 Nov 2026; the Registers' rows, 10 Nov 2026: *Clearance's quiet acts*). */
.hl-act.is-quiet { justify-content: flex-start; gap: 8px; padding-inline: 0; border-color: transparent; background: none; }
.hl-act.is-quiet:hover, .hl-act.is-quiet[aria-expanded="true"] { border-color: transparent; color: var(--wine); }
.hl-act:disabled { border-color: var(--rule); background: var(--paper); color: var(--quiet); cursor: not-allowed; }
.hl-act.is-quiet:disabled { border-color: transparent; background: none; }

@media (max-width: 760px) {
  .hl-title { font-size: 2rem; }   /* a phone's title, as Clearance's and the home's */
}
