/* Próxima parada: enamel signs, ivory tickets, platform tiles and railway brass. */
:root {
  --paper-bg: #e8ebdf;
  --paper-surface: #faf7ea;
  --paper-tinted: #e5e5d1;
  --ink: #283c31;
  --ink-soft: #384e3e;
  --ink-muted: #53634d;
  --border-warm: #b3bea1;
  --border-strong: #819571;
  --border-input: #819571;
  --emerald: #245640;
  --emerald-deep: #1e4835;
  --emerald-hover: #193f2e;
  --emerald-soft: #dfe8d5;
  --emerald-border: #a1b68d;
  --brass: #b79b5b;
  --brass-ink: #78612e;
  --wood-ebony: #1f4030;
  --wood-walnut: #245640;
  --wood-cedar: #36593f;
  --font-display: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Courier New", monospace;
  --radius-md: 8px;
  --shadow-card: 0 4px 18px #243a2510;
}
html {
  scroll-padding-top: calc(var(--header-offset) + 24px);
}
body {
  background-color: var(--paper-bg);
  background-image: linear-gradient(90deg, #6b80591c 0 1px, transparent 1px),
    linear-gradient(#6b80591c 0 1px, transparent 1px),
    radial-gradient(ellipse at 10% 0, #d0d9b080, transparent 65%);
  background-size: 84px 84px, 84px 84px, auto;
  color: var(--ink);
  font-family: var(--font-sans);
}
/* Station canopy ribs and a brass safety strip live in the margins, away from text. */
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: repeating-linear-gradient(
    125deg,
    transparent 0 190px,
    #35553c0a 191px 193px,
    transparent 194px 290px
  );
  mask-image: linear-gradient(
    90deg,
    #000,
    transparent 22%,
    transparent 78%,
    #000
  );
}
body:after {
  content: "";
  position: fixed;
  inset: 0 auto 0 24px;
  width: 5px;
  border-inline: 1px solid #9b834d4d;
  background: repeating-linear-gradient(
    0deg,
    #b79b5b22 0 4px,
    transparent 4px 14px
  );
  pointer-events: none;
  z-index: -1;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9c762c;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  color: var(--ink-muted);
  font: 700 0.65rem/1.6 var(--font-sans);
  letter-spacing: 0.13em;
}
.button {
  border-radius: 5px;
  box-shadow: none;
}
.button-primary {
  background: var(--emerald);
  color: #fff7e3;
  border-color: var(--emerald);
}
.button-secondary {
  background: #f8f5e5;
  color: var(--ink);
  border-color: var(--border-warm);
}
.button-primary:hover {
  background: var(--emerald-hover);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #faf7eaf5;
  border-bottom: 1px solid #a3b093;
  box-shadow: 0 2px 16px #23463012;
  backdrop-filter: blur(12px);
}
.site-header:before,
.site-header:after {
  display: none;
}
.header-inner {
  max-width: 1304px;
  min-height: 78px;
  margin: auto;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.brand {
  gap: 11px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 43px;
  height: 43px;
  padding: 0;
  background: #fff;
  border: 1px solid #bcc2a9;
  border-radius: 50%;
  box-shadow: 0 2px 0 #b79b5b66;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-copy strong {
  color: #234b36;
  font: 700 1.25rem var(--font-display);
}
.brand-copy small {
  color: var(--ink-muted);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
}
.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: auto;
}
.main-nav a {
  color: var(--ink-soft);
  font-size: 0.8rem;
  white-space: nowrap;
}
.header-right {
  display: flex;
  gap: 12px;
  margin-left: auto;
  align-items: center;
}
.publish-table-link {
  white-space: nowrap;
  font-size: 0.85rem;
  min-height: 44px;
  padding: 11px 15px;
  box-shadow: 0 2px 0 var(--brass);
  gap: 12px;
}
.session-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-actions .button {
  font-size: 0.75rem;
  min-height: 42px;
  padding: 10px 13px;
  background: transparent;
  border: 1px solid var(--border-warm);
  color: var(--ink);
  transition: background-color 0.16s, color 0.16s, border-color 0.16s;
}
.session-actions .button:hover,
.session-actions .button:focus-visible {
  background: var(--emerald);
  color: #fff7e3;
  border-color: var(--emerald);
}
.admin-header-btn {
  font-size: 0.78rem;
  min-height: 42px;
  padding: 9px 13px;
  border-color: var(--brass);
  background: #fbf3db;
  color: #5c4314;
  white-space: nowrap;
}
.admin-header-btn:hover,
.admin-header-btn:focus-visible {
  background: #f2e2b3;
  color: #3d2a08;
  border-color: #9e7d34;
}
.session-actions .user-chip {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-warm);
}
.user-name {
  max-width: 95px;
}
.mobile-menu-btn {
  color: var(--ink);
  border: 1px solid var(--border-warm);
  background: transparent;
  min-height: 42px;
}
.mobile-nav-drawer {
  background: #faf7ea;
  border-top: 1px solid var(--border-warm);
}
.mobile-nav-links a {
  color: var(--ink);
  border-color: #d2d7bd;
}
.brand-mark-sm {
  width: 35px;
  height: 35px;
}
.station-welcome {
  max-width: 1252px;
  margin: 26px auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-block: 1px solid #b79b5b99;
  padding: 20px 0;
  position: relative;
}
.station-welcome h1 {
  font: 400 clamp(2rem, 3.2vw, 3rem) / 1.07 var(--font-display);
  letter-spacing: -0.04em;
  color: #24523a;
  max-width: 700px;
  margin: 10px 0 15px;
}
.station-welcome-copy > p:not(.eyebrow) {
  font-size: 1rem;
  margin: 0 0 15px;
  line-height: 1.5;
}
.welcome-note {
  color: var(--ink-muted);
  font-size: 0.75rem;
}
.station-postcard {
  margin: 0;
  position: relative;
  flex: 0 0 28%;
  height: 155px;
  border: 5px solid #f6f1db;
  outline: 1px solid #b79b5b;
  transform: rotate(-1deg);
  box-shadow: 4px 5px 0 #b5bd9a40;
  overflow: hidden;
}
.station-postcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: sepia(0.25) saturate(0.65);
}
.station-postcard figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  text-align: center;
  padding: 8px;
  background: #214a36ee;
  color: #fff4db;
  font: 9px/1.3 var(--font-mono);
  letter-spacing: 0.1em;
}
.page-shell {
  max-width: 1304px;
  padding: 0 26px 40px;
  margin: auto;
}
.catalog-section {
  padding-top: 0;
}
.catalog-header {
  padding: 0 0 17px;
  gap: 15px;
  align-items: center;
  margin-bottom: 0;
}
.catalog-title-group h2 {
  font: 400 1.9rem/1.2 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 5px 0 0;
}
.count-pill {
  background: #e1e7d4;
  color: #294832;
  border: 1px solid #acba98;
  font-size: 0.8rem;
}
.refresh-header-btn {
  min-height: 40px;
  font-size: 0.75rem;
}
.catalog-header-meta {
  max-width: 45%;
}
.completeness-note {
  color: var(--ink-muted);
}
.explorer-bar {
  background: #faf8edf5;
  border: 1px solid #a6b495;
  padding: 17px 20px;
  border-radius: 7px;
  box-shadow: 0 4px 16px #2a452c09;
  margin-bottom: 20px;
}
.search-row {
  margin-bottom: 12px;
}
.search-input-wrap {
  background: #fffdf5;
  border-color: #a6b495;
  border-radius: 4px;
}
.search-input-wrap input {
  font-size: 0.95rem;
  min-height: 48px;
}
.search-ico {
  color: var(--ink-muted);
}
.station-fold {
  border: 1px solid #a6b495;
  background: #faf8edf5;
  border-radius: 6px;
  overflow: clip;
  color: var(--ink);
}
.station-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  padding: 14px 18px;
  font-size: 0.85rem;
}
.station-fold > summary::-webkit-details-marker {
  display: none;
}
.fold-cue {
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.16s;
}
.station-fold[open] > summary > .fold-cue {
  transform: rotate(45deg);
}
.station-fold[open] > summary {
  border-bottom: 1px solid #c2ccb4;
}
.fold-content {
  padding: 17px 18px;
}
.filters-fold {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.filters-fold > summary {
  padding: 8px 0;
  min-height: 43px;
  font-weight: 600;
}
.filters-fold[open] > summary {
  border: 0;
}
.filters-fold .fold-content {
  padding: 10px 0 0;
}
.filter-feedback {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 7px;
}
.filter-feedback > span {
  font-size: 0.68rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.filter-feedback .text-button {
  font-size: 0.75rem;
  min-height: 36px;
  color: var(--emerald);
}
.source-and-toggle-row {
  margin: 0 0 13px;
}
.source-segmented {
  background: #e5e8d8;
  border: 1px solid #b4bea3;
  border-radius: 5px;
  padding: 3px;
}
.seg-btn {
  font-size: 0.75rem;
  color: var(--ink);
}
.seg-btn.active {
  background: var(--emerald);
  color: #fff7e3;
}
.explorer-filters-panel {
  display: block !important;
  padding: 0;
  border: 0;
  background: transparent;
}
.system-chips,
.mini-chip-row {
  gap: 7px;
}
.sys-chip,
.mini-chip {
  background: #fffdf5;
  border: 1px solid #b6c2a6;
  color: var(--ink);
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 9px 11px;
  min-height: 38px;
}
.sys-chip.active,
.mini-chip.active {
  background: #dbe6d2;
  color: #234b35;
  border-color: #628258;
  box-shadow: inset 0 -2px 0 #628258;
}
.filter-group-label {
  color: var(--ink-muted);
  font-size: 0.68rem;
}
.composable-filters-grid {
  gap: 18px;
  margin-top: 15px;
}
.filter-count-badge {
  font-size: 0.65rem;
  background: var(--emerald);
  color: #fff;
  padding: 3px 6px;
  border-radius: 3px;
}
.station-agenda {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
}
.station-agenda .station-fold {
  background: #f8f6e9;
}
.week-fold > summary > span:first-child {
  display: grid;
  gap: 5px;
}
.week-fold > summary .eyebrow {
  margin: 0;
  font-size: 0.6rem;
}
#station-week-label {
  font: 400 1.25rem var(--font-display);
}
.agenda-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.agenda-controls > button {
  border: 1px solid #a9b99a;
  border-radius: 4px;
  background: #faf8ed;
  color: var(--ink);
  min-width: 44px;
  min-height: 40px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 1rem;
}
.agenda-controls > button[data-agenda-action="today"] {
  font-size: 0.75rem;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.station-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.agenda-date {
  display: grid;
  gap: 6px;
  place-items: center;
  cursor: pointer;
  border: 1px solid #c0c8b2;
  color: #34503a;
  background: #f1f0e3;
  border-radius: 5px;
  min-width: 0;
  padding: 12px 4px;
}
.agenda-date > span {
  font-size: 0.8rem;
}
.agenda-date > b {
  font: 400 1.8rem/1.1 var(--font-display);
}
.agenda-date > small {
  font-size: 0.7rem;
  min-height: 15px;
}
.agenda-date.has-games {
  background: #dde7d2;
  border-color: #8fa67c;
}
.agenda-date[data-heat="1"],
.heat-swatch[data-heat="1"] {
  background: #e1eed6;
  border-color: #a4be92;
  color: #234730;
}
.agenda-date[data-heat="2"],
.heat-swatch[data-heat="2"] {
  background: #bfe0b4;
  border-color: #7ea972;
  color: #193e26;
}
.agenda-date[data-heat="3"],
.heat-swatch[data-heat="3"] {
  background: #87c285;
  border-color: #4f9458;
  color: #10321d;
}
.agenda-date[data-heat="4"],
.heat-swatch[data-heat="4"] {
  background: #47945c;
  border-color: #2f7042;
  color: #f9fff6;
}
.agenda-date[data-heat="5"],
.heat-swatch[data-heat="5"] {
  background: #1d653c;
  border-color: #134729;
  color: #fff8e6;
}
.heat-swatch[data-heat="0"] {
  background: #f1f0e3;
  border-color: #c0c8b2;
}
.calendar-heat-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 10px;
  font-size: 0.66rem;
  color: var(--ink-muted);
}
.heat-swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1px solid #b5bfa6;
}
.agenda-dots {
  display: inline-flex;
  gap: 3px;
  margin-top: 2px;
}
.agenda-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1px #ffffff99;
}
.agenda-dot.dot-terminal { background: #1c4c36; }
.agenda-dot.dot-mesasroleras { background: #6a3cb5; }
.agenda-dot.dot-juguemosrol { background: #c2512f; }
.agenda-dot.dot-startplaying { background: #c89b3c; }
.agenda-dot.dot-meeplay { background: #167a85; }
.agenda-dot.dot-roll20 { background: #a6286f; }
.calendar-sources-summary {
  margin: 8px 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--ink-muted);
  text-align: right;
}
#station-month > summary {
  cursor: default;
}
#station-month > summary .fold-cue {
  display: none;
}
.agenda-date[aria-current="date"] {
  box-shadow: inset 0 0 0 2px #9c803d;
}
.agenda-date[aria-pressed="true"] {
  background: #143d29;
  color: #fff6df;
  border-color: #143d29;
  box-shadow: 0 0 0 2px #b79b5b;
}
.agenda-date:hover {
  outline: 1px solid #668454;
  outline-offset: 1px;
}
.agenda-help {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 12px 0 0;
}
.month-layout {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}
.station-weekdays,
.station-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.station-weekdays {
  text-align: center;
  font-size: 0.65rem;
  margin-bottom: 8px;
  color: var(--ink-muted);
}
.station-month-grid .agenda-date {
  min-height: 47px;
  gap: 2px;
  padding: 6px 2px;
}
.station-month-grid .agenda-date > b {
  font: 600 0.8rem var(--font-sans);
}
.station-month-grid .agenda-date > small {
  font-size: 0.55rem;
  min-height: 11px;
}
.outside-month {
  opacity: 0.42;
}
.date-jump h3 {
  font: 400 1.8rem var(--font-display);
  letter-spacing: -0.03em;
  margin: 10px 0;
}
.date-jump p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-muted);
}
#station-date-jump label {
  font-size: 0.75rem;
  display: block;
  margin: 15px 0 7px;
}
#station-date-jump > div {
  display: flex;
  gap: 10px;
}
#station-date-jump input {
  min-width: 0;
  width: auto;
  flex: 1;
  background: #fffdf4;
  border: 1px solid #a8b496;
  border-radius: 4px;
  padding: 10px;
  font-size: 0.85rem;
}
.agenda-unscheduled-row {
  margin: 14px 0 2px;
}
.agenda-unscheduled-row .button {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 44px;
}
.button-unscheduled {
  background: #1d653c;
  border: 1px solid #134729;
  color: #fff8e6;
  transition: filter 0.15s, background-color 0.15s;
}
.button-unscheduled[data-heat="2"] {
  background: #bfe0b4;
  border-color: #7ea972;
  color: #193e26;
}
.button-unscheduled[data-heat="3"] {
  background: #47945c;
  border-color: #2f7042;
  color: #f9fff6;
}
.button-unscheduled[data-heat="4"],
.button-unscheduled[data-heat="5"] {
  background: #1d653c;
  border-color: #134729;
  color: #fff8e6;
}
.button-unscheduled:hover:not(:disabled) {
  filter: brightness(1.08);
}
.button-unscheduled:disabled {
  background: #e9eadc;
  border-color: #c5cbb5;
  color: #6b7663;
  cursor: not-allowed;
}
.month-layout-compact {
  display: block;
  max-width: 560px;
  margin: 0 auto;
}
.floating-chip-btn {
  border: 1px solid #134729;
  background: #1d653c;
  color: #fff8e6;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.floating-chip-btn:hover {
  background: #247848;
  border-color: #165433;
}
.date-jump .small-note {
  font-size: 0.7rem;
}
.agenda-navigation-status {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}
.agenda-navigation-status:empty {
  display: none;
}
.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: visible;
}
.ticket-date-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #aeb99d;
  margin: 12px 0 17px;
  padding: 10px 0;
}
.ticket-date-heading h3 {
  font: italic 400 1.6rem var(--font-display);
  margin: 0;
  color: var(--ink);
}
.ticket-date-heading > span {
  font-size: 0.7rem;
  color: var(--ink-muted);
}
.station-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25%;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #ede7cc;
  overflow: clip;
  margin: 0 0 24px;
  box-shadow: 0 5px 10px #25391d20;
  isolation: isolate;
  transition: box-shadow 0.18s;
}
.station-ticket:hover {
  box-shadow: 0 7px 18px #25391d35;
  transform: none;
}
.ticket-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 20px;
  color: transparent;
  padding: 0;
}
.station-ticket:has(.ticket-hit:focus-visible) {
  outline: 3px solid #668450;
  outline-offset: 5px;
}
.ticket-hit:focus-visible {
  outline: none;
}
.station-ticket:before,
.station-ticket:after {
  content: "";
  position: absolute;
  left: calc(75% - 11px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper-bg);
  z-index: 5;
  pointer-events: none;
}
.station-ticket:before {
  top: -11px;
}
.station-ticket:after {
  bottom: -11px;
}
.ticket-main {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #dedcbd;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}
.ticket-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  filter: saturate(0.8);
}
.ticket-main:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #32482c22, #dbe1bd08);
  z-index: -1;
  pointer-events: none;
}
.ticket-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #245640f5;
  padding: 10px 20px;
  min-height: 47px;
}
.ticket-system {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid #ffffff55;
  background: #f0e8cc;
  color: #433d21;
  border-radius: 4px;
  max-width: 70%;
  line-height: 1.35;
}
.system-dnd5e {
  background: #f6e7b8;
  color: #604517;
}
.system-pathfinder {
  background: #f3dccb;
  color: #733c25;
}
.system-cthulhu {
  background: #d2e5dc;
  color: #184e40;
}
.system-wod {
  background: #eddce3;
  color: #702843;
}
.system-scifi {
  background: #d8e5f3;
  color: #264a6e;
}
.system-indie {
  background: #e6ddf1;
  color: #573575;
}
.ticket-format {
  font-size: 0.7rem;
  font-weight: 600;
  background: #fdf5de;
  color: #2b4f38;
  padding: 6px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.ticket-story {
  background: #faf6e8;
  border: 1px solid #b5b68c;
  border-left: 3px solid #2c5940;
  border-radius: 2px;
  margin: 65px 23px 16px;
  padding: 15px 18px;
  width: calc(100% - 80px);
  box-shadow: 0 2px 9px #25391d15;
}
.ticket-serial {
  font: 10px/1.5 var(--font-mono);
  letter-spacing: 0.06em;
  color: #536348;
  margin: 0;
}
.ticket-story h3 {
  font: 400 clamp(1.7rem, 2.3vw, 2.3rem) / 1.1 var(--font-display);
  letter-spacing: -0.035em;
  margin: 9px 0 10px;
  color: #283c31;
}
.ticket-excerpt {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #516147;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.ticket-facts {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.1fr;
  gap: 9px;
  margin: 0 23px 22px;
}
.ticket-facts > div {
  background: #f0eedc;
  border: 1px solid #b5b68c;
  padding: 8px 11px;
  display: grid;
  gap: 3px;
  align-content: center;
  min-width: 0;
}
.ticket-facts small {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: #536147;
}
.ticket-facts strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d4230;
  overflow-wrap: anywhere;
}
.ticket-facts .ticket-gm {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ticket-gm > div {
  display: grid;
  gap: 3px;
}
.station-avatar {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  position: relative;
  display: inline-grid;
  place-items: center;
  background: #dce4cb;
  color: #2c5238;
  border: 1px solid #9ba983;
  border-radius: 50%;
  overflow: hidden;
  font: 600 1rem var(--font-sans);
}
.station-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ticket-stub {
  background: #e8e4ca;
  border-left: 2px dashed #8e9b77;
  color: #283c31;
  min-width: 0;
}
.ticket-stub-band {
  height: 47px;
  display: grid;
  place-items: center;
  background: #2e573f;
  color: #fff5df;
  font: 700 0.6rem var(--font-mono);
  letter-spacing: 0.1em;
}
.ticket-stub-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  padding: 20px 23px;
  height: calc(100% - 47px);
}
.ticket-date {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}
.ticket-month {
  font-size: 0.7rem;
  line-height: 1.5;
  color: #536147;
}
.ticket-clock {
  font: 400 2.5rem/1.1 var(--font-display);
  margin: 5px 0 0;
}
.ticket-zone {
  font-size: 0.65rem;
  color: #536147;
}
.ticket-seats {
  display: grid;
  gap: 5px;
  font-size: 0.85rem;
  line-height: 1.5;
  border-top: 1px solid #adb390;
  width: 100%;
  padding-top: 12px;
  margin: 4px 0;
}
.ticket-seats small {
  font-size: 0.65rem;
}
.ticket-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 11px 12px;
  min-height: 42px;
  color: #fff6df;
  background: #245640;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}
