html.tnc-leroy-overlay-open { overflow: hidden; }

.tnc-leroy-shell,
.tnc-leroy-shell * { box-sizing: border-box; }

.tnc-leroy-shell {
  --leroy-blue: #0d3e91;
  --leroy-blue-2: #0b56c8;
  --leroy-navy: #08254f;
  --leroy-ink: #11213c;
  --leroy-muted: #657086;
  --leroy-line: rgba(255,255,255,.62);
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
  color: var(--leroy-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.tnc-leroy-shell button,
.tnc-leroy-shell textarea { font-family: inherit; }

.tnc-leroy-launcher {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  width: min(560px, calc(100vw - 32px));
  min-height: 78px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 42px;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(247,250,255,.60));
  color: var(--leroy-ink);
  padding: 12px 13px 12px 12px;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 18px 60px rgba(9,34,70,.18), inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.tnc-leroy-launcher:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 22px 70px rgba(9,34,70,.22), inset 0 1px 0 rgba(255,255,255,.86);
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(247,250,255,.68));
}

.tnc-leroy-launcher-mascot {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 8px rgba(10,47,105,.12));
}

.tnc-leroy-launcher-copy { min-width: 0; display: grid; gap: 3px; }
.tnc-leroy-launcher-copy strong {
  display: block;
  margin: 0;
  color: var(--leroy-ink);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -.02em;
}
.tnc-leroy-launcher-copy > span {
  color: var(--leroy-muted);
  font-size: 12.5px;
  line-height: 1.3;
}

.tnc-leroy-launcher-action {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--leroy-blue-2), var(--leroy-blue));
  box-shadow: 0 8px 18px rgba(13,62,145,.22);
}

.tnc-leroy-shell.is-open .tnc-leroy-launcher { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(12px) scale(.97); }

.tnc-leroy-backdrop {
  /* Keep the full-viewport scrim immune to global WordPress/theme button styling. */
  -webkit-appearance: none !important;
  appearance: none !important;
  position: absolute !important;
  z-index: 1;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  background: rgba(238,244,252,.18) !important;
  pointer-events: auto;
  cursor: default;
  backdrop-filter: blur(12px) saturate(82%);
  -webkit-backdrop-filter: blur(12px) saturate(82%);
}
.tnc-leroy-backdrop::before,
.tnc-leroy-backdrop::after {
  content: none !important;
  display: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.tnc-leroy-backdrop[hidden] { display: none !important; }

.tnc-leroy-panel {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 32px;
  width: min(780px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 64px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(242,247,255,.64));
  color: var(--leroy-ink);
  box-shadow: 0 30px 110px rgba(8,37,79,.30), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(34px) saturate(125%);
  -webkit-backdrop-filter: blur(34px) saturate(125%);
  pointer-events: auto;
  animation: leroy-panel-in .24s ease-out both;
}

.tnc-leroy-panel[hidden] { display: none !important; }

@keyframes leroy-panel-in {
  from { opacity: 0; transform: translateX(-50%) translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.tnc-leroy-panel-head {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) 40px;
  gap: 14px;
  align-items: center;
  padding: 24px 26px 18px;
  flex: 0 0 auto;
}

.tnc-leroy-panel-mascot {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 9px rgba(10,47,105,.12));
}

.tnc-leroy-panel-title { min-width: 0; }
.tnc-leroy-panel-title h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--leroy-ink) !important;
  font-family: inherit !important;
  font-size: clamp(28px, 4vw, 39px) !important;
  line-height: 1 !important;
  font-weight: 680 !important;
  letter-spacing: -.045em !important;
  text-transform: none !important;
}
.tnc-leroy-panel-title p {
  margin: 6px 0 0 !important;
  color: var(--leroy-muted) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.tnc-leroy-close {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.42) !important;
  color: var(--leroy-navy) !important;
  padding: 0 !important;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(8,37,79,.08);
  transition: background .18s ease, transform .18s ease;
}
.tnc-leroy-close:hover { background: rgba(255,255,255,.78) !important; transform: rotate(3deg); }
.tnc-leroy-close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 17px; height: 1.6px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: center;
}
.tnc-leroy-close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.tnc-leroy-close span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

.tnc-leroy-messages {
  min-height: 250px;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(8,37,79,.16) transparent;
}

.tnc-leroy-welcome {
  margin: auto;
  padding: 18px 20px 26px;
  display: grid;
  gap: 6px;
  text-align: center;
  color: var(--leroy-ink);
  transition: opacity .15s ease, transform .15s ease;
}
.tnc-leroy-welcome.is-hidden { display: none; }
.tnc-leroy-welcome strong {
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.1;
  font-weight: 620;
  letter-spacing: -.035em;
}
.tnc-leroy-welcome span { color: var(--leroy-muted); font-size: 13px; }

.tnc-leroy-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 78%;
}
.tnc-leroy-message.is-user { align-self: flex-end; align-items: flex-end; }

.tnc-leroy-bubble {
  width: 100%;
  padding: 17px 18px 13px;
  border-radius: 19px;
  background: rgba(255,255,255,.72);
  color: var(--leroy-ink);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 10px 28px rgba(8,37,79,.08), inset 0 1px 0 rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.52;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tnc-leroy-message.is-user .tnc-leroy-bubble {
  background: linear-gradient(145deg, #0d4fb5, #0a347e);
  border-color: rgba(255,255,255,.10);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13,62,145,.20), inset 0 1px 0 rgba(255,255,255,.12);
}

.tnc-leroy-bubble-copy { white-space: pre-wrap; }
.tnc-leroy-bubble-copy .tnc-leroy-email-link,
.tnc-leroy-bubble-copy .tnc-leroy-inline-link,
.tnc-leroy-bubble-copy .tnc-leroy-resource-link {
  color: inherit !important;
  text-decoration-line: underline !important;
  text-decoration-color: rgba(52, 128, 226, .38) !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
}
.tnc-leroy-bubble-copy .tnc-leroy-email-link:hover,
.tnc-leroy-bubble-copy .tnc-leroy-inline-link:hover,
.tnc-leroy-bubble-copy .tnc-leroy-resource-link:hover {
  text-decoration-color: rgba(28, 91, 180, .68) !important;
  text-decoration-thickness: 1.5px !important;
}
.tnc-leroy-message-time {
  margin-top: 8px;
  color: rgba(79,91,112,.74);
  font-size: 10px;
  line-height: 1;
}
.tnc-leroy-message.is-user .tnc-leroy-message-time { color: rgba(255,255,255,.68); text-align: right; }

.tnc-leroy-sources {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}
.tnc-leroy-sources a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0c52b9 !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
}
.tnc-leroy-sources a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.tnc-leroy-message.is-thinking .tnc-leroy-bubble {
  width: auto;
  min-width: 168px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
}
.tnc-leroy-thinking-label { color: var(--leroy-muted); font-size: 11.5px; }
.tnc-leroy-thinking-dots { display: flex; gap: 4px; align-items: center; }
.tnc-leroy-thinking-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--leroy-blue-2);
  opacity: .35;
  animation: leroy-dot 1s infinite ease-in-out;
}
.tnc-leroy-thinking-dots span:nth-child(2) { animation-delay: .12s; }
.tnc-leroy-thinking-dots span:nth-child(3) { animation-delay: .24s; }
@keyframes leroy-dot { 0%,70%,100% { transform: translateY(0); opacity:.28; } 35% { transform:translateY(-3px); opacity:.9; } }

.tnc-leroy-composer-wrap {
  flex: 0 0 auto;
  padding: 8px 26px 21px;
}

