/* ---------- Planner ---------- */
.btn-group {
  display: inline-flex;
  gap: var(--space-0);
  padding: var(--space-0);
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
}
.btn-group .btn { box-shadow: none; border-color: transparent; }
.plan-date { height: 36px; width: 140px; padding: 0 var(--space-4); }

.planner {
  --unit: 200px;
  --min-day: 44px;
  overflow: auto;
  max-height: calc(100vh - var(--header) - var(--gap) * 3);
  max-height: calc(100dvh - var(--header) - var(--gap) * 3);
}
.plan-row {
  display: grid;
  grid-template-columns: var(--unit) minmax(calc(var(--days) * var(--min-day)), 1fr);
  min-width: calc(var(--unit) + var(--days) * var(--min-day));
  border-bottom: 1px solid var(--line);
}
.plan-row:last-child { border-bottom: 0; }
.plan-unit {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-0);
  padding: var(--space-2) var(--pad);
  background: var(--surface);
  border-right: 1px solid var(--line);
  min-width: 0;
}
.plan-unit-title { font-weight: 600; font-size: var(--fs-base); }
.plan-unit .meta { font-size: var(--fs-2xs); }
.plan-state { font-size: var(--fs-2xs); font-weight: 600; }
.plan-bar.plan-block {
  cursor: default; color: var(--ink); box-shadow: inset 0 0 0 1px var(--midnight);
  background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--surface-sunken) 6px 12px);
  padding-left: var(--space-3);
}
.plan-bar.plan-block:hover { transform: none; filter: none; }

