/* «משבצת לכל דבר» (9.11.2026). Achiya, on an appointment's sheet: «תתקן כל המקומות שיש את העיצוב כזה שזה בלי גבולות ולא
   ברור ומסודר … ושלכל דבר וכפתור יהיה אישיות משלו אבל גם נקי ואחיד», and «לא מקום ארוך בלי סוף כמו מגילה».
   Loaded just before actions.css (which stays last), so its rules carry an id or html:root body. Three rules wherever it reaches:
     a thing is a tile      the customer card's frame (8.11.2026, .cc-fact): paper, a clear line, round corners; what went by
                            a thinner line; removing it, an × in its corner
     a key is one shape     actions.css's pill, with its own paper object at its start (road/*.webp: ink.js draws it in once,
                            night.css swaps in its night twin)
     a side list is short   its first three, then «עוד N» (app.js capList)
   10.11.2026, between the objects alone and the objects with a colour to each key, Achiya chose «חפצים»: no colour layer. */

/* ── a key with its own object ── */
/* :is(body, #room-calendar) weighs as an id everywhere, so the room's older sizes for «לשנות» and «ביטול» don't make
   two of the row's keys a different size */
html:root :is(body, #room-calendar) .obj-key.text-btn { min-height: 44px; gap: 7px; padding-block: 6px; padding-inline: 10px 16px; font-size: 16px; }
html:root :is(.obj-key, .appt-card__acts) .obj-pic { flex: none; width: 28px; height: 22px; margin-block: -3px; object-fit: contain; pointer-events: none; }
html:root .title-pic { flex: none; width: 36px; height: 29px; object-fit: contain; }
@media (prefers-color-scheme: light) { html:root :is(.obj-pic, .title-pic) { mix-blend-mode: multiply; } }

/* ── an appointment: a tile of its own, in the day's card, the past week's, the month's day and the sheet ── */
html:root #room-calendar :is(.appt-day__list, .appts-past__list) { display: grid; gap: 10px; }
html:root #room-calendar .appt-day__list { padding: 10px; }
html:root #room-calendar .appts-past__list { padding: 4px 12px 0; }
html:root #room-calendar #appt-card .appt-card__row { padding: 0; }
html:root #room-calendar :is(.appt-day__list, .appts-past__list) > :is(.appt, .appt-sample) {
  position: relative;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: start;
  gap: 6px 12px;
  min-height: 0;
  padding: 14px 16px;
  background: var(--sheet);
  border: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
html:root #room-calendar :is(.appt-day__list, .appts-past__list) > .appt.is-past { box-shadow: inset 0 0 0 1px var(--line-strong); }
/* a call set with a customer and not marked yet (SPEC §105): the yellow's wash ringed in ink, as on the board */
html:root #room-calendar :is(.appt-day__list, .appts-past__list) > .appt--call[data-st="call_planned"] { background: color-mix(in srgb, var(--yellow) 26%, var(--sheet)); box-shadow: inset 0 0 0 1.5px var(--ink); }
html:root #room-calendar :is(.appt-day__list, .appts-past__list) > .appt > .appt__time { padding-block-start: 5px; }
html:root #room-calendar .appt-sample > .pill { grid-column: 2; justify-self: start; }
html:root #room-calendar :is(.appt-day__list, .appts-past__list) .appt__entry { display: grid; gap: 1px; }
html:root #room-calendar .appt__svc { color: var(--ink-2); font: 15.5px/1.35 var(--f-ui); }
/* the facts: a word to each, under the name */
html:root #room-calendar .appt__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 4px; margin-inline-start: 42px; }
html:root #room-calendar .appt__who:not(:has(> .person)) > .appt__facts { margin-inline-start: 0; }
html:root #room-calendar .appt__who .appt__facts > * { margin: 0; }   /* not the room's 42px for .appt__first/.appt__dep */
html:root #room-calendar .appt__facts > :not(.pill) {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  color: var(--ink-2);
  background: var(--ivory);
  border-radius: 12px;
  font: 14.5px/1.3 var(--f-ui);
  font-variant-numeric: tabular-nums lining-nums;
}
/* one row of keys at the tile's foot, «ביטול» last */
html:root #room-calendar .appt > .appt__keys { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-block-start: 6px; }
/* «ביטול» quiet, as actions.css says of it: an outline that never competes, the last of the row */
html:root #room-calendar .appt__cancel.text-btn { color: var(--ink-2); background: none; box-shadow: inset 0 0 0 1px var(--act-quiet-edge); }
@media (hover: hover) { html:root #room-calendar .appt__cancel.text-btn:hover { background: var(--act-quiet-hover); transform: none; } }
/* gone or cancelled: the × in the corner takes it off the list */
html:root #room-calendar .appt > .appt__x { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; }
html:root #room-calendar .appt:has(> .appt__x) > .appt__who { padding-inline-end: 30px; }
@media (max-width: 479.98px) {
  html:root #room-calendar :is(.appt-day__list, .appts-past__list) > :is(.appt, .appt-sample) { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 6px 10px; padding: 12px 14px; }
  html:root #room-calendar .appt-day__list { padding: 8px; }
  html:root #room-calendar .appt__facts { margin-inline-start: 0; }
  html:root #room-calendar .appt__who > :is(.appt__note, .appt__note-key) { margin-inline-start: 0; }   /* the whole width for a note */
}

/* ── the sheet an appointment opens: the tile, then what it opens beyond it as the customer card's rows ── */
html:root #appt-card .appt-card__acts { margin: 0; }
html:root #appt-card .appt-card__acts:not(:has(> :not([hidden]))) { display: none; }
html:root #appt-card .appt-card__acts > .text-btn { justify-self: stretch; gap: 12px; }
html:root #appt-card .appt-card__acts .obj-pic { width: 34px; height: 27px; margin-block: -4px; }
html:root #appt-card .appt-card__deposit::after { display: none; }   /* it marks; it doesn't lead anywhere */

/* ── the boxes beside the days: each with its object at its name; the waiting list a box as the others ── */
html:root #room-calendar .group__title:has(> .title-pic) { display: flex; align-items: center; gap: 10px; }
html:root #room-calendar .appts-svc__head .group__title { padding: 0; }
html:root #room-calendar .appts-wl { gap: 10px; padding: 18px 0 14px; }   /* its frame is .card's, as its neighbours' (glass.css softens all of them) */
html:root #room-calendar .appts-wl #appts-wl { padding: 0 14px; }
html:root #room-calendar .appts-wl .wl-ticket__paper { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
html:root #room-calendar .appts-wl__keys { padding: 0 14px; }
/* the services: a tile each, its facts as words */
html:root #room-calendar .appts-svc__row { background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
html:root #room-calendar .appts-svc__meta > span { background: var(--ivory); }
/* «עוד N»: the rest of a long list waits behind it */
html:root #room-calendar ul.is-capped > li:nth-child(n + 4) { display: none; }
html:root #room-calendar .cap-more.text-btn { justify-self: start; margin: 4px 14px 0; }

/* ── what waits for an answer: tiles side by side on a wide screen, not bars across it ── */
@media (min-width: 720px) {
  html:root #room-calendar :is(#appts-wait, #tor-wait) { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
}
html:root #room-calendar .tor-req__keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ── the account's rows: a tile each, its object on top, the word and what is set under it; three to a row, two on a
   phone, so nine of them are three rows and not a scroll ── */
html:root #room-account .stops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: none; }
@media (min-width: 640px) { html:root #room-account .stops { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html:root #room-account .stops > .stop {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: start;
  row-gap: 4px;
  padding: 14px 16px;
  background: var(--sheet);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
html:root #room-account .stops .stop__pic { width: auto; height: auto; place-items: start; background: none; }
html:root #room-account .stops .stop__pic img { width: 64px; height: 51px; }
html:root #room-account .stops .stop__label { font: 17px/1.3 var(--f-ui); }
html:root #room-account .stops .stop__val { max-width: 100%; justify-content: flex-start; justify-self: start; text-align: start; }