.tnc-leroy-form {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 46px;
  align-items: end;
  gap: 7px;
  min-height: 66px;
  padding: 9px 10px 9px 13px;
  border: 1px solid rgba(104,169,255,.48);
  border-radius: 21px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 12px 36px rgba(8,37,79,.08), inset 0 1px 0 rgba(255,255,255,.92), 0 0 0 1px rgba(255,255,255,.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tnc-leroy-form:focus-within {
  border-color: rgba(48,139,255,.72);
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 42px rgba(8,37,79,.10), inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 3px rgba(67,151,255,.10);
}

.tnc-leroy-spark {
  align-self: center;
  display: grid;
  place-items: center;
  color: #4b8ff4;
  margin-bottom: 1px;
}

.tnc-leroy-form textarea {
  width: 100%;
  min-height: 45px;
  max-height: 132px;
  resize: none;
  overflow-y: auto;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--leroy-ink) !important;
  padding: 12px 2px 8px !important;
  margin: 0 !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 14px !important;
  line-height: 1.42 !important;
}
.tnc-leroy-form textarea::placeholder { color: #8690a2; opacity: 1; }

.tnc-leroy-form button[type="submit"] {
  align-self: center;
  width: 44px;
  height: 44px;
  min-width: 44px !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, var(--leroy-blue-2), var(--leroy-blue)) !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(13,62,145,.22);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.tnc-leroy-form button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(13,62,145,.28); }
.tnc-leroy-form button[type="submit"].is-busy svg { animation: leroy-send-pulse .85s ease-in-out infinite alternate; }
.tnc-leroy-form button[disabled] { opacity: .52; cursor: wait; }
@keyframes leroy-send-pulse { from { transform: translateX(-1px); opacity:.6; } to { transform:translateX(1px); opacity:1; } }

.tnc-leroy-form [data-leroy-turnstile] { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }

.tnc-leroy-note {
  margin: 12px 0 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--leroy-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.3 !important;
  text-align: center;
}
.tnc-leroy-note svg { color: #3b81e6; flex: 0 0 auto; }

.tnc-leroy-launcher:focus-visible,
.tnc-leroy-panel button:focus-visible,
.tnc-leroy-panel textarea:focus-visible,
.tnc-leroy-panel a:focus-visible {
  outline: 2px solid #2a7fea !important;
  outline-offset: 3px !important;
}

@media (max-width: 680px) {
  .tnc-leroy-launcher {
    bottom: 12px;
    width: calc(100vw - 20px);
    min-height: 68px;
    grid-template-columns: 42px minmax(0,1fr) 38px;
    gap: 10px;
    border-radius: 18px;
    padding: 10px;
  }
  .tnc-leroy-launcher-mascot { width: 42px; height: 42px; }
  .tnc-leroy-launcher-copy strong { font-size: 15px; }
  .tnc-leroy-launcher-copy > span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tnc-leroy-launcher-action { width: 36px; height: 36px; }

  .tnc-leroy-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: calc(100vh - 20px);
    transform: none;
    border-radius: 22px;
    animation-name: leroy-panel-in-mobile;
  }
  @keyframes leroy-panel-in-mobile {
    from { opacity:0; transform:translateY(14px) scale(.985); }
    to { opacity:1; transform:translateY(0) scale(1); }
  }
  .tnc-leroy-panel-head { grid-template-columns: 42px minmax(0,1fr) 36px; gap: 11px; padding: 18px 17px 13px; }
  .tnc-leroy-panel-mascot { width: 40px; height: 40px; }
  .tnc-leroy-panel-title h2 { font-size: 28px !important; }
  .tnc-leroy-panel-title p { font-size: 11.5px !important; margin-top:4px !important; }
  .tnc-leroy-close { width:34px; height:34px; }
  .tnc-leroy-messages { min-height: 210px; padding: 12px 17px 18px; gap: 14px; }
  .tnc-leroy-message { max-width: 91%; }
  .tnc-leroy-bubble { padding: 14px 15px 11px; border-radius: 17px; font-size: 13.5px; }
  .tnc-leroy-composer-wrap { padding: 7px 14px 15px; }
  .tnc-leroy-form { grid-template-columns: 24px minmax(0,1fr) 42px; min-height: 61px; border-radius: 19px; padding: 7px 8px 7px 10px; }
  .tnc-leroy-spark svg { width:18px; height:18px; }
  .tnc-leroy-form textarea { font-size:13.5px !important; padding-top:11px !important; }
  .tnc-leroy-form button[type="submit"] { width:40px; height:40px; min-width:40px !important; }
  .tnc-leroy-note { font-size: 9.5px !important; margin-top:10px !important; }
}

/* Verified deterministic actions sit below—not inside—the factual/source card hierarchy. */
.tnc-leroy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tnc-leroy-action-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 750;
  text-decoration: none !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.tnc-leroy-action-button.is-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #1764c0, #0d4eaa);
  box-shadow: 0 6px 15px rgba(13,78,170,.2);
}
.tnc-leroy-action-button.is-primary:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(13,78,170,.26);
}
.tnc-leroy-action-icon { display: inline-flex; flex: 0 0 auto; }

@media (max-width: 680px) {
  .tnc-leroy-actions { margin-top: 11px; }
  .tnc-leroy-action-button { width: 100%; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .tnc-leroy-launcher,
  .tnc-leroy-panel,
  .tnc-leroy-close,
  .tnc-leroy-form,
  .tnc-leroy-form button[type="submit"] { transition:none !important; animation:none !important; }
  .tnc-leroy-thinking-dots span { animation:none; }
}

/* v0.2.1 interface refinement */
.tnc-leroy-shell {
  --leroy-body-font-size: 15.5px;
}

.tnc-leroy-launcher-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 20px;
  width: min(430px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: auto;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.tnc-leroy-launcher {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  min-height: 58px;
  transform: none;
  grid-template-columns: 35px minmax(0,1fr) 32px;
  gap: 10px;
  border-radius: 17px;
  padding: 8px 10px 8px 9px;
}

.tnc-leroy-launcher:hover {
  transform: translateY(-2px);
}

.tnc-leroy-launcher-mascot {
  width: 35px;
  height: 35px;
}

.tnc-leroy-launcher-copy { gap: 1px; }
.tnc-leroy-launcher-copy strong {
  font-size: 14.5px;
  line-height: 1.14;
  letter-spacing: -.015em;
}
.tnc-leroy-launcher-copy > span {
  font-size: 11px;
  line-height: 1.25;
}

.tnc-leroy-launcher-action {
  width: 31px;
  height: 31px;
  box-shadow: 0 6px 14px rgba(13,62,145,.18);
}

.tnc-leroy-dismiss {
  position: absolute;
  z-index: 5;
  top: -7px;
  right: -7px;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255,255,255,.78) !important;
  border-radius: 50% !important;
  background: rgba(248,250,253,.88) !important;
  color: rgba(8,37,79,.72) !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(8,37,79,.12), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: .72;
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}
.tnc-leroy-dismiss:hover { opacity: 1; transform: scale(1.05); background: #fff !important; }
.tnc-leroy-dismiss span {
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 1.2px;
  border-radius: 99px;
  background: currentColor;
}
.tnc-leroy-dismiss span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.tnc-leroy-dismiss span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

.tnc-leroy-shell.is-open .tnc-leroy-launcher-wrap {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px) scale(.98);
}
.tnc-leroy-shell.is-dismissed .tnc-leroy-launcher-wrap { display: none; }

.tnc-leroy-panel-head {
  position: relative;
  grid-template-columns: 35px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 15px 15px 13px 17px;
  border-bottom: 1px solid rgba(255,255,255,.34);
}

.tnc-leroy-panel-mascot {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 7px rgba(10,47,105,.10));
}