.plan-head { position: sticky; top: 0; z-index: 3; background: var(--surface); }
.plan-head .plan-unit { justify-content: center; }
.plan-days, .plan-cells { display: grid; grid-template-columns: repeat(var(--days), minmax(var(--min-day), 1fr)); }
.plan-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-0);
  padding: var(--space-2) 0;
  border-left: 1px solid var(--line);
}
.plan-day .dow { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.plan-day .dnum { font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-day.weekend { background: var(--surface-sunken); }
.plan-day.today { background: var(--midnight); color: var(--ink-inverse); }
.plan-day.today .dow { color: var(--ink-inverse-muted); }

.plan-track { position: relative; min-height: calc(8px + var(--lanes, 1) * 34px); }
/* What the unit asks today, in its column under its state: today's cleaning as a quiet mark (a thin
   neutral outline with who does it; nobody yet is a "+" written in the action orange, a colour as
   text as the manual allows) and each open repair as a link. */
.plan-unit-work { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.plan-unit-line { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A repair: a link in the action orange, the size of the unit's other lines, cut at the column. */
.plan-unit-work .link-text.plan-unit-line { display: block; font-size: var(--fs-xs); color: var(--action-orange); text-decoration: none; }
.plan-unit-work .link-text.plan-unit-line:hover { text-decoration: underline; }
.plan-unit-work .hkp-task { height: 18px; min-width: 22px; padding: 0 6px; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 10px; }
.plan-unit-work .hkp-task.nobody { color: var(--action-orange); box-shadow: inset 0 0 0 1px currentColor; font-size: 12px; }
.plan-cells { position: absolute; inset: 0; }
.plan-cell { border: 0; border-left: 1px solid var(--line); padding: 0; background: none; font: inherit; cursor: pointer; transition: background var(--fast); }
.plan-cell:hover { background: var(--surface-hover); }
.plan-cell.weekend { background: var(--surface-sunken); }
.plan-cell.today { background: var(--surface-today); }
.plan-cell.past { cursor: default; background: var(--surface-hover); }
.plan-cell.past:hover { background: var(--surface-hover); }
.plan-cell.closed { background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--slate-tint) 6px 7px); }
.plan-cell.over { box-shadow: inset 0 0 0 2px var(--action-red); }
.plan-bars { position: absolute; inset: 0; pointer-events: none; }

.plan-bar {
  position: absolute; height: 28px; display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-3) 0 var(--space-0); overflow: hidden;
  border: 0; border-radius: var(--r-xs); color: var(--ink-inverse); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; text-align: left;
  pointer-events: auto; cursor: pointer; box-shadow: var(--shadow-bar);
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast);
}
.plan-bar:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: var(--shadow-bar-hover); }
.plan-bar.cut-start { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.plan-bar.cut-end { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.plan-code {
  flex: none;
  height: 22px;
  padding: 0 var(--space-2);
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  background: var(--planner-shade);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.04em;
}
.plan-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.plan-guests { flex: none; display: inline-flex; align-items: center; gap: var(--space-0); opacity: 0.9; font-weight: 500; }
.plan-guests svg { width: 12px; height: 12px; }
.plan-amount {
  flex: none;
  margin-left: auto;
  padding-left: var(--space-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  opacity: 0.92;
}
@media (max-width: 720px) { .planner { --unit: 120px; --min-day: 40px; } .plan-amount, .plan-guests { display: none; } }
/* A short bar (one night, or a stay cut at the edge of the range) drops what does not fit, least
   needed first, instead of cutting a price in half: the amount, then the guests, then the code. */
.plan-bar { container: plan-bar / inline-size; }
@container plan-bar (max-width: 100px) { .plan-amount { display: none; } }
@container plan-bar (max-width: 70px) { .plan-guests { display: none; } }
@container plan-bar (max-width: 48px) { .plan-code { display: none; } }

/* ---------- Rates grid ---------- */
.ari td.day-cell {
  text-align: center;
  padding: var(--space-2) var(--space-1);
  min-width: 72px;
  cursor: pointer;
  transition: background var(--fast);
  border-left: 1px solid var(--line);
}
.ari td.day-cell:hover { background: var(--surface-hover); }
.ari .rate { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ari .sub { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--faint); margin-top: var(--space-0); }
.ari .closed .rate { text-decoration: line-through; color: var(--faint); }
.ari .flags { display: flex; gap: var(--space-0); justify-content: center; margin-top: var(--space-1); min-height: 6px; }
.ari .flags span { width: 6px; height: 6px; border-radius: 50%; }
.ari th.day-head { text-align: center; }
.ari .avail-row td.day-cell { background: var(--surface-sunken); }
.ari .avail { font-weight: 600; font-variant-numeric: tabular-nums; }
.ari .avail.zero { color: var(--action-red); }
.ari td.sticky, .ari th.sticky {
  padding-left: var(--pad);
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  min-width: 190px;
  max-width: 220px;
}

/* ---------- Inbox ---------- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--gap); min-height: 60vh; }
.inbox .threads {
  padding: var(--space-3);
  max-height: calc(100vh - var(--header) - var(--gap) * 5);
  max-height: calc(100dvh - var(--header) - var(--gap) * 5);
  overflow-y: auto;
}
.thread-item {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-inner);
  cursor: pointer;
  transition: background var(--fast);
  min-width: 0;
}
.thread-item:hover { background: var(--surface-hover); }
.thread-item[aria-current="true"] { background: var(--midnight); color: var(--ink-inverse); }
.thread-item[aria-current="true"] .meta, .thread-item[aria-current="true"] .muted, .thread-item[aria-current="true"] .preview {
  color: var(--ink-inverse-muted);
}
.thread-item .grow > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item .preview { font-size: var(--fs-sm); color: var(--muted); }
.conversation { display: flex; flex-direction: column; min-height: 60vh; padding: 0; overflow: hidden; }
.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: var(--gap) var(--pad);
  border-bottom: 1px solid var(--line);
}
.conversation-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--pad);
  overflow-y: auto;
  max-height: 56vh;
  background: var(--surface-sunken);
}
.bubble {
  max-width: 76%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--midnight); color: var(--ink-inverse); border-bottom-right-radius: 6px; }
.bubble .meta { margin-top: var(--space-1); font-size: var(--fs-2xs); }
.bubble.out .meta { color: var(--ink-inverse-muted); }
.bubble.system { align-self: center; max-width: 88%; background: var(--surface-sunken); border: 1px dashed var(--line-strong); text-align: center; }
.composer { display: flex; gap: var(--space-3); align-items: flex-end; padding: var(--gap) var(--pad); border-top: 1px solid var(--line); }
.composer .textarea { min-height: 42px; border-radius: var(--pill); }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.stars { color: var(--orange); letter-spacing: 1px; font-size: var(--fs-base); }

/* ---------- Channels ---------- */
.channel-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--ink-inverse);
  flex: none;
}
.channel-logo.is-plain { background: var(--surface-sunken); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.channel-logo.is-plain svg { width: 18px; height: 18px; }
.adapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  grid-auto-rows: min-content;
  gap: var(--space-3);
  padding: var(--space-0);
}
.adapter {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-resting);
  cursor: pointer;
  font-weight: 500;
  font-size: var(--fs-base);
  text-align: left;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform var(--fast), box-shadow var(--fast);
}
.adapter:hover { transform: translateY(-1px); box-shadow: var(--shadow-raised); }
.adapter:disabled { cursor: default; opacity: 0.6; transform: none; box-shadow: none; }
.adapter .grow { flex: 1; min-width: 0; }
.steps { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.steps span {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--pill);
  color: var(--faint);
  border: 1px solid var(--line);
}
.steps span[aria-current="step"] { background: var(--midnight); color: var(--ink-inverse); border-color: transparent; }
.steps span.done { color: var(--on-action); border-color: transparent; background: var(--action-green); }
.ari .cell-button {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-1);
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: var(--r-xs);
}
.ari td.day-cell:has(.cell-button) { padding: 0; }
@media (max-width: 900px) {
  .ari td.sticky, .ari th.sticky { min-width: 112px; max-width: 132px; }
  .ari td.day-cell { min-width: 56px; }
}
/* A price rule of a service: its remove button sits at its end. */
.service-price-foot { justify-content: flex-end; }
.service-price { box-shadow: none; }
/* A service row of the rate grid: read here, edited in the catalogue. */
.ari .service-row td { background: var(--surface-sunken); }
.ari .service-row .rate { font-weight: 500; }