.ticket-direct-link {
  position: relative;
  z-index: 6;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.16s, transform 0.16s;
}
.ticket-direct-link:hover,
.ticket-direct-link:focus-visible {
  filter: brightness(1.14);
  transform: translateY(-1px);
}
.ticket-bottom-code {
  font: 9px/1.5 var(--font-mono);
  color: #5b684d;
  margin-top: 4px;
}
.station-ticket[data-nav-highlight] {
  outline: 3px solid #a98b47;
  outline-offset: 5px;
}
.ticket-date-heading,
.station-ticket {
  scroll-margin-top: calc(var(--header-offset) + 24px);
}
/* One fixed dialog shell: stable size, one scroll area, visible close control. */
body.modal-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.detail-modal-sheet {
  position: fixed;
  inset: 0;
  width: min(880px, calc(100% - 40px));
  max-width: 880px;
  height: auto;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #8e9e7a;
  border-radius: 12px;
  background: #faf7ea;
  color: #283c31;
  box-shadow: 0 25px 90px #0e21135e;
  overflow: auto;
  overscroll-behavior: contain;
  transform: none;
}
.detail-modal-sheet::backdrop {
  background: #152b22b8;
  backdrop-filter: blur(4px);
}
.detail-panel-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: #245640;
  color: #fff6df;
  border-bottom: 1px solid #b79b5b;
}
.detail-panel-bar .button {
  background: #fff6e6;
  color: #284e38;
  border: 0;
  min-height: 42px;
  font-size: 0.75rem;
  padding: 9px 14px;
}
.detail-kicker-brand {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}
.detail-modal-body {
  padding: 25px 28px 28px;
}
.detail-top-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-heading-block {
  min-width: 0;
}
.detail-title-main {
  font: 400 clamp(1.8rem, 4vw, 2.6rem) / 1.12 var(--font-display);
  letter-spacing: -0.04em;
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
}
.detail-title-main:focus {
  outline: none;
}
.detail-side-art {
  order: -1;
  height: 170px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.detail-side-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.detail-description {
  font-size: 0.95rem;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #3c4d37;
  margin: 23px 0;
}
.detail-primary-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.detail-primary-cta .button {
  font-size: 0.85rem;
  padding: 12px 17px;
  min-height: 44px;
}
.detail-inline-error {
  position: relative;
  z-index: 1;
  padding: 12px 20px;
  background: #f9e9e0;
  color: #812f23;
}
.rpg-tag {
  background: #e9ecd9;
  border: 1px solid #b3bda0;
  color: #435339;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: normal;
}
.detail-heading-block > .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.detail-heading-block > .eyebrow .station-avatar {
  width: 30px;
  height: 30px;
}
.edit-form {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--border-warm);
}
.members-grid {
  gap: 8px;
}
.member-pill {
  background: #f0eedc;
  border-color: #b7bea4;
  color: var(--ink);
  border-radius: 5px;
}
.detail-heading-block .publication-status {
  font-size: 0.7rem;
  color: var(--ink-muted);
}
.how-section {
  margin: 32px 0;
  padding: 0;
}
.how-editorial-band {
  background: #faf7ea;
  border: 1px solid #afbb9d;
  border-radius: 8px;
  padding: 25px;
}
.how-header h2 {
  font: 400 1.8rem var(--font-display);
  color: var(--ink);
}
.journey-step {
  border-color: #bcc5a9;
}
.step-num {
  color: var(--emerald);
}
.step-body h3 {
  color: var(--ink);
}
.wood-divider {
  color: #294d35;
  background: transparent;
  border-block: 1px solid #b79b5b;
  margin: 30px 0 20px;
  padding: 16px;
}
.sheet-panel,
.chat-workspace,
.chat-panel {
  background: #faf8ed;
  border-color: #aebc9c;
  box-shadow: 0 4px 15px #263d2810;
}
.sheet-panel h2 {
  font-family: var(--font-display);
  color: var(--ink);
}
.sheet-panel input,
.sheet-panel select,
.sheet-panel textarea {
  background: #fffdf4;
  border-color: #a2b38d;
  color: var(--ink);
  max-width: 100%;
}
.field-meta-row,
.panel-lead,
.small-note,
.muted {
  color: var(--ink-muted);
}
.site-footer {
  background: #dde3d1;
  color: var(--ink);
  border-top: 1px solid #9cab8b;
  padding: 28px 0;
}
.footer-inner {
  max-width: 1304px;
  padding: 0 26px;
  gap: 28px;
}
.site-footer a,
.site-footer p,
.footer-brand .brand-copy small {
  color: #465b3f;
}
.footer-credits {
  font-size: 0.65rem;
  line-height: 1.7;
}
.footer-credits .credits-list {
  display: none;
}
.credits-title {
  font-weight: 600;
}
.svg-credits-note {
  font-size: 0.6rem;
}
.footer-brand .brand-copy strong {
  color: #245640;
}
.footer-actions .button {
  background: var(--emerald);
  color: #fff6df;
}
@media (min-width: 1051px) {
  .main-nav:has(#nav-chat:not([hidden])) {
    gap: 9px;
  }
  .main-nav:has(#nav-chat:not([hidden])) a {
    font-size: 0.7rem;
  }
  .header-inner:has(#nav-chat:not([hidden])) {
    gap: 15px;
  }
  .header-inner:has(#nav-chat:not([hidden])) .user-name {
    display: none;
  }
}
@media (max-width: 1300px) {
  .station-welcome {
    margin-inline: 26px;
  }
  .header-inner {
    gap: 17px;
  }
  .main-nav {
    gap: 12px;
  }
  .session-actions .user-name {
    display: none;
  }
}
@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header-right {
    gap: 9px;
  }
  .header-inner {
    padding: 12px 22px;
  }
  .station-welcome {
    margin-inline: 22px;
  }
  .page-shell {
    padding-inline: 22px;
  }
  .ticket-story {
    width: calc(100% - 46px);
    margin-top: 45px;
  }
  .ticket-facts {
    grid-template-columns: 1fr 1fr;
  }
  .ticket-experience {
    grid-column: 1/-1;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  .ticket-stub-copy {
    padding: 17px;
  }
  .ticket-story h3 {
    font-size: 1.8rem;
  }
  .ticket-seats {
    font-size: 0.75rem;
  }
}
@media (max-width: 760px) {
  .station-welcome {
    margin: 20px 18px;
    gap: 20px;
  }
  .station-welcome h1 {
    font-size: 2.35rem;
  }
  .station-postcard {
    flex-basis: 30%;
    height: 150px;
  }
  .station-welcome .eyebrow {
    font-size: 0.55rem;
  }
  .page-shell {
    padding: 0 18px 25px;
  }
  .catalog-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .catalog-header-meta {
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
  }
  .catalog-status-row {
    width: 100%;
    justify-content: space-between;
  }
  .catalog-title-group h2 {
    font-size: 1.7rem;
  }
  .composable-filters-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .explorer-bar {
    padding: 14px 16px;
  }
  .station-fold .fold-content {
    padding: 14px;
  }
  .filters-fold .fold-content {
    padding: 10px 0 0;
  }
  .station-fold > summary {
    padding: 13px 14px;
  }
  .filters-fold > summary {
    padding: 8px 0;
  }
  .station-week-grid {
    gap: 6px;
  }
  .agenda-date {
    padding: 11px 3px;
  }
  .month-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .month-calendar {
    max-width: 430px;
    width: 100%;
    margin: auto;
  }
  .date-jump {
    border-top: 1px solid var(--border-warm);
    padding-top: 8px;
  }
  .date-jump h3 {
    font-size: 1.5rem;
  }
  .date-jump .eyebrow {
    display: none;
  }
  .date-jump .small-note {
    font-size: 0.65rem;
  }
  .station-ticket {
    grid-template-columns: minmax(0, 1fr) 27%;
  }
  .station-ticket:before,
  .station-ticket:after {
    left: calc(73% - 11px);
  }
  .ticket-story {
    margin: 40px 17px 14px;
    width: calc(100% - 34px);
    padding: 13px;
  }
  .ticket-story h3 {
    font-size: 1.7rem;
  }
  .ticket-facts {
    margin: 0 17px 18px;
    gap: 7px;
  }
  .ticket-facts > div {
    padding: 7px 9px;
  }
  .ticket-band {
    padding: 10px 16px;
  }
  .ticket-system {
    font-size: 0.7rem;
    padding: 5px 7px;
  }
  .ticket-format {
    font-size: 0.6rem;
    padding: 5px 7px;
  }
  .ticket-stub-copy {
    padding: 16px 13px;
    gap: 8px;
  }
  .ticket-date {
    font-size: 0.9rem;
  }
  .ticket-clock {
    font-size: 2.1rem;
  }
  .ticket-month {
    font-size: 0.65rem;
  }
  .ticket-zone {
    font-size: 0.55rem;
  }
  .ticket-stub-band {
    font-size: 0.5rem;
  }
  .ticket-open {
    font-size: 0.7rem;
    padding: 9px 7px;
  }
  .ticket-bottom-code {
    font-size: 7px;
  }
  .how-editorial-band {
    padding: 20px;
  }
  .footer-inner {
    padding: 0 18px;
    display: flex;
    flex-direction: column;
  }
  .footer-actions {
    width: 100%;
  }
  .detail-modal-body {
    padding: 20px;
  }
  .detail-side-art {
    height: 145px;
  }
}
@media (max-width: 480px) {
  body {
    background-size: 56px 56px, 56px 56px, auto;
  }
  body:after {
    left: 5px;
    width: 3px;
  }
  .header-inner {
    min-height: 100px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-copy strong {
    font-size: 1.05rem;
  }
  .brand-copy small {
    font-size: 0.48rem;
  }
  .header-right {
    display: contents;
  }
  .publish-table-link {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 10px 11px;
    font-size: 0.75rem;
    min-height: 42px;
    gap: 3px;
  }
  .publish-table-link > span {
    display: none;
  }
  .session-actions {
    grid-column: 1;
    grid-row: 2;
    gap: 8px;
    margin-left: 42px;
    min-width: 0;
  }
  .session-actions .button {
    font-size: 0.65rem;
    min-height: 30px;
    padding: 5px 9px;
  }
  .session-actions .user-chip {
    display: none;
  }
  .mobile-menu-btn {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    min-width: 36px;
    min-height: 30px;
    width: 36px;
    height: 30px;
    padding: 5px;
  }
  .mobile-menu-btn svg {
    width: 17px;
    height: 17px;
  }
  .station-welcome {
    margin: 16px 14px 18px;
    padding: 16px 0;
    gap: 13px;
  }
  .station-welcome h1 {
    font-size: 1.95rem;
    margin: 9px 0 11px;
  }
  .station-welcome-copy > p:not(.eyebrow) {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .station-welcome .eyebrow {
    font-size: 0.47rem;
    line-height: 1.7;
    letter-spacing: 0.09em;
  }
  .station-postcard {
    height: 135px;
    flex-basis: 27%;
    border-width: 3px;
  }
  .station-postcard figcaption {
    font-size: 6px;
    padding: 6px 3px;
  }
  .welcome-note {
    font-size: 0.6rem;
  }
  .page-shell {
    padding: 0 14px 25px;
  }
  .catalog-title-group h2 {
    font-size: 1.55rem;
  }
  .catalog-header {
    gap: 12px;
  }
  .catalog-title-group > .eyebrow {
    font-size: 0.55rem;
  }
  .count-pill {
    font-size: 0.7rem;
    padding: 7px 9px;
  }
  .refresh-header-btn {
    font-size: 0.7rem;
  }
  .catalog-status-row {
    gap: 8px;
  }
  .search-input-wrap input {
    font-size: 0.8rem;
    padding-left: 35px;
    min-height: 46px;
  }
  .explorer-bar {
    padding: 13px;
  }
  .filters-fold > summary {
    font-size: 0.8rem;
  }
  .filter-feedback > span {
    font-size: 0.6rem;
  }
  .seg-btn {
    font-size: 0.7rem;
    padding: 7px 10px;
  }
  .sys-chip,
  .mini-chip {
    font-size: 0.7rem;
    padding: 8px 9px;
    min-height: 38px;
  }
  .filter-group-label {
    font-size: 0.6rem;
  }
  .week-fold > summary .eyebrow {
    font-size: 0.55rem;
  }
  #station-week-label {
    font-size: 1.05rem;
  }
  .agenda-controls {
    margin-bottom: 10px;
  }
  .agenda-controls > button {
    min-height: 38px;
  }
  .station-week-grid {
    gap: 4px;
  }
  .agenda-date {
    padding: 9px 1px;
    gap: 6px;
  }
  .agenda-date > span {
    font-size: 0.6rem;
  }
  .agenda-date > b {
    font-size: 1.4rem;
  }
  .agenda-date > small {
    font-size: 0.5rem;
  }
  .agenda-help {
    font-size: 0.62rem;
    line-height: 1.6;
  }
  .month-fold > summary {
    font-size: 0.75rem;
  }
  .station-month-grid .agenda-date {
    min-height: 44px;
  }
  .date-jump p {
    font-size: 0.75rem;
  }
  #station-date-jump > div {
    gap: 7px;
  }
  #station-date-jump button {
    font-size: 0.7rem;
    padding: 10px;
  }
  #station-date-jump input {
    font-size: 0.8rem;
  }
  .ticket-date-heading h3 {
    font-size: 1.4rem;
  }
  .ticket-date-heading > span {
    font-size: 0.6rem;
  }
  .ticket-date-heading {
    margin-top: 12px;
  }
  .station-ticket {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 18px;
    margin-bottom: 20px;
  }
  .station-ticket:before,
  .station-ticket:after {
    top: auto;
    bottom: 150px;
    left: -10px;
    width: 20px;
    height: 20px;
  }
  .station-ticket:after {
    left: auto;
    right: -10px;
  }
  .ticket-main {
    border-radius: 18px 18px 0 0;
  }
  .ticket-band {
    padding: 10px 14px;
    min-height: 45px;
  }
  .ticket-system {
    max-width: 68%;
    font-size: 0.68rem;
  }
  .ticket-format {
    font-size: 0.6rem;
    max-width: 40%;
    white-space: normal;
    text-align: center;
  }
  .ticket-story {
    margin: 55px 15px 13px;
    width: calc(100% - 30px);
    padding: 12px;
  }
  .ticket-story h3 {
    font-size: 1.6rem;
    margin: 8px 0 9px;
  }
  .ticket-excerpt {
    font-size: 0.8rem;
  }
  .ticket-serial {
    font-size: 8px;
  }
  .ticket-facts {
    margin: 0 15px 17px;
    gap: 7px;
  }
  .ticket-facts strong {
    font-size: 0.75rem;
  }
  .ticket-facts small {
    font-size: 0.5rem;
  }
  .station-avatar {
    width: 33px;
    height: 33px;
    font-size: 0.8rem;
  }
  .ticket-stub {
    border-left: 0;
    border-top: 2px dashed #95a17c;
    min-width: 0;
  }
  .ticket-stub-band {
    display: none;
  }
  .ticket-stub-copy {
    padding: 15px 19px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    text-align: left;
    gap: 5px 12px;
    height: auto;
    min-height: 168px;
  }
  .ticket-date {
    font-size: 0.95rem;
    grid-column: 1;
    grid-row: 1;
  }
  .ticket-month {
    font-size: 0.6rem;
    grid-column: 1;
    grid-row: 2;
  }
  .ticket-clock {
    grid-column: 2;
    grid-row: 1/3;
    justify-self: end;
    font-size: 1.85rem;
    margin: 0;
  }
  .ticket-zone {
    grid-column: 1/-1;
    grid-row: 3;
    font-size: 0.55rem;
  }
  .ticket-seats {
    grid-column: 1;
    grid-row: 4;
    font-size: 0.7rem;
    padding: 0;
    border: 0;
    gap: 3px;
    margin: 7px 0;
  }
  .ticket-seats small {
    font-size: 0.55rem;
  }
  .ticket-open {
    grid-column: 2;
    grid-row: 4;
    font-size: 0.7rem;
    padding: 10px 13px;
    min-height: 40px;
    gap: 7px;
  }
  .ticket-bottom-code {
    grid-column: 1/-1;
    grid-row: 5;
    font-size: 7px;
    margin-top: 3px;
  }
  .ticket-clock:has(+ .ticket-zone) {
    max-width: 140px;
    overflow-wrap: anywhere;
  }
  .station-ticket:has(.ticket-clock:empty) {
    min-height: 0;
  }
  .detail-modal-sheet {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 10px;
  }
  .detail-panel-bar {
    padding: 10px 13px;
    gap: 8px;
  }
  .detail-kicker-brand {
    font-size: 0.6rem;
  }
  .detail-brand-suffix {
    display: none;
  }
  .detail-modal-body {
    padding: 17px;
  }
  .detail-title-main {
    font-size: 1.9rem;
  }
  .detail-side-art {
    height: 125px;
  }
  .detail-description {
    font-size: 0.85rem;
    line-height: 1.8;
  }
  .detail-primary-cta .button {
    font-size: 0.75rem;
    padding: 11px 13px;
    width: 100%;
    text-align: center;
  }
  .rpg-tag {
    font-size: 0.65rem;
  }
  .members-grid .member-pill {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .how-header h2 {
    font-size: 1.5rem;
  }
  .how-editorial-band {
    padding: 17px;
  }
  .step-body h3 {
    font-size: 1rem;
  }
  .step-body p {
    font-size: 0.8rem;
  }
  .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet-panel {
    min-width: 0;
    padding: 17px;
  }
  .sheet-panel h2 {
    font-size: 1.5rem;
  }
  .field-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet-panel input,
  .sheet-panel textarea,
  .sheet-panel select {
    min-width: 0;
    font-size: 0.85rem;
  }
  .field-meta-row {
    flex-wrap: wrap;
  }
  .prejoin-header,
  .chat-panel-header {
    flex-wrap: wrap;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .footer-brand-lockup .brand-copy small {
    font-size: 0.55rem;
  }
  .footer-credits {
    font-size: 0.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .station-ticket:hover {
    transform: none;
  }
}
/* Override the previous dialog shell at equal specificity; no competing animations. */
dialog.detail-modal-sheet {
  width: min(880px, calc(100% - 40px));
  max-width: 880px;
  height: fit-content;
  max-height: calc(100dvh - 48px);
  border: 1px solid #8e9e7a;
  overflow: auto;
}
dialog.detail-modal-sheet[open] {
  display: block;
  animation: none;
}
dialog.detail-modal-sheet::backdrop {
  background: #152b22b8;
  backdrop-filter: blur(4px);
}
.detail-modal-body {
  overflow: visible;
}
.detail-side-art {
  width: 100%;
  height: 170px;
  aspect-ratio: auto;
  flex-shrink: 0;
  align-self: stretch;
}
.detail-kicker-brand {
  color: #fff3d6;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.detail-logo {
  flex-shrink: 0;
  border-radius: 50%;
}
@media (max-width: 480px) {
  dialog.detail-modal-sheet {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
  }
  .detail-side-art {
    height: 125px;
  }
  .detail-kicker-brand {
    font-size: 0.65rem;
  }
}


/* ==========================================================================
   V2 Polish: Markdown, Structured Game Form, WhatsApp Chat, Messenger Dock,
   and Contextual User Blocking
   ========================================================================== */

.user-chip .station-avatar {
  width: 26px;
  height: 26px;
  font-size: 0.72rem;
}

.member-pill .station-avatar {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}

/* Safe Markdown formatting inside game details */
.md-body {
  white-space: normal;
}
.md-body > :first-child {
  margin-top: 0;
}
.md-body > :last-child {
  margin-bottom: 0;
}
.md-body p {
  margin: 0 0 0.85em;
  line-height: 1.75;
}
.md-body .md-heading {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 1.15em 0 0.45em;
  line-height: 1.25;
}
.md-body h3.md-heading {
  font-size: 1.22rem;
}
.md-body h4.md-heading {
  font-size: 1.05rem;
}
.md-body h5.md-heading {
  font-size: 0.95rem;
}
.md-body ul,
.md-body ol {
  margin: 0.45em 0 0.9em;
  padding-left: 1.35rem;
}
.md-body li {
  margin: 0.28em 0;
  line-height: 1.65;
}
.md-body blockquote {
  margin: 0.8em 0;
  padding: 0.55rem 0.9rem;
  border-left: 3px solid var(--emerald);
  background: #f2efe0;
  color: var(--ink-soft);
  border-radius: 0 4px 4px 0;
}
.md-body hr {
  border: 0;
  border-top: 1px solid var(--border-warm);
  margin: 1rem 0;
}
.md-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #ecead8;
  padding: 0.12em 0.38em;
  border-radius: 3px;
}
.md-body a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

/* Structured Game Creation & Edit Form */
.station-form {
  display: grid;
  gap: 1rem;
}
.form-step {
  border: 1px solid #c7d0b6;
  background: #fcfaf0;
  border-radius: 8px;
  padding: 1rem 1.05rem 1.05rem;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.form-step legend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.45rem;
  font: 700 0.86rem/1.3 var(--font-sans);
  color: var(--emerald-deep);
}
.step-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff6df;
  font-size: 0.72rem;
  font-weight: 700;
}
.field-label-text {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.field-label-row label {
  margin: 0;
}
.field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.preset-chip {
  appearance: none;
  border: 1px solid #b3bfa0;
  background: #f3f1e1;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.preset-chip:hover {
  background: #e6ecd8;
  border-color: var(--emerald);
}
.preset-chip.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff7e3;
}
.pill-toggle-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  background: #edeadd;
  padding: 0.22rem;
  border-radius: 6px;
  border: 1px solid #c3ccb2;
}
.pill-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.46rem 0.4rem;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.pill-toggle.active {
  background: var(--emerald);
  color: #fff7e3;
}
.datetime-split {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr;
  gap: 0.6rem;
}
.datetime-split .field {
  margin: 0;
}
.datetime-split label {
  font-size: 0.73rem;
  color: var(--ink-muted);
}
.seats-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.seats-control .preset-chips {
  margin-bottom: 0;
}
.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: #fffdf5;
  overflow: hidden;
  transition: opacity 0.14s;
}
.stepper.is-tbd {
  opacity: 0.48;
}
.stepper-btn {
  appearance: none;
  border: 0;
  background: #eef0df;
  color: var(--ink);
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.stepper-btn:hover {
  background: #dfe8d5;
}
.sheet-panel .stepper input[type="number"],
.stepper input[type="number"] {
  width: 56px;
  min-width: 56px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline: 1px solid #c7d0b6;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fffdf5;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper input[type="number"]::-webkit-inner-spin-button,
.stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.md-toolbar {
  display: inline-flex;
  gap: 0.25rem;
}
.md-btn {
  appearance: none;
  border: 1px solid #b8c2a6;
  background: #f5f3e4;
  color: var(--ink);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.74rem;
  cursor: pointer;
}
.md-btn:hover {
  background: #e3ebd6;
}
.cover-preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.form-cover-thumb {
  width: 82px;
  height: 54px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid #aeb99a;
  flex-shrink: 0;
  background: #dce0cf;
}
.cover-preview-inputs {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

/* WhatsApp-style Chat Workspace */
.wa-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.notif-toggle-btn.is-active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: var(--emerald-deep);
}
.wa-chat-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid #b5c0a3;
  border-radius: 10px;
  overflow: hidden;
  background: #f6f4e6;
  min-height: 500px;
}
.wa-sidebar {
  background: #faf8ed;
  border-right: 1px solid #c3ccb3;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 620px;
  overflow-y: auto;
}
.wa-sidebar-search input {
  width: 100%;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: #fffdf5;
  font-size: 0.82rem;
}
.chat-thread-item.wa-thread-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.12s;
}
.wa-thread-item:hover {
  background: #eef1e1;
}
.wa-thread-item.active {
  background: #dfe9d4;
  border-color: #a4b990;
}
.wa-thread-item.is-unread .chat-thread-title {
  font-weight: 700;
  color: var(--emerald-deep);
}
.wa-thread-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d8e4cc;
  color: var(--emerald-deep);
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.wa-thread-avatar[data-kind="group"] {
  background: #245640;
  color: #fff6df;
}
.wa-thread-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}
.wa-thread-top,
.wa-thread-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}
.wa-thread-top .chat-thread-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}
.wa-thread-time {
  font-size: 0.68rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.wa-thread-bottom .chat-thread-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  color: var(--ink-muted);
}
.wa-unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}
.teammate-peer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.teammate-peer .station-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}
.chat-main.wa-chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  background: #ebe9d8;
  background-image: radial-gradient(#8b9b7822 1px, transparent 1px);
  background-size: 16px 16px;
}
.wa-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.wa-active-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  max-height: 620px;
}
.wa-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #245640;
  color: #fff7e3;
  border-bottom: 1px solid #1b4331;
}
.wa-chat-header h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #fff7e3;
}
.wa-chat-header .muted {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #d7e5d2;
}
.wa-chat-header .text-button {
  color: #fff2cc;
}
.wa-chat-peer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.wa-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff6df;
  color: #245640;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.wa-members-drawer {
  background: #faf8ed;
  border-bottom: 1px solid #c3ccb3;
  padding: 0.7rem 1rem;
  max-height: 250px;
  overflow-y: auto;
}
.wa-members-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.wa-members-list {
  display: grid;
  gap: 0.45rem;
}
.wa-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  background: #f1efe0;
  border-radius: 6px;
}
.wa-member-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.wa-member-info .station-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.76rem;
}
.wa-member-info small {
  display: block;
  font-size: 0.7rem;
}
.wa-bubbles {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.wa-bubble {
  max-width: min(78%, 520px);
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  box-shadow: 0 1px 2px #1c2f201a;
  line-height: 1.5;
  font-size: 0.88rem;
}
.wa-bubble p {
  margin: 0.2rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wa-bubble.theirs {
  align-self: flex-start;
  background: #fffdf5;
  border: 1px solid #cfd6be;
  border-top-left-radius: 3px;
}
.wa-bubble.mine {
  align-self: flex-end;
  background: #d8ecd4;
  border: 1px solid #9ec29d;
  border-top-right-radius: 3px;
}
.wa-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.wa-msg-time {
  font-size: 0.68rem;
}
.msg-block-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0 0.15rem;
  font-size: 0.72rem;
  opacity: 0.45;
  transition: opacity 0.14s;
}
.wa-bubble:hover .msg-block-btn,
.msg-block-btn:focus-visible {
  opacity: 1;
}
.wa-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: #f5f3e5;
  border-top: 1px solid #c3ccb3;
}
.wa-composer .field {
  flex: 1;
  margin: 0;
}
.wa-composer textarea {
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  border-radius: 8px;
}
.wa-send-btn {
  min-height: 44px;
  padding: 0 1.1rem;
  flex-shrink: 0;
}