.tnc-leroy-panel-title {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.tnc-leroy-panel-eyebrow {
  color: #2f66b7;
  font-size: 8.5px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: .095em;
}
.tnc-leroy-panel-title h2 {
  font-size: 19px !important;
  line-height: 1.05 !important;
  font-weight: 690 !important;
  letter-spacing: -.025em !important;
}
.tnc-leroy-panel-title p {
  margin: 2px 0 0 !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
}

.tnc-leroy-head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: start;
}
.tnc-leroy-font-tools {
  height: 29px;
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(8,37,79,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}
.tnc-leroy-font-tools button {
  width: 34px;
  min-width: 34px !important;
  height: 28px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(8,37,79,.78) !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 28px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: none !important;
}
.tnc-leroy-font-tools button + button { border-left: 1px solid rgba(8,37,79,.08) !important; }
.tnc-leroy-font-tools button:hover { background: rgba(255,255,255,.55) !important; }
.tnc-leroy-font-tools button:disabled { opacity: .34; cursor: default; }

.tnc-leroy-close {
  width: 29px;
  height: 29px;
  background: rgba(255,255,255,.38) !important;
}
.tnc-leroy-close span { width: 13px; height: 1.4px; }

.tnc-leroy-bubble {
  font-size: var(--leroy-body-font-size) !important;
  line-height: 1.5;
}
.tnc-leroy-sources a {
  font-size: calc(var(--leroy-body-font-size) - 2px) !important;
}
.tnc-leroy-form textarea {
  font-size: var(--leroy-body-font-size) !important;
}
.tnc-leroy-thinking-label {
  font-size: calc(var(--leroy-body-font-size) - 2.5px) !important;
}
.tnc-leroy-note {
  font-size: calc(var(--leroy-body-font-size) - 4.5px) !important;
}

.tnc-leroy-dismiss:focus-visible,
.tnc-leroy-font-tools button:focus-visible {
  outline: 2px solid #2a7fea !important;
  outline-offset: 2px !important;
}

@media (max-width: 680px) {
  .tnc-leroy-launcher-wrap {
    bottom: 10px;
    width: calc(100vw - 22px);
  }
  .tnc-leroy-launcher {
    min-height: 56px;
    grid-template-columns: 33px minmax(0,1fr) 31px;
    gap: 9px;
    border-radius: 16px;
    padding: 8px 9px;
  }
  .tnc-leroy-launcher-mascot { width: 33px; height: 33px; }
  .tnc-leroy-launcher-copy strong { font-size: 14px; }
  .tnc-leroy-launcher-copy > span { font-size: 10.5px; }
  .tnc-leroy-launcher-action { width: 30px; height: 30px; }

  .tnc-leroy-panel-head {
    grid-template-columns: 31px minmax(0,1fr) auto;
    gap: 9px;
    padding: 12px 11px 11px 13px;
  }
  .tnc-leroy-panel-mascot { width: 30px; height: 30px; }
  .tnc-leroy-panel-eyebrow { font-size: 7.5px; }
  .tnc-leroy-panel-title h2 { font-size: 17px !important; }
  .tnc-leroy-panel-title p { font-size: 9.5px !important; }
  .tnc-leroy-head-tools { gap: 5px; }
  .tnc-leroy-font-tools { height: 27px; }
  .tnc-leroy-font-tools button { width: 29px; min-width: 29px !important; height: 26px; line-height: 26px !important; font-size: 9px !important; }
  .tnc-leroy-close { width: 27px; height: 27px; }
}

/* v0.3.0 bottom dock interaction */
.tnc-leroy-welcome-dock,
.tnc-leroy-compact-dock {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(16px);
  transition: opacity .22s ease, visibility .22s ease, transform .26s cubic-bezier(.2,.8,.2,1);
}

.tnc-leroy-shell.is-welcome-dock .tnc-leroy-welcome-dock,
.tnc-leroy-shell.is-compact-dock .tnc-leroy-compact-dock {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tnc-leroy-shell.is-open .tnc-leroy-welcome-dock,
.tnc-leroy-shell.is-open .tnc-leroy-compact-dock {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
}

.tnc-leroy-welcome-dock {
  width: min(720px, calc(100vw - 32px));
  min-height: 164px;
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) 34px;
  gap: 17px;
  align-items: center;
  padding: 22px 21px 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-bottom: 0;
  border-radius: 27px 27px 0 0;
  background: linear-gradient(140deg, rgba(255,255,255,.82), rgba(242,247,255,.66));
  box-shadow: 0 -12px 54px rgba(8,37,79,.16), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(30px) saturate(132%);
  -webkit-backdrop-filter: blur(30px) saturate(132%);
}

.tnc-leroy-welcome-dock::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72,142,239,.42), transparent);
}

.tnc-leroy-welcome-mascot {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 7px 13px rgba(10,47,105,.14));
}

.tnc-leroy-welcome-content {
  min-width: 0;
  display: grid;
  gap: 11px;
}

