/* Home, glance feed, quick links and site map (task 036). Shared components come from components.css; these rules
   only place the landing's sections. */
.home-section { margin-block: var(--space-3); }
.home-section > h2 { font-size: var(--text-1); margin-block-end: var(--space-2); }
.home-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--space-3); }
.home-item { margin: 0; }
.home-item-none { color: var(--ink-2); }
.home-quick-list, .home-site-map { margin: 0; padding-inline-start: var(--space-3); }
/* Their links are text link targets of spec 7.2: 24px on desktop, 44px below 64rem (045 review round 2, axe target-size). */
.home-quick-list a, .home-site-map a { display: inline-flex; align-items: center; min-height: 1.5rem; }
@media (max-width: 63.999rem) { .home-quick-list a, .home-site-map a { min-height: var(--ph-control-h-touch); } }
/* The results of the search of the top bar (task 070, design-d-spec.md 9), two cards: the pages as the site map lists
   its links, each with its menu group beside it in the muted ink, and the people as person cells in a list with no
   markers. The card that offers the registry when nothing was found stands a step under the empty state. */
.search-for { margin: 0 0 var(--space-2); }
.search-note { max-width: var(--ph-measure); margin: 0 0 var(--space-1); color: var(--ink-2); font-size: var(--ph-text-sm); }
.search-group { color: var(--ink-2); font-size: var(--ph-text-sm); }
.search-people { display: grid; gap: var(--space-1); margin: 0 0 var(--space-2); padding: 0; list-style: none; }
.search-elsewhere { margin-top: var(--space-3); }
/* The next actions of the employee home and the lists of the consultant home are checklist rows (task 045): the name of
   the source, its lines, the date when there is one, and the open link; a source with nothing to do is quiet. */
.home-action-name { font-weight: 600; }
/* The employee's rows (task 051b item 7): the answer in the ink of the text, not a small grey line; a quiet row keeps
   its title in ink so it never reads as disabled, only its «nothing» line is muted. */
.home-actions .home-item { color: var(--ink); font-size: var(--ph-text-md); }
.home-actions .home-item-none { color: var(--ink-2); }
/* The latest payslip, a link to its card with the state and the net. */
.home-payslip { display: grid; gap: var(--ph-space-05); margin: 0 0 var(--space-3); color: var(--ink); text-decoration: none; }
.home-payslip:hover, .home-payslip:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }
.home-payslip-label { color: var(--ink-2); font-size: var(--ph-text-sm); }
.home-payslip-month { color: var(--accent-text); font-size: var(--ph-text-lg); font-weight: 600; }
.home-payslip-state { font-weight: 600; }
.home-payslip-note { color: var(--ink-2); font-size: var(--ph-text-sm); }
.home-action-date { color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* Task 051a: the admin landing's month line (the phase and the date that matters) and the information line under Da
   fare. */
.home-month-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); margin-block: 0 var(--space-2); font-weight: 600; }
.home-info { margin-block-start: var(--space-1); }
.home-month-lines { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: var(--space-1); }
.home-month-lines > .home-month-line { margin: 0; }
/* Task 052b item 1: whose move it is. «In attesa di altri» says under its heading that nothing there is the reader's;
   the sources with nothing to do fold into one quiet line, a disclosure that still holds their rows. */
.home-waiting-lead, .home-mine-none { margin: 0 0 var(--space-2); color: var(--ink-2); }
/* Tasks 275 and 277: on a company whose contract ended, the one sentence that says why its lists ask nothing is a
   statement in the ink of the page, set on the banner's warning rule, never the muted tone of an aside. */
.home-read-only { margin: 0 0 var(--space-2); padding: var(--space-1) var(--space-2); border-left: 3px solid var(--ph-warn-line); color: var(--ink); font-weight: 600; }
.home-quiet { margin-block: var(--space-2); }
.home-quiet > summary { min-height: 1.5rem; color: var(--ink-2); cursor: pointer; }
.home-quiet[open] > summary { margin-block-end: var(--space-1); }
@media (max-width: 63.999rem) { .home-quiet > summary { min-height: var(--ph-control-h-touch); } }
/* Task 052b item 2: who acts on a statutory deadline, a neutral tag after its category, with one line on its meaning;
   the preview says how many entries the full list adds. */