/* Facebook-style Floating Chat Dock (bottom-right) */
.chat-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.chat-dock-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #1b4231;
  background: var(--emerald);
  color: #fff7e3;
  font: 700 0.88rem/1 var(--font-sans);
  cursor: pointer;
  box-shadow: 0 8px 24px #18362544;
  transition: transform 0.14s, background 0.14s;
}
.chat-dock-launcher:hover {
  background: var(--emerald-hover);
  transform: translateY(-1px);
}
.dock-unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d9483b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.chat-dock-window {
  width: min(365px, calc(100vw - 24px));
  height: min(490px, calc(100dvh - 100px));
  background: #faf8ed;
  border: 1px solid #8ea07c;
  border-radius: 12px;
  box-shadow: 0 16px 46px #12281c4a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-dock-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #245640;
  color: #fff7e3;
  border-bottom: 1px solid #b79b5b;
}
.chat-dock-title-wrap {
  flex: 1;
  min-width: 0;
}
.chat-dock-title-wrap strong {
  display: block;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-dock-title-wrap small {
  display: block;
  font-size: 0.7rem;
  color: #d6e4d1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-dock-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.dock-icon-btn {
  appearance: none;
  border: 0;
  background: #ffffff1f;
  color: #fff7e3;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
}
.dock-icon-btn:hover {
  background: #ffffff38;
}
.chat-dock-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.55rem;
}
.chat-dock-chat-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ebe9d8;
}
.dock-subbar {
  padding: 0.35rem 0.7rem;
  background: #f3f0df;
  border-bottom: 1px solid #c7cfb7;
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
}
.dock-bubbles {
  padding: 0.65rem;
  gap: 0.45rem;
}
.dock-bubbles .wa-bubble {
  max-width: 86%;
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
}
.dock-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  background: #faf8ed;
  border-top: 1px solid #c3ccb3;
}
.dock-composer textarea {
  flex: 1;
  min-height: 36px;
  max-height: 90px;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.84rem;
  resize: none;
}