.tnc-leroy-welcome-heading { display: grid; gap: 4px; }
.tnc-leroy-welcome-heading strong {
  color: var(--leroy-navy);
  font-size: 23px;
  line-height: 1.12;
  font-weight: 690;
  letter-spacing: -.025em;
}
.tnc-leroy-welcome-heading span {
  color: var(--leroy-muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.tnc-leroy-welcome-form {
  position: relative;
  min-height: 54px;
  display: grid;
  grid-template-columns: 27px minmax(0,1fr) 40px;
  gap: 6px;
  align-items: center;
  padding: 6px 7px 6px 11px;
  border: 1px solid rgba(103,164,246,.42);
  border-radius: 17px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 9px 24px rgba(8,37,79,.07), inset 0 1px 0 rgba(255,255,255,.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tnc-leroy-welcome-form:focus-within {
  border-color: rgba(48,139,255,.68);
  background: rgba(255,255,255,.80);
  box-shadow: 0 11px 30px rgba(8,37,79,.09), inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 3px rgba(67,151,255,.08);
}

.tnc-leroy-dock-spark,
.tnc-leroy-compact-spark {
  display: grid;
  place-items: center;
  color: #4b8ff4;
}

.tnc-leroy-welcome-form textarea {
  width: 100%;
  min-height: 38px;
  max-height: 90px;
  resize: none;
  overflow-y: auto;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--leroy-ink) !important;
  padding: 9px 2px 6px !important;
  margin: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.38 !important;
}
.tnc-leroy-welcome-form textarea::placeholder { color: #838da0; opacity: 1; }

.tnc-leroy-welcome-form button[type="submit"] {
  width: 38px;
  height: 38px;
  min-width: 38px !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, var(--leroy-blue-2), var(--leroy-blue)) !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(13,62,145,.18);
}
.tnc-leroy-welcome-form button[type="submit"]:hover { transform: translateY(-1px); }
.tnc-leroy-welcome-form button[type="submit"].is-busy svg { animation: leroy-send-pulse .85s ease-in-out infinite alternate; }
.tnc-leroy-welcome-form button[disabled] { opacity: .52; cursor: wait; }

.tnc-leroy-welcome-note {
  margin: -2px 0 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--leroy-muted) !important;
  font-size: 9.5px !important;
  line-height: 1.25 !important;
}
.tnc-leroy-welcome-note svg { color: #3b81e6; flex: 0 0 auto; }

.tnc-leroy-minimize {
  align-self: start;
  width: 32px;
  height: 32px;
  min-width: 32px !important;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(8,37,79,.07) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.52) !important;
  color: var(--leroy-navy) !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
  transition: background .16s ease, transform .16s ease;
}
.tnc-leroy-minimize:hover { background: rgba(255,255,255,.84) !important; transform: translateY(1px); }

.tnc-leroy-compact-dock {
  width: min(590px, calc(100vw - 28px));
  height: 48px;
  display: grid;
  grid-template-columns: auto 1px 21px minmax(0,1fr) 1px 34px;
  align-items: center;
  gap: 12px;
  padding: 0 9px 0 16px !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  border-bottom: 0 !important;
  border-radius: 16px 16px 0 0 !important;
  background: linear-gradient(140deg, rgba(255,255,255,.84), rgba(241,247,255,.68)) !important;
  color: var(--leroy-ink) !important;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 -8px 32px rgba(8,37,79,.12), inset 0 1px 0 rgba(255,255,255,.90) !important;
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}
.tnc-leroy-compact-dock:hover { background: linear-gradient(140deg, rgba(255,255,255,.92), rgba(241,247,255,.76)) !important; }
.tnc-leroy-compact-dock strong {
  color: var(--leroy-navy);
  font-size: 13.5px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}
.tnc-leroy-compact-divider {
  width: 1px;
  height: 22px;
  background: rgba(8,37,79,.08);
}
.tnc-leroy-compact-copy {
  min-width: 0;
  overflow: hidden;
  color: #7b8496;
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tnc-leroy-compact-chevron {
  display: grid;
  place-items: center;
  color: var(--leroy-navy);
}

.tnc-leroy-welcome-form:focus-visible,
.tnc-leroy-welcome-form textarea:focus-visible,
.tnc-leroy-minimize:focus-visible,
.tnc-leroy-compact-dock:focus-visible {
  outline: 2px solid #2a7fea !important;
  outline-offset: 3px !important;
}

/* Let the dialog visually grow out of the bottom dock. */
.tnc-leroy-panel {
  bottom: 0;
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  max-height: min(760px, calc(100vh - 34px));
}

@media (max-width: 680px) {
  .tnc-leroy-welcome-dock {
    width: calc(100vw - 18px);
    min-height: 156px;
    grid-template-columns: 48px minmax(0,1fr) 29px;
    gap: 11px;
    padding: 16px 12px 13px 14px;
    border-radius: 21px 21px 0 0;
  }
  .tnc-leroy-welcome-mascot { width: 46px; height: 46px; align-self: start; margin-top: 10px; }
  .tnc-leroy-welcome-heading strong { font-size: 19px; }
  .tnc-leroy-welcome-heading span { font-size: 10.8px; }
  .tnc-leroy-welcome-form { min-height: 50px; grid-template-columns: 23px minmax(0,1fr) 36px; padding-left: 9px; border-radius: 16px; }
  .tnc-leroy-welcome-form textarea { font-size: 12.5px !important; }
  .tnc-leroy-welcome-form button[type="submit"] { width: 34px; height: 34px; min-width: 34px !important; }
  .tnc-leroy-welcome-note { font-size: 8.5px !important; }
  .tnc-leroy-minimize { width: 28px; height: 28px; min-width: 28px !important; }

  .tnc-leroy-compact-dock {
    width: calc(100vw - 18px);
    height: 44px;
    grid-template-columns: auto 1px 18px minmax(0,1fr) 1px 29px;
    gap: 8px;
    padding: 0 7px 0 12px !important;
    border-radius: 14px 14px 0 0 !important;
  }
  .tnc-leroy-compact-dock strong { font-size: 12.5px; }
  .tnc-leroy-compact-copy { font-size: 10.5px; }
  .tnc-leroy-compact-spark svg { width: 16px; height: 16px; }
  .tnc-leroy-compact-divider { height: 19px; }

  .tnc-leroy-panel {
    left: 8px;
    right: 8px;
    bottom: 0;
    max-height: calc(100vh - 10px);
    border-radius: 22px 22px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tnc-leroy-welcome-dock,
  .tnc-leroy-compact-dock,
  .tnc-leroy-minimize { transition: none !important; }
}

/* v0.3.1 refined initial welcome dock */
.tnc-leroy-welcome-dock {
  width: min(620px, calc(100vw - 32px));
  min-height: 134px;
  display: block;
  position: absolute;
  padding: 17px 50px 13px;
  border: 1px solid rgba(255,255,255,.74);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(140deg, rgba(255,255,255,.60), rgba(239,246,255,.40));
  box-shadow: 0 -12px 48px rgba(8,37,79,.14), inset 0 1px 0 rgba(255,255,255,.82), inset 0 -1px 0 rgba(116,164,232,.10);
  backdrop-filter: blur(34px) saturate(146%);
  -webkit-backdrop-filter: blur(34px) saturate(146%);
}

.tnc-leroy-welcome-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 16% 8%, rgba(255,255,255,.38), transparent 31%),
    radial-gradient(circle at 82% 24%, rgba(91,143,226,.08), transparent 34%);
}

.tnc-leroy-welcome-content {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  display: grid;
  gap: 9px;
  justify-items: stretch;
}

.tnc-leroy-welcome-heading {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.tnc-leroy-welcome-heading strong {
  color: var(--leroy-blue);
  font-size: 18.5px;
  line-height: 1.1;
  font-weight: 690;
  letter-spacing: -.025em;
}

.tnc-leroy-welcome-heading span { display: none; }

.tnc-leroy-welcome-mascot {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
  display: block;
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 7px rgba(10,47,105,.12));
}

.tnc-leroy-welcome-form {
  width: 100%;
  min-height: 49px;
  grid-template-columns: 25px minmax(0,1fr) 37px;
  gap: 6px;
  padding: 5px 6px 5px 10px;
  border-color: rgba(103,164,246,.38);
  border-radius: 16px;
  background: rgba(255,255,255,.54);
  box-shadow: 0 8px 24px rgba(8,37,79,.065), inset 0 1px 0 rgba(255,255,255,.84), 0 0 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.tnc-leroy-welcome-form:focus-within {
  background: rgba(255,255,255,.66);
}

.tnc-leroy-welcome-form textarea {
  min-height: 37px;
  padding: 8px 2px 5px !important;
  font-size: 13.5px !important;
}

.tnc-leroy-welcome-form button[type="submit"] {
  width: 35px;
  height: 35px;
  min-width: 35px !important;
}

.tnc-leroy-welcome-note {
  width: 100%;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  text-align: center;
  color: rgba(67,81,108,.78) !important;
  font-size: 9px !important;
  line-height: 1.25 !important;
}

.tnc-leroy-welcome-note svg {
  width: 11px;
  height: 11px;
}

.tnc-leroy-minimize {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 14px;
  width: 29px;
  height: 29px;
  min-width: 29px !important;
  background: rgba(255,255,255,.44) !important;
}

@media (max-width: 680px) {
  .tnc-leroy-welcome-dock {
    width: calc(100vw - 18px);
    min-height: 130px;
    padding: 15px 38px 12px;
    border-radius: 20px 20px 0 0;
  }

  .tnc-leroy-welcome-content {
    width: 100%;
    gap: 8px;
  }

  .tnc-leroy-welcome-heading {
    min-height: 27px;
    gap: 7px;
  }

  .tnc-leroy-welcome-mascot {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    margin: 0;
  }

  .tnc-leroy-welcome-heading strong { font-size: 16px; }

  .tnc-leroy-welcome-form {
    min-height: 46px;
    grid-template-columns: 22px minmax(0,1fr) 34px;
    padding: 4px 5px 4px 9px;
    border-radius: 15px;
  }

  .tnc-leroy-welcome-form textarea { font-size: 12px !important; }
  .tnc-leroy-welcome-form button[type="submit"] { width: 32px; height: 32px; min-width: 32px !important; }
  .tnc-leroy-welcome-note { font-size: 7.8px !important; }
  .tnc-leroy-minimize { top: 10px; right: 10px; width: 27px; height: 27px; min-width: 27px !important; }
}


/* v0.3.2 glass refinement */
.tnc-leroy-panel,
.tnc-leroy-welcome-dock,
.tnc-leroy-compact-dock {
  isolation: isolate;
}

.tnc-leroy-panel {
  width: min(760px, calc(100vw - 36px));
  background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(237,244,255,.34)) !important;
  border-color: rgba(255,255,255,.68) !important;
  box-shadow:
    0 32px 110px rgba(8,37,79,.24),
    0 8px 28px rgba(75,122,198,.10),
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -1px 0 rgba(146,181,234,.12) !important;
  backdrop-filter: blur(40px) saturate(152%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(152%) !important;
}

.tnc-leroy-panel::before,
.tnc-leroy-welcome-dock::after,
.tnc-leroy-compact-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.tnc-leroy-panel::before {
  background:
    linear-gradient(112deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 26%, rgba(125,168,236,.09) 48%, rgba(255,255,255,0) 66%),
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.36), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(110,154,239,.12), transparent 26%),
    radial-gradient(circle at 70% 100%, rgba(236,228,255,.10), transparent 30%);
}

.tnc-leroy-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.tnc-leroy-panel-head {
  position: relative;
  z-index: 1;
}

.tnc-leroy-panel-title {
  gap: 3px;
}

.tnc-leroy-panel-title h2 {
  margin: 0 !important;
}

.tnc-leroy-panel-eyebrow {
  order: 2;
  color: #2d68c4;
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: .09em;
}

.tnc-leroy-welcome-dock {
  width: min(600px, calc(100vw - 32px));
  background: linear-gradient(145deg, rgba(255,255,255,.42), rgba(235,243,255,.26)) !important;
  border-color: rgba(255,255,255,.68) !important;
  box-shadow:
    0 -12px 54px rgba(8,37,79,.14),
    0 -2px 12px rgba(85,136,216,.10),
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 0 rgba(121,169,242,.12) !important;
  backdrop-filter: blur(38px) saturate(155%) !important;
  -webkit-backdrop-filter: blur(38px) saturate(155%) !important;
}

.tnc-leroy-welcome-dock::before {
  background:
    linear-gradient(115deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 22%, rgba(129,175,245,.08) 50%, rgba(255,255,255,0) 68%),
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.42), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(107,155,235,.12), transparent 30%),
    radial-gradient(circle at 78% 100%, rgba(232,224,255,.08), transparent 28%);
}

.tnc-leroy-welcome-dock::after {
  background:
    linear-gradient(90deg, transparent, rgba(101,159,237,.28), transparent),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  height: auto;
}

