/* ── Programa — the guest's programme stop ──────────────────────────────
   The same room as app.css: graphite glass, Poppins, small caps that carry
   the structure. Gold is the one new colour and it means one thing — time:
   what is on now, the shift you are about to start, a time that moved.
   Room colours are muted hues lifted for a dark ground, and never the only
   thing that says what a row is: every dot sits next to a room's name.
   torns.css reuses the hue classes and the sheet below. */

:root{
  --gp-gold:#e3c079;
  --gp-gold-hi:#f0d79a;
  --gp-gold-soft:rgba(227,192,121,.12);
  --gp-on-gold:#1b1d26;
  --gp-solid:#1d1f28;                /* opaque glass, for sticky strips */
  --gp-pad:clamp(1.5rem,5.5vw,3rem); /* .panel's own padding, for full-bleed rows */
}

/* ── hues ──────────────────────────────────────────────────────────── */

.gp-hue-or{ --edge:#e3c079 }
.gp-hue-brasa{ --edge:#f0915e }
.gp-hue-vi{ --edge:#e57a94 }
.gp-hue-cel{ --edge:#7fb6e0 }
.gp-hue-teal{ --edge:#6cc4b8 }
.gp-hue-salvia{ --edge:#a9c97a }
.gp-hue-terra{ --edge:#c99a7a }
.gp-hue-grafit{ --edge:#a4a8b3 }
[class*="gp-hue-"]{ --fill:color-mix(in srgb, var(--edge) 16%, transparent) }
@supports not (color:color-mix(in srgb, red 10%, transparent)){
  [class*="gp-hue-"]{ --fill:var(--panel-2) }
}

.gp-dot{
  display:inline-block; flex:none; width:.62rem; height:.62rem; border-radius:50%;
  background:var(--edge, var(--faint));
}
.gp-ic{
  width:1rem; height:1rem; flex:none;
  fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}

/* ── the panel and its head ────────────────────────────────────────── */

.gp-panel{ padding-bottom:clamp(1.8rem,5.5vw,3rem) }
/* the room grid on a wide screen: the card grows to hold five rooms side
   by side, and goes back to the reading column for everything else */
@media (min-width:1000px){
  .wrap:has(> .gp-panel.is-wide){ max-width:min(78rem, calc(100vw - 2rem)) }
}
.gp-head{ display:flex; flex-wrap:wrap; align-items:baseline; gap:.6rem 1rem; margin-bottom:1.3rem }
.gp-title{ margin:0; font-size:clamp(1.75rem,5.4vw,2.5rem) }
.gp-badges{ display:flex; flex-direction:column; align-items:flex-start; gap:.6rem; flex-basis:100% }
.gp-badges:empty{ display:none }
.gp-badges .draft-badge{ margin:0 }
.gp-lede{ margin:0 }

.gp-sim,.gp-offline{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.66rem; letter-spacing:.16em; text-transform:uppercase;
  border-radius:999px; padding:.45rem .9rem; line-height:1.4;
}
.gp-sim{ color:var(--gp-gold-hi); border:1px dashed var(--gp-gold); text-decoration:none; min-height:2.75rem }
.gp-sim:hover{ background:var(--gp-gold-soft) }
.gp-offline{ color:var(--muted); border:1px solid var(--line-strong) }
.gp-offline::before{
  content:''; width:.45rem; height:.45rem; border-radius:50%; background:var(--warn);
}

.gp-kicker{
  display:flex; align-items:center; gap:.5rem; flex-wrap:wrap;
  font-size:.64rem; font-weight:500; letter-spacing:.2em; text-transform:uppercase;
  color:var(--faint);
}

/* ── the switch: Ara · Horari · El meu pla ─────────────────────────── */

.gp-nav{
  position:sticky; top:calc(var(--bar-h,3.4rem) + var(--stops-h,0px) + .5rem); z-index:3;
  display:flex; gap:.25rem; width:max-content; max-width:100%;
  margin:0 0 1.8rem; padding:.28rem;
  background:rgba(17,18,23,.88);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border:var(--bw) solid var(--line-strong); border-radius:999px;
  box-shadow:0 8px 26px rgba(0,0,0,.28);
}
.gp-tab{
  font:inherit; font-size:.66rem; font-weight:500;
  letter-spacing:.14em; text-transform:uppercase; white-space:nowrap;
  color:var(--muted); background:none; border:0; border-radius:999px;
  min-height:2.75rem; padding:0 1.15rem; cursor:pointer;
  transition:color .2s, background-color .2s;
  -webkit-tap-highlight-color:transparent;
}
.gp-tab:hover{ color:var(--ink) }
.gp-tab[aria-selected="true"]{ background:var(--ink); color:var(--bg) }
.gp-tab:focus-visible,
.gp-panel button:focus-visible,.gp-panel a:focus-visible,.gp-panel select:focus-visible,
.gp-sheet button:focus-visible,.gp-sheet a:focus-visible{
  outline:2px solid var(--gp-gold); outline-offset:2px;
}
@media (max-width:560px){
  .gp-nav{ width:100% }
  .gp-tab{ flex:1 1 0; min-width:0; padding:0 .4rem; font-size:.6rem; letter-spacing:.07em }
}

/* ── Ara ───────────────────────────────────────────────────────────── */

.gp-clock{
  margin:-.4rem 0 1.4rem;
  font-size:.74rem; font-weight:500; letter-spacing:.2em; text-transform:uppercase;
  color:var(--muted); font-variant-numeric:tabular-nums;
}
.gp-sec{ margin:0 0 2.4rem }
.gp-h{
  display:flex; align-items:center; gap:.55rem;
  margin:0 0 .9rem;
  font-size:.7rem; font-weight:500; letter-spacing:.22em; text-transform:uppercase;
  color:var(--faint);
}
.gp-quiet{ font-size:1.05rem; line-height:1.55; color:var(--muted) }
.gp-over{ font-size:1.3rem; font-weight:500; color:var(--ink) }

/* your shift (and the thing you run): the gold one, first */
.gp-turn{
  display:block; width:100%; position:relative; text-align:left;
  font:inherit; color:var(--ink); cursor:default;
  margin:0 0 1.4rem; padding:1.15rem 1.25rem 1.2rem;
  background:var(--gp-gold-soft);
  border:1.5px solid var(--gp-gold); border-radius:var(--r);
  box-shadow:0 0 0 4px rgba(227,192,121,.06);
}
button.gp-turn{ cursor:pointer }
.gp-turn-k{ color:var(--gp-gold-hi) }
.gp-turn-title{
  display:block; margin:.35rem 0 .2rem;
  font-size:clamp(1.3rem,4.6vw,1.6rem); font-weight:600; line-height:1.22; letter-spacing:-.01em;
}
.gp-turn-when{ display:block; font-size:1.02rem; color:var(--ink); font-variant-numeric:tabular-nums }
.gp-facts{ list-style:none; margin:.85rem 0 0; display:grid; gap:.35rem; font-size:.95rem; color:var(--muted) }
.gp-fact-call{ display:flex; align-items:center; flex-wrap:wrap; gap:.3rem .8rem }
.gp-turn-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:.7rem 1.4rem; margin-top:1.1rem }
.gp-turn-actions .primary{ padding:.85rem 1.8rem }
.gp-here{
  display:inline-flex; align-items:center; gap:.45rem;
  color:var(--good); font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; font-weight:500;
}
.gp-here .gp-ic{ width:1.15rem; height:1.15rem; stroke-width:2.4 }
.gp-link{
  display:inline-flex; align-items:center; gap:.15rem; min-height:2.75rem;
  font-size:.86rem; color:var(--muted);
  text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line-strong);
}
.gp-link:hover{ color:var(--ink) }

/* what is on now: one card per thing, the room's colour down the side */
.gp-nowcards{ display:grid; gap:.75rem }
.gp-nowcard{
  position:relative; overflow:hidden;
  display:grid; gap:.3rem; width:100%; text-align:left;
  font:inherit; color:var(--ink); cursor:pointer;
  padding:1rem 1.15rem 1.2rem 1.4rem;
  background:var(--fill, var(--panel-2));
  border:var(--bw) solid var(--line); border-radius:var(--r-s);
  transition:border-color .2s, transform .2s;
  -webkit-tap-highlight-color:transparent;
}
.gp-nowcard::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--edge);
}
.gp-nowcard:hover{ border-color:var(--line-strong) }
.gp-nowcard:active{ transform:scale(.99) }
.gp-nowcard-room{
  font-size:.66rem; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--edge);
}
.gp-nowcard-title{ font-size:1.3rem; font-weight:600; line-height:1.25; letter-spacing:-.01em }
.gp-nowcard-meta{
  display:flex; flex-wrap:wrap; gap:.2rem 1rem;
  font-size:.92rem; color:var(--muted); font-variant-numeric:tabular-nums;
}
.gp-who{ display:inline-flex; align-items:center; gap:.35rem; min-width:0 }
.gp-who .gp-ic{ width:.9rem; height:.9rem; opacity:.8 }
.gp-progress{ position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(255,255,255,.06) }
.gp-progress i{ display:block; height:100%; background:var(--gp-gold) }

.gp-free{ list-style:none; margin:.9rem 0 0 }
.gp-free-row{
  display:flex; align-items:center; gap:.65rem; width:100%; min-height:2.75rem;
  text-align:left; font:inherit; font-size:.92rem; color:var(--muted);
  background:none; border:0; border-top:1px solid var(--line); padding:.55rem 0; cursor:pointer;
}
.gp-free-row:hover{ color:var(--ink) }

/* up next: the time does the talking */
.gp-nextlist{ list-style:none; margin:0 }
.gp-nextrow{
  display:grid; grid-template-columns:3.7rem minmax(0,1fr); gap:.9rem; align-items:baseline;
  width:100%; min-height:2.75rem; text-align:left;
  font:inherit; color:var(--ink); background:none; cursor:pointer;
  border:0; border-top:1px solid var(--line); padding:.85rem 0;
}
.gp-nextlist li:first-child .gp-nextrow{ border-top:0; padding-top:.2rem }
.gp-nextrow-time{ font-size:1.2rem; font-weight:600; font-variant-numeric:tabular-nums }
.gp-nextrow-body{ min-width:0 }
.gp-nextrow-title{ display:block; font-size:1.08rem; font-weight:500; line-height:1.35 }
.gp-nextrow-meta{
  display:flex; flex-wrap:wrap; gap:.15rem .9rem; margin-top:.15rem;
  font-size:.84rem; color:var(--faint);
}
.gp-starred{ color:var(--gp-gold) }
.gp-in{ color:var(--gp-gold-hi); font-variant-numeric:tabular-nums }
.gp-roomtag{ display:inline-flex; align-items:center; gap:.4rem; min-width:0 }
.gp-following{
  font:inherit; font-size:1rem; color:var(--muted); text-align:left;
  background:none; border:0; padding:.4rem 0; min-height:2.75rem; cursor:pointer;
  text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--line-strong);
}
.gp-following:hover{ color:var(--ink) }

/* need help: the one card that is always there in the night */
.gp-help{
  padding:1.15rem 1.25rem .6rem;
  background:var(--panel-2);
  border:var(--bw) solid var(--line-strong); border-radius:var(--r);
}
.gp-help .gp-h{ color:var(--ink) }
.gp-help .gp-h .gp-ic{ width:1.1rem; height:1.1rem; color:var(--gp-gold) }
.gp-help-list{ list-style:none; margin:0 }
.gp-help-row{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.4rem 1rem;
  padding:.6rem 0; border-top:1px solid var(--line);
}
.gp-help-row:first-child{ border-top:0 }
.gp-help-who{ font-size:.98rem; color:var(--muted) }
.gp-help-who b{ font-weight:500; color:var(--ink) }
.gp-help-acts{ display:flex; flex-wrap:wrap; gap:.4rem }
.gp-call{
  display:inline-flex; align-items:center; justify-content:center; gap:.45rem;
  min-height:2.75rem; padding:0 1.05rem; border-radius:999px;
  font-size:.66rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink); text-decoration:none;
  border:var(--bw) solid var(--line-strong);
  transition:border-color .2s, background-color .2s;
}
.gp-call:hover{ border-color:var(--ink) }
.gp-call .gp-ic{ width:.95rem; height:.95rem }
.gp-call-sos{ border-color:var(--danger); color:#f4b1a6 }
.gp-call-sos:hover{ background:rgba(224,112,95,.12); border-color:var(--danger) }

/* ── Horari: chips, filters and the two views ──────────────────────── */

.gp-chips{ display:flex; flex-wrap:wrap; gap:.4rem; margin:0 0 .8rem }
.gp-chip{
  display:inline-flex; align-items:center; gap:.45rem; flex:none;
  min-height:2.75rem; padding:0 1.05rem; border-radius:999px;
  font:inherit; font-size:.68rem; font-weight:400; letter-spacing:.12em; text-transform:uppercase;
  white-space:nowrap; color:var(--muted); background:none; cursor:pointer;
  border:1px solid var(--line-strong);
  transition:color .18s, border-color .18s, background-color .18s;
  -webkit-tap-highlight-color:transparent;
}
.gp-chip:hover{ color:var(--ink); border-color:var(--muted) }
.gp-chip[aria-pressed="true"]{ background:var(--ink); border-color:var(--ink); color:var(--bg) }
.gp-chip-s{ font-size:.83rem; letter-spacing:0; text-transform:none }
.gp-chip .gp-ic{ width:.95rem; height:.95rem }

/* a row of chips that does not fit a phone scrolls sideways, edge to edge
   of the card, instead of wrapping into a wall of pills */
@media (max-width:640px){
  .gp-days,.gp-kinds,.gp-car-chips{
    flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain;
    margin-inline:calc(-1 * var(--gp-pad)); padding-inline:var(--gp-pad);
    scroll-padding-inline:var(--gp-pad);
    scrollbar-width:none;
  }
  .gp-days::-webkit-scrollbar,.gp-kinds::-webkit-scrollbar,.gp-car-chips::-webkit-scrollbar{ display:none }
}

.gp-tools{ display:grid; gap:.2rem; margin:0 0 1.2rem }
.gp-tools-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem }
.gp-select-wrap{ position:relative; display:inline-block; min-width:0; max-width:100% }
.gp-select-wrap::after{
  content:''; position:absolute; right:1rem; top:50%; width:.45rem; height:.45rem;
  border:solid var(--muted); border-width:0 1.5px 1.5px 0;
  transform:translateY(-70%) rotate(45deg); pointer-events:none;
}
.gp-select{
  -webkit-appearance:none; appearance:none; max-width:100%;
  font:inherit; font-size:16px; font-weight:300; color:var(--ink);
  background:var(--panel-2); border:var(--bw) solid var(--line-strong); border-radius:999px;
  min-height:2.75rem; padding:0 2.4rem 0 1.05rem; cursor:pointer;
}
.gp-select option{ background:var(--gp-solid); color:var(--ink) }
.gp-seg{
  display:inline-flex; padding:.2rem; gap:.15rem;
  border:1px solid var(--line-strong); border-radius:999px;
}
.gp-seg-b{
  font:inherit; font-size:.64rem; font-weight:500; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted); background:none; border:0; border-radius:999px;
  min-height:2.5rem; padding:0 .95rem; cursor:pointer; white-space:nowrap;
}
.gp-seg-b[aria-pressed="true"]{ background:var(--ink); color:var(--bg) }
@media (max-width:420px){
  .gp-tools-row{ display:grid; grid-template-columns:1fr }
  .gp-select-wrap,.gp-select{ width:100% }
  .gp-seg{ width:100% }
  .gp-seg-b{ flex:1 }
}

