/* Qui a accès, the session marks, and Activité in the new look (SKI-1284;
   portalTeamActivity/accessWide, addPersonDialog, activityWide; the period's popover and calendar
   are not drawn, spec P17). They share their people pieces: an avatar of initials on rose's tint,
   a person on an oat chip, the session marks. Every value reads a variable of css/tokens.css;
   nothing moves. The controls (.btn, .iconbtn, .card, .input, .seg, .chip, .rolecard, .empty,
   the menu and the dialog) are css/controls.css's and are placed here, never restyled. */

/* ── Qui a accès: one paper card of people ──────────────────
   The column names a Small in muted, in sentence case; each person a row parted by the thin edge,
   no fill: the avatar of 40, the name a Name with « (vous) » a Small, the e-mail a Small, the
   role a Label (an admin in ink with its shield-check line icon, a member in ink 2), the last
   visit, the added date a Small, the round « … » (accessWide). */
.members {
  --mcols: 40px minmax(0, 1fr) 190px 280px 110px 40px;
  padding: 0;
  overflow: hidden;
}
.members.lite {
  --mcols: 40px minmax(0, 1fr) 190px 110px 40px;
}
.mhead,
.mrow {
  display: grid;
  grid-template-columns: var(--mcols);
  column-gap: 16px;
  align-items: center;
  padding: 16px 24px;
}
.mhead {
  padding-block: 14px;
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-small);
  letter-spacing: normal;
  text-transform: none;
}
.mhead .span2 {
  grid-column: 1 / span 2;
}
.mrow {
  border-top: 1px solid var(--color-edge);
}
.mrow .avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-rose-tint);
  color: var(--color-rose-deep);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
}
/* An invitation not opened yet: paper with a dashed ring, its letters in muted. */
.mrow .avatar.pending {
  border: 1.5px dashed var(--color-unavailable);
  background: var(--color-paper);
  color: var(--color-muted);
}
.who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.who > div {
  color: var(--color-ink);
  font-size: var(--text-name);
  line-height: var(--leading-name);
}
.who b {
  font-size: var(--text-name);
  font-weight: var(--font-weight-bold);
}
.who .you {
  color: var(--color-muted);
  font-size: var(--text-small);
}
.who .mail {
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-ink-2);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
}
.role.admin {
  color: var(--color-ink);
}
.role .ph {
  width: 16px;
  height: 16px;
}
/* The last visit: its time a Label in ink 2 (« En ce moment » in ink), the marks under it; an
   invitation's chip in the « waits » look and its date a Small; « Jamais venu » a Small. */