/* Contextual Block Dialog & Safety */
.block-modal-sheet {
  max-width: 480px;
}
.block-dialog-body {
  display: grid;
  gap: 0.9rem;
}
.block-dialog-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.block-target-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #f2efe0;
  border: 1px solid #c3ccb3;
  border-radius: 8px;
}
.block-dialog-actions {
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.safety-subhead {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.safety-advanced-fold {
  margin-top: 0;
}

@media (max-width: 820px) {
  .datetime-split {
    grid-template-columns: 1fr;
  }
  .wa-chat-layout {
    grid-template-columns: 1fr;
  }
  .wa-sidebar {
    border-right: 0;
    border-bottom: 1px solid #c3ccb3;
    max-height: 260px;
  }
  .chat-dock {
    right: 12px;
    bottom: 12px;
  }
}

/* ==========================================================================
   OTRAS PARADAS · Boletos de transbordo por comunidad + Tarifa en USD
   ========================================================================== */

.ticket-band-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ticket-community-seal {
  font: 700 0.66rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ffffff24;
  color: #fff9ec;
  border: 1px solid #ffffff52;
  white-space: nowrap;
}

.ticket-fare {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #aeb896;
  background: #f8f5e5;
  text-align: center;
  margin-bottom: 4px;
}

.ticket-fare small {
  font: 700 0.52rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

.ticket-fare strong {
  font: 700 1.05rem/1.15 var(--font-display);
  letter-spacing: -0.01em;
}

.ticket-fare span {
  font-size: 0.62rem;
  line-height: 1.3;
  opacity: 0.82;
}

.ticket-fare.fare-free {
  background: #e5efe0;
  border-color: #9bb88e;
  color: #1f4d35;
}

.ticket-fare.fare-paid {
  background: #fdf1d4;
  border-color: #c89b3c;
  color: #66420a;
  box-shadow: inset 0 0 0 1px #e5c67866;
}

.ticket-fare.fare-unknown {
  background: #f1efe4;
  border-color: #bcbca4;
  color: #4f5848;
}

/* Base transfer styling for external stops */
.station-ticket.source-external {
  box-shadow: 0 6px 16px #1b1d2824;
}

.station-ticket.source-external .ticket-story {
  border-left-width: 4px;
}

/* 1. MESASROLERAS — Expreso Púrpura (Índigo & Lavanda) */
.station-ticket.stop-mesasroleras {
  background: #ece5f7;
}
.station-ticket.stop-mesasroleras .ticket-main {
  background: #dfd6f0;
}
.station-ticket.stop-mesasroleras .ticket-band,
.station-ticket.stop-mesasroleras .ticket-stub-band,
.station-ticket.stop-mesasroleras .ticket-open {
  background: #3f236b;
  color: #fbf7ff;
}
.station-ticket.stop-mesasroleras .ticket-story {
  background: #f8f4ff;
  border-color: #c4b3e0;
  border-left-color: #6a3cb5;
}
.station-ticket.stop-mesasroleras .ticket-facts > div {
  background: #f0e8fb;
  border-color: #c4b3e0;
}
.station-ticket.stop-mesasroleras .ticket-stub {
  background: #eae1f7;
  border-left-color: #8c6ec0;
  color: #2b1a47;
}
.station-ticket.stop-mesasroleras .ticket-format {
  background: #f3ebff;
  color: #3f236b;
}

/* 2. JUGUEMOSROL — Ramal Sur (Terracota & Arena) */
.station-ticket.stop-juguemosrol {
  background: #f6e7d8;
}
.station-ticket.stop-juguemosrol .ticket-main {
  background: #ebd7c2;
}
.station-ticket.stop-juguemosrol .ticket-band,
.station-ticket.stop-juguemosrol .ticket-stub-band,
.station-ticket.stop-juguemosrol .ticket-open {
  background: #923b22;
  color: #fff6ee;
}
.station-ticket.stop-juguemosrol .ticket-story {
  background: #fdf6ee;
  border-color: #dbb99b;
  border-left-color: #c2512f;
}
.station-ticket.stop-juguemosrol .ticket-facts > div {
  background: #f7ebde;
  border-color: #dbb99b;
}
.station-ticket.stop-juguemosrol .ticket-stub {
  background: #f3e2d1;
  border-left-color: #bd7356;
  color: #4a2013;
}
.station-ticket.stop-juguemosrol .ticket-format {
  background: #ffefe2;
  color: #85331c;
}

/* 3. STARTPLAYING (ES) — Coche Pullman (Obsidiana & Oro) */
.station-ticket.stop-startplaying {
  background: #efe8d5;
  box-shadow: 0 7px 20px #151c282b;
}
.station-ticket.stop-startplaying .ticket-main {
  background: #d8d3c5;
}
.station-ticket.stop-startplaying .ticket-band,
.station-ticket.stop-startplaying .ticket-stub-band,
.station-ticket.stop-startplaying .ticket-open {
  background: #1d2735;
  color: #f6d98c;
}
.station-ticket.stop-startplaying .ticket-community-seal {
  background: #c89b3c2e;
  border-color: #d9b15f99;
  color: #fce29f;
}
.station-ticket.stop-startplaying .ticket-story {
  background: #faf6eb;
  border-color: #c7b07b;
  border-left-color: #b7892b;
}
.station-ticket.stop-startplaying .ticket-facts > div {
  background: #f3ecdb;
  border-color: #ccb787;
}
.station-ticket.stop-startplaying .ticket-stub {
  background: #eae2cc;
  border-left: 2px dashed #a88743;
  color: #1f2733;
}
.station-ticket.stop-startplaying .ticket-format {
  background: #f6e7be;
  color: #4f380d;
}

/* 4. MEEPLAY — Línea Costera (Turquesa & Bruma Marina) */
.station-ticket.stop-meeplay {
  background: #dff0ee;
}
.station-ticket.stop-meeplay .ticket-main {
  background: #cfe5e2;
}
.station-ticket.stop-meeplay .ticket-band,
.station-ticket.stop-meeplay .ticket-stub-band,
.station-ticket.stop-meeplay .ticket-open {
  background: #135d66;
  color: #effbfa;
}
.station-ticket.stop-meeplay .ticket-story {
  background: #f2faf9;
  border-color: #9ecbc6;
  border-left-color: #167a85;
}
.station-ticket.stop-meeplay .ticket-facts > div {
  background: #e6f4f2;
  border-color: #9ecbc6;
}
.station-ticket.stop-meeplay .ticket-stub {
  background: #d9ecea;
  border-left-color: #539aa1;
  color: #123c42;
}
.station-ticket.stop-meeplay .ticket-format {
  background: #e1f6f4;
  color: #11525a;
}

/* 5. ROLL20 (ES) — Línea Virtual (Ciruela & Rosa Marfil) */
.station-ticket.stop-roll20 {
  background: #f4e4ee;
}
.station-ticket.stop-roll20 .ticket-main {
  background: #e7d1df;
}
.station-ticket.stop-roll20 .ticket-band,
.station-ticket.stop-roll20 .ticket-stub-band,
.station-ticket.stop-roll20 .ticket-open {
  background: #7a1c50;
  color: #fff3fa;
}
.station-ticket.stop-roll20 .ticket-story {
  background: #fcf3f8;
  border-color: #d4a9c3;
  border-left-color: #a6286f;
}
.station-ticket.stop-roll20 .ticket-facts > div {
  background: #f5e7f0;
  border-color: #d4a9c3;
}
.station-ticket.stop-roll20 .ticket-stub {
  background: #f0dfea;
  border-left-color: #ad5c8b;
  color: #471230;
}
.station-ticket.stop-roll20 .ticket-format {
  background: #fce6f2;
  color: #7a1c50;
}

/* ==========================================================================
   PANEL /ADMIN · Fuentes externas y selector de partidas publicadas
   ========================================================================== */

.admin-page-shell {
  max-width: 1220px;
  margin: 26px auto 64px;
  padding: 0 22px;
  display: grid;
  gap: 24px;
}

.admin-card {
  background: var(--paper-surface);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.admin-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #d4dac2;
  padding-bottom: 14px;
}

.admin-card-header h1,
.admin-card-header h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.admin-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.admin-source-tile {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #c3ccb3;
  background: #f3f1e2;
  transition: opacity 0.16s, border-color 0.16s;
}

.admin-source-tile.is-disabled {
  opacity: 0.62;
  background: #eceadd;
}

.admin-source-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-source-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.admin-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #e2e8d5;
  color: #254835;
}

.admin-pill.is-live {
  background: #d7ecdc;
  color: #165433;
}

.admin-pill.is-proto {
  background: #f2e8cf;
  color: #6b4d12;
}

.admin-pill.is-off {
  background: #ecd7d7;
  color: #7c2424;
}

.admin-pill.is-paid {
  background: #fdf1d4;
  color: #66420a;
  border: 1px solid #d2aa52;
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  user-select: none;
}

.admin-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald);
  cursor: pointer;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.admin-toolbar .field {
  display: grid;
  gap: 5px;
  min-width: 180px;
  flex: 1 1 200px;
}

.admin-toolbar label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.admin-toolbar select,
.admin-toolbar input {
  background: #fffdf5;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 0.86rem;
  color: var(--ink);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd2bc;
  border-radius: 8px;
  background: #fffdf6;
}

.admin-games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-games-table th,
.admin-games-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e4e7d7;
  vertical-align: middle;
}