.stack.xs { gap: var(--space-1); }

/* Today's doors. A door is a row: its day as an icon in its state's colour, its name and state,
   what its day is, then each task with who does it and the next step. */
.hk-list { display: flex; flex-direction: column; }
.hk-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.hk-row:last-of-type { border-bottom: 0; }
.hk-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--midnight); color: var(--ink-inverse); }
.hk-mark svg { width: 18px; height: 18px; }
.tone-solid-green { background: var(--action-green); color: var(--on-action); }
.tone-solid-yellow { background: var(--action-yellow); color: var(--on-action-yellow); }
.tone-solid-orange { background: var(--action-orange); color: var(--on-action); }
.tone-solid-red { background: var(--action-red); color: var(--on-action); }
.tone-solid-neutral { background: var(--midnight); color: var(--ink-inverse); }
.tone-text-green { color: var(--action-green); } .tone-text-yellow { color: var(--action-yellow-text); }
.tone-text-orange { color: var(--action-orange); } .tone-text-red { color: var(--action-red); }
.hk-main { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.hk-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.hk-tag { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.hk-title { font-weight: 600; }
.hk-sub { color: var(--muted); font-size: var(--fs-sm); }
.hk-task { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-inner); background: var(--surface-sunken); flex-wrap: wrap; }
.hk-task-what { display: flex; flex-direction: column; flex: 1; min-width: 160px; font-size: var(--fs-sm); }
.hk-task-name { font-weight: 600; }
.hk-note { font-style: italic; }
.hk-who { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); white-space: nowrap; }
/* Nobody given the cleaning yet: a person missing, not a state of the room. Written in the action
   orange inside a dashed outline (a colour as text, manual de marca), so it never reads as one more
   filled bubble beside "Da pulire" or "Urgente". */
.hk-who.none { color: var(--action-orange); font-weight: 600; padding: 1px 8px; border-radius: var(--pill); border: 1px dashed currentColor; }
.hk-who.none svg { width: 13px; height: 13px; }
.hk-initials { width: 22px; height: 22px; border-radius: 50%; background: var(--midnight); color: var(--ink-inverse); display: grid; place-items: center; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.02em; }
.hk-rest { display: flex; align-items: center; gap: var(--space-2); padding-top: var(--space-4); color: var(--muted); font-size: var(--fs-sm); }
.hk-rest svg { width: 16px; height: 16px; color: var(--action-green); }