/* ── the list ──────────────────────────────────────────────────────── */

.gp-list{ list-style:none; margin:0; padding:0 }
.gp-sep{
  padding:1.1rem 0 .4rem;
  font-size:.66rem; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--faint);
}
.gp-list > .gp-sep:first-child{ padding-top:0 }
.gp-night{
  display:flex; align-items:center; gap:.8rem; margin:1.4rem 0 .2rem;
  font-size:.7rem; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--ink);
}
.gp-night::before,.gp-night::after{ content:''; flex:1; height:2px; background:var(--line-strong) }

.gp-row{
  position:relative;
  display:grid; grid-template-columns:minmax(0,1fr) 2.75rem; align-items:start;
  border-top:1px dashed rgba(255,255,255,.07);
  transition:opacity .2s;
}
/* one start hour is one group: a firm line and some air where the next begins */
.gp-row.gp-newhour,.gp-sep + .gp-row,.gp-night + .gp-row{ border-top:1px solid var(--line-strong) }
.gp-row.gp-newhour{ margin-top:.55rem }
.gp-list > .gp-row:first-child{ border-top:0; margin-top:0 }
.gp-row-main{
  display:grid; grid-template-columns:3.4rem minmax(0,1fr) auto; gap:.85rem; align-items:start;
  width:100%; min-height:2.75rem; padding:.8rem 0 .8rem .1rem;
  font:inherit; color:var(--ink); text-align:left; background:none; border:0; cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.gp-time{ font-variant-numeric:tabular-nums; line-height:1.3 }
.gp-time b{ display:block; font-size:1rem; font-weight:600 }
.gp-time small{ display:block; font-size:.78rem; color:var(--faint) }
.gp-time .gp-allday{ font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; line-height:1.25 }
.gp-row-body{ min-width:0 }
.gp-row-title{
  display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .5rem;
  font-size:1.05rem; font-weight:500; line-height:1.35;
}
.gp-row-name{ min-width:0; overflow-wrap:anywhere }
.gp-row-meta{
  display:flex; flex-wrap:wrap; gap:.15rem .9rem; margin-top:.2rem;
  font-size:.83rem; color:var(--faint);
}
.gp-kind{ color:var(--faint); padding-top:.2rem }
.gp-kind .gp-ic{ width:1.05rem; height:1.05rem }
.gp-kind-teaser{ color:var(--gp-gold); font-size:.95rem; line-height:1 }

.gp-star{
  display:grid; place-items:center; width:2.75rem; height:2.75rem; margin-top:.25rem;
  color:var(--faint); background:none; border:0; border-radius:50%; cursor:pointer;
  transition:color .2s, transform .2s;
  -webkit-tap-highlight-color:transparent;
}
.gp-star:hover{ color:var(--ink) }
.gp-star .gp-ic{ width:1.3rem; height:1.3rem }
.gp-star.on{ color:var(--gp-gold) }
.gp-star.on .gp-ic{ fill:currentColor }
.gp-star:active{ transform:scale(.88) }
.gp-star-ph{ cursor:default; color:var(--gp-gold) }

/* states — each says itself in words too, never in colour alone */
.gp-row.is-past{ opacity:.45 }
.gp-row.is-now::before{
  content:''; position:absolute; left:calc(-.75rem - 1px); top:.6rem; bottom:.6rem;
  width:3px; border-radius:3px; background:var(--gp-gold);
}
.gp-row.is-cancelled .gp-row-name{
  color:var(--faint); text-decoration:line-through; text-decoration-color:var(--danger);
}
.gp-pill{
  display:inline-flex; align-items:center; gap:.3rem;
  font-size:.58rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase;
  line-height:1.4; white-space:nowrap;
  padding:.12rem .5rem; border-radius:999px; border:1px solid currentColor;
}
.gp-pill .gp-ic{ width:.75rem; height:.75rem }
.gp-pill-now{ background:var(--gp-gold); border-color:var(--gp-gold); color:var(--gp-on-gold) }
.gp-pill-moved{ color:var(--gp-gold-hi) }
.gp-pill-off{ color:var(--danger) }
.gp-pill-shift{ color:var(--gp-gold-hi) }
.gp-pill-lead{ color:var(--good) }

.gp-row.is-open{ background:rgba(255,255,255,.025) }
.gp-row-more{
  grid-column:1/-1; display:grid; gap:.7rem;
  padding:0 1rem 1.1rem 4.35rem;
  animation:gpUnfold .22s cubic-bezier(.2,.85,.25,1) both;
}
@media (max-width:520px){ .gp-row-more{ padding-left:.1rem } }
@keyframes gpUnfold{ from{ opacity:0; transform:translateY(-4px) } }
.gp-desc{ white-space:pre-line; font-size:.94rem; line-height:1.6; color:var(--muted) }
.gp-where{ display:flex; align-items:flex-start; gap:.45rem; font-size:.88rem; color:var(--muted) }
.gp-where .gp-ic{ margin-top:.25rem }
.gp-row-acts{ display:flex; flex-wrap:wrap; gap:.45rem }
.gp-mini{
  display:inline-flex; align-items:center; gap:.45rem; min-height:2.75rem;
  padding:0 1rem; border-radius:999px;
  font:inherit; font-size:.82rem; color:var(--muted); background:none; cursor:pointer;
  border:1px solid var(--line-strong);
}
.gp-mini:hover{ color:var(--ink); border-color:var(--muted) }
.gp-mini .gp-ic{ width:.85rem; height:.85rem }

/* ── by room, wide: a read-only room × time grid ───────────────────── */

.gp-rg-untimed{ display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:0 0 .8rem }
.gp-rg-chip{
  font:inherit; font-size:.82rem; color:var(--ink); cursor:pointer;
  min-height:2.5rem; padding:0 .9rem; border-radius:999px;
  background:var(--fill); border:1px solid var(--edge);
}
.gp-rg{
  position:relative; overflow:auto; overscroll-behavior:contain;
  max-height:min(72vh,46rem);
  background:rgba(12,13,18,.35);
  border:var(--bw) solid var(--line); border-radius:var(--r-s);
}
.gp-rg:focus-visible{ outline:2px solid var(--gp-gold); outline-offset:2px }
.gp-rg-in{
  display:grid; min-width:min-content;
  grid-template-columns:3.6rem repeat(var(--gp-cols,1), minmax(9.5rem,1fr));
  grid-template-rows:auto var(--gp-h,600px);
}
.gp-rg-corner,.gp-rg-head{
  position:sticky; top:0; z-index:3; background:var(--gp-solid);
  border-bottom:var(--bw) solid var(--line);
}
.gp-rg-corner{ left:0; z-index:4 }
.gp-rg-head{
  display:flex; align-items:center; gap:.45rem; min-width:0;
  padding:.65rem .75rem;
  font-size:.66rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--ink);
  border-left:1px solid var(--line);
}
.gp-rg-head span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.gp-rg-ruler{
  position:sticky; left:0; z-index:2; background:var(--gp-solid);
  border-right:1px solid var(--line);
}
.gp-rg-hour{
  position:absolute; right:.45rem; transform:translateY(-50%);
  font-size:.62rem; color:var(--faint); font-variant-numeric:tabular-nums; text-align:right;
  line-height:1.15;
}
.gp-rg-hour:first-child{ transform:none }
.gp-rg-hour.midnight{ display:grid; color:var(--ink) }
.gp-rg-hour.midnight b{ font-weight:600 }
.gp-rg-hour.midnight small{ font-size:.58rem; letter-spacing:.04em; color:var(--muted) }
.gp-rg-nowpill{
  position:absolute; right:.25rem; transform:translateY(-50%); z-index:2;
  padding:.05rem .4rem; border-radius:999px;
  font-size:.62rem; font-weight:600; font-variant-numeric:tabular-nums;
  background:var(--gp-gold); color:var(--gp-on-gold);
}
.gp-rg-col{
  position:relative; border-left:1px solid var(--line);
  background:repeating-linear-gradient(to bottom,
    var(--line) 0, var(--line) 1px, transparent 1px, transparent var(--gp-hour,54px));
}
.gp-rg-mid{ position:absolute; left:0; right:0; height:2px; background:#5b606e; z-index:1 }
.gp-rg-now{
  position:absolute; left:0; right:0; height:2px; z-index:0; pointer-events:none;
  background:var(--gp-gold); box-shadow:0 0 10px rgba(227,192,121,.55);
}
.gp-rg-item{
  position:absolute; z-index:1; overflow:hidden;
  display:flex; flex-direction:column; gap:.05rem;
  padding:.3rem .45rem .3rem .5rem; text-align:left;
  font:inherit; color:var(--ink); cursor:pointer;
  background:var(--fill, var(--panel-2));
  border:1px solid color-mix(in srgb, var(--edge) 45%, transparent);
  border-left:3px solid var(--edge); border-radius:6px;
  transition:border-color .2s, transform .15s;
}
.gp-rg-item:hover{ border-color:var(--edge); z-index:3 }
.gp-rg-item b{
  font-size:.8rem; font-weight:500; line-height:1.25; overflow:hidden;
  display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical;
}
.gp-rg-item.short b{ -webkit-line-clamp:1; line-clamp:1 }
.gp-rg-item span{ font-size:.66rem; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums }
.gp-rg-item.tiny{ justify-content:center; padding-block:0 }
.gp-rg-item.tiny b{ -webkit-line-clamp:1; line-clamp:1 }
.gp-rg-item.tiny span{ display:none }
.gp-rg-item.narrow{ padding-inline:.35rem }
.gp-rg-item.is-past{ opacity:.45 }
.gp-rg-item.is-now{ box-shadow:0 0 0 2px var(--gp-gold) }
.gp-rg-item.is-cancelled b{ text-decoration:line-through; text-decoration-color:var(--danger); color:var(--faint) }

/* ── by room, phone: one room per card, swiped ─────────────────────── */

.gp-car{
  position:relative;
  display:flex; gap:.75rem; overflow-x:auto;
  scroll-snap-type:x mandatory; overscroll-behavior-x:contain;
  margin-inline:calc(-1 * var(--gp-pad)); padding:0 var(--gp-pad) .4rem;
  scroll-padding-inline:var(--gp-pad);
  scrollbar-width:none;
}
.gp-car::-webkit-scrollbar{ display:none }
.gp-car-card{
  flex:0 0 88%; scroll-snap-align:start; min-width:0;
  padding:1rem 1rem .5rem;
  background:var(--panel-2);
  border:var(--bw) solid var(--line); border-top:4px solid var(--edge); border-radius:var(--r-s);
}
.gp-car-head{ display:grid; gap:.1rem; margin-bottom:.4rem }
.gp-car-head b{ font-size:1.05rem; font-weight:600 }
.gp-car-head span{ font-size:.8rem; color:var(--faint) }
.gp-car-list{ list-style:none; margin:0 }
.gp-car-row{
  display:grid; grid-template-columns:3.2rem minmax(0,1fr); gap:.7rem; align-items:start;
  width:100%; min-height:2.75rem; padding:.65rem 0; text-align:left;
  font:inherit; color:var(--ink); background:none; cursor:pointer;
  border:0; border-top:1px solid var(--line);
}
.gp-car-list li:first-child .gp-car-row{ border-top:0 }
.gp-car-title{ display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .5rem; font-size:.98rem; font-weight:500; line-height:1.35 }
.gp-car-row.is-past{ opacity:.45 }
.gp-car-row.is-now .gp-time b{ color:var(--gp-gold-hi) }
.gp-car-row.is-cancelled .gp-car-title{ color:var(--faint); text-decoration:line-through; text-decoration-color:var(--danger) }

/* ── El meu pla ────────────────────────────────────────────────────── */

.gp-leadline{
  display:flex; align-items:flex-start; gap:.6rem;
  margin:0 0 1.4rem; padding:.85rem 1rem;
  font-size:.92rem; line-height:1.55; color:var(--ink);
  background:color-mix(in srgb, var(--good) 8%, transparent);
  border:1px solid color-mix(in srgb, var(--good) 35%, var(--line)); border-radius:var(--r-s);
}
.gp-leadline .gp-ic{ margin-top:.25rem; color:var(--good) }
.gp-plan-row.is-shift .gp-time b{ color:var(--gp-gold-hi) }
.gp-overlap{
  display:inline-flex; margin-top:.35rem;
  font-size:.8rem; color:var(--warn);
}
.gp-overlap::before{ content:'▲'; font-size:.6rem; margin:.25rem .4rem 0 0 }
.gp-plan-empty{ display:flex; align-items:flex-start; gap:.8rem }
.gp-big-ic{ width:1.6rem; height:1.6rem; color:var(--gp-gold); margin-top:.1rem }
.gp-plan-foot{ margin-top:1.6rem }
.gp-ics{ display:inline-flex; align-items:center; gap:.6rem; min-height:2.75rem }
.gp-ics .gp-ic{ width:1rem; height:1rem }

/* ── loading ───────────────────────────────────────────────────────── */

.gp-skel{ display:grid; gap:.8rem }
.gp-skel-row{
  height:3.6rem; border-radius:var(--r-s);
  background:linear-gradient(90deg, var(--panel-2), rgba(255,255,255,.06), var(--panel-2));
  background-size:200% 100%;
  animation:gpShimmer 1.4s ease-in-out infinite;
}
@keyframes gpShimmer{ from{ background-position:100% 0 } to{ background-position:-100% 0 } }

/* ── sheets: a bottom sheet on a phone, a card on anything wider ───── */

html.gp-locked{ overflow:hidden }
.gp-sheet{
  position:fixed; inset:auto 0 0 0; margin:0;
  width:100%; max-width:100%; max-height:88dvh;
  padding:0; overflow:auto; overscroll-behavior:contain;
  color:var(--ink); font-family:var(--sans); font-weight:300; font-size:15.5px; line-height:1.6;
  background:var(--gp-solid);
  border:var(--bw) solid var(--line-strong); border-bottom:0;
  border-radius:18px 18px 0 0;
  box-shadow:0 -18px 50px rgba(0,0,0,.45);
  animation:gpSheetUp .32s cubic-bezier(.2,.85,.25,1) both;
}
.gp-sheet::backdrop{ background:rgba(6,7,10,.62); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px) }
@keyframes gpSheetUp{ from{ transform:translateY(40px); opacity:0 } }
@media (min-width:700px){
  .gp-sheet{
    inset:0; margin:auto; width:min(34rem, calc(100vw - 3rem)); height:max-content;
    max-height:min(84dvh,48rem);
    border-bottom:var(--bw) solid var(--line-strong); border-radius:var(--r);
    box-shadow:0 30px 80px rgba(0,0,0,.5);
    animation-name:gpSheetIn;
  }
  @keyframes gpSheetIn{ from{ transform:translateY(14px) scale(.985); opacity:0 } }
}
.gp-sheet-head{
  position:sticky; top:0; z-index:1;
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.6rem; align-items:start;
  padding:1.1rem 1rem .9rem 1.4rem;
  background:var(--gp-solid); border-bottom:1px solid var(--line);
}
.gp-grab{
  grid-column:1/-1; justify-self:center; width:2.6rem; height:4px; border-radius:4px;
  background:var(--line-strong); margin:-.35rem 0 .2rem;
}
@media (min-width:700px){ .gp-grab{ display:none } }
.gp-sheet-titles{ min-width:0; padding-top:.35rem }
.gp-sheet-title{ margin:.25rem 0 0; font-size:1.4rem; font-weight:600; line-height:1.25; letter-spacing:-.01em }
.gp-sheet-x{
  display:grid; place-items:center; width:2.75rem; height:2.75rem;
  color:var(--muted); background:none; border:1px solid var(--line); border-radius:50%; cursor:pointer;
}
.gp-sheet-x:hover{ color:var(--ink); border-color:var(--line-strong) }
.gp-sheet-body{
  display:grid; gap:1rem;
  padding:1.1rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
}
.gp-sheet-text{ font-size:1rem; color:var(--muted); line-height:1.6 }
.gp-sheet-actions{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.2rem }
.gp-sheet-actions .ghost,.gp-sheet-actions .primary{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem; min-height:2.9rem;
}
.gp-sheet-actions .gp-ic{ width:1rem; height:1rem }
.gp-sheet-status{ font-size:.85rem; color:var(--good); min-height:1.2em; overflow-wrap:anywhere }
@media (max-width:520px){
  .gp-sheet-actions{ display:grid; grid-template-columns:1fr }
}