.glance-owner-note, .home-glance-more { margin: 0 0 var(--space-2); }
.home-glance-more { margin-block-start: var(--space-1); }
/* Task 052d (F37): a figure that counts a list is a link to it, and the whole tile is its target, at 390 too. */
.figure-linked { position: relative; }
.figure-linked:hover { background: var(--accent-subtle-bg); }
.figure-link { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.figure-link::after { content: ""; position: absolute; inset: 0; }
.figure-link:focus-visible { outline: none; }
.figure-linked:has(.figure-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Task 052d: the admin's own timesheet and payslips (N9) and the leave requests decided in the last days (F32), short
   lists in the ink of the text; the plan panel (F5) reads in normal text. */
.home-own-list, .home-decided-list { display: grid; gap: var(--ph-space-05); margin: 0; padding-inline-start: var(--space-3); }
.home-own-list a, .home-decided-list a { display: inline-flex; align-items: center; min-height: 1.5rem; }
/* Task 096: a line of the own area may end with two ways, the sheet and «Timbra»; the second stands apart from the first. */
.home-own-list a + a { margin-inline-start: var(--space-2); }
.home-plan > p { margin-block: 0 var(--space-1); color: var(--ink); }
@media (max-width: 63.999rem) { .home-own-list a, .home-decided-list a { min-height: var(--ph-control-h-touch); } }
/* Task 052d (B2): the person's payslips and requests, visible secondary links under the one primary action. */
.home-shortcuts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: calc(-1 * var(--space-1)) 0 var(--space-3); padding: 0; list-style: none; }
.home-shortcuts a { display: inline-flex; align-items: center; min-height: 1.5rem; font-weight: 600; }
@media (max-width: 63.999rem) { .home-shortcuts a { min-height: var(--ph-control-h-touch); } }
/* Task 052d (A3c): on a phone the person's tiles read one per row, so no tile sits alone beside an empty cell. */
@media (max-width: 40rem) { .home-page[data-persona="employee"] .figures { grid-template-columns: 1fr; } }
.home-columns > .home-plan { align-self: start; }
/* Task 052d (I47): on «Le mie aziende» the line that says a row's «Apri» opens another client wraps under its button
   instead of widening the actions column (this sheet holds the portfolio rules shared with the consultant's home). */
.consultant-portfolio td.row-actions > .consultant-switch { display: block; max-width: 12rem; margin: var(--ph-space-05) 0 0 auto; white-space: normal; text-align: right; }
/* Design «Segnale», the employee home: the card «Oggi» with the day's plan (and its confirmation where «Timbra» is the
   header's button), then «Da fare
   adesso» as rows of one line, each row its own link with a chevron, so the urgent things fit the first screen of a
   phone; the latest payslip is a card that opens it. */
.home-today { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-2); margin: 0 0 var(--space-3); }
.home-today-line { margin: 0; font-weight: 600; }
.home-today > form { margin: 0; }
.home-actions { margin: 0; padding: 0; list-style: none; }
.home-actions > li { border-top: var(--border-w) solid var(--line); }
.home-actions > li:first-child { border-top: 0; }
.home-actions > li.is-quiet { display: grid; gap: var(--ph-space-05); padding: var(--ph-space-15) 0; }
.home-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-2); align-items: center; min-height: var(--ph-control-h-touch); padding: var(--ph-space-15) 0; color: var(--ink); text-decoration: none; }
.home-action::after { content: ""; grid-row: 1 / span 2; grid-column: 2; width: 0.5rem; height: 0.5rem; border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2); transform: rotate(45deg); }
.home-action:hover .home-action-name, .home-action:focus-visible .home-action-name { color: var(--accent-text); text-decoration: underline; }
.home-action > .home-item { grid-column: 1; }
.home-payslip-open { color: var(--accent-text); font-size: var(--ph-text-md); font-weight: 600; }
/* Task 053a (theme 1): the gloss of the close under the month line, in the ink of the text. */
.home-month-gloss { margin: calc(-1 * var(--space-1)) 0 var(--space-2); color: var(--ink); }
/* Task 054c (theme 4): a payroll term of «In arrivo» with its plain gloss and its glossary entry, on a line of its own under
   the entry, in the ink of the text; what each owner tag asks of whom, one row per tag, the tag beside its meaning. */
.glance-term { display: inline-block; color: var(--ink); font-size: var(--ph-text-sm); }
.glance-owner[data-owner="companyPays"] .pill { background: var(--ph-warn-bg); color: var(--warn); font-weight: 600; }
/* Task 285 (KNOWN-ISSUES «Left by task 282»): the lead names the company; a name of one long word breaks at the edge
   of the page, where it ran 36px past it at 390, and a name of words still breaks between them. */
.home-page .page-lead { overflow-wrap: break-word; }
.home-page .date-group-items .pill-info { background: var(--accent-subtle-bg); color: var(--accent-text); font-weight: 600; }
.glance-owner-title { margin: 0; color: var(--ink-2); font-size: var(--ph-text-sm); }
.glance-owners .page-info-panel { min-width: min(30rem, calc(100vw - 2 * var(--space-2))); padding: var(--space-2); }
.glance-owners { margin: 0 0 var(--space-2); }
.glance-owner-list { display: grid; gap: var(--space-1); margin: 0; }
.glance-owner-list > div { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-1); align-items: baseline; }
.glance-owner-list dd { margin: 0; }
@media (max-width: 40rem) { .glance-owner-list > div { grid-template-columns: 1fr; gap: var(--ph-space-05); } }
.home-glance-pays { margin: var(--space-1) 0 0; color: var(--ink); font-size: var(--ph-text-sm); }
/* Task 054c (theme 4): /aiuto, whom to ask first; each contact a short paragraph in the ink of the text, the addresses
   as links big enough to tap. */