/* Oggi: where the month's bookings came from, a thin ring of the channels beside their shares. */
.mix { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-3); }
.mix-ring { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.mix-ring circle { fill: none; stroke: var(--ch, var(--slate)); stroke-width: 6; stroke-linecap: butt; background: none; }
.mix-legend { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--fs-sm); flex: 1; min-width: 0; }
.mix-legend > div { display: flex; align-items: center; gap: var(--space-2); }
.mix-legend .val { font-variant-numeric: tabular-nums; }
.mix-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ch, var(--slate)); flex: none; }

/* The person form: usual doors as a grid of choices, the week as a table. */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-2); }
.choice { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-inner); cursor: pointer; min-width: 0; }
.choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--surface-sunken); }
.hours-grid { display: grid; grid-template-columns: 64px 64px minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2) var(--space-4); align-items: center; }
.hours-day { font-weight: 600; }
.hours-grid .input:disabled { opacity: 0.4; }

/* The cleaning panel: today in figures beside the ring; rules and kinds as tables. */
.hk-figures { display: flex; gap: var(--space-6, 28px); }
.hk-figure { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hk-figure-n { font-size: var(--fs-xl, 22px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hk-figure-l { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono); }
.input.compact { width: 130px; }
.day-chips { display: flex; gap: var(--space-1); flex-wrap: nowrap; margin-top: var(--space-2); }
.day-chip { font: inherit; font-size: var(--fs-sm); padding: 5px 10px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.day-chip[aria-pressed="true"] { background: var(--midnight); border-color: var(--midnight); color: var(--ink-inverse); }
.day-chip:disabled { cursor: default; }
.hk-kind-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-sunken); display: grid; place-items: center; flex: none; }
.hk-kind-icon svg { width: 15px; height: 15px; }
.card-pad { padding: var(--pad); }

/* The cleaning panel: rules with their meaning under the name; people and sales in short lists. */
.hk-panel { align-items: stretch; }
.rule-name { display: flex; flex-direction: column; gap: var(--space-0); white-space: normal; }
.rule-name .muted { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36ch; }
/* On a phone the hint has the width to itself: it wraps, never cut. */
@media (max-width: 720px) { .rule-name .muted { white-space: normal; max-width: none; } }
.person-initials { width: 32px; height: 32px; border-radius: 50%; background: var(--midnight); color: var(--ink-inverse); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 600; flex: none; }
.person-line { font-size: var(--fs-sm); }

/* The plan of the days: doors down, dates across; a situation as a small glyph, each task a bubble
   in its status colour with who does it. */
.hkp-host { overflow-x: auto; }
.hkp-grid { display: grid; grid-template-columns: 180px repeat(var(--days), minmax(56px, 1fr)); min-width: max-content; }
.hkp-row { display: contents; }
.hkp-door { padding: var(--space-3) var(--space-3) var(--space-3) 0; font-weight: 600; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkp-date { display: flex; flex-direction: column; align-items: center; padding: var(--space-2) 0; font-size: var(--fs-sm); font-weight: 600; border-bottom: 1px solid var(--line); }
.hkp-weekday { font-family: var(--mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 400; }
.hkp-date.today, .hkp-cell.today { background: var(--surface-sunken); }
.hkp-cell { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); padding: var(--space-2) var(--space-1); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); min-height: 52px; }
.hkp-situation { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.02em; padding: 2px 8px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--ink); background: var(--surface); white-space: nowrap; }
.hkp-situation.turnover { background: var(--midnight); border-color: var(--midnight); color: var(--ink-inverse); }
.hkp-tasks { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.hkp-task { min-width: 26px; height: 22px; padding: 0 8px; border-radius: var(--pill); border: 0; font: inherit; font-size: 10px; font-weight: 600; display: inline-grid; place-items: center; cursor: pointer; white-space: nowrap; }
.hkp-range { min-width: 140px; font-size: var(--fs-sm); }

/* A checklist: sections of items, each with its check, how many against how many, the condition, a note. */
.checklist-section { display: flex; flex-direction: column; gap: var(--space-2); }
.checklist-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 120px 140px minmax(0, 1fr); gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.checklist-name { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.checklist-qty { display: flex; align-items: center; gap: var(--space-2); }
.checklist-qty .input.compact { width: 70px; }
.select.compact { width: 100%; }
/* A row's name that opens it: the name on one line, what it is about under it, each cut to fit. */
.mt-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-text.mt-name { text-decoration: none; }
.mt-name > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.mt-name:hover > strong { text-decoration: underline; text-underline-offset: 3px; }
.link-text { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
@media (max-width: 720px) { .checklist-row { grid-template-columns: 1fr 1fr; } }
.checklist-add .input { flex: 1 1 180px; }
.checklist-add .select { width: auto; }
.checklist-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
@media (max-width: 900px) { .checklist-items { grid-template-columns: 1fr; } }

/* Adempimenti › Comunicazioni: one column per obligation, side by side; each says how far it goes
   (three steps), what that means today, what needs a hand and what it keeps. */
.ob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
@media (max-width: 960px) { .ob-grid { grid-template-columns: 1fr; } }
.ob { display: flex; flex-direction: column; gap: var(--space-5); }
.ob-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gap); }
.ob-title { display: flex; flex-direction: column; gap: var(--space-0); min-width: 0; }
.ob-title h2 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-lg); letter-spacing: -0.015em; }
.ob-title h2 .channel-logo { width: 32px; height: 32px; flex: none; }
.ob-title .muted { font-size: var(--fs-sm); }
.ob-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); counter-reset: none; }
.ob-steps li { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-3); border-top: 3px solid var(--line); font-size: var(--fs-sm); color: var(--muted); font-weight: 500; min-width: 0; }
.ob-steps li.done { border-top-color: var(--midnight); color: var(--ink); }
.ob-steps li.current { border-top-color: var(--midnight); color: var(--ink); font-weight: 600; }
.ob-step-n { flex: none; width: 22px; height: 22px; border-radius: var(--pill); display: inline-grid; place-items: center; font-family: var(--mono); font-size: var(--fs-2xs); border: 1px solid var(--line-strong); color: var(--muted); }
.ob-steps li.done .ob-step-n { background: var(--midnight); border-color: var(--midnight); color: var(--ink-inverse); }
.ob-steps li.current .ob-step-n { border-color: var(--midnight); color: var(--ink); }
.ob-now { margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--ink-2); }
.ob-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: var(--space-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ob-figure { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.ob-figure strong { font-size: var(--fs-xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ob-figure span, .ob-block h3, .fs-label, .fs-section h3 { font-family: var(--mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 400; }
.ob-block { display: flex; flex-direction: column; gap: var(--space-2); }
.ob-closure-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr); gap: var(--gap); }
@media (max-width: 640px) { .ob-closure-form { grid-template-columns: 1fr 1fr; } .ob-closure-form > :last-child { grid-column: 1 / -1; } }
.ob-actions { justify-content: flex-end; padding-top: var(--space-4); border-top: 1px solid var(--line); }

/* Adempimenti › Fiscale: the three things an invoice needs, in words; the issuer's fields by subject. */
.fs-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 720px) { .fs-strip { grid-template-columns: 1fr; } }
.fs-item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); min-width: 0; }
.fs-value { font-size: var(--fs-lg); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.fs-section { display: flex; flex-direction: column; gap: var(--space-4); }
.form-grid.fs-seat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.fs-seat > .wide { grid-column: span 3; }
@media (max-width: 720px) { .form-grid.fs-seat { grid-template-columns: 1fr 1fr; } .form-grid.fs-seat > .wide { grid-column: 1 / -1; } }
.fs-empty { padding: var(--pad); }

/* Oggi: the day's cards packed in columns (today-flow.js); the last card of a column reaches its
   foot so the wall ends level. */
.flow-wall { display: flex; gap: var(--gap); align-items: stretch; }
.flow-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.flow-col > :last-child { flex-grow: 1; }
.flow-wall.packing { align-items: flex-start; }
.flow-wall.packing .flow-col > :last-child { flex-grow: 0; }
.stay-note { font-size: var(--fs-sm); font-style: italic; color: var(--ink-2); }
.stay-note::before { content: '“'; }
.stay-note::after { content: '”'; }
.more-row { justify-content: center; color: var(--muted); font-size: var(--fs-sm); }