.admin-games-table th {
  background: #edf0e0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.admin-games-table tr:last-child td {
  border-bottom: 0;
}

.admin-game-title {
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.admin-game-sub {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   TABLERO UNIFICADO · Filtros siempre abiertos + Calendario integrado
   ========================================================================== */

.station-control-board {
  background: #faf8ed;
  border: 1px solid #aeb99d;
  border-radius: 12px;
  box-shadow: 0 4px 16px #243a2510;
  overflow: hidden;
  margin-bottom: 18px;
}

.unified-explorer {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 20px 22px 18px !important;
}

.unified-filters {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.unified-filters-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #c8d1b8;
}

.unified-filters-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.unified-explorer .explorer-filters-panel {
  display: grid !important;
  gap: 14px;
}

.unified-explorer .filter-group-block {
  display: grid;
  gap: 7px;
}

.unified-explorer .filter-group-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: #4f6148;
}

.unified-explorer .sys-chip,
.unified-explorer .mini-chip {
  border-radius: 999px;
  padding: 6px 13px;
  min-height: 34px;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.unified-explorer .sys-chip:hover,
.unified-explorer .mini-chip:hover {
  background: #edf3e5;
  border-color: #7e9870;
}

.unified-explorer .sys-chip.active,
.unified-explorer .mini-chip.active {
  background: var(--emerald);
  color: #fff8e8;
  border-color: var(--emerald);
  box-shadow: none;
}

.multiselect-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4b6148;
  background: #edf2e3;
  border: 1px solid #c6d2b6;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Elegant multi-select affordance: subtle check on active non-"all" chips */
.sys-chip:not([data-community-filter=""]):not([data-system-filter=""])::after,
.mini-chip:not([data-format-filter=""]):not([data-experience-filter=""]):not([data-day-filter=""]):not([data-price-filter=""])::after {
  content: "+";
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.35;
  transition: opacity 0.14s, transform 0.14s;
}

.sys-chip:hover::after,
.mini-chip:hover::after {
  opacity: 0.75;
}

.sys-chip.active:not([data-community-filter=""]):not([data-system-filter=""])::after,
.mini-chip.active:not([data-format-filter=""]):not([data-experience-filter=""]):not([data-day-filter=""]):not([data-price-filter=""])::after {
  content: "✓";
  opacity: 1;
}

.community-dot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

.dot-terminal::before { background: #245640; }
.dot-mesasroleras::before { background: #6a3cb5; }
.dot-juguemosrol::before { background: #c2512f; }
.dot-startplaying::before { background: #c89b3c; }
.dot-meeplay::before { background: #167a85; }
.dot-roll20::before { background: #a6286f; }

.unified-explorer .sys-chip.active.community-dot::before {
  box-shadow: 0 0 0 1.5px #fff8e8;
}

.unified-explorer .composable-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 18px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px dashed #c8d1b8;
}

.unified-agenda {
  margin: 0 !important;
  gap: 0 !important;
  border-top: 2px solid #d4dac2;
  background: #f4f2e2;
}

.unified-agenda .station-fold {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.unified-agenda #station-month > summary {
  padding: 12px 22px 6px;
  min-height: 0;
  border-bottom: 0;
  font: 700 0.68rem/1.4 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f6148;
}

.unified-agenda .fold-content {
  padding: 10px 22px 20px;
}

.unified-agenda .agenda-navigation-status {
  padding: 0 22px 14px;
}

/* Admin KPI metrics */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.admin-kpi-card {
  background: #f4f2e3;
  border: 1px solid #c6cfb7;
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.admin-kpi-card small {
  font: 700 0.64rem/1.3 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.admin-kpi-card strong {
  font: 400 1.85rem/1.1 var(--font-display);
  color: var(--emerald-deep);
}

.admin-kpi-card span {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.admin-breakdown-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #c8d1b8;
}

/* ==========================================================================
   MODAL CON ESTILO DE TICKET SEGÚN COMUNIDAD
   ========================================================================== */

.detail-modal-sheet[data-community="mesasroleras"] {
  background: #f8f4ff;
  border-color: #9e82cc;
  color: #2b1a47;
}
.detail-modal-sheet[data-community="mesasroleras"] .detail-panel-bar {
  background: #3f236b;
  color: #fbf7ff;
  border-bottom-color: #8c6ec0;
}
.detail-modal-sheet[data-community="mesasroleras"] .detail-panel-bar .button {
  background: #f3ebff;
  color: #3f236b;
}
.detail-modal-sheet[data-community="mesasroleras"] #detail-primary-cta .button-primary {
  background: #3f236b;
  border-color: #3f236b;
  color: #fbf7ff;
}
.detail-modal-sheet[data-community="mesasroleras"] #detail-primary-cta .button-primary:hover {
  background: #52308a;
}

.detail-modal-sheet[data-community="juguemosrol"] {
  background: #fdf6ee;
  border-color: #c9886b;
  color: #4a2013;
}
.detail-modal-sheet[data-community="juguemosrol"] .detail-panel-bar {
  background: #923b22;
  color: #fff6ee;
  border-bottom-color: #d49674;
}
.detail-modal-sheet[data-community="juguemosrol"] .detail-panel-bar .button {
  background: #ffefe2;
  color: #85331c;
}
.detail-modal-sheet[data-community="juguemosrol"] #detail-primary-cta .button-primary {
  background: #923b22;
  border-color: #923b22;
  color: #fff6ee;
}
.detail-modal-sheet[data-community="juguemosrol"] #detail-primary-cta .button-primary:hover {
  background: #ad492c;
}

.detail-modal-sheet[data-community="startplaying"] {
  background: #faf6eb;
  border-color: #b7892b;
  color: #1f2733;
}
.detail-modal-sheet[data-community="startplaying"] .detail-panel-bar {
  background: #1d2735;
  color: #f6d98c;
  border-bottom-color: #c89b3c;
}
.detail-modal-sheet[data-community="startplaying"] .detail-panel-bar .button {
  background: #f6e7be;
  color: #2f2309;
}
.detail-modal-sheet[data-community="startplaying"] #detail-primary-cta .button-primary {
  background: #1d2735;
  border-color: #c89b3c;
  color: #f6d98c;
}
.detail-modal-sheet[data-community="startplaying"] #detail-primary-cta .button-primary:hover {
  background: #2a384c;
}

.detail-modal-sheet[data-community="meeplay"] {
  background: #f2faf9;
  border-color: #69aba6;
  color: #123c42;
}
.detail-modal-sheet[data-community="meeplay"] .detail-panel-bar {
  background: #135d66;
  color: #effbfa;
  border-bottom-color: #69aba6;
}
.detail-modal-sheet[data-community="meeplay"] .detail-panel-bar .button {
  background: #e1f6f4;
  color: #11525a;
}
.detail-modal-sheet[data-community="meeplay"] #detail-primary-cta .button-primary {
  background: #135d66;
  border-color: #135d66;
  color: #effbfa;
}
.detail-modal-sheet[data-community="meeplay"] #detail-primary-cta .button-primary:hover {
  background: #197480;
}

.detail-modal-sheet[data-community="roll20"] {
  background: #fcf3f8;
  border-color: #ba7ca0;
  color: #471230;
}
.detail-modal-sheet[data-community="roll20"] .detail-panel-bar {
  background: #7a1c50;
  color: #fff3fa;
  border-bottom-color: #c789ad;
}
.detail-modal-sheet[data-community="roll20"] .detail-panel-bar .button {
  background: #fce6f2;
  color: #7a1c50;
}
.detail-modal-sheet[data-community="roll20"] #detail-primary-cta .button-primary {
  background: #7a1c50;
  border-color: #7a1c50;
  color: #fff3fa;
}
.detail-modal-sheet[data-community="roll20"] #detail-primary-cta .button-primary:hover {
  background: #962463;
}

