:root{
  --wk-bg: #f6fbff;
  --wk-ink: #0b1220;
  --wk-muted: #475569;
  --wk-border: rgba(15, 23, 42, .12);
  --wk-card: #ffffff;

  /* Park palette */
  --wk-teal: #0ea5a5;
  --wk-orange: #f97316;
  --wk-purple: #8b5cf6;
}

/* Fallbacks for templates that use Tailwind’s slate palette (in case the bundled Tailwind build didn’t include them). */
.bg-slate-50{ background-color:#f8fafc; }
.bg-slate-100{ background-color:#f1f5f9; }
.bg-slate-200{ background-color:#e2e8f0; }
.bg-slate-950{ background-color:#020617; }
.text-slate-900{ color:#0f172a; }
.text-slate-800{ color:#1e293b; }
.text-slate-700{ color:#334155; }
.text-slate-600{ color:#475569; }
.text-slate-500{ color:#64748b; }
.text-slate-400{ color:#94a3b8; }
.border-slate-100{ border-color:#f1f5f9; }
.border-slate-200{ border-color:#e2e8f0; }
.border-slate-300{ border-color:#cbd5e1; }
.border-red-200{ border-color:#fecaca; }

/* Layout + “sky band” */
.wk-page{
  background:
    radial-gradient(1000px 420px at 18% -10%, rgba(14,165,165,.22), transparent 55%),
    radial-gradient(900px 380px at 82% -18%, rgba(139,92,246,.18), transparent 52%),
    linear-gradient(180deg, #eff9ff 0%, var(--wk-bg) 220px);
  color: var(--wk-ink);
}

.wk-page > :not(.wk-sky){
  position: relative;
  z-index: 1;
}

.wk-sky{
  position: fixed;
  inset: 0 0 auto 0;
  height: 190px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,0)),
    radial-gradient(130px 64px at 18% 48%, rgba(255,255,255,.72), rgba(255,255,255,0) 70%),
    radial-gradient(160px 74px at 52% 32%, rgba(255,255,255,.65), rgba(255,255,255,0) 72%),
    radial-gradient(140px 70px at 82% 56%, rgba(255,255,255,.60), rgba(255,255,255,0) 70%);
  transform: translate3d(0,0,0);
  animation: wk-drift 52s linear infinite;
  opacity: .9;
}

/* Containers */
.wk-container{
  width: 100%;
  max-width: 42rem; /* ~max-w-2xl */
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px){
  .wk-container--wide{
    width: 96vw;
    max-width: 1600px;
  }
}

@keyframes wk-drift{
  from{ transform: translate3d(-2.5%, 0, 0); }
  to{ transform: translate3d(2.5%, 0, 0); }
}

@media (prefers-reduced-motion: reduce){
  .wk-sky{ animation: none; }
  .wk-anim{ animation: none !important; transition: none !important; }
}

/* Focus + tap targets */
:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline: 3px solid rgba(14,165,165,.35);
  outline-offset: 2px;
}

button, a.wk-btn{ min-height: 44px; }

/* Components */
.wk-card{
  background: var(--wk-card);
  border: 1px solid var(--wk-border);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
}

.wk-card--soft{
  background: rgba(255,255,255,.92);
}

.wk-panel{
  background: rgba(255,255,255,.86);
  border: 1px solid var(--wk-border);
  border-radius: 16px;
}

.wk-field{
  background: rgba(255,255,255,.88);
  border: 1px solid var(--wk-border);
  border-radius: 14px;
}

.wk-accent{ color: var(--wk-teal); }
.wk-accent--orange{ color: var(--wk-orange); }
.wk-accent--purple{ color: var(--wk-purple); }
.wk-accent-input{ accent-color: var(--wk-teal); }

.wk-state--active{
  background: rgba(14,165,165,.14);
  border-color: rgba(14,165,165,.28);
  color: rgba(15, 118, 110, 1);
}
.wk-state--closed{
  background: rgba(148, 163, 184, .22);
  border-color: rgba(148, 163, 184, .34);
  color: rgba(30, 41, 59, .92);
}
.wk-state--idle{
  background: rgba(2, 6, 23, .05);
  border-color: rgba(148, 163, 184, .30);
  color: rgba(51, 65, 85, .92);
}

.wk-announcement{
  border-radius: 16px;
  padding: .75rem;
}
.wk-announcement--session{
  background: rgba(14,165,165,.12);
  border: 1px solid rgba(14,165,165,.22);
}
.wk-announcement--room{
  background: rgba(249,115,22,.10);
  border: 1px solid rgba(249,115,22,.22);
}
.wk-announcement--participant{
  background: rgba(139,92,246,.10);
  border: 1px solid rgba(139,92,246,.20);
}

/* Participant overlay announcements: make them read as "attention/warning" regardless of scope. */
.wk-announcement--toast{
  background: linear-gradient(135deg, rgba(255, 247, 237, .98), rgba(255, 237, 213, .92));
  border: 1px solid rgba(249,115,22,.38);
  box-shadow:
    inset 6px 0 0 var(--wk-toast-accent, var(--wk-orange)),
    0 18px 46px rgba(249,115,22,.18),
    0 10px 22px rgba(2, 6, 23, .10);
}
.wk-announcement--toast.wk-announcement--session{ --wk-toast-accent: var(--wk-teal); }
.wk-announcement--toast.wk-announcement--room{ --wk-toast-accent: #ea580c; }
.wk-announcement--toast.wk-announcement--participant{ --wk-toast-accent: var(--wk-purple); }

.wk-divider{
  height: 10px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg,
      rgba(249,115,22,.0) 0px,
      rgba(249,115,22,.0) 10px,
      rgba(249,115,22,.28) 10px,
      rgba(249,115,22,.28) 18px),
    linear-gradient(90deg, rgba(14,165,165,.20), rgba(139,92,246,.18));
  border: 1px solid rgba(15, 23, 42, .10);
}

.wk-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem .95rem;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.1;
  user-select: none;
  transform: translate3d(0,0,0);
  transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.wk-btn:active{ transform: translate3d(0, 1px, 0); }
.wk-btn:disabled{
  opacity: .55;
  transform: none;
}

.wk-btn-primary{
  color: #fff;
  background: linear-gradient(135deg, rgba(14,165,165,1), rgba(139,92,246,1));
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 14px 26px rgba(14,165,165,.18);
}

.wk-btn-primary:hover{ box-shadow: 0 16px 30px rgba(139,92,246,.16); }

.wk-btn-secondary{
  background: #fff;
  color: var(--wk-ink);
  border: 1px solid rgba(148, 163, 184, .7);
  box-shadow: 0 10px 18px rgba(2, 6, 23, .05);
}

/* Main dashboard (facilitator display-only) */
.wk-page.wk-main-dashboard{
  background-image: url('/static/img/park-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@supports (-webkit-touch-callout: none){
  /* iOS Safari struggles with background-attachment: fixed (jank / blank areas). */
  .wk-page.wk-main-dashboard{ background-attachment: scroll; }
}
.wk-main-dashboard .wk-sky{
  opacity: .25;
}
.wk-main-dashboard .wk-card{
  background: rgba(255,255,255,.95);
}
.wk-main-dashboard .wk-panel{
  background: rgba(255,255,255,.95);
}

.wk-main-dashboard .wk-md-scene-controls{
  position: fixed;
  top: 64px;
  right: 16px;
  z-index: 46;
  pointer-events: auto;
}

.wk-main-dashboard .wk-md-scene{
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.wk-main-dashboard .wk-md-scene__stage{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
}

.wk-main-dashboard .wk-md-scene__layer{
  opacity: 0;
  transition: opacity var(--wk-md-fade-ms, 180ms) ease-in-out;
  transform: translate3d(0,0,0);
  will-change: opacity;
}
.wk-main-dashboard .wk-md-scene__layer[data-visible="1"]{ opacity: 1; }

.wk-main-dashboard .wk-md-scene__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.wk-main-dashboard .wk-md-scene__ride{
  position: absolute;
  z-index: 6;
  max-width: 100%;
  height: auto;
}

.wk-main-dashboard .wk-md-scene__person{
  position: absolute;
  z-index: 12;
  font-size: var(--wk-md-person-font, 40px);
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(2, 6, 23, .35));
}

.wk-main-dashboard .wk-md-scene__alert{
  position: absolute;
  z-index: 14;
  font-size: var(--wk-md-alert-font, 72px);
  line-height: 1;
  filter: drop-shadow(0 14px 24px rgba(2, 6, 23, .45));
}

.wk-main-dashboard .wk-md-scene__badge{
  position: absolute;
  z-index: 18;
  padding: var(--wk-md-badge-pad-y, 12px) var(--wk-md-badge-pad-x, 18px);
  border-radius: var(--wk-md-badge-radius, 18px);
  text-align: center;
  font-weight: 900;
  font-size: var(--wk-md-badge-font, 24px);
  line-height: 1.15;
  letter-spacing: .01em;
  color: rgba(255,255,255,.96);
  text-shadow: 0 10px 22px rgba(2, 6, 23, .45);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, var(--wk-md-badge-opacity, .28)), rgba(2, 6, 23, calc(var(--wk-md-badge-opacity, .28) + .06))),
    radial-gradient(240px 80px at 50% -20%, rgba(255,255,255,.22), transparent 55%);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 18px 36px rgba(2, 6, 23, .22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.wk-main-dashboard .wk-md-root{
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wk-main-dashboard .wk-md-hud{
  position: fixed;
  top: auto;
  bottom: 16px;
  left: 16px;
  z-index: 45;
  color: rgba(255,255,255,.96);
  text-shadow: 0 10px 22px rgba(2, 6, 23, .45);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: .02em;
}
.wk-main-dashboard .wk-md-hud__row{
  display: flex;
  gap: 6px;
  line-height: 1.2;
}
.wk-main-dashboard .wk-md-hud__k{
  opacity: .78;
}
.wk-main-dashboard .wk-md-hud__v{
  opacity: 1;
}

.wk-main-dashboard .wk-md-top{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wk-main-dashboard .wk-md-score-row{
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.wk-main-dashboard .wk-md-score-row::-webkit-scrollbar{ display: none; }

.wk-main-dashboard .wk-md-score-card{
  border-radius: 18px;
  background: rgba(255,255,255,.80);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 14px;
  box-shadow: 0 16px 30px rgba(2, 6, 23, .14);
  flex: 1 1 0;
  min-width: 150px;
  height: 132px;
}
.wk-main-dashboard .wk-md-score-card .wk-md-card__value{
  font-size: 34px;
  margin-top: 8px;
}
.wk-main-dashboard .wk-md-score-card .wk-md-card__icon{
  width: 64px;
  height: 64px;
  right: 10px;
  top: 10px;
  opacity: .22;
}
.wk-main-dashboard .wk-md-score-card .wk-md-delta{
  right: 10px;
  bottom: 10px;
  min-width: 0;
  height: auto;
  padding: 7px 10px 6px 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  border-radius: 14px;
}
.wk-main-dashboard .wk-md-score-card .wk-md-delta__delta{
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.wk-main-dashboard .wk-md-score-card .wk-md-delta__base{
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  opacity: .65;
}

.wk-main-dashboard .wk-md-visitors{
  text-align: center;
  padding: 10px 0 2px 0;
}
.wk-main-dashboard .wk-md-visitors__label{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(255,255,255,.85);
  text-shadow: 0 10px 22px rgba(2, 6, 23, .45);
}
.wk-main-dashboard .wk-md-visitors__value{
  margin-top: 4px;
  font-size: 56px;
  line-height: 1;
  font-weight: 950;
  color: rgba(255,255,255,.96);
  text-shadow: 0 18px 36px rgba(2, 6, 23, .55);
  font-variant-numeric: tabular-nums;
}

.wk-main-dash-events{
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 44;
  pointer-events: none;
  width: auto;
  max-width: 60vw;
  max-width: min(44rem, 60vw);
}

.wk-main-dash-joinqrs-fixed{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wk-main-dash-joinqrs-row{
  display: flex;
  align-items: center;
  gap: 12px;
}
.wk-main-dash-screenshot{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(148,163,184,.45);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.10);
}
.wk-main-dash-screenshot__input{
  width: 140px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.55);
  background: rgba(255,255,255,.92);
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}
.wk-main-dash-screenshot__btn{
  min-height: 34px;
  padding: .45rem .7rem;
  font-size: 12px;
  border-radius: 12px;
}
.wk-main-dashboard .wk-main-dash-joinqrs-fixed .wk-main-dash-joinqr__label{
  color: rgba(255,255,255,.95);
  text-shadow: 0 10px 22px rgba(2, 6, 23, .55);
}

.wk-facilitator-overlay{
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.wk-facilitator-overlay__toggle{
  position: static;
  z-index: 46;
  pointer-events: auto;
  width: 100%;
}
.wk-facilitator-overlay__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .40);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.wk-facilitator-overlay__panel{
  position: fixed;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  width: auto;
  height: auto;
  max-height: none;
  overflow: auto;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(148, 163, 184, .55);
  box-shadow: 0 24px 60px rgba(2, 6, 23, .28);
  pointer-events: auto;
  padding: 12px;
}
.wk-facilitator-overlay__panelhead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wk-md-card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  padding: 14px 14px 44px 14px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .08);
}
.wk-md-card > *{
  position: relative;
  z-index: 1;
}
.wk-md-card__icon{
  position: absolute;
  right: 12px;
  top: 12px;
  width: 56px;
  height: 56px;
  opacity: .22;
  z-index: 0;
}
.wk-md-card--good .wk-md-card__icon{ color: rgba(34,197,94,1); }
.wk-md-card--teal .wk-md-card__icon{ color: rgba(14,165,165,1); }
.wk-md-card--purple .wk-md-card__icon{ color: rgba(139,92,246,1); }
.wk-md-card--amber .wk-md-card__icon{ color: rgba(245,158,11,1); }
.wk-md-card--orange .wk-md-card__icon{ color: rgba(249,115,22,1); }
.wk-md-card--slate .wk-md-card__icon{ color: rgba(100,116,139,1); }
.wk-md-card--rose .wk-md-card__icon{ color: rgba(244,63,94,1); }
.wk-md-card--hot .wk-md-card__icon{ color: rgba(239,68,68,1); }
.wk-md-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.wk-md-card__label{
  font-size: 12px;
  color: rgba(30, 41, 59, .75);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.wk-md-card__value{
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
  margin-top: 6px;
}
.wk-md-card__sub{
  font-size: 13px;
  color: rgba(30, 41, 59, .85);
  margin-top: 2px;
}
.wk-md-card__base{
  font-size: 12px;
  color: rgba(71, 85, 105, .9);
  margin-top: 6px;
  padding-right: 80px;
}
.wk-md-delta{
  position: absolute;
  right: 12px;
  bottom: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 44px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .06);
  border: 1px solid rgba(2, 6, 23, .10);
  color: rgba(15, 23, 42, .92);
  font-size: 12px;
  font-weight: 900;
}
.wk-md-card::before{
  content: '';
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 160px;
  background: radial-gradient(120px 90px at 18% 45%, rgba(14,165,165,.22), rgba(255,255,255,0) 70%),
              radial-gradient(140px 100px at 68% 10%, rgba(139,92,246,.18), rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.wk-btn-purple{
  color: #fff;
  background: var(--wk-purple);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 14px 26px rgba(139,92,246,.18);
}

.wk-btn-purple:hover{ box-shadow: 0 16px 30px rgba(139,92,246,.22); }

.wk-btn-ghost{
  background: transparent;
  color: var(--wk-ink);
  border: 1px solid transparent;
}

.wk-chip{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .75);
  background: rgba(255,255,255,.85);
  color: rgba(30, 41, 59, .95);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.wk-chip--teal{ border-color: rgba(14,165,165,.40); }
.wk-chip--green{
  border-color: rgba(16,185,129,.38);
  background: rgba(16,185,129,.10);
  color: rgba(6,95,70,.98);
}
.wk-chip--orange{ border-color: rgba(249,115,22,.40); }
.wk-chip--amber{
  border-color: rgba(245,158,11,.38);
  background: rgba(245,158,11,.12);
  color: rgba(146,64,14,.98);
}
.wk-chip--purple{ border-color: rgba(139,92,246,.42); }
.wk-chip--slate{
  border-color: rgba(148, 163, 184, .82);
  background: rgba(248, 250, 252, .92);
  color: rgba(30, 41, 59, .95);
}

.wk-chip--delta-up{
  border-color: rgba(16,185,129,.38);
  background: rgba(16,185,129,.14);
  color: rgba(6,95,70,.98);
}
.wk-chip--delta-down{
  border-color: rgba(249,115,22,.40);
  background: rgba(249,115,22,.14);
  color: rgba(154,52,18,.98);
}
.wk-chip--delta-changed{
  border-color: rgba(16,185,129,.30);
  background: rgba(16,185,129,.10);
  color: rgba(6,95,70,.98);
}

.wk-delta-inline{
  display: inline-flex;
  align-items: center;
  padding: .08rem .35rem;
  border-radius: .6rem;
}
.wk-delta-inline--changed{
  border: 1px solid rgba(16,185,129,.24);
  background: rgba(16,185,129,.10);
  color: rgba(6,95,70,.98);
}

.wk-badge{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

/* Tabs */
.wk-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .75);
  background: rgba(255,255,255,.88);
  color: rgba(30, 41, 59, .95);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.wk-tab:active{ transform: translate3d(0, 1px, 0); }
.wk-tab--active{
  color: #fff;
  background: linear-gradient(135deg, rgba(14,165,165,1), rgba(249,115,22,1));
  border-color: rgba(14,165,165,.20);
  box-shadow: 0 14px 26px rgba(14,165,165,.16);
}

.wk-tab--danger{
  border-color: rgba(249,115,22,.34);
  background: rgba(249,115,22,.08);
  color: rgba(154, 52, 18, 1);
}

.wk-btn-danger{
  color: rgba(154, 52, 18, 1);
  background: rgba(249,115,22,.10);
  border: 1px solid rgba(249,115,22,.28);
}

/* Timer “control tower” header */
.wk-tower{
  border: 1px solid rgba(14,165,165,.22);
  background:
    radial-gradient(520px 120px at 18% -30%, rgba(14,165,165,.22), transparent 55%),
    radial-gradient(520px 120px at 82% -35%, rgba(249,115,22,.18), transparent 55%),
    rgba(255,255,255,.92);
}
.wk-tower .wk-tower__time{
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

/* Horizontal tab strip scroll hint */
.wk-tabbar{
  position: relative;
}
.wk-tabbar::before,
.wk-tabbar::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  pointer-events: none;
  z-index: 2;
}
.wk-tabbar::before{
  left: 0;
  background: linear-gradient(90deg, var(--wk-bg), rgba(246,251,255,0));
}
.wk-tabbar::after{
  right: 0;
  background: linear-gradient(270deg, var(--wk-bg), rgba(246,251,255,0));
}

/* Range polish (GPU-friendly) */
input[type="range"].wk-range{
  accent-color: var(--wk-teal);
  height: 28px;
}

/* “Maintenance hatch” details */
.wk-hatch{
  border: 1px solid rgba(139,92,246,.18);
  background:
    linear-gradient(180deg, rgba(139,92,246,.08), rgba(255,255,255,.96)),
    repeating-linear-gradient(135deg,
      rgba(249,115,22,.0) 0px,
      rgba(249,115,22,.0) 10px,
      rgba(249,115,22,.07) 10px,
      rgba(249,115,22,.07) 18px);
}
.wk-hatch > summary{
  list-style: none;
}
.wk-hatch > summary::-webkit-details-marker{ display:none; }

/* Toasts */
#toast-container > div{
  border-radius: 16px !important;
}
#main-dashboard-toast-container > div{
  border-radius: 16px !important;
}

/* Main dashboard: header chips (event "toasts") */
.wk-main-dash-header__events{
  pointer-events: none;
  width: 100%;
}
.wk-page.wk-main-dashboard > .wk-main-dashboard-shell{
  position: relative;
  z-index: 60;
}
.wk-main-dash-header__right{
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
}
.wk-main-dash-header__joinqrs{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.wk-main-dash-joinqr{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.wk-main-dash-joinqr__img{
  width: 60px;
  height: 60px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(148,163,184,.45);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.10);
}
.wk-main-dash-joinqr__fallback{
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  border: 1px dashed rgba(148,163,184,.6);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.wk-main-dash-joinqr__label{
  margin-top: 3px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  color: #475569;
}
.wk-main-dash-header__back{
  align-self: flex-start;
}
@media (min-width: 768px){
  .wk-main-dash-header{
    max-height: 100px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .wk-main-dash-header__events{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 46vw;
    max-width: min(44rem, 46vw);
  }
  .wk-main-dash-header__title{
    padding-right: 12rem;
  }
  .wk-main-dash-header__back{
    align-self: auto;
  }
}

.wk-main-dash-event-chips{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.wk-event-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .75rem;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
  background: linear-gradient(135deg, rgba(249,115,22,1), rgba(139,92,246,1));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 14px 26px rgba(139,92,246,.18), 0 12px 22px rgba(249,115,22,.14);
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}

.wk-toast--event{
  background: linear-gradient(135deg, rgba(249,115,22,1), rgba(139,92,246,1)) !important;
  border-color: rgba(255,255,255,.20) !important;
  color: #fff !important;
}

/* Episodes: dashboard rides typography tweaks */
.table-fixed{
  table-layout: fixed;
}

.wk-episode-ride-title-4x{
  font-size: 400%;
}

.wk-episode-ride-title-3x{
  font-size: 300%;
}

.wk-episode-ride-vote-4x{
  font-size: 400%;
  line-height: 1;
  display: inline-block;
}

.wk-episode-ride-vote-3x{
  font-size: 300%;
  line-height: 1;
  display: inline-block;
}

/* Tailwind utility used in templates; keep explicit because our bundled build is intentionally minimal. */
.pointer-events-auto{ pointer-events:auto; }

/* Minimal Markdown styling (Tailwind preflight resets list + heading defaults). */
.wk-markdown h1,
.wk-markdown h2,
.wk-markdown h3,
.wk-markdown h4,
.wk-markdown h5,
.wk-markdown h6{
  color: var(--wk-ink);
  font-weight: 800;
  line-height: 1.2;
}
.wk-markdown h1{ font-size: 1.125rem; }
.wk-markdown h2{ font-size: 1.05rem; }
.wk-markdown h3{ font-size: 1rem; }
.wk-markdown h4,
.wk-markdown h5,
.wk-markdown h6{ font-size: .95rem; }

.wk-markdown ul,
.wk-markdown ol{
  margin: 0;
  padding-left: 1.25rem;
}
.wk-markdown ul{ list-style: disc; }
.wk-markdown ol{ list-style: decimal; }
.wk-markdown li{ margin: .125rem 0; }

.wk-markdown a{
  color: var(--wk-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Large-display improvements panel (onsite mode). */
#dashboard-improvements{
  font-size: 1.5rem;
  line-height: 2rem;
}
#dashboard-improvements .wk-chip{
  font-size: 1.5rem;
  line-height: 2rem;
  padding: .45rem .85rem;
}