.help-section { margin-block: 0 var(--space-3); }
.help-contact { margin: 0 0 var(--space-2); color: var(--ink); }
.help-contact > p { margin: 0 0 var(--ph-space-05); }
.help-reach { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); margin: 0; padding: 0; list-style: none; }
.help-reach a, .help-more-list a { display: inline-flex; align-items: center; min-height: 1.5rem; }
.help-more-list { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0; padding: 0; list-style: none; }
.help-more { margin-top: var(--space-3); padding-top: var(--space-2); border-top: var(--border-w) solid var(--line); }
/* Design «Segnale»: the groups of the site map and of the shortcuts side by side. */
.home-map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--space-3) var(--space-4); align-items: start; }
.home-map-grid > .home-section { margin: 0; }
.home-map-grid h2 { margin-top: 0; font-size: var(--ph-text-lg); }
/* The privacy page: the text in a reading column, the sections listed beside it on a wide screen. */
.privacy-layout { display: grid; grid-template-columns: minmax(0, 72ch) minmax(12rem, 16rem); gap: var(--space-4); align-items: start; }
.privacy-toc { position: sticky; top: var(--space-3); }
.privacy-toc h2 { margin: 0 0 var(--space-1); font-size: var(--ph-text-md); }
.privacy-toc ul { display: grid; gap: var(--ph-space-05); margin: 0; padding: 0; list-style: none; font-size: var(--ph-text-sm); }
@media (max-width: 63.999rem) { .privacy-layout { grid-template-columns: minmax(0, 1fr); } .privacy-toc { display: none; } }
@media (max-width: 63.999rem) { .help-reach a, .help-more-list a { min-height: var(--ph-control-h-touch); } }
/* Task 056a (theme 3, Nina N4): the close's page named in the month's gloss is a link, and the gloss ends with what the
   close is, on a line of its own. */
.home-month-gloss a { font-weight: 600; }
.home-month-meaning { display: block; margin-top: var(--ph-space-05); color: var(--ink); }

/* Task 069, design D «Sportello» (design-d-spec.md 8): the admin landing. The month is one card with a line of four
   coded stops; four figure tiles follow it; the work is rows in a card. On the roles of theme.css and the spacing steps.

   The pictogram box of a tile and of a row: the drawing its page has in the menu, in a rounded box. The drawing takes
   its colour as a stroke, because the ochre of a tile that needs the reader is a mark and never the colour of text. */
.home-pictogram { display: grid; flex: none; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius); background: var(--bg); }
.home-pictogram > .app-icon { width: 1.25rem; height: 1.25rem; stroke: var(--accent); }

/* The month card: the month's name and its state chip, the line, then the month's sentences beside the one main button. */
.home-month-head > h2 { font-size: var(--text-1); }
.home-month-head > h2 > a { color: var(--ink); }
/* The line: a stop is a coded disc with its term and a plain gloss under it; the track between two stops is filled once
   the first is behind the reader. The three states differ by shape and not only by colour, also below 64rem where the
   track is gone: a stop behind is a filled disc, the current one the accent with a ring, one ahead a hollow disc, the
   card's own ground inside an outline. Each also says its state in words to a screen reader (the view), and the chip of
   the card names the phase. The filled discs keep a transparent border, 2px on the current stop, so where the system
   forces its colours and takes the fills away every disc keeps a shape and the current one a heavier one. */
.home-stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.home-stop { position: relative; display: grid; align-content: start; gap: var(--space-1); min-width: 0; padding-right: var(--space-2); }
.home-stop::before { content: ""; position: absolute; top: calc(1.125rem - 2px); left: 2.25rem; right: 0; height: 4px; background: var(--surface-2); }
.home-stop:last-child::before { content: none; }
.home-stop-done::before { background: var(--accent-border); }
.home-stop-code { position: relative; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: var(--border-w) solid var(--ink-3); border-radius: 50%; background: var(--surface-1); color: var(--ink-2); font-size: var(--text--1); font-weight: 600; font-variant-numeric: tabular-nums; }
.home-stop-done .home-stop-code { border-color: transparent; background: var(--ph-tonal-hover); color: var(--ph-tonal-ink); }
.home-stop-current .home-stop-code { border-width: 2px; border-color: transparent; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px var(--ph-tonal); }
.home-stop-text { min-width: 0; }
.home-stop-term { margin: 0; color: var(--ink); font-weight: 600; }
.home-stop-gloss { margin: 0; color: var(--ink-2); font-size: var(--ph-text-sm); }
.home-month-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.home-month-say { flex: 1 1 20rem; min-width: 0; max-width: var(--ph-measure); }
.home-month-say > :last-child { margin-bottom: 0; }
/* The month on the line has no sentence of its own, so the gloss of the close may open the words under the line, and
   the button may stand alone there: it keeps the right end of the card. */
.home-month-say > .home-month-gloss:first-child { margin-top: 0; }
.home-month-foot > .button { margin-left: auto; }

/* The figure tiles: each a card with its pictogram, a large figure in the display face with its unit, the term and a
   plain gloss in the ink of the text (never a grey caption: «0 di 8» says it is normal until the hand in date where the
   eye already is). The term names the tile first for a reader of the markup; it is drawn under the figure. The term is
   the link to the list the tile counts, and the whole tile is its target, at 390 too. */
