/* ============================================================================
   BFL Hub — UI V2 · the calendar (see web/v2/calendar.js)

   The site's own glass and night: a month of cards, each fixture a chip with
   its competition's dot, the day being looked at lit, and a clash marked in
   amber. Colour belongs to the competitions (the dots), never to the text.
   ========================================================================= */
.cal { display: flex; flex-direction: column; gap: 16px; }
.cal .cal-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cc, #8c96a5); box-shadow: 0 0 8px var(--cc, transparent); }
.cal .cal-dot.is-played { opacity: .45; box-shadow: none; }
.cal-strip .cal-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cc, #8c96a5); }
.cal-strip .cal-dot.is-none { background: rgba(255, 255, 255, .14); }

/* ------------------------------------------------------------ the bar */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-range { margin: 0 6px; min-width: 9ch; font: 800 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.1 var(--v2-display); color: #fff; text-align: center; }
.cal-navb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--v2-edge);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--v2-t-fast) var(--v2-ease);
}
.cal-navb:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.cal-navb:disabled { opacity: .3; cursor: default; }
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.cal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cal-comps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
.cal-comps::-webkit-scrollbar { display: none; }
.cal-fchip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--v2-edge);
  color: var(--v2-text-2);
  font: 700 .8125rem/1 var(--v2-font);
  cursor: pointer;
  transition: background-color var(--v2-t-fast) var(--v2-ease), color var(--v2-t-fast) var(--v2-ease);
}
.cal-fchip:hover { color: #fff; }
.cal-fchip.is-on { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: #fff; }
.cal-fchip .cal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cc, #8c96a5); }
html.v2 .cal-club select.v2-input { min-height: 36px; padding: 0 34px 0 14px; border-radius: 999px; font-size: .8125rem; }

.cal-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 16px; border-radius: var(--v2-r); background: var(--v2-card); box-shadow: var(--v2-card-edge); }
.cal-sum span { display: inline-flex; align-items: baseline; gap: 7px; color: var(--v2-text-2); font-size: .8125rem; font-weight: 600; }
.cal-sum b { font: 800 1.125rem/1 var(--v2-display); color: #fff; font-variant-numeric: tabular-nums; }
.cal-sum .is-warn b, .cal-sum .is-warn { color: var(--v2-warn); }

/* ------------------------------------------------------------ the layout */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 20px; }
  .cal-layout.is-wide { grid-template-columns: minmax(0, 1fr); }
  .cal-side { position: sticky; top: calc(var(--bar-h) + 14px); max-height: calc(100vh - var(--bar-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.cal-main { min-width: 0; }
.cal-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ------------------------------------------------------------ Month */
.cal-month { padding: 12px; border-radius: var(--v2-r-lg); background: var(--v2-card); box-shadow: var(--v2-card-edge); }
.cal-wdays, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wdays { padding: 2px 4px 8px; }
.cal-wdays span { color: var(--v2-text-3); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .08em; text-transform: uppercase; }
.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 122px;
  padding: 6px;
  border-radius: 12px;
  container-type: inline-size;
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  transition: background-color var(--v2-t-fast) var(--v2-ease), box-shadow var(--v2-t-fast) var(--v2-ease);
}
.cal-cell:hover { background: rgba(255, 255, 255, .045); }
.cal-cell.is-out { opacity: .38; }
.cal-cell.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.cal-cell.is-today .cal-num { background: #fff; color: #050608; }
.cal-cell.is-sel { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.cal-cell.has-warn::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--v2-warn); box-shadow: 0 0 8px var(--v2-warn); }
.cal-cell-head { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.cal-num { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; color: #fff; font: 800 .8125rem/1 var(--v2-display); font-variant-numeric: tabular-nums; }
.cal-count { display: none; color: var(--v2-text-3); font: 700 .6875rem/1 var(--v2-font); }
.cal-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 24px;
  overflow: hidden;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: 600 .75rem/1 var(--v2-font);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--v2-t-fast) var(--v2-ease), transform var(--v2-t-press) var(--v2-ease);
}
.cal-chip:hover { background: rgba(255, 255, 255, .11); }
.cal-chip[draggable="true"] { cursor: grab; }
.cal-chip[draggable="true"]:active { cursor: grabbing; transform: scale(.98); }
.cal-chip .cal-dot { width: 6px; height: 6px; box-shadow: none; }
.cal-chip-t { flex: none; margin-left: auto; color: var(--v2-text-2); font-variant-numeric: tabular-nums; }
.cal-chip-m { flex: none; white-space: nowrap; font-weight: 700; }
.cal-chip.is-played { background: transparent; color: var(--v2-text-2); }
.cal-chip.is-played .cal-chip-m { font-weight: 600; }
.cal-chip.is-warn { background: rgba(245, 184, 75, .12); box-shadow: inset 0 0 0 1px rgba(245, 184, 75, .35); }
.cal-chip-w { flex: none; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--v2-warn); color: #1a1205; font: 800 .6875rem/1 var(--v2-font); }
.cal-more { padding: 2px 6px; border: 0; background: none; color: var(--v2-text-3); font: 700 .6875rem/1.4 var(--v2-font); text-align: left; cursor: pointer; }
.cal-more:hover { color: #fff; }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; }
.cal-add {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--v2-t-fast) var(--v2-ease), background-color var(--v2-t-fast) var(--v2-ease);
}
.cal-cell:hover .cal-add, .cal-cell:focus-within .cal-add { opacity: 1; }
.cal-add:hover { background: #fff; color: #050608; }
.cal-add.is-inline { position: static; opacity: 1; width: 30px; height: 30px; }
.cal-cell.has-warn .cal-add { right: 22px; }
html.cal-dragging [data-cal-day] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
html.cal-dragging .cal-drop, .cal-drop { background: rgba(52, 211, 153, .12); box-shadow: inset 0 0 0 1.5px rgba(52, 211, 153, .8); }

/* ------------------------------------------------------------ a fixture in full */
.cal-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--v2-edge);
}
.cal-card[draggable="true"] { cursor: grab; }
.cal-card.is-warn { box-shadow: inset 0 0 0 1px rgba(245, 184, 75, .4); }
.cal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-card-comp { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--v2-text-2); font: 700 .75rem/1 var(--v2-font); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-card-when { flex: none; color: var(--v2-text-2); font-size: .75rem; }
.cal-card-when b { color: #fff; font: 800 .9375rem/1 var(--v2-display); font-variant-numeric: tabular-nums; }
.cal-card-when i { font-style: normal; }
.cal-card-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.cal-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cal-team.is-away { justify-content: flex-end; text-align: right; }
.cal-team b { min-width: 0; color: #fff; font-weight: 700; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-crest { flex: none; width: 24px; height: 24px; object-fit: contain; }
.cal-crest.ph { display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font: 700 .6875rem/1 var(--v2-font); }
.cal-score { color: var(--v2-text-2); font: 800 .9375rem/1 var(--v2-display); font-variant-numeric: tabular-nums; }
.cal-score i { font-style: normal; margin: 0 2px; color: var(--v2-text-3); }
.cal-card.is-played .cal-score { color: #fff; }
.cal-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--v2-text-3); font-size: .75rem; }
.cal-card-foot > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-link { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #fff; font: 700 .75rem/1 var(--v2-font); cursor: pointer; }
.cal-link:hover { background: rgba(255, 255, 255, .15); }
.cal-warn { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--v2-warn); font-size: .75rem; line-height: 1.4; }
.cal-warn .v2-ic { flex: none; margin-top: 1px; }
.cal-none { margin: 0; padding: 14px 4px; color: var(--v2-text-3); font-size: .8125rem; }

/* ------------------------------------------------------------ the side */
.cal-panel, .cal-tray { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--v2-r); background: var(--v2-card); box-shadow: var(--v2-card-edge); }
.cal-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-panel-h > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-panel-h h2 { margin: 0; font: 800 1.0625rem/1.2 var(--v2-display); color: #fff; }
.cal-panel-h span { color: var(--v2-text-3); font-size: .75rem; font-weight: 600; }
.cal-panel-b, .cal-tray-b { display: flex; flex-direction: column; gap: 8px; }
.cal-tray-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.cal-tray-i[draggable="true"] { cursor: grab; }
.cal-tray-t { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.cal-tray-t b { color: #fff; font-size: .8125rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-tray-t i { color: var(--v2-text-3); font-style: normal; font-size: .75rem; }

/* ------------------------------------------------------------ Week */
.cal-week { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 1100px) {
  .cal-week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .cal-week .cal-card { padding: 10px; }
  .cal-week .cal-card-teams { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cal-week .cal-team.is-away { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .cal-week .cal-score { display: none; }
}
.cal-wcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 160px; padding: 10px; border-radius: var(--v2-r); background: var(--v2-card); box-shadow: var(--v2-card-edge); }
.cal-wcol.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.cal-wcol.is-sel { background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); }
.cal-wcol-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cal-wcol-h > button:first-child { display: flex; align-items: baseline; gap: 6px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.cal-wcol-h b { font: 800 .9375rem/1 var(--v2-display); }
.cal-wcol-h span { color: var(--v2-text-3); font-size: .75rem; font-weight: 600; }
.cal-wcol-b { display: flex; flex-direction: column; gap: 6px; }

/* ------------------------------------------------------------ List */
.cal-list { display: flex; flex-direction: column; gap: 18px; }
.cal-lday h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 800 1rem/1.2 var(--v2-display); color: #fff; }
.cal-lday h3 span { display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--v2-text-2); font: 700 .75rem/1 var(--v2-font); }
.cal-lday-b { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; }
.cal-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 20px; border-radius: var(--v2-r); background: var(--v2-card); box-shadow: var(--v2-card-edge); color: var(--v2-text-2); text-align: center; font-size: .875rem; }
.cal-empty b { color: #fff; font: 700 1.0625rem/1.3 var(--v2-display); }

/* The clash dialog. */
.cal-issues { margin: 14px 0 6px; padding: 0 0 0 18px; color: var(--v2-warn); font-size: .875rem; line-height: 1.5; }

/* ------------------------------------------------------------ the League page's strip */
.cal-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(180px, 1.4fr); gap: 8px; }
.cal-strip-d, .cal-strip-go {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: var(--v2-card);
  box-shadow: var(--v2-card-edge);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--v2-t-fast) var(--v2-ease), transform var(--v2-t) var(--v2-ease-out);
}
.cal-strip-d:hover, .cal-strip-go:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.cal-strip-d.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.cal-strip-w { color: var(--v2-text-3); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .08em; text-transform: uppercase; }
.cal-strip-d b { color: #fff; font: 800 1.5rem/1 var(--v2-display); font-variant-numeric: tabular-nums; }
.cal-strip-dots { display: flex; gap: 3px; min-height: 7px; flex-wrap: wrap; }
.cal-strip-n { color: var(--v2-text-2); font-size: .75rem; font-weight: 600; }
.cal-strip-go { justify-content: center; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); }
.cal-strip-go b { color: #fff; font: 800 1rem/1.2 var(--v2-display); }
.cal-strip-go span { color: var(--v2-text-2); font-size: .75rem; }

/* ------------------------------------------------------------ matchweeks, slots and events */
.cal-mw { margin-left: auto; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--v2-text-2); font: 800 .6875rem/1 var(--v2-font); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cal-cell.has-warn .cal-mw { margin-right: 14px; }
.cal-chip-c { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--v2-text-2); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.cal .cal-logo { flex: none; width: 16px; height: 16px; object-fit: contain; }
.cal-chip .cal-logo { width: 14px; height: 14px; }
.cal-chip.is-played .cal-logo { opacity: .6; }
/* A day too narrow for "logo D2 MW8 SPV v GOT 19:00" on one line puts the
   clubs on a second line rather than cutting anything. */
@container (max-width: 199px) {
  .cal-chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 5px; row-gap: 3px; padding: 5px 6px; }
  .cal-chip-m { grid-row: 2; grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; }
}
.cal-card-comp .cal-logo { width: 18px; height: 18px; }
.cal-fchip .cal-logo { width: 15px; height: 15px; }
.cal-chip.is-slot { background: transparent; box-shadow: none; border: 1px dashed rgba(255, 255, 255, .3); color: var(--v2-text-2); cursor: grab; }
.cal-chip.is-slot .cal-chip-m { font-weight: 600; }
.cal-chip.is-slot:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.cal .cal-dot.is-slot { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.cal .cal-dot.is-event { background: var(--ec, #a78bfa); box-shadow: none; border-radius: 2px; }
html.cal-dragging-match .cal-chip.is-slot, html.cal-dragging-match .cal-card.is-slot { border-color: rgba(52, 211, 153, .7); }
.cal-chip.is-slot.cal-drop, .cal-card.is-slot.cal-drop { background: rgba(52, 211, 153, .16); }

.cal-evs { display: flex; flex-direction: column; gap: 3px; }
.cal-ev {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ec, #a78bfa) 24%, transparent);
  color: #fff;
  font: 700 .6875rem/1 var(--v2-font);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.cal-ev span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-ev-dot { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--ec, #a78bfa); }
.cal-ev:not(.is-first) { border-top-left-radius: 2px; border-bottom-left-radius: 2px; }
.cal-ev:not(.is-last) { border-top-right-radius: 2px; border-bottom-right-radius: 2px; }

.cal-card.is-slot { background: transparent; box-shadow: none; border: 1px dashed rgba(255, 255, 255, .28); cursor: grab; }
.cal-card.is-event { background: color-mix(in srgb, var(--ec, #a78bfa) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ec, #a78bfa) 40%, transparent); }
.cal-card.is-event .cal-card-comp { color: #fff; font-size: .8125rem; }
.cal-slot-what { margin: 0; color: var(--v2-text-2); font-size: .8125rem; }
.cal-slot-acts { display: inline-flex; gap: 6px; flex: none; }
.cal-link.is-ghost { background: transparent; color: var(--v2-text-3); padding: 6px; }
.cal-link.is-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cal-panel-acts { display: inline-flex; gap: 6px; flex: none; }
.cal-lday h3 em { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--v2-text-2); font: 800 .6875rem/1 var(--v2-font); font-style: normal; }

/* The planner and the set-teams dialog. */
.cal-pl { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.cal-pl label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-pl-lab { color: var(--v2-text-3); font: 700 .6875rem/1 var(--v2-font); letter-spacing: .06em; text-transform: uppercase; }
.cal-pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cal-pl-row { display: flex; flex-direction: column; gap: 8px; }
.cal-pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-pl-kind { align-self: flex-start; }
label.cal-pl-check { flex-direction: row; align-items: center; gap: 8px; color: var(--v2-text-2); font-size: .8125rem; }
.cal-pl-sum { margin: 0; min-height: 1.2em; color: var(--v2-text-2); font-size: .8125rem; font-weight: 600; }
.cal-pl-sum.is-warn { color: var(--v2-warn); }

/* The right-click menu. */
.cal-ctx {
  position: fixed;
  z-index: 300;
  display: flex;
  flex-direction: column;
  min-width: 232px;
  max-width: 320px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(18, 20, 24, .86);
  -webkit-backdrop-filter: var(--v2-blur);
  backdrop-filter: var(--v2-blur);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 60px -18px rgba(0, 0, 0, .9);
  animation: cal-ctx-in var(--v2-t-fast) var(--v2-ease-out);
}
@keyframes cal-ctx-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.cal-ctx-head { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 9px; }
.cal-ctx-head b { color: #fff; font: 800 .875rem/1.2 var(--v2-display); }
.cal-ctx-head span { color: var(--v2-text-3); font-size: .75rem; }
.cal-ctx-i {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--v2-text-2);
  font: 600 .8125rem/1.2 var(--v2-font);
  text-align: left;
  cursor: pointer;
}
.cal-ctx-i:hover, .cal-ctx-i:focus-visible { background: rgba(255, 255, 255, .09); color: #fff; outline: none; }
.cal-ctx-i.is-danger { color: #ff8f8f; }
.cal-ctx-i.is-danger:hover { background: rgba(255, 107, 107, .14); }
.cal-ctx-i .v2-ic { flex: none; opacity: .8; }
.cal-ctx-sep { height: 1px; margin: 5px 6px; background: rgba(255, 255, 255, .08); }

/* ------------------------------------------------------------ the phone */
@media (max-width: 899px) {
  .cal-bar { flex-direction: column; align-items: stretch; }
  .cal-nav { justify-content: space-between; }
  .cal-range { flex: 1; font-size: 1.25rem; }
  .cal-tools { justify-content: space-between; }
  .cal-filters { flex-direction: column; align-items: stretch; }
  .cal-club, html.v2 .cal-club select.v2-input { width: 100%; }
  .cal-month { padding: 8px; }
  .cal-wdays, .cal-grid { gap: 3px; }
  .cal-wdays span { text-align: center; }
  .cal-cell { min-height: 52px; padding: 4px 2px; align-items: center; gap: 4px; }
  .cal-cell-head { justify-content: center; }
  .cal-chips, .cal-add, .cal-evs, .cal-mw { display: none; }
  .cal-pl-grid { grid-template-columns: minmax(0, 1fr); }
  .cal-dots { display: flex; justify-content: center; }
  .cal-cell.has-warn::after { top: 4px; right: 4px; width: 6px; height: 6px; }
  .cal-sum { gap: 6px 16px; padding: 10px 12px; }
  .cal-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--v2-gut) * -1); padding: 0 var(--v2-gut) 4px; }
  .cal-strip::-webkit-scrollbar { display: none; }
  .cal-strip-go { min-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .cal *, .cal-strip * { transition: none !important; }
  .cal-ctx { animation: none !important; }
}