/* ==========================================================================
   DOCK STICKY ÚNICO · Barra compacta arriba de partidas + panel expandible con filtros y calendario
   ========================================================================== */

.sticky-station-dock {
  position: sticky;
  top: calc(var(--header-offset, 92px) - 10px);
  z-index: 25;
  background: #faf7eaf7;
  border: 1px solid #aeb99d;
  border-radius: 12px;
  box-shadow: 0 6px 20px #1f33221c;
  backdrop-filter: blur(12px);
  overflow: visible;
  margin-bottom: 20px;
}

.dock-compact-row {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.dock-search-wrap {
  flex: 1 1 220px;
  min-width: 170px;
}

.dock-search-wrap input {
  padding-top: 8px;
  padding-bottom: 8px;
  min-height: 38px;
  font-size: 0.84rem;
}

.dock-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dock-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 13px;
  font-weight: 600;
}

.dock-expanded-panel {
  position: absolute;
  left: -1px;
  right: -1px;
  top: 100%;
  border: 1px solid #aeb99d;
  border-top: 1px dashed #c8d1b8;
  background: #f6f4e7;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 42px #182b1e2e;
  max-height: 74vh;
  overflow-y: auto;
  z-index: 30;
}

.dock-expanded-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.95fr);
  gap: 20px;
  padding: 16px 18px 18px;
  align-items: start;
}