.home-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-3); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.home-tile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-2); row-gap: var(--space-1); min-width: 0; padding: var(--space-3); background: var(--surface-1); border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.home-tile .home-pictogram { background: var(--accent-subtle-bg); }
/* Task 079: the pictogram sits on the figure line, in the first column of the tile grid. */
.home-tile > .home-pictogram { grid-column: 1; grid-row: 1; }
.home-tile-attention .home-pictogram { background: var(--ph-attention-bg); }
.home-tile-attention .home-pictogram > .app-icon { stroke: var(--ph-attention); }
.home-tile-figure { grid-column: 2; grid-row: 1; margin: 0; color: var(--ink-2); line-height: 1.1; }
.home-tile-value { color: var(--ink); font-family: var(--font-display); font-size: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.home-tile-missing .home-tile-value { color: var(--ink-2); font-weight: 400; }
.home-tile-term { grid-column: 1 / -1; grid-row: 2; margin: 0; color: var(--ink); font-weight: 600; }
.home-tile-gloss { order: 3; margin: 0; color: var(--ink); font-size: var(--ph-text-sm); }
.home-tile > .home-tile-gloss { grid-column: 1 / -1; grid-row: 3; }
.home-tile-link { color: inherit; text-underline-offset: 0.15em; }
.home-tile-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-l); }
.home-tile-link:focus-visible { outline: none; }
.home-tile:has(.home-tile-link:hover) { box-shadow: var(--shadow-2); }
.home-tile:has(.home-tile-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The cards of the overview (task 107, research/overview-cards-spec.md rules 17 and 18). Small cards that follow each
   other are one list of tiles: up to four share one row in equal parts, as the four of the month do, and a longer run
   stands four to a row. Wide panels that follow each other stand two to a row, the last of an odd run taking its row
   whole, and a lone panel takes the row. Below the desktop the rules of the tiles further down take over, two by two
   and then one column, and a container of panels is one column as soon as two no longer fit. */
.home-tiles-wrap { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-columns-pairs { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(20rem, calc(50% - var(--space-3)))), 1fr)); }
.home-columns-pairs > :last-child:nth-child(odd) { grid-column: 1 / -1; }
/* A sum of money is the longest figure a small card holds. It keeps to its tile by taking the whole first row, with no
   pictogram beside it, in the size below the other figures, and never breaks inside its value (seen 2026-10-11 on
   «Direzione» at 1440, where «69.175,11 €» ran out of a quarter-width tile). */
.home-tile[data-card="staffCost"] > .home-pictogram { display: none; }
.home-tile[data-card="staffCost"] .home-tile-figure { grid-column: 1 / -1; }
.home-tile[data-card="staffCost"] .home-tile-value { font-size: var(--text-2); white-space: nowrap; }
.home-tile[data-card="staffCost"] .home-tile-unit { display: block; }
/* A new panel: its figure in the display face of a tile with the unit beside it, then its rows, a list and no table:
   the name of a row first, its facts after it, and the way to its page at the end. A row wraps on a phone. */
.home-card-figure { margin: 0 0 var(--space-1); color: var(--ink-2); line-height: 1.1; }
.home-card-lead, .home-card-more { margin: 0 0 var(--space-1); color: var(--ink); }
.home-card-note { max-width: var(--ph-measure); margin: 0 0 var(--space-1); color: var(--ink-2); font-size: var(--ph-text-sm); }
.home-card-list-title { margin: var(--space-2) 0 var(--space-1); font-size: var(--ph-text-md); }
.home-card-rows { margin: 0 0 var(--space-2); padding: 0; list-style: none; }
.home-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); padding: var(--space-1) 0; }
.home-card-row + .home-card-row { border-top: var(--border-w) solid var(--surface-2); }
.home-card-row-name { flex: 1 1 10rem; min-width: 0; color: var(--ink); font-weight: 600; }
.home-card-row-fact { color: var(--ink); font-variant-numeric: tabular-nums; }

/* The line of today's closure on «Piccola azienda» (task 193). */
.home-closure-today { max-width: var(--ph-measure); margin: 0 0 var(--space-3); color: var(--ink); font-weight: 600; }

/* The one sentence of an overview with no card. */
.home-layout-none { max-width: var(--ph-measure); margin: 0 0 var(--space-3); color: var(--ink); }

/* The overview in its edit mode (task 127, round 2). The cards stand in the grid of the overview, four columns on a
   desktop: a tile takes one, a panel two, a section the row; two columns below 80rem and one on a phone. A frame adds no
   box of its own: over the card stands one thin row of controls on one line, the handle at the start, the size switch
   of a card that has both sizes, and «Togli» as a quiet × at the end. The «Posizione» select with «Sposta» is the way
   without the script; the script marks the grid .is-scripted, which hides it. In the scripted grid the card says it
   moves: the cursor grabs and the card's shadow deepens under the pointer. While a frame is dragged it stays in the grid as the
   drop placeholder, a dashed tinted area of its span drawn over it (its handle keeps the focus under it), and a copy of its card follows the pointer (.overview-ghost). A
   card that draws nothing keeps its place as a dashed outline with the sentence that says why. Every control is
   2.5rem high, the touch height below 64rem, and a carried, dragged or just added card takes the accent outline. */
