:root {
  --tj-brand: #df6107;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

/* ─── Shared form components ─── */
.tj-input {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #1e293b;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tj-input:focus {
  border-color: var(--tj-brand);
  box-shadow: 0 0 0 3px rgba(223, 97, 7, 0.1);
}
.tj-input:read-only {
  background: #f8fafc;
  color: #64748b;
  cursor: default;
}

.tj-password {
  position: relative;
  display: block;
}
.tj-password .tj-input {
  padding-right: 2.6rem;
}
.tj-password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: .3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  border: none;
  border-radius: .4rem;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}
.tj-password-toggle:hover {
  color: #475569;
  background: #f1f5f9;
}
.tj-password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 97, 7, .18);
}

.tj-file {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  transition: border-color .15s ease;
}
.tj-file:hover { border-color: #94a3b8; }

/* ─── Buttons ─── */
.tj-btn-primary,
.tj-btn-secondary,
.tj-btn-warning,
.tj-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.tj-btn-primary { background: var(--tj-brand); color: #fff; border: 1px solid transparent; }
.tj-btn-primary:hover { background: #b94808; }
.tj-btn-secondary { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
.tj-btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }
.tj-btn-warning { background: #d97706; color: #fff; border: 1px solid transparent; }
.tj-btn-warning:hover { background: #b45309; }
.tj-btn-danger { background: #e11d48; color: #fff; border: 1px solid transparent; }
.tj-btn-danger:hover { background: #be123c; }
.tj-btn-primary:disabled,
.tj-btn-secondary:disabled,
.tj-btn-warning:disabled,
.tj-btn-danger:disabled { opacity: .55; cursor: not-allowed; }

body.tj-org {
  font-size: 16.5px;
}
.tj-org .tj-input,
.tj-org .tj-file {
  font-size: 1rem;
  padding: .7rem .9rem;
}
.tj-org .tj-btn-primary,
.tj-org .tj-btn-secondary,
.tj-org .tj-btn-warning,
.tj-org .tj-btn-danger {
  font-size: .95rem;
  padding: .62rem 1.1rem;
}
.tj-org .tj-page-title { font-size: 1.5rem; }
.tj-org .tj-page-desc { font-size: 1rem; }
.tj-org .tj-panel-title { font-size: 1.05rem; }
.tj-org .tj-panel-description { font-size: .88rem; }
.tj-org .tj-form-section-title { font-size: .98rem; }
.tj-org .tj-kpi-value { font-size: 1.85rem; }
.tj-org .ev-card-title { font-size: 1.12rem; }
.tj-org .ev-card-meta { font-size: .88rem; }
.tj-org .ev-summary-item strong { font-size: 1.4rem; }
.tj-org .ev-summary-item span { font-size: .82rem; }
.tj-org #app-sidebar nav a { font-size: 1rem; }
.tj-org #app-sidebar nav p { font-size: .78rem; }
.tj-org #app-tabbar span { font-size: .78rem; }
.tj-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  user-select: none;
}
.tj-switch input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.tj-switch-ui {
  position: relative;
  z-index: 1;
  pointer-events: none;
  width: 2.35rem;
  height: 1.3rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .15s ease;
}
.tj-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .22);
  transition: transform .15s ease;
}
.tj-switch input:checked + .tj-switch-ui {
  background: #059669;
}
.tj-switch--vip input:checked + .tj-switch-ui {
  background: #d97706;
}
.tj-switch input:checked + .tj-switch-ui::after {
  transform: translateX(1.05rem);
}
.tj-switch input:focus-visible + .tj-switch-ui {
  box-shadow: 0 0 0 3px rgba(223, 97, 7, .22);
}
.tj-switch input:disabled {
  cursor: not-allowed;
}
.tj-switch input:disabled + .tj-switch-ui,
.tj-switch.is-disabled {
  cursor: not-allowed;
  opacity: .5;
}
.tj-switch-label {
  position: relative;
  z-index: 1;
  pointer-events: none;
  font-size: .72rem;
  font-weight: 600;
  color: #475569;
}
.tj-switch-label::before {
  content: attr(data-off);
}
.tj-switch input:checked ~ .tj-switch-label::before {
  content: attr(data-on);
}
.tj-switch input:checked ~ .tj-switch-label { color: #047857; }
.tj-switch--vip input:checked ~ .tj-switch-label { color: #b45309; }

/* ── Floor-plan template picker (Thai banquet examples) ── */
.fp-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.fp-picker[hidden] { display: none !important; }
.fp-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px);
}
.fp-picker-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(92vh, 880px);
  overflow: auto;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, .28);
  border: 1px solid #e2e8f0;
}
.fp-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  position: sticky;
  top: 0;
  z-index: 1;
}
.fp-picker-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b45309;
  margin: 0 0 .25rem;
}
.fp-picker-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.fp-picker-sub {
  margin: .35rem 0 0;
  font-size: .78rem;
  color: #64748b;
  line-height: 1.45;
  max-width: 36rem;
}
.fp-picker-x {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: .55rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.fp-picker-x:hover { background: #e2e8f0; }
.fp-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .9rem;
  padding: 1.1rem 1.4rem;
}
.fp-picker-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: .9rem;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
  padding: 0;
}
.fp-picker-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(180, 83, 9, .12);
  transform: translateY(-2px);
}
.fp-picker-preview {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  height: 148px;
  overflow: hidden;
}
.fp-picker-preview--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.fp-picker-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 600;
  background: linear-gradient(160deg, #fff7ed, #f8fafc);
}
.fp-picker-placeholder i { font-size: 1.5rem; color: #f59e0b; }
.fp-item--dense .fp-item-icon { display: none; }
.fp-item--dense .fp-label { font-size: .62rem; }
.fp-item--dense .fp-seats { font-size: .48rem; }
.fp-aisle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  border-radius: .35rem;
  opacity: .55;
}
.fp-aisle--carpet {
  background: linear-gradient(180deg, #fca5a5, #ef4444 40%, #dc2626);
  box-shadow: inset 0 0 0 1px rgba(127, 29, 29, .25);
}
.fp-aisle--walk,
.fp-aisle--walk-v,
.fp-aisle--walk-h {
  background: #efe6dc;
  border: 1px solid #d9cfc3;
  border-radius: 999px;
  opacity: 1;
  box-shadow: none;
}
.fp-item--head.fp-item--bar {
  border-radius: .5rem !important;
  background: linear-gradient(180deg, #fb7185, #be123c) !important;
  border-color: #9f1239 !important;
}
.fp-item--head.fp-item--bar .fp-item-body {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: .35rem .15rem;
}
.fp-item--head.fp-item--bar .fp-item-icon,
.fp-item--head.fp-item--bar .fp-seats { display: none; }
.fp-item--head.fp-item--bar .fp-label {
  font-size: .62rem;
  font-weight: 800;
  color: #fff1f2;
  width: auto;
  letter-spacing: .04em;
}
.fp-zone {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: .75rem;
  background: rgba(191, 219, 254, .35);
  border: 1px solid rgba(59, 130, 246, .25);
}

/* ── Public booking page UX ── */
.bk-page {
  --bk-ink: #1c1917;
  --bk-muted: #78716c;
  --bk-line: #e7e5e4;
  --bk-paper: #fffaf5;
  --bk-brand: #df6107;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(223, 97, 7, .12), transparent 55%),
    radial-gradient(700px 380px at 90% 0%, rgba(251, 191, 36, .14), transparent 50%),
    linear-gradient(180deg, #fff7ed 0%, #fafaf9 38%, #f5f5f4 100%);
  color: var(--bk-ink);
}
.bk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: .9rem 1.25rem;
}
.bk-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
}
.bk-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  background: var(--bk-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
}
.bk-brand-name { font-weight: 800; letter-spacing: -.02em; }
.bk-topbar-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bk-brand);
  background: rgba(223, 97, 7, .08);
  border: 1px solid rgba(223, 97, 7, .18);
  padding: .35rem .65rem;
  border-radius: .45rem;
}
.bk-topbar-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #9a3412;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.bk-topbar-back:hover { color: #7c2d12; }
.bk-doc {
  max-width: 52rem;
  margin: 0 auto;
  padding: .25rem 1.25rem 2.4rem;
}
.bk-doc-kicker {
  margin: 0;
  color: #c2410c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bk-doc-title {
  margin: .35rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  color: #1c1917;
}
.bk-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  list-style: none;
  margin: .7rem 0 0;
  padding: 0;
  color: #78716c;
  font-size: .86rem;
}
.bk-doc-meta i { margin-right: .4rem; color: #c2410c; }
.bk-doc-frame {
  margin: 1.15rem 0 0;
  padding: 0;
}
.bk-doc-poster {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #111;
  cursor: zoom-in;
  box-shadow: 0 22px 48px rgba(28, 25, 23, .18);
  overflow: hidden;
}
.bk-doc-poster img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.bk-doc-frame figcaption {
  margin-top: .7rem;
  color: #a8a29e;
  font-size: .78rem;
  text-align: center;
}
.bk-doc-frame--pdf {
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 22px 48px rgba(28, 25, 23, .14);
  border: 1px solid #e7e5e4;
}
.bk-doc-frame--pdf iframe {
  display: block;
  width: 100%;
  height: min(78vh, 52rem);
  border: 0;
  background: #fff;
}
.bk-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.15rem;
}
.bk-doc-primary,
.bk-doc-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.6rem;
  padding: .55rem 1.05rem;
  border-radius: .75rem;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}
