.tmlc-shell {
  --tmlc-bg: #09090b;
  --tmlc-card: rgba(20, 20, 24, 0.88);
  --tmlc-line: rgba(255, 255, 255, 0.09);
  --tmlc-muted: #a9a9b2;
  --tmlc-red: #ff3b30;
  --tmlc-orange: #ff8a00;
  --tmlc-green: #4ade80;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 59, 48, 0.11), transparent 37%),
    radial-gradient(circle at 100% 90%, rgba(255, 138, 0, 0.08), transparent 35%),
    var(--tmlc-bg);
  border: 1px solid var(--tmlc-line);
  border-radius: 30px;
  box-sizing: border-box;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 34px auto;
  max-width: 980px;
  min-height: 680px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.tmlc-shell *,
.tmlc-shell *::before,
.tmlc-shell *::after {
  box-sizing: border-box;
}

.tmlc-glow {
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.13;
  pointer-events: none;
  position: absolute;
}

.tmlc-glow-one {
  background: var(--tmlc-red);
  height: 260px;
  left: -150px;
  top: 130px;
  width: 260px;
}

.tmlc-glow-two {
  background: var(--tmlc-orange);
  bottom: -130px;
  height: 300px;
  right: -100px;
  width: 300px;
}

.tmlc-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 26px;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.tmlc-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.tmlc-brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--tmlc-red), var(--tmlc-orange));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 59, 48, 0.25);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  letter-spacing: -0.04em;
  width: 42px;
}

.tmlc-brand p,
.tmlc-brand strong {
  display: block;
  line-height: 1.15;
  margin: 0;
}

.tmlc-brand p {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.tmlc-brand strong {
  color: var(--tmlc-muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}

.tmlc-status-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--tmlc-line);
  border-radius: 999px;
  color: var(--tmlc-muted);
  display: flex;
  font-size: 11px;
  font-weight: 750;
  gap: 8px;
  padding: 9px 13px;
}

.tmlc-status-chip i {
  background: #777;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.tmlc-status-chip.is-online i,
.tmlc-status-chip.is-active i {
  background: var(--tmlc-green);
  box-shadow: 0 0 13px rgba(74, 222, 128, 0.8);
}

.tmlc-status-chip.is-waiting i {
  animation: tmlc-pulse 1.5s infinite;
  background: var(--tmlc-orange);
  box-shadow: 0 0 13px rgba(255, 138, 0, 0.7);
}

.tmlc-status-chip.is-error i,
.tmlc-status-chip.is-offline i {
  background: var(--tmlc-red);
}

.tmlc-card {
  backdrop-filter: blur(24px);
  background: var(--tmlc-card);
  border: 1px solid var(--tmlc-line);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  margin: 0 auto;
  max-width: 780px;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.tmlc-screen {
  animation: tmlc-enter 280ms ease both;
  padding: 62px 70px;
}

.tmlc-screen[hidden] {
  display: none;
}

.tmlc-eyebrow {
  color: var(--tmlc-orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  margin: 0 0 13px;
}

.tmlc-screen h1,
.tmlc-screen h2 {
  color: #fff;
  font-family: "Space Grotesk", Inter, ui-sans-serif, sans-serif;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0;
}

.tmlc-screen h1 {
  font-size: clamp(38px, 6vw, 62px);
  max-width: 610px;
}

.tmlc-screen h2 {
  font-size: clamp(31px, 5vw, 48px);
}

.tmlc-lead {
  color: var(--tmlc-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 19px 0 28px;
  max-width: 590px;
}

.tmlc-request-form {
  display: grid;
  gap: 16px;
}

.tmlc-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.tmlc-request-form label {
  display: grid;
  gap: 8px;
}

.tmlc-request-form label > span {
  color: #e7e7eb;
  font-size: 12px;
  font-weight: 700;
}

.tmlc-request-form input,
.tmlc-request-form select,
.tmlc-request-form textarea,
.tmlc-message-form textarea {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--tmlc-line);
  border-radius: 13px;
  color: #fff;
  font: inherit;
  outline: none;
  padding: 13px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  width: 100%;
}

.tmlc-request-form select option {
  background: #17171b;
}

.tmlc-request-form input:focus,
.tmlc-request-form select:focus,
.tmlc-request-form textarea:focus,
.tmlc-message-form textarea:focus {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 110, 43, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 110, 43, 0.12);
}

.tmlc-request-form textarea {
  min-height: 112px;
  resize: vertical;
}

.tmlc-honeypot {
  left: -10000px !important;
  position: absolute !important;
}

.tmlc-primary-button {
  align-items: center;
  align-self: start;
  background: linear-gradient(135deg, var(--tmlc-red), var(--tmlc-orange));
  border: 0;
  border-radius: 13px;
  box-shadow: 0 14px 36px rgba(255, 59, 48, 0.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  gap: 28px;
  justify-content: space-between;
  min-width: 210px;
  padding: 14px 17px;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.tmlc-primary-button:hover {
  box-shadow: 0 18px 44px rgba(255, 59, 48, 0.3);
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.tmlc-primary-button:disabled {
  cursor: wait;
  filter: grayscale(0.4);
  opacity: 0.65;
  transform: none;
}

.tmlc-primary-button b {
  font-size: 20px;
  line-height: 0;
}

.tmlc-form-error,
.tmlc-chat-error {
  color: #ff8b84;
  font-size: 12px;
  margin: 0;
  min-height: 18px;
}

.tmlc-offline {
  background: rgba(255, 59, 48, 0.09);
  border: 1px solid rgba(255, 59, 48, 0.25);
  border-radius: 14px;
  color: #ffd1ce;
  margin-top: 22px;
  padding: 14px 16px;
}

#tmlc-waiting-screen,
#tmlc-closed-screen {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  text-align: center;
}

#tmlc-waiting-screen[hidden],
#tmlc-closed-screen[hidden] {
  display: none;
}

.tmlc-orbit {
  height: 86px;
  margin-bottom: 30px;
  position: relative;
  width: 86px;
}

.tmlc-orbit span {
  animation: tmlc-spin 2.3s linear infinite;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  height: 86px;
  inset: 0;
  position: absolute;
  width: 86px;
}

.tmlc-orbit span::after {
  background: var(--tmlc-orange);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 138, 0, 0.8);
  content: "";
  height: 10px;
  left: 8px;
  position: absolute;
  top: 8px;
  width: 10px;
}

.tmlc-orbit i {
  animation: tmlc-pulse 1.5s ease-in-out infinite;
  background: linear-gradient(135deg, var(--tmlc-red), var(--tmlc-orange));
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(255, 59, 48, 0.27);
  height: 32px;
  left: 27px;
  position: absolute;
  top: 27px;
  width: 32px;
}

.tmlc-waiting-meta {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--tmlc-line);
  border-radius: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 4px 0 18px;
  min-width: 330px;
  overflow: hidden;
}

.tmlc-waiting-meta div {
  padding: 15px 22px;
}

.tmlc-waiting-meta div + div {
  border-left: 1px solid var(--tmlc-line);
}

.tmlc-waiting-meta span,
.tmlc-waiting-meta strong {
  display: block;
}

.tmlc-waiting-meta span {
  color: var(--tmlc-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.tmlc-waiting-meta strong {
  font-size: 15px;
}

.tmlc-music-row {
  margin-bottom: 10px;
}

.tmlc-music-row button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--tmlc-muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11px;
  gap: 7px;
}

.tmlc-music-row button[aria-pressed="true"] span {
  animation: tmlc-pulse 1.4s infinite;
  color: var(--tmlc-orange);
}

.tmlc-text-button {
  background: transparent;
  border: 0;
  color: var(--tmlc-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
}

.tmlc-text-button:hover {
  color: #fff;
}

.tmlc-chat-screen {
  display: grid;
  grid-template-rows: auto minmax(270px, 1fr) auto auto;
  min-height: 520px;
  padding: 30px;
}

.tmlc-chat-screen[hidden] {
  display: none;
}

.tmlc-chat-heading {
  align-items: center;
  border-bottom: 1px solid var(--tmlc-line);
  display: flex;
  justify-content: space-between;
  padding: 2px 4px 20px;
}

.tmlc-chat-heading h2 {
  font-size: 25px;
}

.tmlc-chat-heading .tmlc-eyebrow {
  margin-bottom: 7px;
}

.tmlc-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 370px;
  min-height: 270px;
  overflow-y: auto;
  padding: 20px 5px;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.tmlc-message {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--tmlc-line);
  border-radius: 15px 15px 15px 5px;
  max-width: 78%;
  padding: 10px 12px;
}

.tmlc-message.is-visitor {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.24), rgba(255, 138, 0, 0.18));
  border-color: rgba(255, 111, 38, 0.25);
  border-radius: 15px 15px 5px 15px;
}