.overview-edit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.overview-frame { position: relative; display: flex; flex-direction: column; gap: var(--ph-space-05); min-width: 0; border-radius: var(--radius-l); scroll-margin-top: var(--space-3); }
.overview-frame[data-span="panel"] { grid-column: span 2; }
.overview-frame[data-span="section"] { grid-column: 1 / -1; }
.overview-frame-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ph-space-05) var(--space-1); min-width: 0; }
.overview-edit.is-scripted .overview-frame-bar { flex-wrap: nowrap; }
.overview-edit.is-scripted .overview-frame-move { display: none; }
.overview-frame-bar > form { margin: 0; }
.overview-frame-bar button { min-height: var(--ph-control-h); }
.overview-frame-handle { display: inline-grid; flex: none; place-items: center; width: var(--ph-control-h); padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink-2); cursor: grab; touch-action: none; }
.overview-frame-handle[hidden] { display: none; }
.overview-frame-handle:hover { background: var(--surface-2); color: var(--ink); }
.overview-frame-handle[aria-pressed="true"] { background: var(--accent-subtle-bg); color: var(--accent-text); }
.overview-frame-handle > .app-icon { width: 1.25rem; height: 1.25rem; }
.overview-frame-move { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--ph-space-05); }
.overview-frame-move label { color: var(--ink-2); font-size: var(--ph-text-sm); }
.overview-frame-move select { width: auto; min-width: 4rem; }
/* The size switch: two states in one well, the size the card has pressed, as the segmented controls (components.css). */
.overview-frame-size { display: inline-flex; flex: none; gap: calc(var(--border-w) * 2); padding: calc(var(--border-w) * 2); border-radius: var(--radius); background: var(--surface-2); }
.overview-frame-size > button { min-height: calc(var(--ph-control-h) - 4 * var(--border-w)); padding: 0 var(--ph-space-15); border-radius: var(--radius-s); background: transparent; color: var(--ink-2); font-size: var(--ph-text-sm); font-weight: 400; }
.overview-frame-size > button:hover { background: var(--surface-1); color: var(--ink); }
.overview-frame-size > button[aria-pressed="true"] { background: var(--surface-1); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); cursor: default; }
.overview-frame-bar > .overview-frame-remove { flex: none; margin-left: auto; }
.overview-frame-remove > button { width: var(--ph-control-h); padding: 0; background: transparent; color: var(--ink-2); }
.overview-frame-remove > button:hover { background: var(--ph-err-bg); color: var(--err); }
.overview-frame-remove .app-icon { width: 1.25rem; height: 1.25rem; }
.overview-frame-card { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; border-radius: var(--radius-l); }
.overview-frame-card > *, .overview-frame-card > .home-columns > * { flex: 1 1 auto; margin: 0; }
.overview-frame-card > .home-tile { align-content: start; }
/* A card of the edit mode is inert: a primary of its own (the month's main step) is drawn in the tonal colours there, so
   «Fatto» stays the one primary of the page. */