.tnc-leroy-welcome-heading strong {
  font-size: 17.5px;
}

.tnc-leroy-welcome-form,
.tnc-leroy-form {
  border-color: rgba(255,255,255,.52) !important;
  background: rgba(255,255,255,.50) !important;
  box-shadow:
    0 10px 28px rgba(8,37,79,.07),
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 0 rgba(148,183,235,.10),
    0 0 0 1px rgba(255,255,255,.10) !important;
  backdrop-filter: blur(22px) saturate(138%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(138%) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.tnc-leroy-welcome-form:focus-within,
.tnc-leroy-form:focus-within {
  border-color: rgba(255,255,255,.66) !important;
  background: rgba(255,255,255,.62) !important;
  box-shadow:
    0 12px 32px rgba(8,37,79,.09),
    inset 0 1px 0 rgba(255,255,255,.94),
    inset 0 -1px 0 rgba(158,189,238,.14),
    0 0 0 2px rgba(126,172,241,.12) !important;
}

.tnc-leroy-form textarea,
.tnc-leroy-welcome-form textarea {
  outline: none !important;
}

.tnc-leroy-welcome-note,
.tnc-leroy-note {
  color: rgba(67,81,108,.84) !important;
}

.tnc-leroy-compact-dock {
  background: linear-gradient(140deg, rgba(255,255,255,.58), rgba(236,244,255,.36)) !important;
  border-color: rgba(255,255,255,.72) !important;
  box-shadow:
    0 -8px 32px rgba(8,37,79,.12),
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 0 rgba(136,177,239,.10) !important;
  backdrop-filter: blur(30px) saturate(148%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(148%) !important;
}

.tnc-leroy-compact-dock::before {
  background:
    linear-gradient(112deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 25%, rgba(115,164,239,.07) 48%, rgba(255,255,255,0) 70%),
    radial-gradient(circle at 85% 0%, rgba(255,255,255,.28), transparent 34%);
}

@media (max-width: 680px) {
  .tnc-leroy-welcome-dock {
    width: calc(100vw - 20px);
  }
  .tnc-leroy-panel {
    width: auto;
  }
}


/* v0.3.3 readability + modern focus treatment */
.tnc-leroy-panel-title p,
.tnc-leroy-welcome span,
.tnc-leroy-thinking-label {
  color: #52627a !important;
}

.tnc-leroy-welcome-form textarea,
.tnc-leroy-form textarea {
  color: #263750 !important;
}

.tnc-leroy-welcome-form textarea::placeholder,
.tnc-leroy-form textarea::placeholder {
  color: #66758b !important;
  opacity: 1 !important;
}

.tnc-leroy-welcome-note,
.tnc-leroy-note {
  color: rgba(43,58,83,.88) !important;
}

.tnc-leroy-compact-copy {
  color: #65748a !important;
}

/* Keep the prompt area slightly milkier than the surrounding glass for legibility. */
.tnc-leroy-welcome-form,
.tnc-leroy-form {
  background: rgba(255,255,255,.60) !important;
  border-color: rgba(255,255,255,.58) !important;
}

/* Replace the browser/theme blue focus rectangle with a soft illuminated glass edge. */
.tnc-leroy-welcome-form:focus-within,
.tnc-leroy-form:focus-within {
  border-color: rgba(255,255,255,.82) !important;
  background: rgba(255,255,255,.68) !important;
  box-shadow:
    0 12px 34px rgba(8,37,79,.09),
    0 0 18px rgba(111,154,219,.10),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(144,179,229,.14),
    0 0 0 1px rgba(255,255,255,.34) !important;
}

.tnc-leroy-panel textarea:focus,
.tnc-leroy-panel textarea:focus-visible,
.tnc-leroy-welcome-form textarea:focus,
.tnc-leroy-welcome-form textarea:focus-visible {
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Keep keyboard accessibility visible on actual controls without outlining the text field. */
.tnc-leroy-panel button:focus-visible,
.tnc-leroy-panel a:focus-visible,
.tnc-leroy-minimize:focus-visible,
.tnc-leroy-compact-dock:focus-visible {
  outline-color: rgba(45,104,196,.55) !important;
}


/* v0.3.4 adaptive two-layer frost: stable contrast over light, dark, and photographic backgrounds */
.tnc-leroy-panel,
.tnc-leroy-welcome-dock,
.tnc-leroy-compact-dock {
  background: rgba(244,248,255,.10) !important;
  backdrop-filter: blur(38px) saturate(110%) brightness(1.035) !important;
  -webkit-backdrop-filter: blur(38px) saturate(110%) brightness(1.035) !important;
}

/* Layer 1: neutral frost. This guarantees a readable material regardless of the page beneath. */
.tnc-leroy-panel::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(252,253,255,.57), rgba(246,249,255,.47)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.70);
}

/* Layer 2: faint reflected light, kept separate from the neutral frost. */
.tnc-leroy-panel::after {
  z-index: 1;
  background:
    linear-gradient(112deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 25%, rgba(114,159,230,.065) 49%, rgba(255,255,255,0) 68%),
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.26), transparent 28%),
    radial-gradient(circle at 83% 20%, rgba(126,164,229,.075), transparent 27%),
    radial-gradient(circle at 68% 100%, rgba(230,225,248,.055), transparent 30%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84) !important;
}

.tnc-leroy-panel > * {
  position: relative;
  z-index: 2;
}

.tnc-leroy-welcome-dock {
  backdrop-filter: blur(36px) saturate(108%) brightness(1.04) !important;
  -webkit-backdrop-filter: blur(36px) saturate(108%) brightness(1.04) !important;
}

.tnc-leroy-welcome-dock::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(252,253,255,.58), rgba(246,249,255,.49)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.tnc-leroy-welcome-dock::after {
  z-index: 1;
  background:
    linear-gradient(112deg, rgba(255,255,255,.19) 0%, rgba(255,255,255,0) 24%, rgba(113,159,231,.06) 48%, rgba(255,255,255,0) 70%),
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.28), transparent 28%),
    radial-gradient(circle at 83% 18%, rgba(120,163,232,.075), transparent 30%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.tnc-leroy-welcome-content,
.tnc-leroy-minimize {
  position: relative;
  z-index: 2;
}

/* The compact dock gets the strongest neutral frost because its small helper text must survive dark footers. */
.tnc-leroy-compact-dock {
  position: absolute;
  background: rgba(246,249,255,.12) !important;
  backdrop-filter: blur(30px) saturate(106%) brightness(1.045) !important;
  -webkit-backdrop-filter: blur(30px) saturate(106%) brightness(1.045) !important;
}

.tnc-leroy-compact-dock::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(253,254,255,.70), rgba(246,249,255,.62)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.80);
}

.tnc-leroy-compact-dock::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(110deg, rgba(255,255,255,.20), transparent 30%, rgba(113,159,231,.05) 54%, transparent 75%) !important;
}

.tnc-leroy-compact-dock > * {
  position: relative;
  z-index: 2;
}

/* Keep all secondary copy firmly readable rather than allowing page color to tint it. */
.tnc-leroy-panel-title p,
.tnc-leroy-welcome span,
.tnc-leroy-thinking-label,
.tnc-leroy-compact-copy {
  color: #4e5f77 !important;
}

.tnc-leroy-welcome-note,
.tnc-leroy-note {
  color: #40516a !important;
}