.bk-doc-primary {
  background: var(--bk-brand, #df6107);
  color: #fff;
  box-shadow: 0 8px 18px rgba(223, 97, 7, .22);
}
.bk-doc-primary:hover { filter: brightness(1.05); }
.bk-doc-secondary {
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #44403c;
}
.bk-doc-secondary:hover { border-color: #fdba74; color: #9a3412; }

.bk-hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: .25rem 1.25rem 1.25rem;
  overflow: hidden;
}
.bk-hero-bg {
  position: absolute;
  inset: 0 1.25rem auto;
  height: 100%;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #1c1917 0%, #44403c 55%, #78716c 100%);
  z-index: 0;
}
.bk-hero-cover {
  position: absolute;
  inset: 0 1.25rem auto;
  height: 100%;
  border-radius: 1.25rem;
  background-size: cover;
  background-position: center;
  opacity: .55;
  z-index: 1;
}
.bk-hero-scrim {
  position: absolute;
  inset: 0 1.25rem auto;
  height: 100%;
  border-radius: 1.25rem;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 25, 23, .28) 0%, rgba(28, 25, 23, .62) 48%, rgba(28, 25, 23, .86) 100%),
    linear-gradient(90deg, rgba(28, 25, 23, .45) 0%, rgba(28, 25, 23, .12) 72%);
}
.bk-hero--cover .bk-hero-scrim {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, .42) 0%, rgba(12, 10, 9, .72) 52%, rgba(12, 10, 9, .92) 100%),
    linear-gradient(90deg, rgba(12, 10, 9, .55) 0%, rgba(12, 10, 9, .18) 70%);
}
.bk-hero-inner {
  position: relative;
  z-index: 3;
  padding: 1.6rem 1.4rem 1.45rem;
  color: #fff;
}
.bk-kicker {
  margin: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fdba74;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.bk-title {
  margin: .4rem 0 0;
  font-size: clamp(1.2rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, .45),
    0 2px 10px rgba(0, 0, 0, .55),
    0 10px 24px rgba(0, 0, 0, .35);
}
.bk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.bk-meta i { margin-right: .4rem; color: #fdba74; }
.bk-schedule-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .95rem;
  padding: .55rem .95rem;
  border-radius: .7rem;
  background: #fff;
  color: #9a3412;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(28, 25, 23, .16);
}
.bk-schedule-btn:hover { background: #fff7ed; }
.bk-schedule-btn i { color: var(--tj-brand, #df6107); }
.bk-schedule-btn--light {
  margin-top: .85rem;
  background: #fff7ed;
  box-shadow: none;
  border: 1px solid #fed7aa;
}
.bk-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1.15rem;
  max-width: 28rem;
}
.bk-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .75rem;
  padding: .65rem .75rem;
  backdrop-filter: blur(6px);
}
.bk-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}
.bk-stat span {
  display: block;
  margin-top: .15rem;
  font-size: .65rem;
  color: rgba(255,255,255,.65);
}
.bk-stat--status.is-open strong { color: #86efac; }
.bk-stat--status.is-closed strong { color: #fca5a5; }

.bk-banner-warn {
  max-width: 1120px;
  margin: 0 auto .75rem;
  padding: .75rem 1rem;
  display: flex;
  gap: .65rem;
  align-items: center;
  font-size: .8rem;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: .75rem;
  width: calc(100% - 2.5rem);
}
.bk-steps {
  max-width: 1120px;
  margin: .5rem auto 1rem;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.bk-step {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  opacity: .45;
  transition: opacity .2s ease;
}
.bk-step.is-active { opacity: 1; }
.bk-step-num {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: .45rem;
  background: #e7e5e4;
  color: #57534e;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bk-step.is-active .bk-step-num {
  background: var(--bk-brand);
  color: #fff;
}
.bk-step-label {
  font-size: .75rem;
  font-weight: 700;
  color: #44403c;
}
.bk-step-line {
  flex: 1;
  height: 2px;
  background: #e7e5e4;
  min-width: 1rem;
  max-width: 4rem;
}

.bk-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 1024px) {
  .bk-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
    align-items: start;
  }
}

.bk-map {
  background: #fff;
  border: 1px solid var(--bk-line);
  border-radius: 1.1rem;
  overflow: hidden;
  animation: bkRise .45s ease both;
}
.bk-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.1rem;
  background: linear-gradient(180deg, #1c1917, #292524);
  color: #fff;
}
.bk-map-title { margin: 0; font-size: .95rem; font-weight: 800; }
.bk-map-desc { margin: .2rem 0 0; font-size: .7rem; color: rgba(255,255,255,.55); }
.bk-zoom { display: flex; align-items: center; gap: .35rem; }
.bk-zoom-btn {
  min-width: 1.85rem;
  height: 1.85rem;
  border-radius: .45rem;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
}
.bk-zoom-btn:hover { background: rgba(255,255,255,.2); }
.bk-zoom-btn--text { padding: 0 .55rem; font-size: .68rem; }
.bk-zoom-label {
  min-width: 2.75rem;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.bk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  padding: .65rem 1.1rem;
  font-size: .68rem;
  color: var(--bk-muted);
  border-bottom: 1px solid var(--bk-line);
  background: #fffaf5;
}
.bk-dot {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-radius: 2px;
  margin-right: .3rem;
  vertical-align: middle;
}
.bk-dot--free { background: #3b82f6; }
.bk-dot--held { background: #f59e0b; box-shadow: 0 0 0 2px #fef3c7; }
.bk-dot--booked { background: #dc2626; box-shadow: 0 0 0 2px #fee2e2; }
.bk-dot--stage { background: #7c3aed; }
.bk-dot--ent { background: #059669; }
.bk-dot--vip { background: #d97706; border-radius: 999px; }
.bk-dot--head { background: #9f1239; width: .78rem; height: .42rem; }
.bk-dot--walk { background: #efe6dc; width: .9rem; height: .28rem; border-radius: 999px; box-shadow: inset 0 0 0 1px #d9cfc3; }
.bk-map-viewport {
  border-radius: 0;
  height: min(58vh, 520px);
  min-height: 240px;
}
.bk-layout-main {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}
.bk-contact {
  background: #fff;
  border: 1px solid var(--bk-line);
  border-radius: 1.1rem;
  overflow: hidden;
}
.bk-contact-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.1rem;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
}
.bk-contact-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .7rem;
  background: #fff;
  color: var(--bk-brand);
  border: 1px solid #fed7aa;
  font-size: .95rem;
}
.bk-contact-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 800;
  color: var(--bk-ink);
}
.bk-contact-desc {
  margin: .15rem 0 0;
  font-size: .7rem;
  color: var(--bk-muted);
}
.bk-contact-list {
  margin: 0;
  padding: .35rem 0;
  list-style: none;
}
.bk-contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 1.1rem;
}
.bk-contact-list li + li {
  border-top: 1px solid var(--bk-line);
}
.bk-contact-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--bk-muted);
}
.bk-contact-label i { width: .9rem; text-align: center; color: var(--bk-brand); }
.bk-contact-value {
  font-size: .88rem;
  font-weight: 700;
  color: var(--bk-ink);
  text-decoration: none;
  text-align: right;
  overflow-wrap: anywhere;
}
a.bk-contact-value:hover { color: var(--bk-brand); }
.bk-table-list {
  border-top: 1px solid var(--bk-line);
  padding: .75rem 1.1rem 1rem;
  font-size: .8rem;
}
.bk-table-list summary {
  cursor: pointer;
  font-weight: 700;
  color: #44403c;
  list-style: none;
}
.bk-table-list summary::-webkit-details-marker { display: none; }
.bk-table-list summary span { color: var(--bk-muted); font-weight: 500; }
.bk-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr));
  gap: .4rem;
  margin-top: .75rem;
}
.bk-chip {
  border: 1px solid var(--bk-line);
  border-radius: .55rem;
  background: #fff;
  padding: .45rem .25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
}
.bk-chip strong { display: block; font-size: .78rem; }
.bk-chip small { display: block; font-size: .62rem; color: var(--bk-muted); }
.bk-chip.is-free { border-color: #93c5fd; background: #eff6ff; }
.bk-chip.is-held { border-color: #f59e0b; background: #fef3c7; color: #92400e; cursor: not-allowed; }
.bk-chip.is-booked { border-color: #ef4444; background: #fee2e2; color: #991b1b; cursor: not-allowed; }
.bk-chip.is-blocked { border-color: #94a3b8; background: #e2e8f0; color: #475569; cursor: not-allowed; }
.bk-chip.is-free:hover { transform: translateY(-1px); border-color: var(--bk-brand); }
.bk-chip.is-selected {
  border-color: var(--bk-brand);
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(223, 97, 7, .25);
}

.bk-aside { animation: bkRise .5s ease .05s both; }
.bk-form {
  background: #fff;
  border: 1px solid var(--bk-line);
  border-radius: 1.1rem;
  padding: 1.15rem 1.15rem 1.25rem;
  position: sticky;
  top: .85rem;
}
.bk-form-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.bk-form-head p {
  margin: .25rem 0 0;
  font-size: .75rem;
  color: var(--bk-muted);
}
.bk-selected {
  margin-top: 1rem;
  border-radius: .85rem;
  border: 1px dashed #d6d3d1;
  background: #fafaf9;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  transition: border-color .2s, background .2s;
}
.bk-selected.has-table {
  border-style: solid;
  border-color: #fdba74;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}
.bk-selected-pop { animation: bkPop .35s ease; }
.bk-selected-empty {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--bk-muted);
  font-size: .8rem;
  width: 100%;
}
.bk-selected-empty i { font-size: 1.1rem; color: #a8a29e; }
.bk-selected-empty span { color: #a8a29e; font-size: .72rem; }
.bk-selected-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.bk-selected-main { min-width: 0; }
.bk-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .4rem;
}
.bk-selected-tag {
  border: 1px solid #fdba74;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: #7c2d12;
  padding: .2rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
}
.bk-selected-tag:hover { background: #fff; border-color: #f97316; }
.bk-selected-tag i { margin-left: .2rem; opacity: .55; }
.bk-selected-price {
  flex: 0 0 auto;
  text-align: right;
  font-size: .68rem;
  color: #9a3412;
}
.bk-selected-price strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bk-brand);
  line-height: 1.1;
}

.bk-fields { margin-top: 1rem; display: grid; gap: .75rem; }
.bk-field-row {
  display: grid;
  gap: .75rem;
}
@media (min-width: 420px) {
  .bk-field-row { grid-template-columns: 1fr 1fr; }
}
.bk-field span {
  display: block;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 700;
  color: #44403c;
}
.bk-field em { color: #dc2626; font-style: normal; }
.bk-field-hint {
  display: block;
  margin-top: .35rem;
  font-size: .68rem;
  line-height: 1.5;
  color: var(--bk-muted);
}
.bk-file { position: relative; }
.bk-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.bk-file-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 1px dashed #d6d3d1;
  border-radius: .65rem;
  padding: .7rem .85rem;
  font-size: .78rem;
  color: var(--bk-muted);
  background: #fafaf9;
  cursor: pointer;
}
.bk-file:hover .bk-file-label {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}

.bk-pay {
  margin-top: 1rem;
  border: 1px solid var(--bk-line);
  border-radius: .75rem;
  background: #fafaf9;
  font-size: .78rem;
}
.bk-pay summary {
  cursor: pointer;
  list-style: none;
}
.bk-pay summary::-webkit-details-marker { display: none; }
.bk-pay summary::marker { content: ''; }
.bk-pay-sum {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem .85rem;
  font-weight: 700;
  color: #44403c;
}
.bk-pay-sum span {
  margin-left: auto;
  font-weight: 600;
  color: var(--bk-muted);
  font-size: .7rem;
}
.bk-pay-body {
  padding: 0 .85rem .85rem;
  text-align: center;
}
.bk-pay-body img {
  max-height: 160px;
  margin: 0 auto .5rem;
  border-radius: .5rem;
  border: 1px solid var(--bk-line);
  background: #fff;
}
.bk-pay-body p { margin: 0; color: var(--bk-muted); }
.bk-pay-body strong {
  display: block;
  margin-top: .15rem;
  color: var(--bk-ink);
  font-size: .9rem;
  letter-spacing: .04em;
}

.bk-pay-card {
  margin: .15rem 0 .35rem;
  padding: .95rem 1rem 1rem;
  border: 1px solid #fed7aa;
  border-radius: .95rem;
  background: #fff7ed;
}
.bk-pay-card-kicker {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .75rem;
  color: #9a3412;
  font-size: .78rem;
  font-weight: 800;
}
.bk-pay-card-layout {
  display: grid;
  gap: .85rem;
}
.bk-pay-card-qr {
  width: min(100%, 11rem);
  margin: 0 auto;
  border: 1px solid #fed7aa;
  border-radius: .75rem;
  background: #fff;
  display: block;
}
.bk-pay-card-qr-btn {
  position: relative;
  display: block;
  width: min(100%, 11rem);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.bk-pay-card-qr-btn .bk-pay-card-qr {
  width: 100%;
  margin: 0;
}
.bk-pay-card-qr-hint {
  position: absolute;
  left: .4rem;
  right: .4rem;
  bottom: .4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .28rem .4rem;
  border-radius: .45rem;
  background: rgba(28, 25, 23, .78);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}
.tj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(12, 10, 9, .84);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.tj-lightbox img {
  max-width: min(92vw, 28rem);
  max-height: min(84vh, 28rem);
  padding: .7rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.tj-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.tj-lightbox img.is-poster {
  max-width: min(96vw, 44rem);
  max-height: 92vh;
}
.tj-lightbox img.is-wide {
  max-width: min(96vw, 72rem);
  max-height: 92vh;
  padding: 0;
  border-radius: .6rem;
  background: #0c0a09;
}
.bk-pay-card-info {
  margin: 0;
  display: grid;
  gap: .65rem;
}
.bk-pay-card-info div { min-width: 0; }
.bk-pay-card-info dt {
  color: #c2410c;
  font-size: .72rem;
  font-weight: 700;
}
.bk-pay-card-info dd {
  margin: .15rem 0 0;
  color: #1c1917;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
.bk-pay-card-name {
  font-size: 1.12rem;
}
.bk-pay-card-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #9a3412;
}
@media (min-width: 420px) {
  .bk-pay-card-layout {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .bk-pay-card-qr,
  .bk-pay-card-qr-btn { margin: 0; width: 7.5rem; }
}

.bk-submit {
  margin-top: 1rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: none;
  border-radius: .75rem;
  background: var(--bk-brand);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  padding: .95rem 1rem;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.bk-submit:hover:not(:disabled) {
  background: #b94808;
  transform: translateY(-1px);
}
.bk-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.bk-form-note {
  margin: .65rem 0 0;
  text-align: center;
  font-size: .68rem;
  color: #a8a29e;
}
.bk-legal-note {
  margin: .4rem 0 0;
  color: #a8a29e;
  font-size: .65rem;
  line-height: 1.55;
  text-align: center;
}
.bk-legal-note a {
  font-weight: 700;
  color: #78716c;
  text-decoration: none;
}
.bk-legal-note a:hover { text-decoration: underline; color: var(--tj-brand); }
.bk-footer {
  margin-top: 2.5rem;
  background:
    radial-gradient(520px 180px at 12% 0%, rgba(238, 122, 17, .22), transparent 58%),
    radial-gradient(420px 160px at 88% 0%, rgba(251, 191, 36, .12), transparent 62%),
    #1c1917;
  color: #e7e5e4;
}
.bk-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.15rem;
}
.bk-page:has(.bk-mobile-bar:not([hidden])) .bk-footer-inner {
  padding-bottom: 5.25rem;
}

.bk-promo {
  display: grid;
  gap: 1.35rem;
  min-width: 0;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.bk-promo-copy,
.bk-promo-side { min-width: 0; }
.bk-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fdba74;
  background: rgba(238, 122, 17, .14);
  border: 1px solid rgba(253, 186, 116, .22);
  padding: .3rem .65rem;
  border-radius: 999px;
}
.bk-promo-title {
  margin: .8rem 0 0;
  max-width: 18em;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: #fff;
}
.bk-promo-text {
  margin: .55rem 0 0;
  max-width: 42rem;
  font-size: .82rem;
  line-height: 1.7;
  color: rgba(231, 229, 228, .68);
}
.bk-promo-chips {
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.bk-promo-chips li {
  font-size: .68rem;
  font-weight: 600;
  color: rgba(250, 250, 249, .82);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: .32rem .65rem;
  border-radius: 999px;
}
.bk-promo-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.bk-promo-cta,
.bk-promo-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 800;
  padding: .68rem 1.1rem;
  border-radius: .7rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bk-promo-cta {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #f19332, #df6107);
  box-shadow: 0 10px 22px rgba(223, 97, 7, .32);
}
.bk-promo-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(223, 97, 7, .4); }
.bk-promo-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(250, 250, 249, .88);
}
.bk-promo-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .3);
}
.bk-promo-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bk-promo-stat {
  min-width: 0;
  padding: .75rem .7rem;
  border-radius: .8rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
.bk-promo-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fdba74;
}
.bk-promo-stat span {
  display: block;
  margin-top: .2rem;
  font-size: .65rem;
  line-height: 1.45;
  color: rgba(231, 229, 228, .58);
  overflow-wrap: anywhere;
}

.bk-footer-bar {
  margin-top: 1rem;
  padding-top: .15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
}
.bk-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
}
.bk-footer-brand-text strong {
  display: block;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.bk-footer-brand-text em {
  display: block;
  font-style: normal;
  font-size: .64rem;
  color: rgba(231, 229, 228, .5);
}
.bk-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
}
.bk-footer-links a {
  font-size: .74rem;
  font-weight: 600;
  color: rgba(231, 229, 228, .62);
  text-decoration: none;
  transition: color .15s ease;
}
.bk-footer-links a:hover { color: #fdba74; }
.bk-footer-copy {
  margin: 0;
  font-size: .68rem;
  color: rgba(231, 229, 228, .42);
}

@media (min-width: 900px) {
  .bk-footer-inner { padding: 2.35rem 1.25rem 1.35rem; }
  .bk-promo {
    grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .9fr);
    gap: 2.5rem;
    align-items: end;
  }
  .bk-promo-title { font-size: 1.55rem; }
  .bk-promo-side { grid-template-columns: 1fr; }
  .bk-promo-stat { padding: .85rem 1rem; }
  .bk-promo-stat strong { font-size: 1.28rem; }
}
@media (max-width: 640px) {
  .bk-promo-actions .bk-promo-cta,
  .bk-promo-actions .bk-promo-ghost { flex: 1 1 100%; }
  .bk-footer-bar { justify-content: flex-start; }
}

.bk-mobile-bar {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 40;
  display: none;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  border-radius: .9rem;
  background: #1c1917;
  color: #fff;
  box-shadow: 0 10px 30px rgba(28, 25, 23, .28);
}
.bk-mobile-bar[hidden] { display: none !important; }
.bk-mobile-label {
  display: block;
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}
.bk-mobile-bar strong { font-size: .95rem; }
.bk-mobile-cta {
  margin-left: auto;
  background: var(--bk-brand);
  color: #fff;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 800;
  padding: .55rem .8rem;
  border-radius: .55rem;
}
@media (max-width: 1023px) {
  .bk-mobile-bar:not([hidden]) { display: flex; }
  .bk-form { position: static; }
  .bk-aside { scroll-margin-top: 1rem; }
}

.bk-fade { animation: bkRise .5s ease both; }
.bk-fade-1 { animation-delay: .06s; }
.bk-fade-2 { animation-delay: .12s; }
.bk-fade-3 { animation-delay: .18s; }
@keyframes bkRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bkPop {
  0% { transform: scale(.98); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ── Booking success / manage page ── */
.bk-manage-page { padding-bottom: 0; }
.bk-manage {
  width: min(100% - 2rem, 760px);
  margin: .35rem auto 0;
}
.bk-manage-hero {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 1.5rem 1.8rem;
  border: 1px solid #fed7aa;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #fff 0%, #fff7ed 100%);
  text-align: center;
  box-shadow: 0 18px 45px rgba(120, 53, 15, .08);
}
.bk-manage-hero::before {
  content: '';
  position: absolute;
  width: 15rem;
  height: 15rem;
  top: -10rem;
  right: -5rem;
  border-radius: 999px;
  background: rgba(251, 146, 60, .14);
}
.bk-manage-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #ea580c;
  font-size: 2rem;
  box-shadow: 0 0 0 .5rem rgba(255, 237, 213, .55);
}
.bk-manage-hero--is-ok {
  border-color: #a7f3d0;
  background: linear-gradient(145deg, #fff 0%, #ecfdf5 100%);
}
.bk-manage-hero--is-ok .bk-manage-icon { background: #d1fae5; color: #059669; box-shadow: 0 0 0 .5rem rgba(209, 250, 229, .55); }
.bk-manage-hero--is-bad { border-color: #fecdd3; background: linear-gradient(145deg, #fff 0%, #fff1f2 100%); }
.bk-manage-hero--is-bad .bk-manage-icon { background: #ffe4e6; color: #e11d48; box-shadow: 0 0 0 .5rem rgba(255, 228, 230, .55); }
.bk-manage-hero--is-muted { border-color: #e2e8f0; background: linear-gradient(145deg, #fff 0%, #f8fafc 100%); }
.bk-manage-hero--is-muted .bk-manage-icon { background: #e2e8f0; color: #64748b; box-shadow: 0 0 0 .5rem rgba(226, 232, 240, .55); }
.bk-manage-kicker {
  margin: 0 0 .35rem;
  color: #c2410c;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bk-manage-hero--is-ok .bk-manage-kicker { color: #047857; }
.bk-manage-hero--is-bad .bk-manage-kicker { color: #be123c; }
.bk-manage-hero--is-muted .bk-manage-kicker { color: #64748b; }
.bk-manage-title {
  margin: 0;
  color: #1c1917;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.bk-manage-lead {
  max-width: 34rem;
  margin: .55rem auto 0;
  color: #78716c;
  font-size: .86rem;
  line-height: 1.7;
}
.bk-manage-ref {
  display: inline-flex;
  margin: 1rem 0 0;
  padding: .3rem .65rem;
  border: 1px solid rgba(120, 113, 108, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #78716c;
  font-size: .68rem;
  font-weight: 700;
}
.bk-manage-progress {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: .65rem;
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--bk-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px rgba(28, 25, 23, .04);
}
.bk-manage-step {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  color: #a8a29e;
}
.bk-manage-step > span {
  display: grid;
  place-items: center;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #f5f5f4;
  font-size: .68rem;
}
.bk-manage-step strong,
.bk-manage-step small { display: block; }
.bk-manage-step strong { color: #78716c; font-size: .72rem; white-space: nowrap; }
.bk-manage-step small { margin-top: .08rem; font-size: .6rem; line-height: 1.35; }
.bk-manage-step.is-done > span { background: #d1fae5; color: #059669; }
.bk-manage-step.is-done strong { color: #047857; }
.bk-manage-step.is-current > span { background: #ffedd5; color: #ea580c; animation: bkPop 1.6s ease infinite; }
.bk-manage-step.is-current strong { color: #c2410c; }
.bk-manage-step-arrow { color: #d6d3d1; font-size: .6rem; }

.bk-receipt {
  overflow: hidden;
  border: 1px solid var(--bk-line);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 25, 23, .06);
}
.bk-receipt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-bottom: 1px dashed #d6d3d1;
  background: #fffbf7;
}
.bk-receipt-kicker {
  margin: 0 0 .2rem;
  color: var(--bk-brand);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.bk-receipt-event { margin: 0; color: #1c1917; font-size: 1.05rem; font-weight: 800; line-height: 1.4; }
.bk-receipt-no {
  margin: 0;
  padding: .28rem .55rem;
  border-radius: .45rem;
  background: #292524;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.bk-receipt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
  margin: 0;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid #f5f5f4;
  list-style: none;
  color: #57534e;
  font-size: .76rem;
}
.bk-receipt-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.bk-receipt-meta i { width: .9rem; color: var(--bk-brand); text-align: center; }
.bk-receipt-tables { padding: 1rem 1.3rem; border-bottom: 1px solid #f5f5f4; }
.bk-receipt-label { margin: 0 0 .6rem; color: #78716c; font-size: .68rem; font-weight: 700; }
.bk-receipt-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.bk-receipt-chips span {
  padding: .45rem .7rem;
  border: 1px solid #fed7aa;
  border-radius: .65rem;
  background: #fff7ed;
  color: #9a3412;
  font-size: .76rem;
  font-weight: 800;
}
.bk-receipt-dl { margin: 0; padding: .4rem 1.3rem; }
.bk-receipt-dl > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, .35fr) 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid #f5f5f4;
}
.bk-receipt-dl > div:last-child { border-bottom: 0; }
.bk-receipt-dl dt { color: #a8a29e; font-size: .72rem; }
.bk-receipt-dl dd { margin: 0; color: #292524; font-size: .8rem; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.bk-receipt-dl .bk-receipt-total { margin: .25rem 0; padding: .8rem; border: 0; border-radius: .7rem; background: #fff7ed; }
.bk-receipt-total dt { color: #9a3412; font-weight: 700; }
.bk-receipt-total dd { color: #c2410c; font-size: 1rem; font-weight: 800; }
.bk-receipt-pay { margin-top: .85rem; padding-top: .85rem; border-top: 1px dashed #e7e5e4; }
.bk-receipt-account {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #9a3412;
}
.bk-receipt-slip {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 1.3rem 1.2rem;
  padding: .55rem;
  border: 1px solid var(--bk-line);
  border-radius: .75rem;
  color: #57534e;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}
.bk-receipt-slip:hover { border-color: #fdba74; background: #fffaf5; color: #c2410c; }
.bk-receipt-slip img { width: 3.25rem; height: 3.25rem; border-radius: .5rem; object-fit: cover; }

.bk-save-link {
  margin: 1rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid #fdba74;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}
.bk-save-link-title { margin: 0; color: #9a3412; font-size: .85rem; font-weight: 800; }
.bk-save-link-title i { margin-right: .35rem; }
.bk-save-link-copy { margin: .35rem 0 .8rem; color: #78716c; font-size: .7rem; line-height: 1.55; }
.bk-save-link-row { display: flex; gap: .45rem; }
.bk-save-link-input {
  min-width: 0;
  flex: 1;
  border: 1px solid #fed7aa;
  border-radius: .65rem;
  background: #fff;
  padding: .65rem .75rem;
  color: #57534e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  outline: none;
}
.bk-save-link-input:focus { border-color: #fb923c; box-shadow: 0 0 0 3px rgba(251, 146, 60, .14); }
.bk-save-link-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: .65rem;
  background: var(--bk-brand);
  padding: .65rem .9rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.bk-save-link-btn:hover { background: #c2410c; }
.bk-save-link-btn.is-copied { background: #059669; }
.bk-manage-edit {
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--bk-line);
  border-radius: 1rem;
  background: #fff;
}
.bk-manage-edit > summary { padding: 0; list-style: none; cursor: pointer; }
.bk-manage-edit > summary::-webkit-details-marker { display: none; }
.bk-manage-edit > summary::marker { content: ''; }
.bk-manage-edit .bk-pay-sum {
  padding: 1rem 1.2rem;
  color: #44403c;
}
.bk-manage-edit .bk-pay-sum > span { color: #a8a29e; }
.bk-manage-edit .bk-pay-sum::after {
  content: '';
  width: .4rem;
  height: .4rem;
  margin-left: .2rem;
  border-right: 1.5px solid #a8a29e;
  border-bottom: 1.5px solid #a8a29e;
  transform: rotate(45deg);
  transition: transform .15s;
}
.bk-manage-edit[open] .bk-pay-sum::after { transform: rotate(225deg); }
.bk-manage-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  padding: 1.2rem;
  border-top: 1px solid #f5f5f4;
}
.bk-manage-edit-form label:nth-of-type(5),
.bk-manage-edit-form label:nth-of-type(6),
.bk-manage-edit-form .bk-submit,
.bk-manage-edit-form .bk-legal-note { grid-column: 1 / -1; }
.bk-manage-edit-form .bk-submit {
  border: 0;
  border-radius: .7rem;
  background: var(--bk-brand);
  padding: .72rem 1rem;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.bk-manage-edit-form .bk-submit:hover { background: #c2410c; }
.bk-manage-cancel { margin: 1.3rem 0 0; text-align: center; }
.bk-manage-cancel-btn {
  border: 0;
  background: transparent;
  color: #e11d48;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bk-manage-cancel-btn:hover { color: #9f1239; }
.bk-manage-back { margin: 1.25rem 0 0; text-align: center; }
.bk-manage-back a { color: #78716c; font-size: .76rem; font-weight: 700; text-decoration: none; }
.bk-manage-back a:hover { color: var(--bk-brand); }

@media (max-width: 640px) {
  .bk-manage { width: min(100% - 1.25rem, 760px); }
  .bk-manage-hero { padding: 1.8rem 1rem 1.4rem; border-radius: 1.1rem; }
  .bk-manage-icon { width: 4rem; height: 4rem; font-size: 1.7rem; }
  .bk-manage-progress { grid-template-columns: 1fr; gap: .55rem; padding: .85rem 1rem; }
  .bk-manage-step-arrow { display: none; }
  .bk-manage-step { padding-bottom: .55rem; border-bottom: 1px solid #f5f5f4; }
  .bk-manage-step:last-child { padding-bottom: 0; border-bottom: 0; }
  .bk-manage-step strong { font-size: .74rem; }
  .bk-receipt-head,
  .bk-receipt-meta,
  .bk-receipt-tables { padding-left: 1rem; padding-right: 1rem; }
  .bk-receipt-dl { padding-left: 1rem; padding-right: 1rem; }
  .bk-receipt-slip { margin-left: 1rem; margin-right: 1rem; }
  .bk-receipt-dl > div { grid-template-columns: 5.3rem 1fr; }
  .bk-save-link-row { align-items: stretch; }
  .bk-save-link-input { width: 100%; }
  .bk-manage-edit-form { grid-template-columns: 1fr; padding: 1rem; }
  .bk-manage-edit-form label,
  .bk-manage-edit-form .bk-submit,
  .bk-manage-edit-form .bk-legal-note { grid-column: 1; }
  .bk-manage-edit .bk-pay-sum > span { display: none; }
}

/* Public booking floorplan */
.fp-pub-viewport {
  height: min(62vh, 560px);
  min-height: 240px;
  overflow: auto;
  border-radius: 0 0 .9rem .9rem;
  background: #f1f5f9;
}
.fp-pub-item {
  cursor: default;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
}
.fp-pub-item .fp-delete { display: none !important; }
.fp-pub-label {
  display: block;
  border: none;
  background: transparent;
  text-align: center;
  width: 90%;
  font-weight: 800;
  font-size: .68rem;
  color: #0f172a;
  pointer-events: none;
}
.fp-pub--clickable { cursor: pointer; }
.fp-pub--clickable:hover {
  box-shadow: 0 0 0 3px rgba(223, 97, 7, .35);
  z-index: 5;
}
.fp-pub--selected {
  box-shadow: 0 0 0 3px #df6107 !important;
  z-index: 6;
  animation: bkPop .35s ease;
}
.fp-pub--available.fp-item--normal { opacity: 1; }
.fp-pub--reserved.fp-item {
  cursor: default;
  opacity: .88;
  filter: none;
  box-shadow: none;
}
.fp-pub--reserved.fp-item--vip,
.fp-pub--reserved.fp-item--head {
  border-style: dashed;
}
.fp-pub--reserved.fp-item--vip .fp-pub-status {
  color: #92400e !important;
  font-weight: 800 !important;
}
.fp-pub--reserved.fp-item--head .fp-pub-status {
  color: #9f1239 !important;
  font-weight: 800 !important;
}
.fp-pub--held.fp-item {
  border: 2px solid #f59e0b;
  background: repeating-linear-gradient(135deg, #fef3c7 0, #fef3c7 8px, #fde68a 8px, #fde68a 16px);
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .18);
}
.fp-pub--held .fp-pub-label,
.fp-pub--held .fp-item-icon,
.fp-pub--held .fp-pub-status { color: #92400e !important; }
.fp-pub--booked.fp-item {
  border: 2px solid #dc2626;
  background: #fee2e2;
  opacity: 1;
  filter: none;
  box-shadow: inset 0 0 0 2px rgba(220, 38, 38, .08);
}
.fp-pub--booked .fp-pub-label,
.fp-pub--booked .fp-item-icon,
.fp-pub--booked .fp-pub-status { color: #991b1b !important; }
.fp-pub--has-booker {
  cursor: pointer;
}
.fp-pub--has-booker:hover,
.fp-pub--has-booker:focus-visible {
  z-index: 8;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .28);
}
.fp-pub--held.fp-pub--has-booker:hover,
.fp-pub--held.fp-pub--has-booker:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .35);
}
.bk-chip.has-booker {
  cursor: pointer;
  pointer-events: auto;
}
.bk-chip.has-booker:hover {
  transform: translateY(-1px);
}
.bk-booker-tip {
  position: fixed;
  z-index: 90;
  min-width: 8.5rem;
  max-width: min(16rem, calc(100vw - 1.5rem));
  padding: .5rem .7rem .55rem;
  background: #0f172a;
  color: #fff;
  border-radius: .65rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .28);
  pointer-events: none;
  font-size: .75rem;
  line-height: 1.35;
}
.bk-booker-tip.is-pinned { pointer-events: auto; }
.bk-booker-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #0f172a;
  transform: translateX(-50%) rotate(45deg);
}
.bk-booker-tip.is-below::after {
  bottom: auto;
  top: -5px;
}
.bk-booker-tip-status {
  margin: 0 0 .15rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fdba74;
}
.bk-booker-tip-org {
  margin: 0;
  font-weight: 800;
  color: #fff;
}
.fp-pub--blocked.fp-item {
  border-color: #94a3b8;
  background: #e2e8f0;
  opacity: .65;
  filter: grayscale(1);
}
.fp-pub-status {
  font-size: .5rem !important;
  font-weight: 900 !important;
  line-height: 1;
}
.fp-picker-card-body { padding: .75rem .9rem 1rem; }
.fp-picker-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .65rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: .4rem;
  padding: .15rem .45rem;
  margin-bottom: .4rem;
}
.fp-picker-card-title {
  display: block;
  font-size: .85rem;
  color: #0f172a;
  margin-bottom: .3rem;
}
.fp-picker-card-desc {
  margin: 0;
  font-size: .72rem;
  color: #64748b;
  line-height: 1.45;
}
.fp-picker-meta {
  display: inline-block;
  margin-top: .55rem;
  font-size: .68rem;
  font-weight: 700;
  color: #334155;
}
.fp-picker-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1.4rem 1.15rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  position: sticky;
  bottom: 0;
}
.fp-picker-hint {
  margin: 0;
  font-size: .72rem;
  color: #94a3b8;
}
.fp-reflow-dialog { width: min(920px, 100%); }
.fp-reflow-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .85fr);
  gap: 1rem;
  padding: 1rem 1.4rem 1.1rem;
}
.fp-reflow-grid,
.fp-reflow-diff {
  max-height: 52vh;
  overflow: auto;
}
.fp-reflow-grid {
  display: grid;
  gap: .35rem;
  align-content: start;
  padding: .15rem;
}
.fp-reflow-cell {
  border: 1px solid #e2e8f0;
  border-radius: .55rem;
  background: #fff;
  min-height: 2.55rem;
  padding: .28rem .3rem .32rem;
  text-align: center;
}
.fp-reflow-cell strong {
  display: block;
  font-size: .82rem;
  line-height: 1.2;
  color: #0f172a;
}
.fp-reflow-cell small {
  display: block;
  margin-top: .1rem;
  font-size: .62rem;
  line-height: 1.2;
  color: #64748b;
}
.fp-reflow-cell.is-renamed { border-color: #fdba74; background: #fff7ed; }
.fp-reflow-cell.is-new { border-color: #86efac; background: #f0fdf4; }
.fp-reflow-cell.is-vip { box-shadow: inset 0 0 0 1.5px #f59e0b; }
.fp-reflow-cell.is-booked strong { color: #9a3412; }
.fp-reflow-gap {
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: .3rem;
  background: transparent;
}
.fp-reflow-gap--v { min-width: .4rem; }
.fp-reflow-gap--h { min-height: .35rem; width: 100%; }
.fp-reflow-gap.is-on {
  background: #efe6dc;
  box-shadow: inset 0 0 0 1px #d9cfc3;
}
.fp-reflow-gap--v.is-on { min-width: .55rem; }
.fp-reflow-gap--h.is-on { min-height: .45rem; }
.fp-reflow-diff { font-size: .78rem; color: #334155; }
.fp-reflow-diff h4 {
  margin: .85rem 0 .3rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.fp-reflow-diff h4:first-child { margin-top: 0; }
.fp-reflow-diff ul { margin: 0; padding-left: 1.05rem; }
.fp-reflow-diff li { margin: .12rem 0; }
.fp-reflow-note {
  margin: 0 0 .75rem;
  padding: .65rem .75rem;
  border-radius: .6rem;
  background: #fff1f2;
  color: #9f1239;
  font-size: .75rem;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .fp-reflow-body { grid-template-columns: 1fr; }
}

.fp-zoom-btn {
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 .4rem;
  border-radius: .45rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
}
.fp-zoom-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.fp-zoom-btn--text { min-width: auto; padding: 0 .55rem; font-size: .65rem; font-weight: 700; }

/* ── Floorplan editor layout ── */
.fp-page { gap: 1rem; }
.fp-editor {
  display: grid;
  gap: 1rem;
}
/* overflow อยู่ที่ .fp-tools-body ไม่ใช่ทั้งการ์ด — ให้สูงเท่าแผนผังแล้วเลื่อนข้างในเมื่อเมนูกาง */
.tj-panel.fp-tools-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.fp-tools-head {
  flex-shrink: 0;
  padding: .85rem 1rem .7rem;
  border-bottom: 1px solid #f1f5f9;
}
.fp-tools-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: .85rem 1rem 1.35rem;
  -webkit-overflow-scrolling: touch;
}
.fp-tools-kicker {
  margin: .85rem 0 .45rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.fp-tools-kicker:first-child { margin-top: 0; }
.fp-tools-note {
  margin: .45rem 0 0;
  font-size: .68rem;
  line-height: 1.45;
  color: #94a3b8;
}
.fp-tools-note a {
  font-weight: 600;
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fp-tools-note a:hover { color: #0f172a; }
.fp-add-stack,
.fp-add-pair {
  display: grid;
  gap: .45rem;
}
.fp-add-pair { grid-template-columns: 1fr 1fr; }
.fp-add {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .55rem .6rem;
  border: 1px solid #e2e8f0;
  border-radius: .7rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.fp-add:hover {
  border-color: #cbd5e1;
  background: #fafafa;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
}
.fp-add-shape {
  flex-shrink: 0;
  box-sizing: border-box;
  border: 2px solid;
}
.fp-add--normal .fp-add-shape {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border-color: #3b82f6;
  background: #eff6ff;
}
.fp-add--vip .fp-add-shape {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border-color: #d97706;
  background: #fef3c7;
}
.fp-add--head .fp-add-shape {
  width: 1.85rem;
  height: 1.15rem;
  border-radius: .35rem;
  border-color: #9f1239;
  background: #ffe4e6;
}
.fp-add--stage .fp-add-shape {
  width: 2rem;
  height: 1.05rem;
  border-radius: .3rem;
  border-color: #7c3aed;
  background: #ede9fe;
}
.fp-add--entrance .fp-add-shape {
  width: 1.85rem;
  height: 1.05rem;
  border-radius: .3rem;
  border-color: #059669;
  background: #ecfdf5;
  border-style: dashed;
}
.fp-add-copy { min-width: 0; }
.fp-add-copy strong {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.fp-add-copy small {
  display: block;
  margin-top: .12rem;
  font-size: .62rem;
  color: #94a3b8;
  line-height: 1.25;
}
.fp-fold {
  border-top: 1px solid #f1f5f9;
  margin-top: .85rem;
}
/* summary ต้องคง display เดิม — Safari ไม่ยอมกาง details ถ้าตั้ง display:flex ที่ summary */
.fp-fold > summary {
  list-style: none;
  padding: .7rem 0 .15rem;
  cursor: pointer;
}
.fp-fold > summary::-webkit-details-marker { display: none; }
.fp-fold > summary::marker { content: ''; }
.fp-fold-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.fp-fold-title::after {
  content: '';
  flex-shrink: 0;
  width: .38rem;
  height: .38rem;
  margin-right: .1rem;
  border-right: 1.6px solid #94a3b8;
  border-bottom: 1.6px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform .15s;
}
.fp-fold[open] .fp-fold-title::after { transform: rotate(225deg); }
.fp-fold-body { padding: .55rem 0 .25rem; }
.fp-fold:last-child { padding-bottom: .35rem; }
.fp-fold--danger .fp-fold-title { color: #e11d48; }
.fp-fold--danger .fp-fold-title::after {
  border-right-color: #fb7185;
  border-bottom-color: #fb7185;
}
.fp-stage-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.fp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.fp-toolbar-stats {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.fp-stat { display: flex; align-items: baseline; gap: .3rem; }
.fp-stat strong {
  font-size: .95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.fp-stat span {
  font-size: .65rem;
  font-weight: 600;
  color: #94a3b8;
}
.fp-toolbar-hint {
  margin: 0;
  flex: 1 1 12rem;
  font-size: .7rem;
  color: #94a3b8;
}
.fp-zoom {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.fp-zoom-size {
  margin-right: .25rem;
  font-size: .65rem;
  font-weight: 600;
  color: #94a3b8;
}
.fp-zoom-pct {
  min-width: 2.6rem;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  color: #334155;
}
.fp-stage-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.fp-stage .fp-viewport {
  position: relative;
  overflow: auto;
  height: calc(100vh - 280px);
  min-height: 480px;
}
.fp-legend {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  z-index: 4;
  display: inline-flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  padding: .4rem .7rem;
  border: 1px solid #e2e8f0;
  border-radius: .65rem;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
  font-size: .65rem;
  font-weight: 600;
  color: #475569;
  pointer-events: none;
}
.fp-lg {
  display: inline-block;
  width: .7rem;
  height: .7rem;
  margin-right: .3rem;
  vertical-align: -1px;
  border: 1.5px solid;
  box-sizing: border-box;
}
.fp-lg--normal { border-radius: 999px; border-color: #3b82f6; background: #eff6ff; }
.fp-lg--vip { border-radius: 999px; border-color: #d97706; background: #fef3c7; }
.fp-lg--head { border-radius: .2rem; border-color: #9f1239; background: #ffe4e6; width: .95rem; height: .55rem; }
.fp-lg--stage { border-radius: .2rem; border-color: #7c3aed; background: #ede9fe; width: .95rem; height: .55rem; }
.fp-lg--ent { border-radius: .2rem; border-color: #059669; background: #ecfdf5; border-style: dashed; width: .9rem; height: .55rem; }
.fp-lg--walk { border-radius: 999px; border-color: #d9cfc3; background: #efe6dc; width: .95rem; height: .28rem; }

@media (min-width: 1280px) {
  .fp-editor {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: stretch;
    min-height: calc(100vh - 13.25rem);
  }
  .fp-tools {
    display: flex;
    min-height: 0;
    height: 100%;
  }
  .tj-panel.fp-tools-panel {
    flex: 1;
    height: 100%;
  }
  .fp-stage { min-width: 0; min-height: 0; display: flex; }
  .fp-stage-panel { flex: 1; }
  .fp-stage-body { flex: 1; }
  .fp-stage .fp-viewport {
    flex: 1;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 639px) {
  .fp-toolbar-hint { display: none; }
  .fp-zoom-size { display: none; }
  .fp-stage .fp-viewport { height: 70vh; min-height: 420px; }
}

.fp-viewport {
  background-image:
    linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.fp-canvas {
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .08);
  margin: 1.25rem;
  border: 1px solid #e2e8f0;
  transform-origin: top left;
  overflow: hidden;
}

.fp-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 900px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
  user-select: none;
}
.fp-canvas.is-cover .fp-bg { object-fit: cover; }
.fp-canvas.is-tracing .fp-item { opacity: .78; }
.fp-canvas.is-tracing .fp-item:hover,
.fp-canvas.is-tracing .fp-item:focus-within { opacity: 1; }
.fp-grid.is-hidden { opacity: 0; }

.fp-opacity-range {
  width: 100%;
  accent-color: var(--tj-brand);
}

.fp-grid {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, .18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, .18) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}

#tableAreaInner { z-index: 2; }

.fp-item {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: .75rem;
  border: 2px solid #3b82f6;
  background: #fff;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  z-index: 2;
}
.fp-item:active { cursor: grabbing; }
.fp-item--normal:hover { box-shadow: 0 0 0 3px rgba(59, 130, 246, .28); }
.fp-item--vip:hover { box-shadow: 0 0 0 3px rgba(217, 119, 6, .32); }
.fp-item--flash {
  animation: fpFlash .8s ease;
}
@keyframes fpFlash {
  0%, 100% { box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
  40% { box-shadow: 0 0 0 4px rgba(124, 58, 237, .45); }
}

.fp-item--normal,
.fp-item--vip { border-radius: 999px; }
.fp-item--normal { border-color: #3b82f6; background: #eff6ff; }
.fp-item--vip { border-color: #d97706; background: #fef3c7; }
.fp-item--head {
  border-color: #9f1239;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border-radius: .85rem !important;
}
.fp-item--stage {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-radius: .65rem;
}
.fp-item--entrance {
  border-color: #059669;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-style: dashed;
  border-radius: .65rem;
}

.fp-item-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: .2rem .35rem;
  gap: .1rem;
}
.fp-item-icon {
  font-size: .7rem;
  opacity: .85;
}
.fp-item--normal .fp-item-icon,
.fp-item--vip .fp-item-icon { font-size: .55rem; }
.fp-item--stage .fp-item-icon { color: #7c3aed; }
.fp-item--entrance .fp-item-icon { color: #059669; }
.fp-item--head .fp-item-icon { color: #9f1239; }
.fp-item--vip .fp-item-icon { color: #d97706; }
.fp-item--normal .fp-item-icon { color: #3b82f6; }

.fp-label {
  border: none;
  background: transparent;
  text-align: center;
  width: 90%;
  font-weight: 800;
  font-size: .68rem;
  color: #0f172a;
  padding: 0;
  line-height: 1.2;
}
.fp-item--stage .fp-label,
.fp-item--entrance .fp-label,
.fp-item--head .fp-label { font-size: .72rem; }

.fp-seats {
  font-size: .55rem;
  font-weight: 600;
  color: #64748b;
}

.fp-delete {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.fp-delete:hover { background: #b91c1c; }

.fp-item--locked {
  box-shadow: 0 0 0 2px rgba(225, 29, 72, .28);
}
.fp-item--locked .fp-label { pointer-events: none; }
.fp-booked-tag {
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #e11d48;
  line-height: 1;
}

/* ─── Landing page animations ─── */
.tj-fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: tjFadeUp .7s cubic-bezier(.16,1,.3,1) forwards;
}
.tj-fade-delay-1 { animation-delay: .08s; }
.tj-fade-delay-2 { animation-delay: .16s; }
.tj-fade-delay-3 { animation-delay: .24s; }

.tj-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.tj-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.tj-reveal-delay { transition-delay: .1s; }

@keyframes tjFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Public homepage ─── */
.home-page {
  background:
    radial-gradient(720px 380px at 88% -8%, rgba(223, 97, 7, .12), transparent 55%),
    linear-gradient(180deg, #fff7ed 0%, #fff 34%, #fafaf9 100%);
  color: #1c1917;
}
.home-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(231, 229, 228, .7);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
}
.home-nav-inner,
.home-hero-copy,
.home-stats,
.home-preview,
.home-cta,
.home-footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.guide-inner {
  width: min(1440px, calc(100% - 1.5rem));
  margin-inline: auto;
}
.guide-page .home-nav-inner,
.guide-page .home-footer-inner {
  width: min(1440px, calc(100% - 1.5rem));
}
.home-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #1c1917;
  text-decoration: none;
}
.home-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  background: var(--tj-brand);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}
.home-mark-sm { width: 1.7rem; height: 1.7rem; font-size: .72rem; }
.home-nav-links {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-size: .84rem;
  font-weight: 600;
  color: #57534e;
}
.home-nav-links a:hover { color: #1c1917; }
.home-nav-links a.is-active { color: var(--tj-brand); }
.home-nav-actions { display: flex; align-items: center; gap: .7rem; }
.home-nav-login {
  font-size: .84rem;
  font-weight: 600;
  color: #57534e;
  text-decoration: none;
}
.home-nav-login:hover { color: #1c1917; }
.home-nav-cta {
  display: inline-flex;
  align-items: center;
  border-radius: .7rem;
  background: var(--tj-brand);
  color: #fff;
  padding: .45rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(223, 97, 7, .18);
}
.home-nav-cta:hover { background: #b94808; }
.home-hero { padding: 3.25rem 0 1.5rem; }
.home-hero-copy {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.home-hero-copy h1 {
  margin: .7rem 0 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .35rem .8rem;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: .75rem;
  font-weight: 700;
}
.home-kicker-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: var(--tj-brand);
}
.home-lead {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: #78716c;
  font-size: 1.02rem;
  line-height: 1.7;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.5rem;
}
.home-btn-primary,
.home-btn-ghost,
.home-btn-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 10.5rem;
  padding: .85rem 1.2rem;
  border-radius: .85rem;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.home-btn-primary {
  background: var(--tj-brand);
  color: #fff;
  box-shadow: 0 12px 22px rgba(223, 97, 7, .2);
}
.home-btn-primary:hover { background: #b94808; }
.home-btn-ghost {
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #44403c;
}
.home-btn-ghost:hover { border-color: #d6d3d1; background: #fafaf9; }
.home-btn-on-dark {
  border: 1px solid rgba(255,255,255,.18);
  color: #e7e5e4;
}
.home-btn-on-dark:hover { color: #fff; border-color: rgba(255,255,255,.32); }
.home-hero-note {
  margin: .85rem 0 0;
  color: #a8a29e;
  font-size: .78rem;
}
.home-stats-wrap { padding: 1.25rem 0 2.5rem; }
.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.home-stat {
  display: grid;
  justify-items: start;
  gap: .2rem;
  padding: 1.05rem 1.1rem 1rem;
  border: 1px solid #e7e5e4;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 25, 23, .04);
}
.home-stat-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: .35rem;
  border-radius: .55rem;
  background: #fff7ed;
  color: var(--tj-brand);
  font-size: .78rem;
}
.home-stat strong {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.home-stat span:last-child {
  font-size: .78rem;
  font-weight: 600;
  color: #78716c;
}
.home-stats-foot {
  width: min(1120px, calc(100% - 2rem));
  margin: .85rem auto 0;
  text-align: center;
  color: #a8a29e;
  font-size: .75rem;
}
.home-preview-wrap { padding: 0 0 3.5rem; }
.home-preview {
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 1.35rem;
  background: #fafaf9;
  box-shadow: 0 24px 48px rgba(28, 25, 23, .08);
}
.home-preview-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid #e7e5e4;
  background: #f5f5f4;
}
.home-preview-bar span {
  width: .62rem;
  height: .62rem;
  border-radius: 999px;
  background: #f87171;
}
.home-preview-bar span:nth-child(2) { background: #fbbf24; }
.home-preview-bar span:nth-child(3) { background: #34d399; }
.home-preview-bar em {
  margin-left: .55rem;
  font-style: normal;
  color: #a8a29e;
  font-size: .72rem;
}
.home-preview-body { display: grid; min-height: 16rem; }
.home-preview-side {
  display: none;
  padding: 1.1rem;
  background: #1c1917;
  color: #a8a29e;
}
.home-preview-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.1rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.home-preview-side p {
  margin: 0;
  padding: .45rem .65rem;
  border-radius: .45rem;
  font-size: .75rem;
}
.home-preview-side p.is-active {
  background: rgba(223, 97, 7, .2);
  color: #fdba74;
}
.home-preview-main { padding: 1.15rem 1.2rem 1.35rem; }
.home-preview-head b { display: block; font-size: .92rem; }
.home-preview-head small { color: #a8a29e; font-size: .75rem; }
.home-preview-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}
.home-preview-cards div {
  padding: .75rem .8rem;
  border: 1px solid #e7e5e4;
  border-radius: .85rem;
  background: #fff;
}
.home-preview-cards small {
  display: block;
  color: #a8a29e;
  font-size: .68rem;
  font-weight: 600;
}
.home-preview-cards strong {
  display: block;
  margin-top: .25rem;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.home-preview-floor {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
  padding: .9rem;
  border: 1px dashed #d6d3d1;
  border-radius: .9rem;
  background: #fff;
}
.home-preview-floor i {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
}
.home-preview-floor i.is-vip {
  border-color: #fbbf24;
  background: #fffbeb;
  border-radius: .45rem;
}
.home-features,
.home-how { padding: 3.5rem 0; }
.home-features { background: rgba(250, 250, 249, .7); border-top: 1px solid #f5f5f4; }
.home-section-head { text-align: center; max-width: 36rem; margin-inline: auto; }
.home-section-head p {
  margin: 0;
  color: var(--tj-brand);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-section-head h2 {
  margin: .4rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.home-section-head span {
  display: block;
  margin-top: .45rem;
  color: #78716c;
  font-size: .92rem;
}
.home-feature-grid,
.home-how .home-steps {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 0;
}
.home-feature-grid {
  display: grid;
  gap: .85rem;
}
.home-feature-grid article {
  padding: 1.25rem 1.2rem 1.2rem;
  border: 1px solid #e7e5e4;
  border-radius: 1.15rem;
  background: #fff;
}
.home-feature-grid span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .75rem;
  font-size: .95rem;
}
.home-feature-grid span.is-brand { background: #fff7ed; color: var(--tj-brand); }
.home-feature-grid span.is-emerald { background: #ecfdf5; color: #047857; }
.home-feature-grid span.is-blue { background: #eff6ff; color: #1d4ed8; }
.home-feature-grid span.is-violet { background: #f5f3ff; color: #6d28d9; }
.home-feature-grid span.is-rose { background: #fff1f2; color: #be123c; }
.home-feature-grid span.is-amber { background: #fffbeb; color: #b45309; }
.home-feature-grid h3 { margin: .85rem 0 0; font-size: 1.02rem; }
.home-feature-grid p { margin: .4rem 0 0; color: #78716c; font-size: .86rem; line-height: 1.65; }
.home-steps {
  display: grid;
  gap: 1.1rem;
  padding: 0;
  list-style: none;
}
.home-steps li { text-align: center; }
.home-steps strong {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  border-radius: 1rem;
  background: var(--tj-brand);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 12px 20px rgba(223, 97, 7, .22);
}
.home-steps h3 { margin: .9rem 0 0; font-size: 1.05rem; }
.home-steps p { margin: .4rem auto 0; max-width: 18rem; color: #78716c; font-size: .86rem; line-height: 1.65; }
.home-how-more {
  margin: 1.6rem 0 0;
  text-align: center;
}
.home-how-more a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--tj-brand);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.home-how-more a:hover { text-decoration: underline; }
.home-cta-wrap { padding: 1rem 0 3.5rem; }
.home-cta {
  padding: 2.4rem 1.4rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(238, 122, 17, .28), transparent 60%),
    #1c1917;
  color: #fff;
  text-align: center;
}
.home-cta h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.02em; }
.home-cta p { margin: .7rem auto 0; max-width: 28rem; color: rgba(231,229,228,.7); }
.home-cta-actions { margin-top: 1.4rem; }
.home-footer {
  border-top: 1px solid #e7e5e4;
  background: #fff;
}
.home-footer-inner {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.4rem 0 1.6rem;
}
.home-footer-inner .home-brand small {
  margin-left: .15rem;
  color: #a8a29e;
  font-size: .75rem;
  font-weight: 500;
}
.home-footer nav { display: flex; flex-wrap: wrap; gap: .85rem 1.1rem; }
.home-footer nav a { color: #78716c; font-size: .8rem; font-weight: 600; text-decoration: none; }
.home-footer nav a:hover { color: var(--tj-brand); }
.home-footer p { margin: 0; color: #a8a29e; font-size: .75rem; }

@media (min-width: 640px) {
  .home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { padding-top: 4.2rem; }
}
@media (min-width: 900px) {
  .home-nav-links { display: flex; }
  .home-hero-copy {
    max-width: min(1120px, calc(100% - 2rem));
    align-items: flex-start;
    text-align: left;
  }
  .home-lead { margin-left: 0; }
  .home-hero-actions { justify-content: flex-start; }
  .home-preview-body { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .home-preview-side { display: block; }
  .home-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .home-cta { padding: 3.2rem 2rem; }
  .home-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tj-fade-in,
  .tj-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Organizer page layout ─── */
.tj-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.tj-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tj-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.tj-page-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

/* ─── Organizer event cards ─── */
.ev-kicker {
  margin: 0 0 .2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c2410c;
}
.ev-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.ev-summary-item {
  padding: .85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.ev-summary-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
}
.ev-summary-item span {
  color: #64748b;
  font-size: .75rem;
  font-weight: 600;
}
.ev-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
.ev-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ev-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}
.ev-card.is-current {
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(223, 97, 7, .12);
}
.ev-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fff7ed;
  overflow: hidden;
}
.ev-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ev-card-cover-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  background:
    radial-gradient(420px 180px at 88% -10%, rgba(223, 97, 7, .22), transparent 60%),
    linear-gradient(135deg, #fff7ed, #fed7aa);
}
.ev-card-cover-fallback span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: var(--tj-brand);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}
.ev-card-badges {
  position: absolute;
  left: .7rem;
  bottom: .7rem;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.ev-pill {
  display: inline-flex;
  align-items: center;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.ev-pill--ok { background: rgba(22, 163, 74, .92); }
.ev-pill--open { background: rgba(223, 97, 7, .95); }
.ev-pill--today { background: rgba(37, 99, 235, .95); }
.ev-card-current {
  position: absolute;
  top: .7rem;
  right: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  font-size: .65rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
}
.ev-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .7rem;
  padding: 1rem 1.05rem 1.05rem;
}
.ev-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-card-code {
  margin: .2rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .72rem;
  color: #94a3b8;
}
.ev-card-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .28rem;
  color: #64748b;
  font-size: .8rem;
}
.ev-card-meta li {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  min-width: 0;
}
.ev-card-meta i {
  margin-top: .18rem;
  width: .9rem;
  color: #c2410c;
  font-size: .72rem;
}
.ev-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
}
.ev-card-stats div {
  padding: .45rem .4rem .4rem;
  border-radius: .7rem;
  background: #f8fafc;
  text-align: center;
}
.ev-card-stats strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: #0f172a;
}
.ev-card-stats span {
  color: #94a3b8;
  font-size: .64rem;
  font-weight: 700;
}
.ev-card-actions {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: .5rem;
  margin-top: auto;
}
.ev-card-main {
  min-height: 2.4rem;
  padding: .55rem .7rem;
  font-size: .78rem;
}
.ev-card-toolbar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-top: .2rem;
  margin-top: .1rem;
}
.ev-tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #e7e5e4;
  border-radius: .7rem;
  background: #fff;
  color: #57534e;
  text-decoration: none;
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ev-tool:hover,
.ev-tool:focus-visible {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}
.ev-tool--danger {
  margin-left: auto;
  color: #e11d48;
  border-color: #fecdd3;
}
.ev-tool--danger:hover,
.ev-tool--danger:focus-visible {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, .12);
}
.ev-tool::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + .42rem);
  transform: translateX(-50%) translateY(.15rem);
  padding: .28rem .5rem;
  border-radius: .45rem;
  background: #1c1917;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 3;
}
.ev-tool:hover::after,
.ev-tool:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ev-card-toolbar > .ev-tool:first-child::after {
  left: 0;
  transform: translateY(.15rem);
}
.ev-card-toolbar > .ev-tool:first-child:hover::after,
.ev-card-toolbar > .ev-tool:first-child:focus-visible::after {
  transform: translateY(0);
}
.ev-tool--danger::after {
  left: auto;
  right: 0;
  transform: translateY(.15rem);
}
.ev-tool--danger:hover::after,
.ev-tool--danger:focus-visible::after {
  transform: translateY(0);
}
.ev-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.2rem 1.4rem;
  border: 1px dashed #fdba74;
  border-radius: 1.1rem;
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(223, 97, 7, .08), transparent 70%),
    #fff;
}
.ev-empty-mark {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: .8rem;
  background: var(--tj-brand);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}
.ev-empty-title {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.ev-empty-text {
  margin: .4rem 0 1.1rem;
  max-width: 26rem;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.65;
}
@media (min-width: 720px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tj-empty {
  border-radius: 0.875rem;
  border: 2px dashed #e2e8f0;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.tj-divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #f1f5f9;
}

/* ─── Corporate Organizer panels ─── */
.tj-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}

.tj-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tj-panel-header--brand {
  border-bottom-color: #b94808;
  background: linear-gradient(100deg, #78350f, #b94808);
  color: #fff;
}

.tj-panel-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.tj-panel-header--brand .tj-panel-title {
  color: #fff;
}

.tj-panel-description {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #64748b;
}

.tj-panel-header--brand .tj-panel-description {
  color: rgba(255, 255, 255, 0.76);
}

.tj-panel-body {
  padding: 1.25rem;
}

.tj-panel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tj-panel-footer.between {
  justify-content: space-between;
}

.tj-kpi {
  position: relative;
  overflow: hidden;
  min-height: 7rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tj-kpi::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--tj-kpi-color, #df6107);
  content: "";
}

.tj-kpi-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.tj-kpi-value {
  margin-top: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
}

.tj-form-section + .tj-form-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.tj-form-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

.tj-form-section-title::before {
  display: inline-block;
  width: 0.25rem;
  height: 1rem;
  border-radius: 999px;
  background: #df6107;
  content: "";
}

.tj-data-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.tj-data-row:last-child {
  border-bottom: 0;
}

.tj-data-label {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  color: #64748b;
}

.tj-data-value {
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: right;
  color: #1e293b;
}

.tj-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.tj-status--pending { background: #fffbeb; color: #a16207; }
.tj-status--approved { background: #ecfdf5; color: #047857; }
.tj-status--rejected { background: #fef2f2; color: #b91c1c; }

@media (min-width: 640px) {
  .tj-panel-header,
  .tj-panel-body,
  .tj-panel-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ─── Autocomplete dropdown ─── */
.tj-ac-dropdown {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.06);
}

.tj-ac-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: background-color .1s ease;
}

.tj-ac-item:last-child { border-bottom: 0; }

.tj-ac-item:hover,
.tj-ac-item.tj-ac-active {
  background: #fef7ee;
}

.tj-ac-item:hover .tj-ac-sub,
.tj-ac-item.tj-ac-active .tj-ac-sub {
  color: #b94808;
}

.tj-ac-sub { font-weight: 600; color: #0f172a; }
.tj-ac-dist { color: #475569; }
.tj-ac-prov { color: #64748b; }
.tj-ac-sep { color: #cbd5e1; font-size: 0.7rem; }
.tj-ac-zip {
  margin-left: auto;
  padding: 0.1rem 0.375rem;
  border-radius: 0.25rem;
  background: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}

.tj-ac-mark {
  background: #fde68a;
  color: inherit;
  border-radius: 1px;
  padding: 0 1px;
}

.tj-ac-empty {
  padding: 1rem 0.75rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-align: center;
}

.tj-table-wrap {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  max-width: 100%;
}
.tj-row-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .3rem;
  white-space: nowrap;
}
.tj-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  flex: 0 0 2.05rem;
  border: 1px solid #e2e8f0;
  border-radius: .65rem;
  background: #fff;
  color: #475569;
  text-decoration: none;
  font-size: .78rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tj-icon-btn:hover,
.tj-icon-btn:focus-visible {
  border-color: #fda4af;
  background: #fff1f2;
  color: #be123c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .1);
}
.tj-icon-btn--danger {
  color: #e11d48;
  border-color: #fecdd3;
}
.tj-icon-btn--danger:hover,
.tj-icon-btn--danger:focus-visible {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .12);
}
.tj-icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + .4rem);
  transform: translateY(.12rem);
  padding: .28rem .5rem;
  border-radius: .45rem;
  background: #0f172a;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 5;
}
.tj-row-tools > .tj-icon-btn:first-child::after {
  right: auto;
  left: 0;
}
.tj-icon-btn:hover::after,
.tj-icon-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.tj-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}
.tj-pager-meta {
  margin: 0;
  font-size: .8rem;
  color: #64748b;
}
.tj-pager-meta strong {
  font-weight: 700;
  color: #334155;
}
.tj-pager-size {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.tj-pager-size label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 600;
  color: #475569;
}
.tj-pager-size select {
  height: 2.05rem;
  min-width: 4.25rem;
  border: 1px solid #e2e8f0;
  border-radius: .55rem;
  background: #fff;
  padding: 0 .55rem;
  font-size: .8rem;
  font-weight: 700;
  color: #0f172a;
}
.tj-pager-size select:focus {
  outline: none;
  border-color: #fda4af;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .1);
}
.tj-org .tj-pager-size select:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(223, 97, 7, .12);
}
.tj-pager-apply {
  height: 2.05rem;
  border: 1px solid #e2e8f0;
  border-radius: .55rem;
  background: #fff;
  padding: 0 .7rem;
  font-size: .75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}
.tj-pager-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.tj-pager-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.05rem;
  height: 2.05rem;
  padding: 0 .45rem;
  border-radius: .55rem;
  font-size: .8rem;
  font-weight: 650;
  color: #475569;
  text-decoration: none;
}
.tj-pager-page:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.tj-pager-page.is-active {
  background: #0f172a;
  color: #fff;
}
.tj-org .tj-pager-page.is-active {
  background: var(--tj-brand);
  color: #fff;
}
.tj-pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  color: #94a3b8;
  font-weight: 700;
}

.ad-stat-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1100px) {
  .ad-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .ad-stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ad-stat {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 4.15rem;
  padding: .65rem .8rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ad-stat:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
}
.ad-stat-icon {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  border-radius: .65rem;
  color: #fff;
  font-size: .8rem;
}
.ad-stat-copy {
  min-width: 0;
  display: grid;
  gap: .05rem;
}
.ad-stat-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.25;
}
.ad-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.ad-stat-hint {
  font-size: .65rem;
  font-weight: 650;
}
.ad-stat--violet { background: #f5f3ff; border-color: #ddd6fe; }
.ad-stat--violet .ad-stat-icon { background: #7c3aed; }
.ad-stat--violet .ad-stat-label,
.ad-stat--violet .ad-stat-hint { color: #6d28d9; }
.ad-stat--violet .ad-stat-value { color: #5b21b6; }
.ad-stat--sky { background: #f0f9ff; border-color: #bae6fd; }
.ad-stat--sky .ad-stat-icon { background: #0284c7; }
.ad-stat--sky .ad-stat-label { color: #0369a1; }
.ad-stat--sky .ad-stat-value { color: #0c4a6e; }
.ad-stat--amber { background: #fffbeb; border-color: #fde68a; }
.ad-stat--amber .ad-stat-icon { background: #d97706; }
.ad-stat--amber .ad-stat-label,
.ad-stat--amber .ad-stat-hint { color: #b45309; }
.ad-stat--amber .ad-stat-value { color: #92400e; }
.ad-stat--rose { background: #fff1f2; border-color: #fecdd3; }
.ad-stat--rose .ad-stat-icon { background: #e11d48; }
.ad-stat--rose .ad-stat-label { color: #be123c; }
.ad-stat--rose .ad-stat-value { color: #9f1239; }
.ad-stat--emerald { background: #ecfdf5; border-color: #a7f3d0; }
.ad-stat--emerald .ad-stat-icon { background: #059669; }
.ad-stat--emerald .ad-stat-label { color: #047857; }
.ad-stat--emerald .ad-stat-value { color: #065f46; }
.ad-stat--orange { background: #fff7ed; border-color: #fed7aa; }
.ad-stat--orange .ad-stat-icon { background: #ea580c; }
.ad-stat--orange .ad-stat-label { color: #c2410c; }
.ad-stat--orange .ad-stat-value { color: #9a3412; }

.avatar-crop-stage {
  position: relative;
  width: 280px;
  height: 280px;
  overflow: hidden;
  border-radius: 50%;
  background: #0f172a;
  touch-action: none;
  cursor: grab;
  user-select: none;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.avatar-crop-stage.is-dragging { cursor: grabbing; }
.avatar-crop-stage img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Organizer login ── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  background:
    radial-gradient(720px 380px at 90% -10%, rgba(223, 97, 7, .12), transparent 55%),
    linear-gradient(180deg, #fff7ed 0%, #fafaf9 48%, #f5f5f4 100%);
}
.auth-brand {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.25rem;
  color: #e7e5e4;
  background:
    radial-gradient(420px 220px at 18% 12%, rgba(238, 122, 17, .32), transparent 60%),
    radial-gradient(380px 200px at 88% 88%, rgba(251, 191, 36, .12), transparent 62%),
    #1c1917;
}
.auth-brand-logo,
.auth-card-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.02em;
}
.auth-brand-logo { color: #fff; font-size: 1.05rem; font-weight: 700; }
.auth-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .55rem;
  background: var(--tj-brand);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}
.auth-brand-kicker {
  margin: 2.4rem 0 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fdba74;
}
.auth-brand-title {
  margin: .55rem 0 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
  color: #fff;
}
.auth-brand-text {
  margin: .85rem 0 0;
  max-width: 28rem;
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(231, 229, 228, .68);
}
.auth-brand-points {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .65rem;
}
.auth-brand-points li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .82rem;
  color: rgba(250, 250, 249, .86);
}
.auth-brand-points i {
  margin-top: .2rem;
  color: #4ade80;
  font-size: .7rem;
}
.auth-brand-back {
  margin-top: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(231, 229, 228, .7);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-brand-back:hover { color: #fdba74; }
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem 2.25rem;
}
.auth-card {
  width: min(100%, 26.5rem);
  padding: 1.65rem 1.4rem 1.5rem;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(28, 25, 23, .08);
}
.auth-card-logo {
  margin-bottom: 1.15rem;
  color: #1c1917;
  font-size: 1rem;
}
.auth-eyebrow {
  margin: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tj-brand);
}
.auth-title {
  margin: .35rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #1c1917;
}
.auth-lead {
  margin: .35rem 0 0;
  font-size: .84rem;
  color: #78716c;
}
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-top: 1rem;
  padding: .75rem .85rem;
  border-radius: .8rem;
  font-size: .8rem;
  line-height: 1.5;
}
.auth-alert i { margin-top: .15rem; }
.auth-alert--error { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }
.auth-alert--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.auth-form { margin-top: 1.2rem; display: grid; gap: .95rem; }
.auth-field { display: block; font-size: .8rem; }
.auth-field > :first-child,
.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .4rem;
  font-weight: 700;
  color: #44403c;
}
.auth-field-row label { margin: 0; }
.auth-field-row a {
  font-size: .72rem;
  font-weight: 600;
  color: var(--tj-brand);
  text-decoration: none;
  white-space: nowrap;
}
.auth-field-row a:hover { text-decoration: underline; }
.auth-field .tj-input { padding-top: .7rem; padding-bottom: .7rem; font-size: 1rem; }
.auth-submit {
  width: 100%;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1rem;
  font-size: .9rem;
  border-radius: .75rem;
  box-shadow: 0 10px 18px rgba(223, 97, 7, .18);
}
.auth-submit:hover { box-shadow: 0 12px 22px rgba(223, 97, 7, .26); }
.auth-submit:disabled { opacity: .7; cursor: wait; box-shadow: none; }
.auth-legal-note {
  margin: 0 0 1rem;
  padding: .85rem .95rem;
  border: 1px solid #e7e5e4;
  border-radius: .85rem;
  background: #fafaf9;
  color: #57534e;
  font-size: .78rem;
  line-height: 1.65;
}
.auth-legal-note a {
  font-weight: 700;
  color: var(--tj-brand);
  text-decoration: none;
}
.auth-legal-note a:hover { text-decoration: underline; }
.auth-footer-legal {
  margin: .7rem 0 0;
  text-align: center;
  font-size: .75rem;
  color: #a8a29e;
}
.auth-footer-legal a {
  font-weight: 700;
  color: #78716c;
  text-decoration: none;
}
.auth-footer-legal a:hover { color: var(--tj-brand); }
.auth-footer-copy {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: .8rem;
  color: #a8a29e;
}
.auth-footer-copy a {
  font-weight: 700;
  color: var(--tj-brand);
  text-decoration: none;
}
.auth-footer-copy a:hover { text-decoration: underline; }
.auth-footer-home {
  display: block;
  margin: .85rem 0 0;
  text-align: center;
}
.auth-footer-home a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: #a8a29e;
  text-decoration: none;
}
.auth-footer-home a:hover { color: var(--tj-brand); }
.auth-version {
  margin: .7rem 0 0;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #d6d3d1;
}
.auth-version a { color: inherit; text-decoration: none; }
.auth-version a:hover { color: var(--tj-brand); }

/* ── Admin login ── */
.auth-shell--admin {
  background:
    radial-gradient(720px 380px at 90% -10%, rgba(225, 29, 72, .1), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 48%, #eef2f6 100%);
}
.auth-shell--admin .auth-brand {
  background:
    radial-gradient(420px 220px at 18% 12%, rgba(225, 29, 72, .28), transparent 60%),
    radial-gradient(380px 200px at 88% 88%, rgba(244, 63, 94, .1), transparent 62%),
    #0f172a;
}
.auth-shell--admin .auth-mark {
  background: #e11d48;
}
.auth-shell--admin .auth-brand-kicker { color: #fda4af; }
.auth-shell--admin .auth-brand-points i { color: #fb7185; }
.auth-shell--admin .auth-brand-back:hover { color: #fda4af; }
.auth-shell--admin .auth-eyebrow { color: #e11d48; }
.auth-shell--admin .auth-footer-copy a { color: #e11d48; }
.auth-shell--admin .auth-footer-home a:hover { color: #e11d48; }
.auth-shell--admin .auth-version a:hover { color: #e11d48; }
.auth-shell--admin .tj-input:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .12);
}
.auth-shell--admin .tj-password-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .18);
}
.auth-shell--admin .auth-submit {
  background: #e11d48;
  box-shadow: 0 10px 18px rgba(225, 29, 72, .2);
}
.auth-shell--admin .auth-submit:hover {
  background: #be123c;
  box-shadow: 0 12px 22px rgba(225, 29, 72, .28);
}
.auth-shell--admin .auth-submit:disabled {
  background: #e11d48;
  box-shadow: none;
}

.cl-hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 1.25rem;
}
.cl-hero h1 {
  margin: .55rem 0 0;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -.03em;
}
.cl-hero .home-lead { margin-top: .7rem; max-width: 32rem; }
.cl-list {
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto 3.2rem;
  display: grid;
  gap: 1rem;
}

body:has(.auth-shell),
body:has(.home-page),
body:has(.guide-page),
body:has(.err-page) {
  background: #fff7ed;
}
body:has(.auth-shell--admin) {
  background: #f8fafc;
}

.auth-card--wide { width: min(100%, 32.5rem); }
.auth-section {
  margin: .35rem 0 -.15rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a8a29e;
}
.auth-section:first-of-type { margin-top: 0; }
.auth-name-grid {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr) minmax(0, 1.35fr);
  gap: .75rem;
}
.auth-hint {
  margin: .4rem 0 0;
  font-size: .72rem;
  color: #a8a29e;
}
.auth-sent {
  margin-top: 1.1rem;
  padding: 1rem 1rem .95rem;
  border: 1px solid #a7f3d0;
  border-radius: .95rem;
  background: #ecfdf5;
}
.auth-sent-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: .55rem;
  border-radius: .7rem;
  background: #047857;
  color: #fff;
  font-size: 1rem;
}
.auth-sent-mail {
  margin: 0 0 .7rem;
  font-size: .82rem;
  color: #065f46;
}
.auth-sent-mail strong { font-weight: 700; }
.auth-mini-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .4rem;
  color: #047857;
  font-size: .8rem;
  line-height: 1.45;
}
.auth-mini-steps li {
  display: flex;
  gap: .5rem;
  counter-increment: forgot-step;
}
.auth-mini-steps { counter-reset: forgot-step; }
.auth-mini-steps li::before {
  content: counter(forgot-step);
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
  margin-top: .08rem;
  border-radius: 999px;
  background: #047857;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
}
.auth-debug {
  margin-top: 1rem;
  padding: .9rem;
  border: 1px dashed #fdba74;
  border-radius: .95rem;
  background: #fff7ed;
}
.auth-debug p {
  margin: 0 0 .75rem;
  font-size: .8rem;
  color: #9a3412;
  line-height: 1.5;
}
.auth-debug .auth-submit { margin: 0; }
.auth-reset-link {
  display: block;
  margin-top: .45rem;
  word-break: break-all;
  font-size: .78rem;
  font-weight: 600;
  color: #047857;
}
.auth-hint--ok { color: #047857; }
.auth-hint--bad { color: #9f1239; }
.auth-field select.tj-input {
  padding-top: .7rem;
  padding-bottom: .7rem;
  font-size: 1rem;
  height: auto;
}

@media (max-width: 560px) {
  .auth-name-grid {
    grid-template-columns: 7.25rem minmax(0, 1fr);
  }
  .auth-name-grid .auth-field--last { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .auth-shell { grid-template-columns: minmax(18rem, .92fr) minmax(0, 1.08fr); }
  .auth-brand { display: flex; }
  .auth-card-logo { display: none; }
  .auth-footer-home { display: none; }
  .auth-main { padding: 2.5rem; }
  .auth-card { padding: 2rem 1.85rem 1.7rem; }
  .auth-shell--register .auth-brand {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
  }
  .auth-shell--register .auth-main {
    align-items: flex-start;
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
}

/* ── HTTP error pages ── */
.err-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(720px 380px at 88% -8%, rgba(223, 97, 7, .12), transparent 55%),
    linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fafaf9 100%);
  color: #1c1917;
}
.err-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  height: 4rem;
}
.err-nav-link {
  font-size: .84rem;
  font-weight: 600;
  color: #57534e;
  text-decoration: none;
}
.err-nav-link:hover { color: #1c1917; }
.err-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem 3.5rem;
}
.err-card {
  position: relative;
  width: min(36rem, 100%);
  overflow: hidden;
  text-align: center;
  padding: 2.35rem 1.5rem 2rem;
  border: 1px solid #e7e5e4;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(28, 25, 23, .06);
}
.err-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #fdba74, var(--tj-brand), #fdba74);
}
.err-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .35rem .8rem;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: .75rem;
  font-weight: 700;
}
.err-code {
  margin: 1rem 0 0;
  font-size: clamp(4.2rem, 16vw, 7rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .9;
  background: linear-gradient(180deg, #df6107 0%, #fb923c 58%, #fed7aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.err-card h1 {
  margin: .85rem 0 0;
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.err-text {
  margin: .75rem auto 0;
  max-width: 28rem;
  color: #78716c;
  font-size: 1rem;
  line-height: 1.7;
}
.err-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.6rem;
}
.err-actions .home-btn-primary,
.err-actions .home-btn-ghost {
  min-width: 9.5rem;
}
.err-debug {
  margin-top: 1.6rem;
  text-align: left;
  border-top: 1px solid #e7e5e4;
  padding-top: 1rem;
}
.err-debug summary {
  cursor: pointer;
  color: #9a3412;
  font-size: .8rem;
  font-weight: 700;
}
.err-debug pre {
  margin: .7rem 0 0;
  padding: .85rem;
  border-radius: .7rem;
  background: #1c1917;
  color: #fafaf9;
  font-size: .72rem;
  line-height: 1.5;
  overflow: auto;
  max-height: 14rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* —— คู่มือการใช้งาน —— */
.guide-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 8% -10%, rgba(253, 186, 116, .4), transparent 58%),
    radial-gradient(900px 380px at 96% 12%, rgba(254, 215, 170, .35), transparent 55%),
    linear-gradient(180deg, #fff7ed 0%, #fff 22%, #fafaf9 100%);
  color: #1c1917;
}
.guide-page > .home-footer { margin-top: auto; }
.guide-hero { padding: 2.8rem 0 1.6rem; }
.guide-hero h1 {
  margin: .7rem 0 0;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  letter-spacing: -.03em;
  line-height: 1.2;
}
.guide-lead {
  margin: .75rem 0 0;
  max-width: 44rem;
  color: #57534e;
  font-size: 1.05rem;
  line-height: 1.7;
}
.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.35rem;
}
.guide-tabs a {
  display: inline-flex;
  align-items: center;
  padding: .45rem .95rem;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  background: #fff;
  color: #57534e;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.guide-tabs a:hover { border-color: #fdba74; color: #9a3412; }
.guide-tabs a.is-on {
  border-color: transparent;
  background: var(--tj-brand);
  color: #fff;
}
.guide-hub {
  display: grid;
  gap: 1rem;
  padding: .5rem 0 1.5rem;
}
.guide-hub-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 24rem;
  padding: 1.55rem 1.5rem 1.35rem;
  border: 1px solid #e7e5e4;
  border-radius: 1.35rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(28, 25, 23, .04);
}
.guide-hub-card:hover { border-color: #fdba74; box-shadow: 0 16px 36px rgba(223, 97, 7, .1); }
.guide-hub-tag {
  display: inline-flex;
  padding: .22rem .65rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: .72rem;
  font-weight: 800;
}
.guide-hub-card.is-org .guide-hub-tag { background: #1c1917; color: #fed7aa; }
.guide-hub-card h2 { margin: .7rem 0 0; font-size: 1.22rem; letter-spacing: -.02em; }
.guide-hub-card p { margin: .45rem 0 0; max-width: 22rem; color: #78716c; font-size: .9rem; line-height: 1.65; }
.guide-hub-card ul {
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
  color: #44403c;
  font-size: .84rem;
  line-height: 1.7;
}
.guide-hub-card ul li::before {
  content: "•";
  margin-right: .45rem;
  color: var(--tj-brand);
  font-weight: 800;
}
.guide-hub-go {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--tj-brand);
  font-size: .88rem;
  font-weight: 800;
}
.guide-hub-card img {
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: 58%;
  max-width: 17rem;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(28, 25, 23, .16);
  transform: rotate(8deg);
  pointer-events: none;
}
.guide-hub-card.is-org img {
  width: 70%;
  max-width: 22rem;
  bottom: -8%;
  right: -12%;
  transform: rotate(6deg);
}
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .7rem;
  padding: .2rem 0 1rem;
}
.guide-toc a {
  color: #78716c;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.guide-toc a:hover { color: var(--tj-brand); }
.guide-block { padding: 0 0 2.4rem; scroll-margin-top: 5rem; }
.guide-step-kicker {
  margin: 0;
  color: var(--tj-brand);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.guide-h2 {
  margin: .25rem 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -.02em;
}
.guide-p {
  margin: .7rem 0 0;
  max-width: 48rem;
  color: #57534e;
  font-size: .98rem;
  line-height: 1.75;
}
.guide-list,
.guide-ol {
  margin: .85rem 0 0;
  padding-left: 1.15rem;
  max-width: 48rem;
  color: #44403c;
  font-size: .95rem;
  line-height: 1.75;
}
.guide-list li + li,
.guide-ol li + li { margin-top: .35rem; }
.guide-note,
.guide-callout {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: 1rem;
  max-width: 48rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid #e7e5e4;
  background: #fff;
}
.guide-note { background: #fffbeb; border-color: #fde68a; }
.guide-note strong,
.guide-callout p { margin: 0; font-size: .92rem; }
.guide-note ul {
  margin: .15rem 0 0;
  padding-left: 1.1rem;
  color: #57534e;
  font-size: .88rem;
  line-height: 1.7;
}
.guide-callout {
  flex-direction: row;
  align-items: flex-start;
  gap: .75rem;
  background: #fff7ed;
  border-color: #fed7aa;
}
.guide-callout i { margin-top: .2rem; color: var(--tj-brand); }
.guide-callout p { color: #7c2d12; line-height: 1.65; }
.guide-pair {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}
.guide-shot { margin: 1.1rem 0 0; }
.guide-shot-chrome {
  display: flex;
  align-items: center;
  gap: .35rem;
  height: 1.7rem;
  padding: 0 .75rem;
  border: 1px solid #e7e5e4;
  border-bottom: 0;
  border-radius: .9rem .9rem 0 0;
  background: #f5f5f4;
}
.guide-shot-chrome i {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #d6d3d1;
}
.guide-shot-chrome i:first-child { background: #fca5a5; }
.guide-shot-chrome i:nth-child(2) { background: #fcd34d; }
.guide-shot-chrome i:nth-child(3) { background: #86efac; }
.guide-shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #e7e5e4;
  border-radius: 0 0 .9rem .9rem;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}
.guide-shot--phone { max-width: 22rem; }
.guide-shot--phone .guide-shot-btn {
  border-radius: 1.4rem;
  border-width: 8px;
  border-color: #1c1917;
}
.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.guide-shot figcaption {
  margin: .55rem 0 0;
  color: #78716c;
  font-size: .82rem;
  line-height: 1.55;
}
.guide-shot figcaption span {
  display: inline-block;
  margin-left: .35rem;
  color: #a8a29e;
  font-size: .75rem;
}
.guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: 1.2rem;
  background: #1c1917;
  color: #e7e5e4;
}
.guide-cta-row p { margin: 0; font-weight: 600; }
.guide-cta-row .home-btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

@media (min-width: 800px) {
  .guide-hub { grid-template-columns: 1fr 1fr; }
  .guide-hub-card { padding-right: 42%; }
  .guide-pair { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .guide-hero { padding: 3.6rem 0 2rem; }
}
@media (max-width: 799px) {
  .guide-hub-card { padding-bottom: 9rem; }
  .guide-hub-card img { width: 48%; right: -6%; bottom: -12%; }
}

.guide-faq-list {
  display: grid;
  gap: .7rem;
  margin-top: 1.15rem;
}
.guide-faq {
  border: 1px solid #e7e5e4;
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 25, 23, .03);
}
.guide-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.45;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary i {
  color: #a8a29e;
  font-size: .75rem;
  transition: transform .15s ease;
}
.guide-faq[open] {
  border-color: #fed7aa;
  box-shadow: 0 12px 28px rgba(223, 97, 7, .08);
}
.guide-faq[open] summary i { transform: rotate(180deg); color: var(--tj-brand); }
.guide-faq-body {
  padding: 0 1.15rem 1.15rem;
  color: #57534e;
  font-size: .94rem;
  line-height: 1.75;
}
.guide-faq-link { margin: .7rem 0 0; }
.guide-faq-link a { color: var(--tj-brand); font-weight: 700; text-decoration: none; }
.guide-faq-link a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .guide-faq-list {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.cookie-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background: #fff;
}
.cookie-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: .88rem;
}
.cookie-table th,
.cookie-table td {
  padding: .9rem 1.05rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #f5f5f4;
}
.cookie-table th {
  background: #fafaf9;
  color: #78716c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cookie-table tr:last-child td { border-bottom: 0; }
.cookie-table code {
  font-size: .8rem;
  color: #9a3412;
}
.cookie-choice {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.legal-page .guide-p,
.legal-page .guide-list,
.legal-page .guide-lead {
  max-width: none;
}
.legal-page .guide-p a,
.legal-page .guide-lead a,
.legal-page .guide-list a {
  color: var(--tj-brand);
  font-weight: 700;
  text-decoration: none;
}
.legal-page .guide-p a:hover,
.legal-page .guide-lead a:hover,
.legal-page .guide-list a:hover {
  text-decoration: underline;
}
.legal-meta {
  margin: .85rem 0 0;
  color: #78716c;
  font-size: .82rem;
  font-weight: 600;
}
.legal-layout {
  padding-bottom: 2.6rem;
}
.legal-side {
  display: none;
}
.legal-toc {
  margin-top: 1.15rem;
  padding-top: .2rem;
}
.legal-side-title {
  margin: 0 0 .65rem;
  color: #78716c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-side a {
  display: block;
  padding: .38rem 0;
  color: #57534e;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f4;
}
.legal-side a:hover,
.legal-side a:focus-visible {
  color: var(--tj-brand);
}
.legal-callout {
  margin: 1rem 0 0;
  max-width: none;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--tj-brand);
  border-radius: 0 .9rem .9rem 0;
  background: #fff7ed;
}
.legal-callout p {
  margin: 0;
  color: #44403c;
  font-size: .92rem;
  line-height: 1.7;
}
.legal-disclaimer {
  color: #78716c;
  font-size: .86rem;
}
.legal-split {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.2rem;
}
.legal-panel {
  padding: 1.35rem 1.3rem 1.4rem;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 25, 23, .04);
}
.legal-panel .guide-h2 { margin-top: 0; }
.legal-panel .guide-p:first-of-type { margin-top: .55rem; }
.legal-main > .guide-inner {
  width: auto;
  margin: 0;
}
@media (max-width: 799px) {
  .cookie-table { min-width: 0; }
}
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    gap: 2.4rem;
    align-items: start;
  }
  .legal-side {
    display: block;
    position: sticky;
    top: 5.25rem;
    max-height: calc(100dvh - 6.5rem);
    overflow: auto;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid #e7e5e4;
    border-radius: 1.15rem;
    background: rgba(255,255,255,.82);
  }
  .legal-toc--hero { display: none; }
  .legal-split { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
}
@media (min-width: 1280px) {
  .guide-hero h1 { font-size: clamp(2rem, 3.2vw, 3rem); }
}

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  padding: .85rem .85rem calc(.85rem + env(safe-area-inset-bottom));
  background: rgba(28, 25, 23, .94);
  color: #f5f5f4;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .2);
}
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.2rem;
  width: min(1440px, calc(100% - .4rem));
  margin-inline: auto;
}
.cookie-banner-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 800;
}
.cookie-banner-copy a {
  color: #fdba74;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-copy p:last-child {
  margin: .25rem 0 0;
  color: rgba(245, 245, 244, .72);
  font-size: .8rem;
  line-height: 1.55;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.cookie-banner-link,
.cookie-banner-ghost,
.cookie-banner-ok {
  display: inline-flex;
  align-items: center;
  border-radius: .65rem;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.cookie-banner-link { padding: .45rem .7rem; color: #fdba74; }
.cookie-banner-ghost,
.cookie-banner-ok {
  padding: .5rem .85rem;
  border: 0;
  cursor: pointer;
}
.cookie-banner-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.cookie-banner-ok { background: var(--tj-brand); color: #fff; }

@media print {
  .cookie-banner { display: none !important; }
}