.tmlc-message.is-system {
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--tmlc-muted);
  max-width: 90%;
  padding: 4px;
  text-align: center;
}

.tmlc-message-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tmlc-message-meta strong {
  font-size: 11px;
}

.tmlc-message-meta time {
  color: var(--tmlc-muted);
  font-size: 9px;
}

.tmlc-message p {
  color: #f7f7f8;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.tmlc-message.is-system .tmlc-message-meta {
  display: none;
}

.tmlc-message.is-system p {
  color: var(--tmlc-muted);
  font-size: 11px;
}

.tmlc-message-form {
  align-items: end;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--tmlc-line);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 7px;
}

.tmlc-message-form textarea {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-height: 120px;
  min-height: 43px;
  resize: none;
}

.tmlc-message-form button {
  background: linear-gradient(135deg, var(--tmlc-red), var(--tmlc-orange));
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  height: 43px;
  width: 43px;
}

.tmlc-done-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--tmlc-red), var(--tmlc-orange));
  border-radius: 50%;
  box-shadow: 0 15px 45px rgba(255, 59, 48, 0.25);
  display: flex;
  font-size: 34px;
  height: 80px;
  justify-content: center;
  margin-bottom: 28px;
  width: 80px;
}

.tmlc-footer-note {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  margin: 17px auto 0;
  max-width: 700px;
  position: relative;
  text-align: center;
  z-index: 1;
}

@keyframes tmlc-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tmlc-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tmlc-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .tmlc-shell {
    border-radius: 22px;
    margin: 15px auto;
    min-height: 0;
    padding: 15px;
  }

  .tmlc-header {
    margin-bottom: 16px;
  }

  .tmlc-screen {
    padding: 40px 24px;
  }

  .tmlc-card {
    border-radius: 20px;
    min-height: 540px;
  }

  .tmlc-form-grid {
    grid-template-columns: 1fr;
  }

  .tmlc-waiting-meta {
    min-width: min(330px, 100%);
  }

  .tmlc-chat-screen {
    min-height: 540px;
    padding: 20px 14px;
  }

  .tmlc-message {
    max-width: 88%;
  }
}

@media (max-width: 420px) {
  .tmlc-brand strong {
    display: none;
  }

  .tmlc-status-chip {
    padding: 8px 10px;
  }

  .tmlc-screen h1 {
    font-size: 38px;
  }

  .tmlc-waiting-meta div {
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tmlc-shell *,
  .tmlc-shell *::before,
  .tmlc-shell *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