/* Prompt field is a milky inner glass layer, independent from the outer panel. */
.tnc-leroy-welcome-form,
.tnc-leroy-form {
  background: rgba(253,254,255,.74) !important;
  border-color: rgba(255,255,255,.86) !important;
  backdrop-filter: blur(20px) saturate(104%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(104%) !important;
  box-shadow:
    0 10px 28px rgba(8,37,79,.075),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(104,132,174,.08),
    0 0 0 1px rgba(77,106,150,.055) !important;
}

/* Modern focus: a neutral light lift, never a blue form outline. */
.tnc-leroy-welcome-form:focus-within,
.tnc-leroy-form:focus-within {
  background: rgba(255,255,255,.84) !important;
  border-color: rgba(255,255,255,.96) !important;
  box-shadow:
    0 13px 34px rgba(8,37,79,.10),
    0 0 20px rgba(255,255,255,.22),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(91,119,161,.09),
    0 0 0 1px rgba(68,91,125,.08) !important;
}

.tnc-leroy-form textarea,
.tnc-leroy-welcome-form textarea,
.tnc-leroy-form textarea:focus,
.tnc-leroy-welcome-form textarea:focus,
.tnc-leroy-form textarea:focus-visible,
.tnc-leroy-welcome-form textarea:focus-visible {
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  outline-offset: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* v0.3.5 restore expressive glass + local contrast protection */
/* Bring back the cooler, more transparent/prismatic material from v0.3.3. */
.tnc-leroy-panel {
  background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(237,244,255,.34)) !important;
  border-color: rgba(255,255,255,.68) !important;
  box-shadow:
    0 32px 110px rgba(8,37,79,.24),
    0 8px 28px rgba(75,122,198,.10),
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -1px 0 rgba(146,181,234,.12) !important;
  backdrop-filter: blur(40px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(150%) !important;
}

.tnc-leroy-panel::before {
  z-index: 0;
  background:
    linear-gradient(112deg, rgba(255,255,255,.27) 0%, rgba(255,255,255,0) 25%, rgba(125,168,236,.085) 49%, rgba(255,255,255,0) 68%),
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.34), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(110,154,239,.11), transparent 26%),
    radial-gradient(circle at 70% 100%, rgba(236,228,255,.085), transparent 30%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.tnc-leroy-panel::after {
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}

.tnc-leroy-welcome-dock {
  background: linear-gradient(145deg, rgba(255,255,255,.42), rgba(235,243,255,.26)) !important;
  border-color: rgba(255,255,255,.68) !important;
  box-shadow:
    0 -12px 54px rgba(8,37,79,.14),
    0 -2px 12px rgba(85,136,216,.10),
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 0 rgba(121,169,242,.12) !important;
  backdrop-filter: blur(38px) saturate(153%) !important;
  -webkit-backdrop-filter: blur(38px) saturate(153%) !important;
}

.tnc-leroy-welcome-dock::before {
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 22%, rgba(129,175,245,.08) 50%, rgba(255,255,255,0) 68%),
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.42), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(107,155,235,.12), transparent 30%),
    radial-gradient(circle at 78% 100%, rgba(232,224,255,.08), transparent 28%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.tnc-leroy-welcome-dock::after {
  z-index: 1;
  background:
    linear-gradient(90deg, transparent, rgba(101,159,237,.24), transparent),
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.80) !important;
}

.tnc-leroy-compact-dock {
  background: linear-gradient(140deg, rgba(255,255,255,.58), rgba(236,244,255,.36)) !important;
  border-color: rgba(255,255,255,.72) !important;
  box-shadow:
    0 -8px 32px rgba(8,37,79,.12),
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 0 rgba(136,177,239,.10) !important;
  backdrop-filter: blur(30px) saturate(146%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(146%) !important;
}

/* The compact state is all reading area, so give it a quiet internal frost without whitening the outer material. */
.tnc-leroy-compact-dock::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.24), rgba(255,255,255,.31) 50%, rgba(255,255,255,.22)),
    linear-gradient(112deg, rgba(255,255,255,.18) 0%, transparent 28%, rgba(115,164,239,.06) 50%, transparent 74%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.70) !important;
}

.tnc-leroy-compact-dock::after {
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent) !important;
}

/* Keep the input as the deliberately milkier inner-glass element. */
.tnc-leroy-welcome-form,
.tnc-leroy-form {
  background: rgba(253,254,255,.72) !important;
  border-color: rgba(255,255,255,.84) !important;
  backdrop-filter: blur(20px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(108%) !important;
}

.tnc-leroy-welcome-form:focus-within,
.tnc-leroy-form:focus-within {
  background: rgba(255,255,255,.80) !important;
  border-color: rgba(255,255,255,.95) !important;
  box-shadow:
    0 13px 34px rgba(8,37,79,.10),
    0 0 18px rgba(255,255,255,.18),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(91,119,161,.09),
    0 0 0 1px rgba(68,91,125,.06) !important;
}

/* Protect small text locally instead of frosting the entire component. */
.tnc-leroy-panel-title p,
.tnc-leroy-welcome span,
.tnc-leroy-thinking-label,
.tnc-leroy-compact-copy,
.tnc-leroy-welcome-note,
.tnc-leroy-note {
  color: #42536c !important;
  text-shadow:
    0 1px 1px rgba(255,255,255,.72),
    0 0 8px rgba(255,255,255,.30);
}

.tnc-leroy-compact-dock strong {
  text-shadow: 0 1px 1px rgba(255,255,255,.55);
}

/* A feathered white wash sits only behind the centered intro copy. */
.tnc-leroy-welcome {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.27) 0%, rgba(255,255,255,.15) 40%, rgba(255,255,255,0) 72%);
}

/* And only behind the disclaimer row, not across the whole glass. */
.tnc-leroy-note,
.tnc-leroy-welcome-note {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22) 16%, rgba(255,255,255,.22) 84%, transparent);
  border-radius: 999px;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}

.tnc-leroy-welcome-note {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.tnc-leroy-note {
  padding-left: 12px !important;
  padding-right: 12px !important;
}


/* v0.3.6 minimal welcome state + answer-only disclaimer */
.tnc-leroy-welcome-dock {
  min-height: 0 !important;
  padding: 17px 50px 18px !important;
}

.tnc-leroy-welcome-content {
  gap: 10px !important;
}

/* Keep the welcome minimize control in the same upper-right visual position as the full dialog controls. */
.tnc-leroy-welcome-dock .tnc-leroy-minimize {
  position: absolute !important;
  z-index: 5 !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none;
}
.tnc-leroy-welcome-dock .tnc-leroy-minimize:hover {
  transform: translateY(1px) !important;
}

/* The welcome state no longer carries the disclaimer. */
.tnc-leroy-welcome-note { display: none !important; }

/* Slight readability bump for the compact/minimized helper copy without making the bar taller. */
.tnc-leroy-compact-copy {
  font-size: 12.25px !important;
  line-height: 1.15 !important;
}
.tnc-leroy-compact-dock strong {
  font-size: 14px !important;
}

/* The disclaimer belongs to the answer state, not the empty assistant. */
.tnc-leroy-note[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .tnc-leroy-welcome-dock {
    min-height: 0 !important;
    padding: 15px 38px 15px !important;
  }
  .tnc-leroy-welcome-dock .tnc-leroy-minimize {
    top: 10px !important;
    right: 10px !important;
  }
  .tnc-leroy-compact-copy {
    font-size: 11.25px !important;
  }
  .tnc-leroy-compact-dock strong {
    font-size: 13px !important;
  }
}


/* Timestamps made the interface feel like a messaging app; remove them from the conversation UI. */
.tnc-leroy-message-time { display: none !important; }

/* v0.9.5 pre-submit youth privacy disclosure */
.tnc-leroy-welcome-safety{display:block;margin-top:7px;font-size:10px;line-height:1.35;color:rgba(35,42,52,.62);padding-left:4px;}


/* v0.9.6 fixed scope/privacy introduction */
.tnc-leroy-welcome-dock { min-height: 218px; }
.tnc-leroy-welcome-intro {
  margin: 0;
  color: rgba(35,42,52,.74);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: left;
}
.tnc-leroy-welcome-intro strong { color: var(--leroy-ink); font-weight: 650; }
.tnc-leroy-welcome {
  margin: 0 0 4px;
  padding: 12px 14px;
  max-width: 86%;
  align-self: flex-start;
  text-align: left;
  border-radius: 18px 18px 18px 6px;
  background: rgba(245,247,251,.92);
  border: 1px solid rgba(8,37,79,.07);
  box-shadow: 0 7px 18px rgba(8,37,79,.045);
}
.tnc-leroy-welcome strong { font-size: 15px; line-height: 1.25; letter-spacing: -.01em; }
.tnc-leroy-welcome span { display:block; color:var(--leroy-muted); font-size:13px; line-height:1.48; }
@media (max-width: 680px) {
  .tnc-leroy-welcome-dock { min-height: 238px; }
  .tnc-leroy-welcome-intro { font-size: 10.8px; line-height: 1.42; }
  .tnc-leroy-welcome { max-width: 94%; }
}


/* v0.9.7 compact pre-conversation launcher
   The landing prompt deliberately looks like an input but is a button. Visitors cannot
   enter personal information until the full assistant opens and the scope/privacy notice
   is visible above the real composer. */
.tnc-leroy-welcome-dock {
  min-height: 0 !important;
  width: min(620px, calc(100vw - 32px)) !important;
  padding: 15px 50px 16px !important;
}
.tnc-leroy-welcome-content {
  gap: 9px !important;
}
.tnc-leroy-welcome-intro {
  display: none !important;
}
.tnc-leroy-welcome-trigger {
  position: relative;
  width: 100%;
  min-height: 49px;
  display: grid !important;
  grid-template-columns: 25px minmax(0,1fr) 37px;
  gap: 6px;
  align-items: center;
  padding: 5px 6px 5px 10px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.84) !important;
  border-radius: 16px !important;
  background: rgba(253,254,255,.72) !important;
  color: var(--leroy-ink) !important;
  box-shadow:
    0 10px 28px rgba(8,37,79,.075),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(104,132,174,.08),
    0 0 0 1px rgba(77,106,150,.055) !important;
  backdrop-filter: blur(20px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(108%) !important;
  cursor: text;
  text-align: left;
  font-family: inherit !important;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tnc-leroy-welcome-trigger:hover,
.tnc-leroy-welcome-trigger:focus-visible {
  background: rgba(255,255,255,.82) !important;
  box-shadow:
    0 13px 34px rgba(8,37,79,.10),
    inset 0 1px 0 rgba(255,255,255,1),
    0 0 0 1px rgba(68,91,125,.07) !important;
  outline: none !important;
}
.tnc-leroy-welcome-trigger:active {
  transform: translateY(1px);
}
.tnc-leroy-welcome-trigger-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #748198;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 400;
}
.tnc-leroy-welcome-trigger-action {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--leroy-blue-2), var(--leroy-blue));
  color: #fff;
  box-shadow: 0 7px 16px rgba(13,62,145,.18);
}
.tnc-leroy-welcome-trigger .tnc-leroy-dock-spark {
  pointer-events: none;
}
@media (max-width: 680px) {
  .tnc-leroy-welcome-dock {
    padding: 14px 38px 14px !important;
  }
  .tnc-leroy-welcome-trigger {
    min-height: 47px;
    grid-template-columns: 23px minmax(0,1fr) 34px;
    padding: 5px 5px 5px 9px !important;
  }
  .tnc-leroy-welcome-trigger-copy {
    font-size: 12px;
  }
  .tnc-leroy-welcome-trigger-action {
    width: 32px;
    height: 32px;
  }
}

