/* Public training: schedule, booking dialog, confirmation, terms and admin pages. Prefix: tr-.
   Uses the brand tokens from tools.css (--dl-purple, --dl-ink, ...). No inline styles anywhere:
   these pages run under a strict Content Security Policy. */

:root {
  --tr-amber: #b7791f;
  --tr-red: #c25b5b;
  --tr-navy-2: #26313f;
  --tr-radius: 16px;
  --tr-shadow: 0 10px 30px rgba(48, 61, 78, 0.10);
}

.tr-logo-img { max-width: 26px; height: auto; }
.tr-footer-logo { max-width: 25px; height: auto; }
.tr-ic { color: var(--dl-purple); }
.tr-indent { margin-left: 17px; }
.tr-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tr-page #main { margin-top: 84px; } /* clears the fixed site header */
.tr-page :focus-visible { outline: 3px solid var(--dl-purple); outline-offset: 2px; }

/* ------------------------------------------------------------------ hero */
.tr-hero {
  position: relative;
  padding: 64px 0 40px;
  color: #fff;
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(163, 73, 164, 0.55), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(163, 73, 164, 0.25), transparent 60%),
    linear-gradient(160deg, var(--dl-ink), var(--tr-navy-2));
  overflow: hidden;
}
.tr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.tr-hero .container { position: relative; }
.tr-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #e7b8e8; margin-bottom: 14px; }
.tr-eyebrow-dark { color: var(--dl-purple); }
.tr-eyebrow .tr-pulse { width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.7); animation: tr-pulse 2s infinite; }
@keyframes tr-pulse { 70% { box-shadow: 0 0 0 10px rgba(126, 226, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 226, 168, 0); } }
.tr-hero h1 { font-size: var(--fs-display); line-height: 1.08; color: #fff; margin: 0 0 16px; max-width: 760px; }
.tr-hero h1 em { font-style: normal; color: #e7b8e8; }
.tr-hero .tr-lead { font-size: var(--fs-lead); color: #d8dde5; max-width: 640px; margin-bottom: 26px; }
.tr-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.tr-btn-light { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; color: #fff; border: 2px solid rgba(255, 255, 255, 0.5); }
.tr-btn-light:hover, .tr-btn-light:focus-visible { color: var(--dl-ink); background: #fff; }

/* Season timeline */
.tr-timeline { position: relative; padding: 22px 0 6px; }
.tr-timeline-track { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); margin: 44px 8px 54px; }
.tr-timeline-track::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--dl-purple), #e7b8e8); transform-origin: left; animation: tr-grow 1.2s ease-out both; }
@keyframes tr-grow { from { transform: scaleX(0); } }
.tr-month { position: absolute; top: -40px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #aeb7c4; }
.tr-month::after { content: ""; position: absolute; left: 0; top: 22px; width: 1px; height: 26px; background: rgba(255, 255, 255, 0.25); }
.tr-stop { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.tr-stop .tr-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--dl-purple); transition: transform 0.2s; }
.tr-stop .tr-stop-label { position: absolute; top: 22px; white-space: nowrap; font-size: 12px; line-height: 1.3; text-align: center; color: #d8dde5; }
.tr-stop .tr-stop-label strong { display: block; color: #fff; font-size: 13px; }
.tr-stop.tr-up .tr-stop-label { top: auto; bottom: 22px; }
.tr-stop:hover .tr-dot, .tr-stop:focus-visible .tr-dot { transform: scale(1.25); background: #e7b8e8; }
.tr-stop:hover, .tr-stop:focus-visible { color: #fff; }
/* Timeline positions are generated from the session dates (see the block at the end of this file). */

/* ------------------------------------------------------------------ perks */
.tr-perks { margin-top: -26px; position: relative; z-index: 2; }
.tr-perk { height: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: #fff; border-radius: var(--tr-radius); box-shadow: var(--tr-shadow); border: 1px solid var(--dl-line); }
.tr-perk i { flex: none; font-size: 22px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--dl-purple-soft); color: var(--dl-purple); }
.tr-perk h2 { font-size: 17px; margin: 0 0 4px; color: var(--dl-ink); }
.tr-perk p { margin: 0; font-size: var(--fs-small); color: var(--dl-muted); }

/* ------------------------------------------------------------------ schedule */
.tr-schedule { padding: 56px 0 30px; }
.tr-section-title { font-size: var(--fs-section); color: var(--heading-color); margin-bottom: 8px; }
.tr-section-intro { color: var(--dl-muted); max-width: 680px; margin-bottom: 22px; }
.tr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tr-chip { border: 1.5px solid var(--dl-line); background: #fff; color: var(--dl-ink); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.tr-chip:hover { border-color: var(--dl-purple); color: var(--dl-purple); }
.tr-chip[aria-pressed="true"] { background: var(--dl-ink); border-color: var(--dl-ink); color: #fff; }
.tr-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: var(--fs-small); background: var(--dl-purple-soft); color: var(--dl-ink); }
.tr-notice[hidden] { display: none; }
.tr-notice.tr-good { background: #eef8f2; }
.tr-notice.tr-warn { background: #fdf6ec; }

.tr-list { display: grid; gap: 20px; }
.tr-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr 250px;
  background: #fff;
  border-radius: var(--tr-radius);
  box-shadow: var(--tr-shadow);
  border: 1px solid var(--dl-line);
  transition: transform 0.2s, box-shadow 0.2s;
  scroll-margin-top: 100px;
}
.tr-ticket:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(48, 61, 78, 0.14); }
.tr-ticket[hidden] { display: none; }
.tr-ticket.tr-flash { animation: tr-flash 1.6s ease-out; }
@keyframes tr-flash { 0%, 30% { box-shadow: 0 0 0 4px var(--dl-purple), var(--tr-shadow); } 100% { box-shadow: var(--tr-shadow); } }

.tr-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 12px; color: #fff; text-align: center; background: linear-gradient(160deg, var(--dl-ink), var(--tr-navy-2)); border-radius: var(--tr-radius) 0 0 var(--tr-radius); }
.tr-ticket[data-track="fabric"] .tr-stub { background: linear-gradient(160deg, #3a2f52, var(--tr-navy-2)); }
.tr-stub-month { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #e7b8e8; font-weight: 700; }
.tr-stub-day { font-family: "Baloo 2", sans-serif; font-size: 44px; font-weight: 800; line-height: 1; margin: 4px 0; }
.tr-stub-day.tr-range { font-size: 34px; }
.tr-stub-week { font-size: 13px; color: #c9cfd8; }
.tr-stub-len { margin-top: 10px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
/* the perforation between stub and body */
.tr-body { position: relative; padding: 22px 26px; border-left: 2px dashed var(--dl-line); }
.tr-body::before, .tr-body::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: #f7f8fa; border: 1px solid var(--dl-line); }
.tr-body::before { top: -11px; clip-path: inset(50% 0 0 0); }
.tr-body::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
.tr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tr-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f1f3f6; color: var(--dl-ink); }
.tr-tag.tr-level { background: var(--dl-purple-soft); color: var(--dl-purple-dark); }
.tr-tag i { margin-right: 4px; }
.tr-body h3 { font-size: 24px; margin: 0 0 6px; color: var(--dl-ink); }
.tr-body p { margin: 0 0 12px; color: var(--dl-muted); font-size: 15px; }
.tr-meta { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--dl-ink); }
.tr-meta i { color: var(--dl-purple); margin-right: 6px; }
.tr-more { font-size: 14px; font-weight: 700; color: var(--dl-purple); }
.tr-more:hover { color: var(--dl-purple-dark); text-decoration: underline; }

.tr-buy { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 24px; background: #fafbfc; border-left: 1px solid var(--dl-line); border-radius: 0 var(--tr-radius) var(--tr-radius) 0; }
.tr-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tr-price-now { font-family: "Baloo 2", sans-serif; font-size: 34px; font-weight: 800; color: var(--dl-ink); line-height: 1; }
.tr-price-was { color: var(--dl-muted); text-decoration: line-through; font-size: 16px; }
.tr-price-note { font-size: 12px; color: var(--dl-muted); }
.tr-eb { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; background: var(--dl-purple); color: #fff; }
.tr-eb[hidden] { display: none; }
.tr-avail { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--dl-good); }
.tr-avail::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.tr-avail[data-state="limited"] { color: var(--tr-amber); }
.tr-avail[data-state="full"] { color: var(--tr-red); }
.tr-avail[data-state="closed"], .tr-avail[data-state="unknown"] { color: var(--dl-muted); }
.tr-buy .tool-btn { justify-content: center; width: 100%; }

/* ------------------------------------------------------------------ how it works + faq */
.tr-steps { padding: 30px 0 40px; }
.tr-step { height: 100%; padding: 24px; border-radius: var(--tr-radius); background: #fff; border: 1px solid var(--dl-line); }
.tr-step-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--dl-purple); margin-bottom: 12px; }
.tr-step h3 { font-size: 18px; color: var(--dl-ink); }
.tr-step p { color: var(--dl-muted); font-size: var(--fs-small); margin: 0; }
.tr-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 13px; color: var(--dl-muted); }
.tr-trust i { color: var(--dl-good); margin-right: 6px; }

.tr-faq { padding: 30px 0 50px; }
.tr-faq details { border-bottom: 1px solid var(--dl-line); padding: 4px 0; }
.tr-faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 700; color: var(--dl-ink); position: relative; }
.tr-faq summary::-webkit-details-marker { display: none; }
.tr-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--dl-purple); transition: transform 0.2s; }
.tr-faq details[open] summary::after { transform: rotate(45deg); }
.tr-faq details p { color: var(--dl-muted); margin: 0 0 14px; }

.tr-cta { margin: 10px 0 60px; padding: 34px; border-radius: var(--tr-radius); color: #fff; background: linear-gradient(120deg, var(--dl-purple-dark), var(--dl-purple)); }
.tr-cta h2 { color: #fff; font-size: var(--fs-subsection); }
.tr-cta p { color: #f3e3f3; margin: 0; }

/* ------------------------------------------------------------------ booking dialog */
.tr-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(20, 26, 35, 0.4); color: var(--dl-ink); }
.tr-dialog::backdrop { background: rgba(23, 29, 38, 0.6); backdrop-filter: blur(3px); }
.tr-dialog[open] { animation: tr-pop 0.22s ease-out; }
@keyframes tr-pop { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
.tr-dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; color: #fff; background: linear-gradient(140deg, var(--dl-ink), var(--tr-navy-2)); }
.tr-dlg-head h2 { font-size: 22px; color: #fff; margin: 0; }
.tr-dlg-head p { margin: 2px 0 0; color: #c9cfd8; font-size: 14px; }
.tr-close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; color: #fff; background: rgba(255, 255, 255, 0.12); font-size: 20px; line-height: 1; cursor: pointer; }
.tr-close:hover { background: rgba(255, 255, 255, 0.25); }
.tr-testmode { padding: 8px 24px; background: #fdf6ec; color: #7a5410; font-size: 13px; }
.tr-testmode[hidden] { display: none; }
.tr-progress { display: flex; gap: 6px; padding: 14px 24px 0; margin: 0; }
.tr-progress li { flex: 1; list-style: none; font-size: 12px; font-weight: 700; color: var(--dl-muted); }
.tr-progress li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--dl-line); margin-bottom: 6px; transition: background 0.2s; }
.tr-progress li.tr-done, .tr-progress li[aria-current="step"] { color: var(--dl-ink); }
.tr-progress li.tr-done::before, .tr-progress li[aria-current="step"]::before { background: var(--dl-purple); }
.tr-progress[hidden] { display: none; }

.tr-dlg-grid { display: grid; grid-template-columns: 1fr 290px; }
.tr-dlg-main { padding: 10px 24px 24px; overflow-y: auto; max-height: calc(100vh - 210px); }
.tr-summary { padding: 22px; background: #fafbfc; border-left: 1px solid var(--dl-line); }
.tr-summary h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--dl-muted); }
.tr-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 12px 0; font-size: 14px; }
.tr-summary dd { margin: 0; text-align: right; font-weight: 600; }
.tr-summary .tr-total { font-family: "Baloo 2", sans-serif; font-size: 30px; font-weight: 800; color: var(--dl-ink); line-height: 1.1; }
.tr-summary .tr-saving { color: var(--dl-good); font-weight: 700; font-size: 13px; }
.tr-summary .tr-saving[hidden] { display: none; }
.tr-summary .tr-fine { font-size: 12px; color: var(--dl-muted); }

.tr-step-panel[hidden] { display: none; }
.tr-step-panel h3 { font-size: 19px; margin: 6px 0 4px; }
.tr-step-panel > p { color: var(--dl-muted); font-size: 14px; }
.tr-field { margin-bottom: 14px; }
.tr-field label, .tr-legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.tr-field .tr-opt { font-weight: 400; color: var(--dl-muted); }
.tr-field input, .tr-field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #cfd5dd; border-radius: 10px; font: inherit; font-size: 15px; color: var(--dl-ink); background: #fff; }
.tr-field input:focus, .tr-field textarea:focus { border-color: var(--dl-purple); outline: 0; box-shadow: 0 0 0 3px rgba(163, 73, 164, 0.18); }
.tr-field input[aria-invalid="true"] { border-color: var(--tr-red); }
.tr-err { display: block; margin-top: 4px; font-size: 13px; color: var(--tr-red); }
.tr-err:empty { display: none; }
.tr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.tr-seats { display: inline-flex; align-items: center; border: 1.5px solid #cfd5dd; border-radius: 12px; overflow: hidden; }
.tr-seats button { width: 46px; height: 46px; border: 0; background: #f1f3f6; font-size: 22px; font-weight: 700; color: var(--dl-ink); cursor: pointer; }
.tr-seats button:disabled { opacity: 0.35; cursor: not-allowed; }
.tr-seats output { min-width: 64px; text-align: center; font-weight: 800; font-size: 20px; }
.tr-hint { font-size: 13px; color: var(--dl-muted); margin-top: 6px; }
.tr-hint strong { color: var(--dl-purple-dark); }

.tr-attendee { padding: 14px 16px 2px; border: 1px solid var(--dl-line); border-radius: 12px; margin-bottom: 12px; }
.tr-attendee legend { float: none; width: auto; font-size: 14px; font-weight: 700; padding: 0 6px; margin: 0; color: var(--dl-purple-dark); }
.tr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 14px; }
.tr-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--dl-purple); flex: none; }

.tr-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tr-pay label { display: block; padding: 14px; border: 1.5px solid #cfd5dd; border-radius: 12px; cursor: pointer; font-size: 14px; }
.tr-pay label strong { display: block; font-size: 15px; margin-bottom: 2px; }
.tr-pay label span { color: var(--dl-muted); font-size: 13px; }
.tr-pay input { position: absolute; opacity: 0; }
.tr-pay input:checked + label { border-color: var(--dl-purple); background: var(--dl-purple-soft); box-shadow: 0 0 0 3px rgba(163, 73, 164, 0.15); }
.tr-pay input:focus-visible + label { outline: 3px solid var(--dl-purple); outline-offset: 2px; }
.tr-pay input:disabled + label { opacity: 0.5; cursor: not-allowed; }
.tr-review { font-size: 14px; background: #f7f8fa; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.tr-review ul { margin: 4px 0 0; padding-left: 18px; }
.tr-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tr-errors { padding: 10px 14px; border-radius: 10px; background: #fdf1f1; color: #8a2e2e; font-size: 14px; margin-bottom: 12px; }
.tr-errors[hidden] { display: none; }
.tr-turnstile { margin: 6px 0 12px; min-height: 0; }
.tr-dlg-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; }
.tr-dlg-foot .tool-btn[hidden] { display: none; }
.tr-link-btn { border: 0; background: none; color: var(--dl-muted); font-weight: 600; padding: 10px 4px; cursor: pointer; }
.tr-link-btn:hover { color: var(--dl-ink); }
.tr-busy { position: relative; pointer-events: none; opacity: 0.75; }
.tr-busy::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: tr-spin 0.7s linear infinite; vertical-align: -2px; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
.tr-done-panel { text-align: center; padding: 26px 10px; }
.tr-done-panel[hidden] { display: none; }
.tr-done-panel .bi { font-size: 54px; color: var(--dl-good); }
.tr-secure { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dl-muted); margin-top: 8px; }

/* ------------------------------------------------------------------ confirmation page */
.tr-confirm { padding: 60px 0; min-height: 70vh; background: radial-gradient(800px 300px at 50% 0%, var(--dl-purple-soft), transparent 70%); }
.tr-confirm-card { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: var(--tr-shadow); border: 1px solid var(--dl-line); overflow: hidden; }
.tr-confirm-top { padding: 34px 30px 24px; text-align: center; }
.tr-confirm-top h1 { font-size: var(--fs-subsection); color: var(--dl-ink); margin: 14px 0 6px; }
.tr-confirm-top p { color: var(--dl-muted); margin: 0; }
.tr-tick { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #eef8f2; color: var(--dl-good); font-size: 40px; animation: tr-pop 0.4s ease-out; }
.tr-tick.tr-wait { background: var(--dl-purple-soft); color: var(--dl-purple); }
.tr-tick.tr-wait i { animation: tr-spin 1.2s linear infinite; }
.tr-tick.tr-bad { background: #fdf1f1; color: var(--tr-red); }
.tr-confirm-body { padding: 0 30px 30px; }
.tr-confirm-body dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; padding: 16px 18px; border-radius: 12px; background: #fafbfc; border-left: 4px solid var(--dl-purple); font-size: 15px; }
.tr-confirm-body dt { color: var(--dl-muted); font-weight: 600; }
.tr-confirm-body dd { margin: 0; }
.tr-confirm-body h2 { font-size: 18px; margin: 22px 0 8px; color: var(--dl-ink); }
.tr-confirm-body ol { padding-left: 20px; color: var(--dl-ink); }
.tr-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
[data-show][hidden] { display: none !important; }

/* ------------------------------------------------------------------ terms */
.tr-doc { padding: 50px 0 60px; }
.tr-doc .container { max-width: 860px; }
.tr-doc h1 { font-size: var(--fs-section); color: var(--heading-color); }
.tr-doc h2 { font-size: 22px; color: var(--dl-ink); margin-top: 28px; }
.tr-doc p, .tr-doc li { color: #3c4756; line-height: 1.7; }
.tr-doc table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 15px; }
.tr-doc th, .tr-doc td { border: 1px solid var(--dl-line); padding: 10px 12px; text-align: left; }
.tr-doc th { background: var(--dl-ink); color: #fff; }

/* ------------------------------------------------------------------ admin */
.tr-admin { padding: 30px 0 60px; background: #f7f8fa; min-height: 80vh; }
.tr-admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tr-admin-bar h1 { font-size: var(--fs-subsection); margin: 0; color: var(--dl-ink); }
.tr-admin-session { background: #fff; border-radius: var(--tr-radius); border: 1px solid var(--dl-line); margin-bottom: 18px; overflow: hidden; }
.tr-admin-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--dl-line); }
.tr-admin-head h2 { font-size: 19px; margin: 0; }
.tr-admin-head p { margin: 0; font-size: 13px; color: var(--dl-muted); }
.tr-bar { width: 220px; }
.tr-bar-track { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: #edf0f3; }
.tr-bar-paid { background: var(--dl-good); }
.tr-bar-held { background: var(--tr-amber); }
.tr-bar-text { font-size: 12px; color: var(--dl-muted); margin-top: 4px; }
.tr-table-wrap { overflow-x: auto; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; border: 0; }
.tr-table th, .tr-table td { border: 0; }
.tr-table td:first-child { white-space: nowrap; }
.tr-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dl-muted); padding: 10px 14px; background: #fafbfc; }
.tr-table td { padding: 10px 14px; border-top: 1px solid var(--dl-line); vertical-align: top; }
.tr-table td small { color: var(--dl-muted); display: block; }
.tr-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #edf0f3; }
.tr-status[data-s="paid"] { background: #e3f4ea; color: #1f6b41; }
.tr-status[data-s="invoice-pending"], .tr-status[data-s="held"], .tr-status[data-s="processing"] { background: #fdf3e2; color: #7a5410; }
.tr-status[data-s="cancelled"], .tr-status[data-s="refunded"], .tr-status[data-s="failed"] { background: #fbe9e9; color: #8a2e2e; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-actions button { border: 1px solid var(--dl-line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tr-actions button:hover { border-color: var(--dl-purple); color: var(--dl-purple); }
.tr-empty { padding: 14px 20px; color: var(--dl-muted); font-size: 14px; margin: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 991px) {
  .tr-ticket { grid-template-columns: 120px 1fr; }
  .tr-buy { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--dl-line); border-radius: 0 0 var(--tr-radius) var(--tr-radius); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .tr-buy .tool-btn { width: auto; }
  .tr-stub { border-radius: var(--tr-radius) 0 0 0; }
  .tr-dlg-grid { grid-template-columns: 1fr; }
  .tr-summary { border-left: 0; border-top: 1px solid var(--dl-line); order: -1; padding: 12px 24px; }
  .tr-summary h3, .tr-summary dl, .tr-summary .tr-fine { display: none; }
  .tr-summary .tr-total { font-size: 24px; }
  .tr-dlg-main { max-height: calc(100vh - 260px); }
}
@media (max-width: 767px) {
  .tr-hero { padding: 44px 0 34px; }
  .tr-timeline { overflow-x: auto; }
  .tr-timeline-track { min-width: 640px; }
  .tr-ticket { grid-template-columns: 1fr; }
  .tr-stub { flex-direction: row; gap: 12px; justify-content: flex-start; padding: 14px 18px; border-radius: var(--tr-radius) var(--tr-radius) 0 0; }
  .tr-stub-day { font-size: 30px; margin: 0; }
  .tr-stub-day.tr-range { font-size: 26px; }
  .tr-stub-len { margin: 0 0 0 auto; }
  .tr-body { border-left: 0; border-top: 2px dashed var(--dl-line); padding: 18px; }
  .tr-body::before, .tr-body::after { display: none; }
  .tr-row, .tr-pay { grid-template-columns: 1fr; }
  .tr-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .tr-dlg-main { max-height: none; }
  .tr-confirm-body dl { grid-template-columns: 1fr; gap: 2px; }
  .tr-confirm-body dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-page *, .tr-page *::before, .tr-page *::after { animation: none !important; transition: none !important; }
}

/* ---- generated: timeline positions (build-pages.js) ---- */
.tr-m-feb { left: 0; }
.tr-m-mar { left: 47.5%; }
.tr-stop[data-code="PBIF-2702"] { left: 28.0%; }
.tr-stop[data-code="PBID-2702"] { left: 39.0%; }
.tr-stop[data-code="FABF-2703"] { left: 64.4%; }
.tr-stop[data-code="PBIL-2703"] { left: 77.1%; }
.tr-stop[data-code="FABL-2703"] { left: 86.4%; }
/* ---- end generated ---- */
