:root {
  --ink: #151515;
  --muted: #66615a;
  --line: #ded8cf;
  --paper: #f6f1e9;
  --surface: #fffaf2;
  --gold: #c49a45;
  --red: #e6c846;
  --te-yellow: #e6c846;
  --te-yellow-soft: #f4df69;
  --te-black: #000000;
  --te-dark: #1e1e1e;
  --te-gray: #32373c;
  --te-cream: #f7efe2;
  --green: #20795f;
  --blue: #254b63;
  --shadow: 0 22px 55px rgba(31, 27, 22, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.te-test-page,
.te-admin-page {
  background: #160f0d;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.customer-preview,
.admin-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.customer-preview {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 0 42px;
}

.preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.preview-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.preview-nav a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.preview-hero {
  min-height: 68vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.preview-booking {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.preview-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.preview-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.preview-card-grid button {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.preview-card-grid a,
.preview-booking a {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.preview-booking a {
  display: block;
  min-height: 40px;
  margin-top: 16px;
  background: #fff;
  text-align: center;
}

.te-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 16, 15, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.te-topbar-inner {
  width: min(1180px, calc(100% - 28px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.te-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.te-logo span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--te-yellow);
  color: #fff;
  font-weight: 900;
}

.te-logo strong {
  font-size: 20px;
}

.te-location {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #f6e7ce;
  font-weight: 900;
}

.te-quick {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.te-quick a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.te-quick .te-date-link {
  padding: 10px 13px;
  border-radius: 6px;
  background: var(--te-yellow);
  color: #fff;
}

.te-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 70px 0;
  color: #fff;
}

.te-hero h1 {
  max-width: 860px;
  margin: 0 0 20px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.94;
}

.te-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 21px;
  line-height: 1.5;
}

.te-kicker {
  margin: 0 0 12px;
  color: #f0be52;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.te-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.te-choice-row a,
.te-hero-panel a,
.te-section-action a,
.te-feature-band a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--te-yellow);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.te-choice-row a + a {
  background: #fff;
  color: var(--te-black);
}

.te-hero-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.te-hero-panel span,
.te-hero-panel strong {
  display: block;
}

.te-hero-panel span {
  margin-bottom: 12px;
  color: #f0be52;
  font-weight: 900;
}

.te-hero-panel strong {
  margin-bottom: 20px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

.te-section,
.te-booking-flow {
  padding: 72px max(18px, calc((100vw - 1180px) / 2));
  background: var(--te-cream);
}

.te-yellow-band {
  background: var(--te-yellow);
  color: var(--te-black);
}

.te-yellow-band .te-kicker,
.te-yellow-band .te-section-head p {
  color: rgba(0, 0, 0, 0.72);
}

.te-section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.te-section-head h2,
.te-feature-band h2,
.te-booking-flow h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.te-section-head p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.te-product-grid,
.te-info-grid,
.te-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.te-outdoor-grid {
  grid-template-columns: repeat(4, 1fr);
}

.te-product-card,
.te-info-grid a,
.te-flow-grid a {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--te-black);
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(31, 27, 22, 0.16);
}

.te-yellow-band .te-product-card {
  background: #fff7ea;
}

.te-product-card span,
.te-flow-grid span {
  color: var(--te-yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.te-product-card strong,
.te-info-grid a,
.te-flow-grid strong {
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
}

.te-product-card small,
.te-flow-grid small {
  color: var(--muted);
  line-height: 1.4;
}

.te-product-card.seasonal {
  outline: 3px solid #f0be52;
}

.te-section-action {
  margin-top: 24px;
}

.te-feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 62px max(18px, calc((100vw - 1180px) / 2));
  background: #251b18;
  color: #fff;
}

.te-feature-band p {
  color: rgba(255, 255, 255, 0.75);
}

.te-info-section {
  background: #fff;
}

.te-info-grid a {
  min-height: 120px;
  justify-content: center;
}

.te-booking-flow {
  background: #efe3d2;
}

.te-flow-grid a {
  min-height: 160px;
}

.te-flow-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--te-black);
  color: #fff;
}

.te-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(18px, calc((100vw - 1180px) / 2));
  background: var(--te-black);
  color: rgba(255, 255, 255, 0.76);
}

.te-footer strong {
  color: #fff;
}

.te-admin-page .admin-shell {
  width: min(1240px, calc(100% - 32px));
}

.te-admin-page .admin-header h1,
.te-admin-page .brand-row {
  color: #fff;
}

.te-admin-page .admin-header {
  color: #fff;
}

.te-admin-page .brand-mark {
  background: var(--te-yellow);
  color: var(--te-black);
}

.te-admin-page .mode-button,
.te-admin-page .panel {
  background: #fff7ea;
  border-color: rgba(255, 255, 255, 0.14);
}

.te-admin-page .mode-button.active {
  border-color: #f0be52;
  box-shadow: 0 0 0 3px rgba(240, 190, 82, 0.2);
}

.te-admin-page .live-pill,
.te-admin-page .bar-fill {
  background: var(--te-yellow);
  color: var(--te-black);
}

.te-admin-page .track-bar i {
  background: var(--te-yellow);
}

.te-admin-page {
  min-height: 100vh;
  overflow: hidden;
}

.te-admin-page .admin-shell {
  width: min(1500px, calc(100% - 20px));
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.te-admin-page .admin-header {
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.te-admin-page .admin-header > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.te-admin-page .admin-header > div .admin-subline {
  flex-basis: 100%;
  margin-left: 42px;
}

.te-admin-page .brand-row {
  gap: 8px;
  font-size: 15px;
}

.te-admin-page .brand-mark {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.te-admin-page .admin-header h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1;
}

.te-admin-page .admin-subline {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1.3;
}

.te-admin-page .admin-code-button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(230, 200, 70, 0.38);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.te-admin-page .admin-code-button.active {
  background: var(--te-yellow);
  color: var(--te-black);
  border-color: var(--te-yellow);
}

.te-admin-page .mode-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.te-admin-page .mode-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  box-shadow: inset 0 0 0 0 rgba(230, 200, 70, 0);
}

.te-admin-page .mode-button span {
  font-size: 15px;
}

.te-admin-page .mode-button small {
  margin: 0;
  font-size: 12px;
}

.te-admin-page .mode-button:hover,
.te-admin-page .range-tab:hover,
.te-admin-page .small-button:hover {
  border-color: var(--te-yellow);
  box-shadow: 0 0 0 2px rgba(230, 200, 70, 0.22);
}

.te-admin-page .mode-button:active,
.te-admin-page .range-tab:active,
.te-admin-page .small-button:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.18);
}

.te-admin-page .mode-button:focus-visible,
.te-admin-page .range-tab:focus-visible,
.te-admin-page .small-button:focus-visible {
  outline: 3px solid rgba(230, 200, 70, 0.45);
  outline-offset: 2px;
}

.te-admin-page .mode-button.active {
  border-color: var(--te-yellow);
  background: var(--te-yellow);
  color: var(--te-black);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(230, 200, 70, 0.2);
}

.te-admin-page .mode-button.active small {
  color: rgba(0, 0, 0, 0.72);
}

.te-admin-page .admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.te-admin-page .alert-button.active {
  border-color: #cf3b2e;
  background: #cf3b2e;
  color: #fff;
}

.te-admin-page .help-toggle {
  min-width: 132px;
  padding: 7px 10px;
  font-size: 12px;
}

.te-admin-page .help-toggle.active {
  border-color: var(--te-yellow);
  background: var(--te-yellow);
  color: var(--te-black);
}

.te-admin-page .idle-guard-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(230, 200, 70, 0.34);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.te-admin-page .idle-guard-pill.active {
  border-color: rgba(230, 200, 70, 0.72);
  background: rgba(230, 200, 70, 0.14);
  color: #fff7d2;
}

.te-admin-page .idle-guard-pill.warning {
  border-color: var(--te-yellow);
  background: var(--te-yellow);
  color: var(--te-black);
}

.te-admin-page [data-help] {
  position: relative;
}

.te-admin-page.help-enabled [data-help]:hover,
.te-admin-page.help-enabled [data-help]:focus-within {
  outline: 1px solid rgba(230, 200, 70, 0.42);
  outline-offset: 2px;
}

.te-admin-page .help-tooltip {
  position: fixed;
  z-index: 1000;
  width: min(360px, calc(100vw - 24px));
  max-height: min(230px, calc(100vh - 24px));
  overflow: auto;
  padding: 11px 13px;
  border: 1px solid rgba(230, 200, 70, 0.82);
  border-radius: 8px;
  background: #fffaf2;
  color: #151515;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.38;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}

.te-admin-page .help-tooltip[hidden] {
  display: none;
}

.te-admin-page .open-alert-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #cf3b2e;
  border-radius: 7px;
  background: #cf3b2e;
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.te-admin-page.has-open-chat-alert .inbox-panel {
  box-shadow: 0 0 0 3px rgba(207, 59, 46, 0.42), 0 0 28px rgba(207, 59, 46, 0.28);
}

.te-admin-page [disabled],
.te-admin-page .disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.te-admin-page .dashboard-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 280px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.te-admin-page .setup-notice {
  padding: 9px 12px;
  border: 1px solid rgba(230, 200, 70, 0.42);
  border-radius: 7px;
  background: rgba(230, 200, 70, 0.16);
  color: #fff7d2;
  font-size: 13px;
  font-weight: 900;
}

.te-admin-page .setup-notice[hidden] {
  display: none;
}

.te-admin-page .idle-reminder-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  width: min(390px, calc(100vw - 28px));
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 2px solid var(--te-yellow);
  border-radius: 8px;
  background: #161412;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.te-admin-page .idle-reminder-panel[hidden] {
  display: none;
}

.te-admin-page .idle-reminder-panel strong {
  color: var(--te-yellow);
  font-size: 15px;
}

.te-admin-page .idle-reminder-panel span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.te-admin-page .idle-reminder-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.te-admin-page .zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.58);
}

.te-admin-page .zoom-backdrop[hidden] {
  display: none;
}

.te-admin-page .panel {
  position: relative;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
}

.te-admin-page .panel:not(.panel-zoomed) {
  cursor: zoom-in;
}

.te-admin-page .panel-zoomed {
  position: fixed;
  inset: 24px;
  z-index: 90;
  padding: 18px;
  cursor: default;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.te-admin-page.analysis-drawer-open .zoom-backdrop {
  background: rgba(0, 0, 0, 0.34);
}

.te-admin-page .analysis-panel.panel-zoomed {
  inset: 18px 18px 18px auto;
  width: min(1120px, calc(100vw - 36px));
  border: 1px solid rgba(230, 200, 70, 0.7);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.46);
}

.te-admin-page .panel-zoom-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 1px solid var(--te-yellow);
  border-radius: 6px;
  background: var(--te-yellow);
  color: var(--te-black);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.te-admin-page .panel-zoomed .panel-title {
  padding-right: 110px;
}

.te-admin-page .panel-zoomed .tracking-columns,
.te-admin-page .panel-zoomed .analysis-view,
.te-admin-page .panel-zoomed .stat-list,
.te-admin-page .panel-zoomed .message-feed {
  overflow: auto;
}

.te-admin-page .panel-zoomed .journey-list {
  max-height: 260px;
}

.te-admin-page .panel-zoomed .compact-journeys {
  max-height: 180px;
}

.te-admin-page .panel-zoomed .journey-steps span {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.te-admin-page .panel-title {
  flex: 0 0 auto;
  margin-bottom: 9px;
  font-size: 14px;
}

.te-admin-page .panel-expand-button {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.te-admin-page .panel-expand-button:hover,
.te-admin-page .panel-expand-button:focus-visible {
  border-color: var(--te-yellow);
  background: var(--te-yellow);
  outline: none;
}

.te-admin-page.statistics-loading .offers-panel::after,
.te-admin-page.statistics-loading .analysis-panel::after {
  position: absolute;
  inset: 42px 10px 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 200, 70, 0.72);
  border-radius: 7px;
  background: rgba(255, 250, 242, 0.94);
  color: var(--ink);
  content: "Auswertung wird geladen …";
  font-size: 13px;
  font-weight: 900;
}

.te-admin-page .panel-hint {
  flex: 0 0 auto;
  margin: 7px 0 0;
  color: rgba(31, 27, 22, 0.62);
  font-size: 11px;
  line-height: 1.32;
}

.te-admin-page .live-panel {
  container-name: live-frame;
  container-type: inline-size;
  grid-column: span 4;
}

.te-admin-page .stats-panel {
  grid-column: span 3;
}

.te-admin-page .period-panel {
  grid-column: span 5;
}

.te-admin-page .offers-panel {
  container-name: offers-frame;
  container-type: inline-size;
  grid-column: span 7;
  grid-row: 2;
}

.te-admin-page .source-panel {
  container-name: analysis-frame;
  container-type: inline-size;
  grid-column: 1 / span 7;
  grid-row: 3;
}

.te-admin-page .inbox-panel {
  grid-column: 8 / span 5;
  grid-row: 2 / 4;
  min-height: 0;
}

.te-admin-page .counter-grid {
  gap: 8px;
}

.te-admin-page .counter-grid div,
.te-admin-page .period-grid div {
  padding: 10px;
}

.te-admin-page .counter {
  margin-bottom: 2px;
  font-size: 26px;
}

.te-admin-page .counter-grid small {
  font-size: 12px;
}

.te-admin-page .stat-list {
  min-height: 0;
  gap: 6px;
  overflow: auto;
}

.te-admin-page .period-tag {
  display: inline-flex;
  width: fit-content;
  margin: -2px 0 7px;
  border: 1px solid rgba(230, 200, 70, 0.7);
  border-radius: 999px;
  background: #fff;
  color: var(--te-black);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.te-admin-page .stat-list div {
  min-width: 0;
  padding-bottom: 6px;
  font-size: 13px;
}

.te-admin-page .stat-list strong {
  font-size: 16px;
}

.te-admin-page .range-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.te-admin-page .range-tab {
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
}

.te-admin-page .range-tab.active {
  border-color: var(--te-yellow);
  background: var(--te-yellow);
  color: var(--te-black);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.te-admin-page .range-tab.pending {
  border-color: var(--te-yellow);
  box-shadow: inset 0 0 0 2px rgba(230, 200, 70, 0.35);
}

.te-admin-page [data-statistics-status] {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.te-admin-page [data-statistics-status].loading {
  color: var(--ink);
}

.te-admin-page .range-summary {
  min-height: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.te-admin-page .range-summary > strong {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.te-admin-page .range-summary > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.te-admin-page .range-summary span {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.te-admin-page .range-summary b {
  color: var(--ink);
  font-size: 17px;
}

.te-admin-page .tracking-columns {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.te-admin-page .season-watch {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(5, auto);
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  border: 1px solid rgba(230, 200, 70, 0.7);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.te-admin-page .season-watch strong,
.te-admin-page .season-watch small {
  display: block;
}

.te-admin-page .season-watch strong {
  font-size: 13px;
}

.te-admin-page .season-watch small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.te-admin-page .season-watch span {
  min-width: 72px;
  display: grid;
  justify-items: end;
  gap: 1px;
}

.te-admin-page .season-watch b {
  color: var(--te-black);
  font-size: 18px;
}

.te-admin-page .offer-table-wrap {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.te-admin-page .offer-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 11px;
}

.te-admin-page .offer-table th,
.te-admin-page .offer-table td {
  border-bottom: 1px solid rgba(222, 216, 207, 0.72);
  padding: 6px 7px;
  text-align: right;
  white-space: nowrap;
}

.te-admin-page .offer-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3eee6;
  color: var(--muted);
  font-size: 10px;
}

.te-admin-page .offer-table th:first-child,
.te-admin-page .offer-table td:first-child {
  min-width: 230px;
  max-width: 280px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.te-admin-page .offer-table tbody tr:hover {
  background: rgba(230, 200, 70, 0.13);
}

.te-admin-page .offer-table td strong {
  color: var(--ink);
}

.te-admin-page .offers-panel:not(.panel-zoomed) .offer-detail-columns {
  display: none;
}

.te-admin-page .panel-zoomed .offer-table-wrap {
  max-height: 300px;
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.te-admin-page .panel-zoomed .offer-detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 180px;
}

.te-admin-page .insight-strip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.te-admin-page .insight-strip span {
  min-width: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 6px 7px;
}

.te-admin-page .insight-strip small,
.te-admin-page .insight-strip b {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.te-admin-page .insight-strip strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.te-admin-page .coverage-note {
  flex: 0 0 auto;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
}

.te-admin-page .analysis-panel .tracking-columns {
  grid-template-columns: 1fr;
}

.te-admin-page .analysis-panel:not(.panel-zoomed) .analysis-view {
  display: none;
}

.te-admin-page .analysis-panel.panel-zoomed .tracking-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.te-admin-page .analysis-panel.panel-zoomed .analysis-view {
  padding-right: 4px;
}

.te-admin-page .analysis-panel.panel-zoomed .chart-box-large {
  min-height: 480px;
  padding: 18px;
}

.te-admin-page .analysis-panel.panel-zoomed .analysis-tabs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .te-admin-page .offers-panel.panel-zoomed .offer-table-wrap {
    min-height: 120px;
    max-height: none;
    flex: 1 1 46%;
    margin-bottom: 8px;
  }

  .te-admin-page .offers-panel.panel-zoomed .offer-detail-columns {
    min-height: 0;
    flex: 1 1 54%;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .te-admin-page .analysis-panel.panel-zoomed {
    inset: 8px;
    width: auto;
  }

  .te-admin-page .analysis-panel.panel-zoomed .tracking-columns,
  .te-admin-page .analysis-panel.panel-zoomed .journey-grid {
    grid-template-columns: 1fr;
  }

  .te-admin-page .analysis-panel.panel-zoomed .analysis-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .te-admin-page .analysis-panel.panel-zoomed .panel-title .muted {
    display: none;
  }

  .te-admin-page .analysis-panel.panel-zoomed .journey-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .te-admin-page .analysis-panel.panel-zoomed .journey-summary span,
  .te-admin-page .analysis-panel.panel-zoomed .journey-filter-button {
    overflow-wrap: anywhere;
  }

  .te-admin-page .analysis-panel.panel-zoomed .chart-box-large {
    min-height: 320px;
  }
}

.te-admin-page .analysis-controls {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.te-admin-page .analysis-control-group {
  min-width: 0;
  flex: 1 1 100%;
  display: grid;
  gap: 5px;
}

.te-admin-page .analysis-control-group[hidden] {
  display: none;
}

.te-admin-page .analysis-control-group.chart-picker {
  flex: 1 1 520px;
  border-left: 3px solid var(--te-yellow);
  padding-left: 10px;
}

.te-admin-page .analysis-control-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.te-admin-page .analysis-tabs,
.te-admin-page .chart-tabs {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.te-admin-page .analysis-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.te-admin-page .chart-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.te-admin-page .analysis-tab,
.te-admin-page .chart-tab {
  min-width: 0;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.te-admin-page .analysis-tab.active,
.te-admin-page .chart-tab.active {
  border-color: var(--te-yellow);
  background: var(--te-yellow);
  color: var(--te-black);
}

.te-admin-page .journey-filter-button:focus-visible,
.te-admin-page .analysis-tab:focus-visible,
.te-admin-page .chart-tab:focus-visible {
  outline: 3px solid rgba(230, 200, 70, 0.45);
  outline-offset: 2px;
}

.te-admin-page .analysis-view {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.te-admin-page .analysis-view[hidden] {
  display: none;
}

.te-admin-page .chart-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.te-admin-page .chart-box {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  overflow: hidden;
}

.te-admin-page .chart-box-large {
  height: 100%;
}

.te-admin-page .chart-box h3 {
  margin: 0;
  font-size: 22px;
}

.te-admin-page .chart-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.te-admin-page .bar-chart {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 9px;
  overflow: auto;
  padding: 4px 5px 4px 0;
}

.te-admin-page .chart-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(180px, 1.8fr) 54px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgba(222, 216, 207, 0.72);
  padding: 5px 2px 8px;
}

.te-admin-page .chart-bar-label {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.te-admin-page .chart-bar-label b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--te-black);
  color: var(--te-yellow);
  font-size: 12px;
}

.te-admin-page .chart-bar-label strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.3;
}

.te-admin-page .chart-bar-track,
.te-admin-page .distribution-track {
  height: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: #eee5d8;
}

.te-admin-page .chart-bar-track i,
.te-admin-page .distribution-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: var(--te-yellow);
}

.te-admin-page .chart-bar-value {
  font-size: 18px;
  text-align: right;
}

.te-admin-page .donut-wrap {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(380px, 1.25fr);
  gap: 48px;
  align-items: center;
  width: min(1000px, 100%);
  margin: auto;
  padding: 18px;
}

.te-admin-page .donut {
  position: relative;
  width: min(310px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 999px;
  background: #eee;
}

.te-admin-page .donut::after {
  position: absolute;
  inset: 27%;
  border-radius: inherit;
  background: #fff;
  content: "";
}

.te-admin-page .donut span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-align: center;
}

.te-admin-page .donut span strong,
.te-admin-page .donut span small {
  display: block;
}

.te-admin-page .donut span strong {
  font-size: 42px;
}

.te-admin-page .donut span small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.te-admin-page .donut-legend {
  min-width: 0;
  display: grid;
  gap: 11px;
}

.te-admin-page .donut-legend-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 13px 15px;
}

.te-admin-page .donut-legend-label {
  min-width: 0;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.te-admin-page .donut-legend-label strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.te-admin-page .donut-legend-values {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.te-admin-page .donut-legend-values b {
  font-size: 24px;
}

.te-admin-page .donut-legend-values small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.te-admin-page .donut-legend-row .distribution-track {
  grid-column: 1 / -1;
}

.te-admin-page .donut-legend-label > i {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 99px;
}

.te-admin-page .funnel-chart {
  min-height: 0;
  flex: 1;
  display: grid;
  align-content: center;
  gap: 15px;
  width: min(940px, 100%);
  margin: auto;
  padding: 18px;
}

.te-admin-page .funnel-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(240px, 1.75fr) 82px;
  gap: 20px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  padding: 6px 2px 12px;
}

.te-admin-page .funnel-row span {
  min-width: 0;
}

.te-admin-page .funnel-row span strong,
.te-admin-page .funnel-row span small {
  display: block;
}

.te-admin-page .funnel-row span strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.te-admin-page .funnel-row span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.te-admin-page .funnel-track {
  height: 22px;
  overflow: hidden;
  border-radius: 99px;
  background: #eee5d8;
}

.te-admin-page .funnel-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--te-yellow);
}

.te-admin-page .funnel-value {
  font-size: 30px;
  text-align: right;
}

@media (max-width: 760px) {
  .te-admin-page .analysis-control-group,
  .te-admin-page .analysis-control-group.chart-picker {
    flex: 1 1 100%;
  }

  .te-admin-page .analysis-control-group.chart-picker {
    border-top: 3px solid var(--te-yellow);
    border-left: 0;
    padding-top: 8px;
    padding-left: 0;
  }

  .te-admin-page .chart-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .te-admin-page .chart-bar {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 7px 10px;
    min-height: 60px;
  }

  .te-admin-page .chart-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .te-admin-page .chart-bar-value {
    grid-column: 2;
    grid-row: 1;
  }

  .te-admin-page .donut-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 8px 0;
  }

  .te-admin-page .donut {
    width: min(160px, 55vw);
  }

  .te-admin-page .funnel-chart {
    padding: 4px 0;
  }

  .te-admin-page .funnel-row {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 8px 12px;
  }

  .te-admin-page .funnel-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .te-admin-page .funnel-value {
    grid-column: 2;
    grid-row: 1;
  }
}

.te-admin-page .journey-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.te-admin-page .journey-view-title {
  margin: 0 0 10px;
  border-bottom: 3px solid var(--te-yellow);
  padding: 0 0 8px;
  font-size: 21px;
}

.te-admin-page .journey-grid[data-active-filter="checkout"] [data-journey-section="top"] {
  grid-column: 1 / -1;
}

.te-admin-page .journey-grid [data-journey-section][hidden] {
  display: none;
}

.te-admin-page .journey-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}

.te-admin-page .journey-summary span {
  min-width: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.te-admin-page .journey-summary b {
  color: var(--ink);
  font-size: 16px;
}

.te-admin-page .journey-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.te-admin-page .journey-filter-button {
  min-width: 0;
  min-height: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

.te-admin-page .journey-filter-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.te-admin-page .journey-filter-button b {
  min-width: 26px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--te-black);
  color: var(--te-yellow);
  padding: 3px 7px;
}

.te-admin-page .journey-filter-button.active {
  border-color: var(--te-yellow);
  background: var(--te-yellow);
  color: var(--te-black);
}

.te-admin-page .journey-filter-button.active b {
  background: #fff;
  color: var(--te-black);
}

.te-admin-page .journey-filter-status {
  margin: 0 0 9px;
  border-left: 3px solid var(--te-yellow);
  background: rgba(230, 200, 70, 0.12);
  padding: 7px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.te-admin-page .journey-grid section {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.te-admin-page .journey-detail {
  grid-column: 1 / -1;
}

.te-admin-page .journey-grid h3 {
  margin: 0 0 7px;
  font-size: 13px;
}

.te-admin-page .journey-list {
  display: grid;
  gap: 7px;
  max-height: 132px;
  overflow: auto;
  padding-right: 2px;
}

.te-admin-page .compact-journeys {
  max-height: 102px;
}

.te-admin-page .journey-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  font-size: 12px;
}

.te-admin-page .journey-card summary {
  cursor: pointer;
}

.te-admin-page .journey-card strong,
.te-admin-page .journey-card small {
  display: block;
}

.te-admin-page .journey-card small {
  color: var(--muted);
  font-size: 11px;
}

.te-admin-page .dropoff-card .track-bar {
  display: block;
  margin-top: 7px;
}

.te-admin-page .journey-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.te-admin-page .journey-steps span {
  max-width: 150px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 999px;
  background: rgba(230, 200, 70, 0.2);
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.te-admin-page .journey-steps i {
  width: 14px;
  height: 1px;
  background: rgba(20, 20, 20, 0.32);
}

.te-admin-page .journey-timeline {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.te-admin-page .journey-timeline span {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 7px;
  color: var(--text);
}

.te-admin-page .journey-timeline b {
  color: var(--muted);
  font-size: 11px;
}

.te-admin-page .tracking-columns h3 {
  margin-bottom: 7px;
  font-size: 13px;
}

.te-admin-page .track-list {
  gap: 6px;
}

.te-admin-page .track-row {
  grid-template-columns: minmax(110px, 0.85fr) minmax(80px, 1fr) 34px;
  gap: 7px;
  font-size: 12px;
}

.te-admin-page .track-bar {
  height: 7px;
}

.te-admin-page .message-feed {
  min-height: 0;
  flex: 1;
  max-height: none;
  overflow: hidden;
}

.te-admin-page .message-card {
  padding: 10px;
  font-size: 13px;
}

.te-admin-page .chat-workspace {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.te-admin-page .chat-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: auto;
  padding-right: 2px;
}

.te-admin-page .chat-list-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.te-admin-page .chat-list-item.active {
  border-color: var(--te-yellow);
  background: rgba(230, 200, 70, 0.22);
}

.te-admin-page .chat-list-item.status-open {
  border-color: #cf3b2e;
  background: #fff0ec;
}

.te-admin-page .chat-list-item.status-answered {
  border-color: #35875a;
  background: #edf8f1;
}

.te-admin-page .chat-list-item.status-ended {
  opacity: 0.72;
}

.te-admin-page .chat-list-item strong,
.te-admin-page .chat-list-item small,
.te-admin-page .chat-list-item span {
  display: block;
}

.te-admin-page .chat-list-item strong i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 99px;
  background: #c9c9c9;
}

.te-admin-page .chat-list-item.status-open strong i {
  background: #cf3b2e;
}

.te-admin-page .chat-list-item.status-answered strong i {
  background: #35875a;
}

.te-admin-page .chat-list-item small {
  margin: 3px 0;
  color: var(--muted);
  font-size: 11px;
}

.te-admin-page .chat-list-item span {
  overflow: hidden;
  color: rgba(20, 20, 20, 0.74);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.te-admin-page .conversation-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  border-left: 4px solid var(--te-yellow);
  overflow: hidden;
}

.te-admin-page .conversation-card.status-open {
  border-left-color: #cf3b2e;
}

.te-admin-page .conversation-card.status-answered {
  border-left-color: #35875a;
}

.te-admin-page .conversation-card.status-ended {
  border-left-color: #8f8f8f;
}

.te-admin-page .conversation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.te-admin-page .conversation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.te-admin-page .end-chat-button,
.te-admin-page .delete-chat-button,
.te-admin-page .ended-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
}

.te-admin-page .end-chat-button {
  background: #151515;
  color: #fff;
  cursor: pointer;
}

.te-admin-page .delete-chat-button {
  background: #fff;
  color: #8f2432;
  cursor: pointer;
}

.te-admin-page .ended-pill {
  background: rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.te-admin-page .conversation-thread {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 2px;
}

.te-admin-page .chat-line {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 8px;
  border-radius: 7px;
  background: #fff;
  overflow-wrap: anywhere;
}

.te-admin-page .admin-line {
  background: rgba(230, 200, 70, 0.22);
}

.te-admin-page .auto-line {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(20, 20, 20, 0.78);
  font-style: italic;
}

.te-admin-page .chat-line b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.te-admin-page .chat-line b small {
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.72;
  white-space: nowrap;
}

.te-admin-page .chat-edit-button {
  justify-self: start;
  min-height: 24px;
  border: 1px solid rgba(90, 84, 75, 0.26);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--te-black);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.te-admin-page .chat-line textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--te-yellow);
  border-radius: 6px;
  background: #fff;
  color: var(--te-black);
  padding: 8px;
  font: inherit;
  resize: vertical;
}

.te-admin-page .chat-line-actions {
  display: flex;
  gap: 6px;
}

.te-admin-page .chat-line-actions button {
  min-height: 26px;
  border: 1px solid var(--te-yellow);
  border-radius: 5px;
  background: var(--te-yellow);
  color: var(--te-black);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.te-admin-page .chat-line-actions button + button {
  border-color: rgba(90, 84, 75, 0.3);
  background: #fff;
}

.te-admin-page .reply-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.te-admin-page .reply-row input {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
}

.te-admin-page .reply-row button {
  min-height: 34px;
  border: 1px solid var(--te-yellow);
  border-radius: 6px;
  background: var(--te-yellow);
  color: var(--te-black);
  cursor: pointer;
  font-weight: 900;
}

.preview-card-grid small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-booking article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-booking span,
.preview-booking strong {
  display: block;
}

.preview-booking span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.preview-booking button {
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.button,
.small-button,
.mode-button {
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
}

.button:hover,
.small-button:hover,
.mode-button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--red);
  color: var(--te-black);
  box-shadow: 0 12px 24px rgba(230, 200, 70, 0.2);
}

.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.panel,
.metric-grid article {
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chat-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
}

.chat-launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(370px, calc(100vw - 44px));
  padding: 15px 17px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.chat-launcher.busy {
  cursor: default;
  background: #5f5a53;
}

.chat-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.chat-launcher strong,
.chat-launcher span {
  display: block;
}

.chat-launcher span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.chat-window {
  width: min(390px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--ink);
  color: #fff;
}

.chat-header strong,
.chat-header small {
  display: block;
}

.chat-header small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.chat-body {
  padding: 16px;
}

.bubble {
  max-width: 86%;
  margin-bottom: 12px;
  padding: 12px 13px;
  border-radius: 8px;
  background: #eee5d8;
  line-height: 1.42;
}

.bubble.user {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
}

.topic-select,
.chat-input {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.topic-select {
  padding: 0 11px;
}

.chat-input {
  min-height: 78px;
  padding: 11px;
  resize: vertical;
}

.chat-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.admin-shell {
  padding: 28px 0 54px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 18px 0 0;
  font-size: 44px;
}

.mode-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.mode-button {
  padding: 16px;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  text-align: left;
}

.mode-button span,
.mode-button small {
  display: block;
}

.mode-button span {
  font-weight: 900;
  font-size: 18px;
}

.mode-button small {
  margin-top: 5px;
  color: var(--muted);
}

.mode-button.active {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 200, 70, 0.18);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.panel {
  padding: 20px;
  box-shadow: none;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  font-weight: 900;
}

.live-pill {
  padding: 7px 10px;
  border-radius: 6px;
  background: #eee5d8;
  color: var(--ink);
  font-size: 13px;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.counter-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.counter {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  font-weight: 900;
}

.counter-grid small,
.muted {
  color: var(--muted);
}

.stat-list {
  display: grid;
  gap: 11px;
}

.stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.stat-list strong {
  font-size: 20px;
}

.period-panel {
  grid-column: 1 / -1;
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.period-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.period-grid strong,
.period-grid small,
.period-grid span {
  display: block;
}

.period-grid strong {
  font-size: 18px;
}

.period-grid small {
  color: var(--muted);
}

.period-grid b {
  font-size: 20px;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.inbox-panel {
  min-height: 370px;
}

.message-feed {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.message-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.message-card strong,
.message-card small {
  display: block;
}

.message-card small {
  margin: 5px 0 8px;
  color: var(--muted);
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topic-bars {
  display: grid;
  gap: 13px;
}

.topic-row {
  display: grid;
  gap: 6px;
}

.topic-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfce;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.behavior-panel {
  grid-column: 1 / -1;
}

.behavior-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.behavior-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.behavior-grid small {
  color: var(--muted);
}

.tracking-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tracking-columns h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.track-list {
  display: grid;
  gap: 10px;
}

.track-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.track-row span {
  color: var(--muted);
}

.track-row strong {
  min-width: 30px;
  text-align: right;
}

.track-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfce;
}

.track-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.empty-track {
  margin: 0;
  color: var(--muted);
}

/* Admin: Die Zeitkacheln reagieren auf ihre eigene Breite, nicht nur auf das Browserfenster. */
.te-admin-page .stats-panel {
  container-name: period-stats;
  container-type: inline-size;
  grid-column: span 4;
}

.te-admin-page .period-panel {
  container-name: period-selector;
  container-type: inline-size;
  grid-column: span 5;
}

.te-admin-page .live-panel {
  grid-column: span 3;
}

.te-admin-page .stats-panel .panel-title,
.te-admin-page .period-panel .panel-title {
  flex-wrap: wrap;
  gap: 6px 10px;
}

.te-admin-page .stats-panel .small-button,
.te-admin-page .stats-panel .period-tag,
.te-admin-page .period-panel .muted {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.te-admin-page .stats-panel:not(.panel-zoomed) .panel-hint {
  display: none;
}

.te-admin-page .stats-panel:not(.panel-zoomed) .stat-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.te-admin-page .stats-panel:not(.panel-zoomed) .stat-list div {
  min-width: 0;
  gap: 6px;
}

.te-admin-page .stats-panel:not(.panel-zoomed) .stat-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@container period-stats (max-width: 380px) {
  .te-admin-page .stats-panel .panel-title > span:first-child {
    order: 1;
    flex: 1 1 auto;
  }

  .te-admin-page .stats-panel .panel-expand-button {
    order: 2;
  }

  .te-admin-page .stats-panel .small-button {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    min-height: 30px;
    line-height: 1.2;
  }
}

@container period-selector (max-width: 460px) {
  .te-admin-page .period-panel .panel-title > span:first-child {
    order: 1;
    flex: 1 1 auto;
  }

  .te-admin-page .period-panel [data-stat="todayLabel"] {
    order: 2;
  }

  .te-admin-page .period-panel .panel-expand-button {
    order: 3;
  }

  .te-admin-page .period-panel [data-statistics-status] {
    order: 4;
    flex: 1 1 100%;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .te-admin-page .period-panel .range-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .te-admin-page .period-panel .range-summary {
    padding: 8px;
  }

  .te-admin-page .period-panel .range-summary > strong {
    display: block;
  }

  .te-admin-page .period-panel .range-summary > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .te-admin-page .period-panel .range-summary span {
    gap: 1px;
    font-size: 10px;
    line-height: 1.15;
  }

  .te-admin-page .period-panel .range-summary b {
    font-size: 15px;
  }
}

@container offers-frame (max-width: 700px) {
  .te-admin-page .offers-panel:not(.panel-zoomed) .panel-hint {
    display: none;
  }

  .te-admin-page .offers-panel .season-watch {
    grid-template-columns: minmax(120px, 1.4fr) repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 8px;
  }

  .te-admin-page .offers-panel .season-watch > div {
    grid-column: auto;
  }

  .te-admin-page .offers-panel .season-watch [data-season-note] {
    display: none;
  }

  .te-admin-page .offers-panel .season-watch span {
    min-width: 0;
    justify-items: start;
  }

  .te-admin-page .offers-panel .season-watch small {
    font-size: 9px;
  }
}

@container offers-frame (max-width: 540px) {
  .te-admin-page .offers-panel:not(.panel-zoomed) .panel-hint {
    display: block;
  }

  .te-admin-page .offers-panel .season-watch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 10px;
  }

  .te-admin-page .offers-panel .season-watch > div {
    grid-column: 1 / -1;
  }

  .te-admin-page .offers-panel .season-watch [data-season-note] {
    display: block;
  }
}

@container analysis-frame (min-width: 600px) {
  .te-admin-page .source-panel:not(.panel-zoomed) .analysis-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1250px) and (min-width: 1101px) {
  .te-admin-page .dashboard-grid {
    grid-template-rows: 300px minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1101px) and (max-height: 760px) {
  .te-admin-page {
    overflow: auto;
  }

  .te-admin-page .admin-shell {
    height: auto;
    min-height: 100vh;
  }

  .te-admin-page .dashboard-grid {
    flex: none;
    min-height: 860px;
    grid-template-rows: 300px 270px 274px;
  }
}

@media (max-width: 1100px) {
  .te-admin-page {
    overflow: auto;
  }

  .te-admin-page .admin-shell {
    height: auto;
    min-height: 100vh;
  }

  .te-admin-page .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .te-admin-page .admin-header > div,
  .te-admin-page .admin-actions {
    width: 100%;
  }

  .te-admin-page .admin-actions {
    justify-content: flex-start;
  }

  .te-admin-page .dashboard-grid {
    flex: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: auto;
  }

  .te-admin-page .counter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .te-admin-page .live-panel {
    grid-column: 1;
    grid-row: 1;
    min-height: 220px;
  }

  .te-admin-page .stats-panel {
    grid-column: 2;
    grid-row: 1;
    min-height: 260px;
  }

  .te-admin-page .period-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 200px;
  }

  .te-admin-page .offers-panel {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 500px;
  }

  .te-admin-page .source-panel {
    grid-column: 1;
    grid-row: 4;
    min-height: 360px;
  }

  .te-admin-page .inbox-panel {
    grid-column: 2;
    grid-row: 4;
    min-height: 520px;
  }
}

@media (max-width: 780px) {
  .te-admin-page .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .te-admin-page .live-panel,
  .te-admin-page .stats-panel,
  .te-admin-page .period-panel,
  .te-admin-page .offers-panel,
  .te-admin-page .source-panel,
  .te-admin-page .inbox-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .te-admin-page .stats-panel,
  .te-admin-page .period-panel {
    min-height: 260px;
  }

  .te-admin-page .offers-panel {
    min-height: 520px;
  }

  .te-admin-page .source-panel {
    min-height: 400px;
  }
}

@media (max-width: 560px) {
  .te-admin-page .mode-strip {
    grid-template-columns: 1fr;
  }

  .te-admin-page .period-panel .range-tabs,
  .te-admin-page .period-panel .range-summary > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .tracking-columns,
  .preview-booking,
  .preview-card-grid,
  .te-hero,
  .te-feature-band,
  .te-product-grid,
  .te-outdoor-grid,
  .te-info-grid,
  .te-flow-grid {
    grid-template-columns: 1fr;
  }

  .te-topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .te-hero {
    min-height: auto;
    padding: 42px 0;
  }

  .te-hero h1 {
    font-size: 44px;
  }

  .te-section,
  .te-booking-flow,
  .te-feature-band {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .te-footer {
    flex-direction: column;
  }
}

/* Kept for old localStorage states; no longer shown in the dashboard. */
.heatmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.heat-cell {
  min-height: 66px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(196, 154, 69, var(--heat));
  color: var(--ink);
  font-size: 13px;
}

.heat-cell strong {
  font-size: 18px;
}

@media (max-width: 820px) {
  .customer-preview,
  .admin-shell {
    width: min(100% - 24px, 1160px);
  }

  .preview-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-hero {
    min-height: 62vh;
  }

  .dashboard-grid,
  .mode-strip,
  .counter-grid,
  .behavior-grid,
  .period-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
    line-height: 1;
  }

  .lead {
    font-size: 18px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-root {
    right: 12px;
    bottom: 12px;
  }
}