/* v0.9.8 — disclaimer alignment + stronger privacy icon */
.tnc-leroy-note {
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: left !important;
  gap: 9px !important;
}
.tnc-leroy-note > svg {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
}
.tnc-leroy-note > span {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}


/* v1.1.4 — front-end sizing + Salient/Leroy search integration */
/* Tighten the initial launcher so the glass shell tracks the input more closely. */
.tnc-leroy-welcome-dock {
  width: min(560px, calc(100vw - 30px)) !important;
  padding: 15px 28px 17px !important;
}
.tnc-leroy-welcome-dock .tnc-leroy-minimize {
  right: 36px !important;
}

/* Open Leroy as a viewport-aware app window. It starts around 70% of the
   viewport but NEVER grows into the site header. Keep at least 100px of
   vertical breathing room above the panel on desktop (the panel sits 32px from the bottom); the message well scrolls. */
.tnc-leroy-panel {
  width: min(820px, calc(100vw - 40px)) !important;
  height: auto !important;
  min-height: min(70dvh, 760px, calc(100dvh - 132px)) !important;
  max-height: min(90dvh, calc(100dvh - 132px)) !important;
}
.tnc-leroy-messages {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
.tnc-leroy-panel-head,
.tnc-leroy-composer-wrap {
  flex: 0 0 auto !important;
}
.tnc-leroy-composer-wrap {
  position: relative;
  z-index: 4;
}

/* Short desktop windows compress only non-essential chrome. The panel keeps the
   same top-safe-area cap; the message well scrolls and the composer stays visible. */
@media (min-width: 681px) and (max-height: 700px) {
  .tnc-leroy-panel {
    min-height: min(68dvh, calc(100dvh - 132px)) !important;
    max-height: min(90dvh, calc(100dvh - 132px)) !important;
  }
  .tnc-leroy-panel-head { padding-top: 10px !important; padding-bottom: 9px !important; }
  .tnc-leroy-messages { padding-top: 10px !important; padding-bottom: 12px !important; gap: 12px !important; }
  .tnc-leroy-composer-wrap { padding-top: 6px !important; padding-bottom: 10px !important; }
}

@media (max-width: 680px) {
  .tnc-leroy-welcome-dock {
    width: calc(100vw - 18px) !important;
    padding: 13px 22px 14px !important;
  }
  .tnc-leroy-welcome-dock .tnc-leroy-minimize { right: 24px !important; }
  .tnc-leroy-panel {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    min-height: min(72dvh, 620px, calc(100dvh - 64px)) !important;
    max-height: min(92dvh, calc(100dvh - 32px)) !important;
  }
}

/* v1.1.4 — On Leroy-enabled pages the Salient search trigger keeps its native
   clickable area, but an admin-uploaded Leroy Search Icon can replace the glyph. */
.tnc-leroy-salient-search-trigger {
  position: relative !important;
  overflow: visible !important;
}
.tnc-leroy-salient-search-trigger.tnc-leroy-has-custom-search-icon .icon-salient-search,
.tnc-leroy-salient-search-trigger.tnc-leroy-has-custom-search-icon .nectar-icon.icon-salient-search {
  opacity: 0 !important;
  visibility: hidden !important;
}
.tnc-leroy-salient-search-replacement {
  position: absolute !important;
  z-index: 5 !important;
  top: 50% !important;
  left: 50% !important;
  width: 30px !important;
  height: 30px !important;
  transform: translate(-50%, -50%) !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.tnc-leroy-salient-search-replacement img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 1000px) {
  .tnc-leroy-salient-search-replacement {
    width: 26px !important;
    height: 26px !important;
  }
}

/* v1.2.0-experimental.12 — tighter initial Leroy launcher.
   Keep the pre-submit control non-editable; this is visual sizing/header cleanup only. */
.tnc-leroy-welcome-dock {
  width: min(460px, calc(100vw - 24px)) !important;
  padding: 12px 22px 13px !important;
}
.tnc-leroy-welcome-content {
  width: 100% !important;
  gap: 7px !important;
}
.tnc-leroy-welcome-heading {
  min-height: 25px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap;
  text-align: center;
}
.tnc-leroy-welcome-heading strong {
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 680 !important;
  letter-spacing: -.018em !important;
}
.tnc-leroy-welcome-ask {
  color: var(--leroy-blue) !important;
}
.tnc-leroy-welcome-prompt {
  color: var(--leroy-blue) !important;
}
.tnc-leroy-welcome-mascot {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  margin: 0 !important;
  transform: translateY(-1px) !important;
}
.tnc-leroy-welcome-trigger {
  min-height: 43px !important;
  grid-template-columns: 22px minmax(0,1fr) 32px !important;
  gap: 5px !important;
  padding: 4px 5px 4px 9px !important;
  border-radius: 14px !important;
}
.tnc-leroy-welcome-trigger-copy {
  font-size: 12px !important;
}
.tnc-leroy-welcome-trigger-action {
  width: 31px !important;
  height: 31px !important;
}
.tnc-leroy-welcome-dock .tnc-leroy-minimize {
  top: 10px !important;
  right: 11px !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
}

@media (max-width: 680px) {
  .tnc-leroy-welcome-dock {
    width: calc(100vw - 18px) !important;
    padding: 11px 20px 12px !important;
  }
  .tnc-leroy-welcome-heading {
    gap: 5px !important;
  }
  .tnc-leroy-welcome-heading strong {
    font-size: 12.5px !important;
  }
  .tnc-leroy-welcome-mascot {
    width: 22px !important;
    height: 22px !important;
    flex-basis: 22px !important;
  }
  .tnc-leroy-welcome-trigger {
    min-height: 42px !important;
    grid-template-columns: 21px minmax(0,1fr) 31px !important;
  }
  .tnc-leroy-welcome-trigger-copy {
    font-size: 11.5px !important;
  }
  .tnc-leroy-welcome-trigger-action {
    width: 30px !important;
    height: 30px !important;
  }
}

/* experimental.23.07 — conversational surface + source-attribution refinement */
.tnc-leroy-panel {
  width: min(760px, calc(100vw - 40px)) !important;
}

.tnc-leroy-messages {
  gap: 14px !important;
  padding-top: 14px !important;
}

.tnc-leroy-message {
  width: auto;
  max-width: min(88%, 680px);
}
.tnc-leroy-message.is-user {
  max-width: min(72%, 560px);
}

.tnc-leroy-bubble {
  width: fit-content !important;
  max-width: 100%;
  padding: 13px 15px !important;
  border-radius: 17px 17px 17px 6px !important;
  box-shadow: 0 6px 18px rgba(8,37,79,.055), inset 0 1px 0 rgba(255,255,255,.78) !important;
  line-height: 1.46 !important;
}
.tnc-leroy-message.is-user .tnc-leroy-bubble {
  border-radius: 17px 17px 6px 17px !important;
  padding: 12px 15px !important;
  box-shadow: 0 8px 20px rgba(13,62,145,.16), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
.tnc-leroy-bubble-copy {
  white-space: pre-wrap;
  text-wrap: pretty;
}

/* T&C-owned knowledge is cited like editorial support, not rendered as a second CTA card. */
.tnc-leroy-sources.is-editorial {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px !important;
  max-width: none !important;
  margin-top: 9px !important;
  padding-top: 8px;
  border-top: 1px solid rgba(8,37,79,.075);
}
.tnc-leroy-sources-label {
  color: rgba(80,94,117,.72);
  font-size: calc(var(--leroy-body-font-size) - 4px);
  line-height: 1.2;
  font-weight: 620;
}
.tnc-leroy-source-inline {
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px !important;
  color: #315f9f !important;
  font-size: calc(var(--leroy-body-font-size) - 3px) !important;
  line-height: 1.25 !important;
  font-weight: 620 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tnc-leroy-source-inline:hover .tnc-leroy-source-inline-title {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.tnc-leroy-source-inline + .tnc-leroy-source-inline::before {
  content: "·";
  color: rgba(80,94,117,.38);
  margin-right: 3px;
  text-decoration: none !important;
}
.tnc-leroy-source-domain {
  color: rgba(80,94,117,.58);
  font-size: .9em;
  font-weight: 500;
}
.tnc-leroy-source-inline-arrow {
  display: inline-flex;
  opacity: .55;
  transition: transform .16s ease, opacity .16s ease;
}
.tnc-leroy-source-inline:hover .tnc-leroy-source-inline-arrow {
  transform: translate(1px,-1px);
  opacity: .9;
}

/* Verified actions are concise, deliberate CTAs rather than a second card hierarchy. */
.tnc-leroy-actions {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap !important;
  gap: 7px !important;
  margin-top: 11px !important;
}
.tnc-leroy-action-button {
  width: auto !important;
  min-height: 38px !important;
  max-width: 100%;
  justify-content: flex-start !important;
  gap: 7px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: calc(var(--leroy-body-font-size) - 1.5px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -.006em;
  box-shadow: none !important;
}
.tnc-leroy-action-button.is-primary {
  background: #0d4fae !important;
  border-color: #0d4fae !important;
  color: #fff !important;
  box-shadow: 0 5px 13px rgba(13,78,170,.16) !important;
}
.tnc-leroy-action-button.is-primary:hover {
  background: #0a438f !important;
  border-color: #0a438f !important;
  box-shadow: 0 7px 16px rgba(13,78,170,.20) !important;
}
.tnc-leroy-action-button.is-secondary {
  color: #174f99 !important;
  background: rgba(255,255,255,.54) !important;
  border-color: rgba(23,79,153,.18) !important;
}
.tnc-leroy-action-button.is-secondary:hover {
  color: #0d3e91 !important;
  background: rgba(255,255,255,.82) !important;
  border-color: rgba(23,79,153,.28) !important;
  transform: translateY(-1px);
}
.tnc-leroy-action-arrow {
  display: inline-flex;
  margin-left: 1px;
  opacity: .8;
}

.tnc-leroy-welcome {
  max-width: min(86%, 640px) !important;
  padding: 13px 15px !important;
  border-radius: 17px 17px 17px 6px !important;
}
.tnc-leroy-welcome strong {
  font-size: 15.5px !important;
}
.tnc-leroy-welcome span {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

.tnc-leroy-panel-eyebrow {
  letter-spacing: .075em !important;
  opacity: .86;
}

@media (max-width: 680px) {
  .tnc-leroy-message { max-width: 94%; }
  .tnc-leroy-message.is-user { max-width: 86%; }
  .tnc-leroy-bubble { padding: 12px 13px !important; }
  .tnc-leroy-actions { width: 100%; }
  .tnc-leroy-action-button { width: fit-content !important; min-height: 40px !important; }
  .tnc-leroy-sources.is-editorial { gap: 5px 7px !important; }
}


/* experimental.23.07 — sources are attribution, so they always finish the assistant bubble */
.tnc-leroy-actions + .tnc-leroy-sources.is-editorial {
  margin-top: 12px !important;
}
.tnc-leroy-sources.is-editorial {
  margin-bottom: -1px;
  color: rgba(80,94,117,.72);
}

/* experimental.23.08 — semantic presentation layer */
.tnc-leroy-contact-card {
  width: min(100%, 520px);
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(23,79,153,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.tnc-leroy-contact-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tnc-leroy-contact-card-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tnc-leroy-contact-card-identity strong {
  color: #10284f;
  font-size: calc(var(--leroy-body-font-size) - .5px);
  line-height: 1.2;
}
.tnc-leroy-contact-card-identity span {
  color: rgba(63,79,104,.74);
  font-size: calc(var(--leroy-body-font-size) - 3px);
  line-height: 1.25;
}
.tnc-leroy-contact-card-profile {
  flex: 0 0 auto;
  color: #2d66ad !important;
  font-size: calc(var(--leroy-body-font-size) - 3.5px);
  font-weight: 650;
  text-decoration: none !important;
}
.tnc-leroy-contact-card-profile:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.tnc-leroy-contact-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 9px;
}
.tnc-leroy-contact-detail {
  color: #174f99 !important;
  font-size: calc(var(--leroy-body-font-size) - 2px);
  font-weight: 620;
  text-decoration: underline !important;
  text-decoration-color: rgba(64,147,229,.44) !important;
  text-underline-offset: 3px;
}
.tnc-leroy-contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.tnc-leroy-contact-card-actions .tnc-leroy-action-button {
  min-height: 36px !important;
  padding: 7px 12px !important;
}

.tnc-leroy-resource-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "overline arrow" "title arrow";
  align-items: center;
  gap: 2px 14px;
  width: min(100%, 430px);
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(23,79,153,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.56);
  color: #10284f !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.tnc-leroy-resource-card:hover {
  transform: translateY(-1px);
  border-color: rgba(23,79,153,.24);
  background: rgba(255,255,255,.8);
}
.tnc-leroy-resource-card-overline {
  grid-area: overline;
  color: rgba(62,82,112,.66);
  font-size: calc(var(--leroy-body-font-size) - 4px);
  font-weight: 650;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.tnc-leroy-resource-card strong { grid-area: title; font-size: calc(var(--leroy-body-font-size) - 1px); }
.tnc-leroy-resource-card-arrow { grid-area: arrow; color: #2f78c7; font-weight: 700; }

/* Inline approved entity links are intentionally quiet: content first, navigation second. */
.tnc-leroy-resource-link {
  color: inherit !important;
  text-decoration-line: underline !important;
  text-decoration-color: rgba(73,159,230,.55) !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
}
.tnc-leroy-resource-link:hover { color: #174f99 !important; text-decoration-color: rgba(48,119,192,.9) !important; }

/* Provenance remains the last, quietest layer in an answer. */
.tnc-leroy-sources.is-editorial {
  border-top-color: rgba(8,37,79,.055) !important;
  padding-top: 7px !important;
  margin-top: 10px !important;
}
.tnc-leroy-sources-label { opacity: .8; }

@media (max-width: 680px) {
  .tnc-leroy-contact-card,
  .tnc-leroy-resource-card { width: 100%; }
  .tnc-leroy-contact-card-head { gap: 8px; }
}