.seen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.seen > span:not([class]) {
  color: var(--color-ink-2);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
}
/* This session's line is the one whose marks end with « cet appareil ». */
.seen > span:not([class]):has(+ .marks > span:not(.mark)) {
  color: var(--color-ink);
}
.seen > .tiny,
.seen > .muted {
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
.mrow > .small {
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
/* SKI-319 — a visit's flag, browser, device kind and system, each named by a tooltip: line icons
   of 14 in muted, the flag at the Small's size. */
.marks {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  white-space: nowrap;
}
.marks:empty {
  display: none;
}
.mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: 1;
  cursor: default;
}
.mark .ph {
  width: 14px;
  height: 14px;
  vertical-align: 0;
}
/* Chrome draws a colour emoji with the text colour's alpha: the muted ink would fade the flag. */
.mark.flag {
  color: var(--color-ink);
}
/* The tooltip: a small ink label with white words in a Small, corners of 16 (the ticket's
   default; the system has no tooltip of its own). It shows and hides at once. */
.mark::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 5;
  padding: 5px 10px;
  border-radius: var(--radius-16);
  background: var(--color-ink);
  color: var(--color-paper);
  font: var(--font-weight-regular) var(--text-small) / var(--leading-small) var(--font-site);
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  visibility: hidden;
}
.mark:focus {
  outline: none;
}
/* SKI-323 — a tap focuses the mark (portal.js), so focus names it as hover does. */
.mark:hover::after,
.mark:focus::after {
  visibility: visible;
}
/* iOS Safari only delivers a delegated click from an element it deems clickable. */
@media (hover: none) {
  .mark {
    cursor: pointer;
  }
}
.mact {
  justify-self: end;
}
/* The notes under the card: a Small in muted after its line icon of 14. */
.access-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
  margin-top: 24px;
}
.notes {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
.notes > .ph {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.notes b {
  font-weight: var(--font-weight-bold);
}
.notes:empty {
  display: none;
}
/* Up to 1360 the columns narrow. Above 1100 and up to 1200 an admin's role goes under the e-mail;
   above 900 and up to 1100, on every card, the role and then the last visit do, so the name and
   the e-mail keep their room. The added date keeps its column; a column name whose column left
   leaves the head. The ranges start .02 above the one before, so a zoomed window (900.9 wide at
   110 %) falls in one of them. */
@media (max-width: 1360px) {
  .members {
    --mcols: 40px minmax(0, 1fr) 150px 220px 90px 40px;
  }
  .members.lite {
    --mcols: 40px minmax(0, 1fr) 150px 90px 40px;
  }
}
@media (min-width: 1100.02px) and (max-width: 1200px) {
  .members:not(.lite) {
    --mcols: 40px minmax(0, 1fr) 220px 90px 40px;
  }
  .members:not(.lite) .mhead > span:nth-child(2) {
    display: none;
  }
  .members:not(.lite) .mrow {
    grid-template-areas:
      "avatar who seen since act"
      "avatar role seen since act";
  }
  .members:not(.lite) .mrow .avatar {
    grid-area: avatar;
  }
  .members:not(.lite) .mrow .who {
    grid-area: who;
  }
  .members:not(.lite) .mrow .role {
    grid-area: role;
    margin-top: 4px;
  }
  .members:not(.lite) .mrow .seen {
    grid-area: seen;
  }
  .members:not(.lite) .mrow > .small {
    grid-area: since;
  }
  .members:not(.lite) .mrow .mact {
    grid-area: act;
  }
}
@media (min-width: 900.02px) and (max-width: 1100px) {
  .members,
  .members.lite {
    --mcols: 40px minmax(0, 1fr) 90px 40px;
  }
  .mhead > span:not(.span2):not(:nth-last-child(2)):not(:last-child) {
    display: none;
  }
  .mrow {
    grid-template-areas:
      "avatar who since act"
      "avatar role since act"
      "avatar seen since act";
  }
  .mrow .avatar {
    grid-area: avatar;
  }
  .mrow .who {
    grid-area: who;
  }
  .mrow .role {
    grid-area: role;
    margin-top: 4px;
  }
  .mrow .seen {
    grid-area: seen;
    margin-top: 8px;
  }
  .mrow > .small {
    grid-area: since;
  }
  .mrow .mact {
    grid-area: act;
  }
}

/* ── The add-person dialog's contents (addPersonDialog), cloned into ticket 03's dialog ──
   The two fields 16 apart, then the role 24 below them with its two cards one above the other,
   the hint a Small in muted, 24 above the dialog's foot. */
[data-page="access"] .modal-body > div.field {
  margin: 24px 0;
}
[data-page="access"] .modal-body .roles {
  grid-template-columns: 1fr;
}
[data-page="access"] .modal-body > .tiny {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

/* ── Activité (SKI-330): the toolbar (css/controls.css) ─────
   The types as chips at the left; at the right the period, a quiet pill 36 high with its calendar
   line icon, its Label and a caret, then « Personne » a Small in muted beside its quiet select.
   The row sits above the feed, so the period's popover opens over the cards (activityWide). */
.actbar {
  position: relative;
  z-index: 5;
}
.actbar .actfilters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.actfilter label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.actfilter label > .small {
  padding-left: 8px;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
/* The period: set, it wears rose's soft as a filter in use, and the round « Retirer la période »
   stands beside it. */
.actperiod {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.actperiod summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--spacing-control-small);
  padding: 0 14px;
  border: 1px solid var(--color-edge-pill);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--font-weight-medium) var(--text-label) / var(--leading-label) var(--font-site);
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.actperiod summary::-webkit-details-marker {
  display: none;
}
.actperiod summary .ph {
  width: 16px;
  height: 16px;
}
/* Phosphor's caret-down, as a mask: the shape alone, in the words' colour. */
.actperiod summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background-color: currentcolor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
@media (hover: hover) {
  .actperiod summary:hover {
    background: var(--color-rose-soft);
  }
}
.actperiod details[open] summary,
.actperiod.set summary {
  background: var(--color-rose-soft);
}
.actperiod summary:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}
/* The popover (spec P17, a menu's look at corners of 24): paper, the thin edge, the Float shadow;
   the ready-made periods as the menu's lines, the one in force on rose's soft, beside the month. */
.actperiod-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-24);
  background: var(--color-paper);
  box-shadow: var(--shadow-float);
}
.actpresets {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  margin: 0;
  padding: 0 12px 0 0;
  border-right: 1px solid var(--color-edge);
  list-style: none;
}
.actpresets a {
  display: flex;
  align-items: center;
  min-height: var(--spacing-control-small);
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
  text-decoration: none;
  white-space: nowrap;
}
.actpresets a:hover,
.actpresets a.on {
  background: var(--color-rose-soft);
  color: var(--color-ink);
}
.actpresets a:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: -2px;
}
/* The month, Monday first: the arrows round buttons (the next one inert on this month), the
   month a Name; each day a round button of 36 (44 under 600), a dot of rose's mid under a day
   with activity, today in an ink ring; the picked period a band of rose's soft with its two ends
   ink discs; days to come in muted, not links. */