.overview-frame-card .button-primary, .overview-add-preview .button-primary { background: var(--ph-tonal); color: var(--ph-tonal-ink); box-shadow: none; }
.overview-frame-empty { flex: 1 1 auto; margin: 0; padding: var(--space-3); border: var(--border-w) dashed var(--line-strong); border-radius: var(--radius-l); color: var(--ink); }
.overview-edit.is-scripted .overview-frame { cursor: grab; }
.overview-edit.is-scripted .overview-frame-card * { cursor: inherit; }
.overview-edit.is-scripted:not(.is-sorting) .overview-frame:hover > .overview-frame-card { box-shadow: var(--shadow-2); }
.overview-edit.is-sorting, .overview-edit.is-sorting .overview-frame { cursor: grabbing; }
.overview-frame.is-dragging::after { content: ""; position: absolute; inset: 0; z-index: 1; border: 2px dashed var(--accent); border-radius: var(--radius-l); background: var(--accent-subtle-bg); }
.overview-frame.is-picked > .overview-frame-card, .overview-frame.is-new > .overview-frame-card, .overview-frame.is-picked > .overview-frame-empty, .overview-frame.is-new > .overview-frame-empty { outline: 2px solid var(--accent); outline-offset: 2px; }
.overview-ghost { position: fixed; top: 0; left: 0; z-index: 70; display: flex; flex-direction: column; border-radius: var(--radius-l); box-shadow: var(--shadow-2); pointer-events: none; cursor: grabbing; }
.overview-ghost > .overview-frame-card, .overview-ghost > .overview-frame-empty { background: var(--surface-1); }
.overview-edit[aria-busy="true"] { cursor: progress; }
@media (max-width: 79.999rem) {
  .overview-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-frame[data-span="panel"] { grid-column: 1 / -1; }
}
@media (max-width: 63.999rem) {
  .overview-frame-bar button, .overview-frame-handle, .overview-frame-remove > button { min-height: var(--ph-control-h-touch); }
  .overview-frame-handle, .overview-frame-remove > button { width: var(--ph-control-h-touch); }
  .overview-frame-size > button { min-height: var(--ph-control-h-touch); }
}
@media (max-width: 40rem) {
  .overview-edit { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
}

/* «Aggiungi un riquadro» in the side panel (task 127, round 2): by area, each card with its name, what it shows in one
   line, the card itself drawn with the reader's data across the panel's width, and its one button. The panel is the
   box: a card drawn there loses its own border, ground and shadow, so no box stands inside it, and its links keep
   their words without looking like links, since nothing in it can be pressed. A long card is shown to its first
   lines, which fade out. */
.overview-add-lead { max-width: var(--ph-measure); margin: 0 0 var(--space-2); color: var(--ink-2); }
.overview-add-group + .overview-add-group { margin-top: var(--space-3); }
.overview-add-area { margin: 0; color: var(--ink-2); font-size: var(--ph-text-md); }
.overview-add-list { margin: 0; padding: 0; list-style: none; }
.overview-add { display: grid; gap: var(--space-1); padding: var(--space-2) 0 var(--space-3); scroll-margin-top: var(--space-3); }
.overview-add + .overview-add { border-top: var(--border-w) solid var(--line); }
.overview-add-name { margin: 0; font-size: var(--ph-text-md); }
.overview-add-says { max-width: var(--ph-measure); margin: 0; color: var(--ink); font-size: var(--ph-text-sm); }
.overview-add-preview { max-height: 24rem; overflow: hidden; mask-image: linear-gradient(to bottom, var(--ink) 19rem, transparent 24rem); }
.overview-add-preview > *, .overview-add-preview > .home-columns > * { margin: 0; }
.overview-add-preview :is(.panel, .home-tile) { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.overview-add-preview a, .overview-add-preview a:visited, .overview-add-preview a:hover { color: inherit; text-decoration: none; cursor: default; }
.overview-add-form { margin: var(--space-1) 0 0; }

/* «Parti da una panoramica pronta» (task 127): a disclosure under the cards, the three ready overviews side by side
   where they fit, each with its composition drawn small (one outlined box per card, as wide as it stands on the
   overview) and its button, which opens the confirmation that names what leaves the page. */
.customise-ready { margin: var(--space-4) 0 0; padding-top: var(--space-2); border-top: var(--border-w) solid var(--line); }
/* A flex summary loses the browser's triangle, so the ready overviews read as a title with nothing under it (task 272,
   seen at 1440 and 390): a chevron says the title opens, and turns when it is open. */
.customise-ready > summary { display: flex; align-items: center; gap: var(--space-2); min-height: var(--ph-control-h); color: var(--ink); font-size: var(--ph-text-lg); font-weight: 600; list-style: none; cursor: pointer; }
.customise-ready > summary::-webkit-details-marker { display: none; }
.customise-ready > summary::after { content: ""; flex: none; width: 0.5em; height: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.15em) rotate(45deg); }
.customise-ready[open] > summary::after { transform: translateY(0.15em) rotate(-135deg); }
.customise-ready-lead { max-width: var(--ph-measure); margin: var(--space-1) 0 var(--space-3); color: var(--ink); }
.customise-templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.customise-template { display: grid; align-content: start; gap: var(--space-1); min-width: 0; }
.customise-template-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.customise-template-head > h3 { margin: 0; font-size: var(--ph-text-md); }
.customise-template-lead { margin: 0; color: var(--ink); }
.customise-scheme { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ph-space-05); margin: var(--space-1) 0; padding: 0; list-style: none; }
.customise-scheme-card { min-width: 0; min-height: 2.5rem; padding: var(--ph-space-05); border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-s); color: var(--ink-2); font-size: var(--ph-text-sm); line-height: 1.25; overflow-wrap: anywhere; }
.customise-scheme-card[data-span="panel"] { grid-column: span 2; }
.customise-scheme-card[data-span="section"] { grid-column: 1 / -1; }
.customise-confirm > summary { width: fit-content; list-style: none; cursor: pointer; }
.customise-confirm > summary::-webkit-details-marker { display: none; }
.customise-confirm-body { display: grid; gap: var(--space-1); margin-top: var(--space-1); }
.customise-confirm-body > p { max-width: var(--ph-measure); margin: 0; color: var(--ink); }
.customise-confirm-body > form { margin: 0; }
/* What a ready overview changes: what leaves and what arrives, each a count over a short list of names, side by side
   where they fit. */
.customise-confirm-change { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: var(--space-1) var(--space-2); }
.customise-confirm-count { margin: 0; color: var(--ink); font-weight: 600; }
.customise-confirm-names { margin: var(--ph-space-05) 0 0; padding: 0; color: var(--ink); font-size: var(--ph-text-sm); line-height: 1.35; list-style: none; }
.customise-confirm-names > li + li { margin-top: var(--ph-space-05); }
.customise-none { max-width: var(--ph-measure); margin: 0 0 var(--space-3); color: var(--ink); }