.dock-expanded-grid .unified-filters {
  margin-top: 0;
}

.dock-expanded-grid .sys-chip,
.dock-expanded-grid .mini-chip {
  border-radius: 999px;
  padding: 5px 12px;
  min-height: 32px;
  font-weight: 600;
}

.dock-expanded-grid .sys-chip.active,
.dock-expanded-grid .mini-chip.active {
  background: var(--emerald);
  color: #fff8e8;
  border-color: var(--emerald);
  box-shadow: none;
}

.dock-calendar-col {
  margin: 0 !important;
  padding-left: 18px;
  border-left: 1px solid #d4dac2;
}

.dock-calendar-col .station-fold {
  border: 0;
  background: transparent;
}

.dock-calendar-col #station-month > summary {
  padding: 0 0 8px;
  min-height: 0;
  border-bottom: 0;
  font: 700 0.65rem/1.4 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f6148;
}

.dock-calendar-col .fold-content {
  padding: 0;
}

@media (max-width: 960px) {
  .dock-expanded-grid {
    grid-template-columns: 1fr;
  }
  .dock-calendar-col {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid #d4dac2;
  }
}

.back-to-top-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 28;
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 42px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 6px 18px #18322233;
}

@media (max-width: 780px) {
  .back-to-top-fab {
    left: 12px;
    bottom: 14px;
    padding: 8px 13px;
    min-height: 38px;
  }
}