.actcal {
  width: calc(7 * var(--spacing-control-small));
  padding: 0;
}
.actcal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
}
.actcal-head b {
  color: var(--color-ink);
  font-size: var(--text-name);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-name);
}
.actcal-head .iconbtn {
  text-decoration: none;
}
.actcal-head .iconbtn.off {
  border-color: var(--color-oat);
  background: var(--color-oat);
  color: var(--color-muted);
  cursor: default;
  pointer-events: none;
}
.actcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}
.actcal .dow {
  display: grid;
  place-items: center;
  height: 28px;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}
.actcal .d {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: var(--spacing-control-small);
  color: var(--color-ink);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
  font-variant-numeric: tabular-nums lining-nums;
  text-decoration: none;
}
.actcal .d::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: var(--spacing-control-small);
  height: var(--spacing-control-small);
  border-radius: var(--radius-pill);
  transform: translate(-50%, -50%);
}
.actcal a.d:hover::before {
  background: var(--color-rose-soft);
}
.actcal a.d:focus-visible {
  outline: none;
}
.actcal a.d:focus-visible::before {
  box-shadow: 0 0 0 2px var(--color-ink);
}
.actcal .d.today::before {
  box-shadow: inset 0 0 0 1.5px var(--color-ink);
}
.actcal .d.has::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: var(--radius-pill);
  background: var(--color-rose-mid);
}
.actcal .d.in {
  background: var(--color-rose-soft);
}
.actcal .d.in.start {
  background: linear-gradient(to right, transparent 50%, var(--color-rose-soft) 50%);
}
.actcal .d.in.end {
  background: linear-gradient(to left, transparent 50%, var(--color-rose-soft) 50%);
}
.actcal .d.in.start.end {
  background: none;
}
/* The band rounds off at the week's edges: Monday and Sunday are the grid's 7n+1th and 7nth
   children (the weekday letters fill the first row), and an end on that edge has no half left
   to show. */