/* The work: rows in a card, each the pictogram of its page, the term with what it asks under it, the date, whose move
   it is and the way there. A row with nothing to do in the quiet line keeps only its sentence. */
.home-rows { margin: 0; padding: 0; list-style: none; }
.home-row { display: flex; align-items: center; gap: var(--space-2); padding: var(--ph-space-15) 0; }
.home-row:first-child { padding-top: 0; }
.home-row:last-child { padding-bottom: 0; }
.home-row + .home-row { border-top: var(--border-w) solid var(--surface-2); }
.home-row-text { flex: 1 1 auto; min-width: 0; }
.home-row-term { margin: 0; color: var(--ink); font-weight: 600; }
.home-row-more { margin: var(--ph-space-05) 0 0; color: var(--ink); font-size: var(--ph-text-sm); }
.home-row-when { flex: none; margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-row > .pill, .home-row > .button { flex: none; }
.home-quiet > .home-rows { margin: 0; }

/* Below the desktop the tiles stand two by two and the stops too, without their track; on a phone each list is one
   column: a stop is its disc beside its words, and a row puts its date under its words, then its chip and its button
   on one line. */
@media (max-width: 79.999rem) {
  .home-tiles { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 63.999rem) {
  .home-stops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .home-stop { padding-right: 0; }
  .home-stop::before { content: none; }
}
@media (max-width: 40rem) {
  .home-stops, .home-tiles { grid-template-columns: minmax(0, 1fr); }
  .home-tiles { gap: var(--space-2); }
  .home-tile { padding: var(--space-2); }
  .home-stop { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--ph-space-15); }
  .home-month-foot > .button { margin-left: 0; }
  .home-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-1) var(--ph-space-15); }
  .home-row > .home-pictogram { align-self: start; }
  .home-row > .home-row-text, .home-row > .home-row-when { grid-column: 2 / -1; }
  .home-row > .pill { grid-column: 2 / -1; justify-self: start; }
  /* Task 381 round 2 (P4): the way to a row's page has a row of its own under whose move it is, so a long label never
     covers the pill. */
  .home-row > .button { grid-column: 2 / -1; justify-self: start; }
  .home-row-when { white-space: normal; }
}

/* Design «Segnale»: the strip of the reader's first moves at the top of the overview, one link per line. */
.home-first-moves > h2 { margin: 0 0 var(--space-1); font-size: var(--ph-text-lg); }
.home-first-moves > ul { margin: 0; padding: 0; list-style: none; }
.home-first-moves a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-2); padding: var(--space-1) 0; border-top: var(--border-w) solid var(--line); color: var(--ink); text-decoration: none; }
.home-first-moves li:first-child > a { border-top: 0; }
.home-first-moves a:hover > span:first-child { text-decoration: underline; }

/* The tile of a team manager: the title is the way to the team; each day the plan did not fill is one line with the
   way to the day. */
.home-team-title { color: inherit; text-decoration: none; }
.home-team-title:hover, .home-team-title:focus-visible { text-decoration: underline; }
.home-team-not-turned { margin: 0 0 var(--space-2); padding: 0; list-style: none; }
.home-team-not-turned > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ph-space-05) var(--space-2); padding: var(--ph-space-05) 0; border-top: var(--border-w) solid var(--line); }
/* The consultant's «Da fare ora» (decision of 2026-10-14, Silvia S2): one list across the clients, a row each, the client
   in bold, what is to do, and the one way to act at the right edge; on a phone the three stack. What waits for the
   company comes last, in the muted ink. */
.todo-now { margin: 0; padding: 0; list-style: none; }
.todo-now-item { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr) auto; align-items: center; gap: var(--space-1) var(--space-3); padding: var(--space-2) 0; border-top: var(--border-w) solid var(--line); }
.todo-now-item:first-child { border-top: 0; padding-top: 0; }
.todo-now-item:last-child { padding-bottom: 0; }
/* Task 285: a client's name of one long word wraps inside its column; at 390 it made the studio's home scroll sideways. */
.todo-now-client { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.todo-now-what { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ph-space-05) var(--space-1); }
.todo-now-what > .cell-note { flex-basis: 100%; }
.todo-now-item.is-waiting .todo-now-text { color: var(--ink-2); }
.todo-now-action form { margin: 0; }
/* Task 121: «Prendo in carico» under a chiarimento, the whole width of its words. */
.todo-now-what > .todo-now-hold { flex-basis: 100%; }
/* Task 200 (Silvia P6): a heading where a kind starts on the page, the rows under it without a rule of their own; the
   companies with no referente, one quiet line above the list. */