.floating-date-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef1e2;
  border: 1px solid #bcc6ab;
  border-radius: 999px;
  padding: 3px 6px;
}

.floating-icon-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.floating-icon-btn:hover {
  background: #dbe3cc;
}

.floating-date-nav input[type="date"] {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 4px;
  cursor: pointer;
}

.floating-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.floating-count-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--emerald-deep);
  background: #e2ebd8;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.floating-filter-drawer {
  border-top: 1px dashed #c8d1b8;
  background: #f6f4e6;
  max-height: 70vh;
  overflow-y: auto;
}

.floating-drawer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 22px 18px;
  display: grid;
  gap: 12px;
}

.floating-drawer-inner .sys-chip,
.floating-drawer-inner .mini-chip {
  border-radius: 999px;
  padding: 5px 12px;
  min-height: 32px;
  font-weight: 600;
}

.floating-drawer-inner .sys-chip.active,
.floating-drawer-inner .mini-chip.active {
  background: var(--emerald);
  color: #fff8e8;
  border-color: var(--emerald);
  box-shadow: none;
}

@media (max-width: 780px) {
  .floating-bar-inner {
    padding: 8px 12px;
    gap: 8px;
  }
  .floating-count-pill {
    display: none;
  }
}

/* Detail modal external stop banner */
.detail-external-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 15px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #c89b3c88;
  background: #fdf6e2;
  color: #4b3511;
  font-size: 0.85rem;
}

.detail-external-fare {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.detail-external-fare small {
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.82;
}