.actcal .d.in:nth-child(7n + 1) {
  border-top-left-radius: var(--radius-pill);
  border-bottom-left-radius: var(--radius-pill);
}
.actcal .d.in:nth-child(7n) {
  border-top-right-radius: var(--radius-pill);
  border-bottom-right-radius: var(--radius-pill);
}
.actcal .d.in.end:nth-child(7n + 1),
.actcal .d.in.start:nth-child(7n) {
  background: none;
}
.actcal .d.start,
.actcal .d.end {
  color: var(--color-paper);
  font-weight: var(--font-weight-bold);
}
.actcal .d.start::before,
.actcal .d.end::before,
.actcal a.d.start:hover::before,
.actcal a.d.end:hover::before {
  background: var(--color-ink);
}
.actcal .d.start.has::after,
.actcal .d.end.has::after {
  background: var(--color-paper);
}
.actcal .d.future {
  color: var(--color-muted);
  font-weight: var(--font-weight-regular);
}
.actcal-hint {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  text-align: center;
}
.actcal-apply {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ── Activité: the feed ─────────────────────────────────────
   One paper card per Moroccan day, 24 apart, its day a Name. A line: the author's avatar of 40
   with the mark of what happened at its corner, the author in Bold and the phrase in a Body in
   ink 2, what it was about on an oat chip, the time a Small in muted (activityWide). */
#feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.actday {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.actdate {
  margin: 0;
  padding: 16px 24px;
  color: var(--color-ink);
  font-size: var(--text-name);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-name);
  letter-spacing: normal;
  text-transform: none;
}
.actlist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.act {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 10px;
  align-items: start;
  padding: 16px 24px;
  border-top: 1px solid var(--color-edge);
}
.act-who {
  position: relative;
  width: 40px;
  height: 40px;
}
.act .avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-rose-tint);
  color: var(--color-rose-deep);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
}
/* SkinSouk's face: Nejma in a circle of rose's tint (Portal, « Where the characters are »). */
.act .avatar.skinsouk {
  padding: 1px;
  border: 0;
  object-fit: contain;
}
/* A person on an oat chip: initials of 28 in a Badge; a removed person's ring dashed. */
.act .avatar.sm {
  width: 28px;
  height: 28px;
  font-size: var(--text-badge);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-badge);
}
.act[data-kind="seat.removed"] .act-obj .avatar {
  border: 1.5px dashed var(--color-unavailable);
  background: var(--color-paper);
  color: var(--color-muted);
}
/* What happened, on the avatar's corner: a disc of 20 in the look its kind's tone maps to (green
   done, butter waits, sky SkinSouk on it, oat, rose new; a problem paper with a red icon). */