.todo-now-group { padding: var(--space-3) 0 var(--space-1); border-top: var(--border-w) solid var(--line); }
.todo-now-group:first-child { border-top: 0; padding-top: 0; }
.todo-now-group > h3 { margin: 0; color: var(--ink-2); font-size: var(--ph-text-sm); font-weight: 600; }
.todo-now-group + .todo-now-item { border-top: 0; }
.home-section > [data-unread-companies] { margin: var(--space-2) 0; }
.todo-now-referents { margin: 0 0 var(--space-2); color: var(--ink-2); font-size: var(--ph-text-sm); }
@media (max-width: 40rem) {
  .todo-now-item { grid-template-columns: minmax(0, 1fr); gap: var(--ph-space-05); }
  .todo-now-action { margin-top: var(--ph-space-05); }
}
/* The legal section (task 172, modules/legal): the hub as a plain list of documents with their version and date, and a
   document as a reading column in one panel (no box inside it: its tables are ruled lines on the panel's ground), the
   draft banner first, the versions under the text. A printed document is its title, its version line and its text. */
.legal-body { max-width: 52rem; }
.legal-hub-list { display: grid; gap: 0; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.legal-hub-item { padding: var(--space-2) 0; border-top: var(--border-w) solid var(--surface-2); }
.legal-hub-item:first-child { border-top: 0; }
.legal-hub-title { font-weight: 600; }
.legal-hub-meta { margin: var(--ph-space-05) 0 0; color: var(--ink-2); font-size: var(--ph-text-sm); }
.legal-meta { margin: var(--space-2) 0; color: var(--ink-2); font-size: var(--ph-text-sm); }
.legal-text { max-width: var(--ph-measure); line-height: var(--leading-body); }
.legal-text h2 { margin: var(--space-4) 0 var(--space-1); font-size: var(--text-1); }
.legal-text h3 { margin: var(--space-3) 0 var(--ph-space-05); font-size: var(--ph-text-md); }
.legal-text p, .legal-text ul { margin: 0 0 var(--space-2); }
.legal-text ul { padding-inline-start: var(--space-3); }
.legal-table-scroll { max-width: 100%; margin: 0 0 var(--space-2); overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: var(--ph-text-sm); }
.legal-table th, .legal-table td { padding: var(--space-1); border-bottom: var(--border-w) solid var(--surface-2); text-align: start; vertical-align: top; }
.legal-table caption { margin-bottom: var(--ph-space-05); text-align: start; font-weight: 600; }
.legal-versions { margin-top: var(--space-4); padding-top: var(--space-2); border-top: var(--border-w) solid var(--surface-2); }
.legal-versions h2 { margin: 0 0 var(--space-1); font-size: var(--ph-text-md); }
.legal-versions ul { display: grid; gap: var(--ph-space-05); margin: 0; padding: 0; list-style: none; font-size: var(--ph-text-sm); }
.legal-back { margin: var(--space-3) 0 0; }
/* Task 192: the reason the notice on attendance is offered stands clear of the facts' rule below it. */
.legal-notices-admin .notice-offered { margin: 0 0 var(--space-2); }
/* The company's notices to its staff (task 176): the receipts of the version in force in two lists side by side, one
   above the other on a phone; the versions as a plain list; the interstitial's button under the text. */
.legal-receipt-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-3); }
.legal-receipt-lists h3 { margin: 0 0 var(--space-1); font-size: var(--ph-text-md); }
.legal-receipt-list, .legal-version-list { display: grid; gap: var(--ph-space-05); margin: 0; padding: 0; list-style: none; }
.legal-company-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.legal-receipt-form { margin-top: var(--space-3); padding-top: var(--space-2); border-top: var(--border-w) solid var(--surface-2); }
@media print {
  .legal-body { max-width: none; box-shadow: none; }
  .legal-versions, .legal-back { display: none; }
  .legal-text h2 { break-after: avoid; }
  .legal-table tr { break-inside: avoid; }
}
/* Forced colours, design-d-spec.md 4 and 8 (task 071). Where the system forces its colours the fills, the ring of the
   current stop and the track are gone: every disc would be a ground with an outline, a stop behind the reader drawn as
   a stop ahead. There a tile takes the border of a card (components.css), and the three states of a stop differ by
   their outline alone: a stop ahead is a thin dashed disc, a stop behind a heavy solid one, and the current stop keeps
   its 2px outline inside a second ring, the one the shadow drew. The track is drawn again as a line, dotted until the
   stop it leaves is behind the reader and solid after. Every line is in the colour of the text; no rule names a colour.
   Outside that mode nothing here applies. */
/* Task 381 (decision 5, round 2 P11): the line that offers the import from payslips, its link a 44 px target. */
.home-import-offer { margin: 0 0 var(--space-3); }
.home-import-offer a { display: inline-flex; align-items: center; min-height: var(--ph-control-h-touch); }
@media (forced-colors: active) {
  .home-tile { border: var(--border-w) solid; }
  .home-stop-ahead .home-stop-code { border-style: dashed; }
  .home-stop-done .home-stop-code { border-width: 3px; }
  .home-stop-current .home-stop-code { outline: 2px solid; outline-offset: 2px; }
  .home-stop::before { height: 0; border-top: 4px dotted; }
  .home-stop-done::before { border-top-style: solid; }
  .overview-frame.is-dragging::after { border-width: 3px; }
  .overview-frame.is-picked > .overview-frame-card, .overview-frame.is-new > .overview-frame-card { outline: 3px solid; }
  .overview-frame-size > button[aria-pressed="true"] { border: 2px solid; }
}