.gp-act .gp-sheet-head{ box-shadow:inset 4px 0 0 var(--edge) }
.gp-act-k .gp-ic{ width:.95rem; height:.95rem; color:var(--edge) }
.gp-act-when{ display:flex; align-items:center; gap:.55rem; font-size:1.02rem; color:var(--ink); font-variant-numeric:tabular-nums }
.gp-act-when .gp-ic{ color:var(--gp-gold) }
.gp-act-room{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.75rem; align-items:center;
  width:100%; min-height:3.2rem; padding:.7rem .9rem; text-align:left;
  font:inherit; color:var(--ink); cursor:pointer;
  background:var(--fill, var(--panel-2));
  border:1px solid var(--line); border-radius:var(--r-s);
}
.gp-act-room:hover{ border-color:var(--edge) }
.gp-act-room-t b{ display:block; font-weight:500 }
.gp-act-room-t small{ display:block; font-size:.82rem; color:var(--muted) }
.gp-act-room > .gp-ic{ color:var(--faint) }
.gp-act-who{ font-size:.94rem; color:var(--muted) }
.gp-act-who b{ font-weight:500; color:var(--ink) }
.gp-act-star.on{ color:var(--gp-gold); border-color:var(--gp-gold) }
.gp-act-star.on .gp-ic{ fill:currentColor }
.gp-room-list{ margin-top:.2rem }
.gp-confirm .gp-sheet-head{ border-bottom:0; padding-bottom:0 }