.act-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-paper);
  border-radius: var(--radius-pill);
}
.act-badge .ph {
  width: 11px;
  height: 11px;
}
.act-badge.green {
  background: var(--color-green-tint);
  color: var(--color-green-deep);
}
.act-badge.amber {
  background: var(--color-butter-tint);
  color: var(--color-butter-deep);
}
.act-badge.info {
  background: var(--color-sky-tint);
  color: var(--color-sky-deep);
}
.act-badge.grey {
  background: var(--color-oat);
  color: var(--color-ink-2);
}
.act-badge.pink {
  background: var(--color-rose-tint);
  color: var(--color-rose-deep);
}
.act-badge.red {
  background: var(--color-paper);
  color: var(--color-red);
}
.act-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.act-line {
  margin: 0;
  color: var(--color-ink-2);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
}
.act-line b {
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
}
.act-time {
  padding-top: 4px;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
/* What it was about, on oat with corners of 16: the picture's tile of 36, the brand an Overline
   in rose's deep over the name in a Label, then its prices, its request's number or the role. */
.act-obj {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: var(--radius-16);
  background: var(--color-oat);
  color: var(--color-ink);
  text-decoration: none;
}
@media (hover: hover) {
  a.act-obj:hover {
    background: var(--color-rose-soft);
  }
}
a.act-obj:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}
/* A burst's objects, one under the other; past the third they fold behind « + N autres ». */
.act-objs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.act-rest summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  list-style: none;
  cursor: pointer;
}
.act-rest summary::-webkit-details-marker {
  display: none;
}
.act-rest summary:hover {
  background: var(--color-oat);
  color: var(--color-ink);
}
.act-rest[open] summary {
  display: none;
}
.act-thumb {
  width: var(--size-tile-small);
  height: var(--size-tile-small);
}
.act-thumb.noimg {
  font-size: var(--text-label);
}
.act-thumb.noimg .ph {
  width: 16px;
  height: 16px;
}
.act-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.act-name .brandline {
  margin: 0;
  color: var(--color-rose-deep);
  font-size: var(--text-overline);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-overline);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
}
/* A long name wraps to a second line where the column narrows, then ends in « … ». */
.act-name .nm {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-ink);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-label);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.act-name .sz {
  color: inherit;
  font-weight: inherit;
}
/* A price answer: the old price struck, a Small in muted, then the new one a Price in red. */
.act-price {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
}
.act-price .price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--color-red);
  font-size: var(--text-price);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-price);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.act-price s {
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-small);
  text-decoration: line-through 1px;
}
.act-note,
.act-ref {
  flex: none;
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-small);
  white-space: nowrap;
}
.act-obj .role,
.act-obj .role.admin {
  flex: none;
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-small);
}
.actmore {
  display: flex;
  justify-content: center;
}
.actmore [aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Under 1100 ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* The chip takes the line's width: the picture and the name side by side, the prices on their
     own row under the name, wrapping rather than leaving the screen. A burst's chips too. */
  .act-obj {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .act-objs {
    align-items: stretch;
  }
  .act-name {
    flex: 1 1 0;
  }
  .act-price {
    flex: 0 0 calc(100% - 46px);
    flex-wrap: wrap;
    row-gap: 4px;
    margin-left: 46px;
    padding-left: 0;
  }
  /* A person's role goes under their name (the avatar of 28 and its gap of 10). */
  .act-obj .role,
  .act-obj .role.admin {
    flex-basis: 100%;
    margin-left: 38px;
  }
}

/* ── Under 900 ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .actbar .actfilters {
    width: 100%;
    margin-left: 0;
  }
  .actperiod,
  .actfilter {
    flex: 1 1 100%;
  }
  .actperiod details {
    min-width: 0;
  }
  .actfilter label .input {
    flex: 1;
    min-width: 0;
  }
  /* The period opens under its button, across the column: the ready-made periods as chips that
     wrap, above the month. */
  .actperiod-pop {
    left: 0;
    flex-direction: column;
  }
  .actpresets {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--color-edge);
  }
  .actpresets a {
    border: 1px solid var(--color-edge-pill);
    padding: 0 14px;
  }
  .actcal {
    width: auto;
  }
  /* The phrase and the time share the first row; what it was about runs under both, so a burst's
     wider time span (« 10:02–10:14 ») does not narrow its chips. */
  .act {
    padding: 16px;
  }
  .act-body {
    display: contents;
  }
  .act-who {
    grid-row: 1 / span 2;
  }
  .act-line {
    grid-area: 1 / 2;
  }
  .act-time {
    grid-area: 1 / 3;
  }
  .act-body > .act-obj,
  .act-body > .act-objs {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: start;
  }
  .actdate {
    padding-inline: 16px;
  }

  /* Qui a accès: the role, then (admins) the last visit, under the name; the avatar and the « … »
     menu keep their places beside them (SKI-323). */
  .members,
  .members.lite {
    --mcols: 40px minmax(0, 1fr) 40px;
  }
  .mhead,
  .mrow {
    padding-inline: 16px;
  }
  .mhead > span:not(.span2),
  .mrow > .small {
    display: none;
  }
  .mrow {
    grid-template-areas:
      "avatar who act"
      "avatar role act"
      "avatar seen act";
  }
  .mrow .avatar {
    grid-area: avatar;
    align-self: start;
  }
  .mrow .who {
    grid-area: who;
  }
  .mrow .role {
    grid-area: role;
    margin-top: 6px;
  }
  .mrow .seen {
    grid-area: seen;
    flex-flow: row wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 6px;
  }
  .mrow .mact {
    grid-area: act;
    align-self: start;
  }
  /* Your own row has no menu: its last visit may use that column too. */
  .mrow:has(.mact:empty) .seen {
    grid-column: 2 / -1;
  }
}

/* To a finger, what is pressed is 44 high: the period's button, the ready-made periods, the fold. */
@media (pointer: coarse) {
  .actperiod summary {
    height: var(--spacing-control);
  }
  .actpresets a,
  .act-rest summary {
    min-height: var(--spacing-control);
  }
}

/* ── Under 600 ────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* A day is 44 to a finger. */
  .actcal .d,
  .actcal .d::before {
    height: var(--spacing-control);
  }
  .actcal .d::before {
    width: var(--spacing-control);
  }
}