/* ── toast: one polite line, above the language pill ───────────────── */

.gp-toast-host{
  position:fixed; left:0; right:0; z-index:80;
  bottom:calc(5.2rem + env(safe-area-inset-bottom));
  display:flex; justify-content:center; padding:0 1rem; pointer-events:none;
}
@media (min-width:720px){ .gp-toast-host{ bottom:2rem } }
.gp-toast{
  pointer-events:auto;
  display:flex; align-items:center; gap:1rem; max-width:32rem;
  padding:.65rem .7rem .65rem 1.25rem; border-radius:999px;
  font-size:.9rem; font-weight:400; line-height:1.4;
  color:var(--bg); background:var(--ink);
  box-shadow:0 12px 34px rgba(0,0,0,.45);
  animation:gpToast .28s cubic-bezier(.2,.85,.25,1) both;
}
.gp-toast.good{ background:#d9f2e2 }
.gp-toast.bad{ background:#f6d2cb }
.gp-toast span{ padding:.25rem 0 }
.gp-toast-undo{
  flex:none; min-height:2.5rem; padding:0 1rem; border-radius:999px; cursor:pointer;
  font:inherit; font-size:.66rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:var(--bg); background:none; border:1.5px solid currentColor;
}
@keyframes gpToast{ from{ opacity:0; transform:translateY(10px) } }

@media (prefers-reduced-motion:reduce){
  .gp-sheet,.gp-toast,.gp-row-more,.gp-skel-row{ animation:none }
  .gp-nowcard:active,.gp-star:active{ transform:none }
}
.gp-roomtag > .gp-ic{ width:.85rem; height:.85rem }

/* on a phone a call sits on its person's line, as an icon with a name for
   screen readers — "Truca" under every name doubled the card's height */
.gp-fact-call{ justify-content:space-between }
@media (max-width:460px){
  .gp-fact-call .gp-call,.gt-roll-call{ width:2.75rem; padding:0; flex:none }
  .gp-fact-call .gp-call span,.gt-roll-call span{
    position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
  }
}
