html.dee-overlay-open { overflow: hidden; }

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

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

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

.dee-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(--dee-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;
}

.dee-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));
}

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

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

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

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

.dee-backdrop {
  /* This element is a full-viewport scrim, not a styled theme button.
     WordPress themes can apply global button radii/shadows, so every
     geometry-critical property is explicitly reset here. */
  -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%);
}
.dee-backdrop::before,
.dee-backdrop::after {
  content: none !important;
  display: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.dee-backdrop[hidden] { display: none !important; }

.dee-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(--dee-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: ebb-panel-in .24s ease-out both;
}

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

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

.dee-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;
}

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

.dee-panel-title { min-width: 0; }
.dee-panel-title h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--dee-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;
}
.dee-panel-title p {
  margin: 6px 0 0 !important;
  color: var(--dee-muted) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.dee-close {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.42) !important;
  color: var(--dee-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;
}
.dee-close:hover { background: rgba(255,255,255,.78) !important; transform: rotate(3deg); }
.dee-close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 17px; height: 1.6px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: center;
}
.dee-close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.dee-close span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

.dee-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;
}

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

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

.dee-bubble {
  width: 100%;
  padding: 17px 18px 13px;
  border-radius: 19px;
  background: rgba(255,255,255,.72);
  color: var(--dee-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);
}
.dee-message.is-user .dee-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);
}

.dee-bubble-copy { white-space: pre-wrap; }
.dee-message-time {
  margin-top: 8px;
  color: rgba(79,91,112,.74);
  font-size: 10px;
  line-height: 1;
}
.dee-message.is-user .dee-message-time { color: rgba(255,255,255,.68); text-align: right; }

.dee-sources {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}
.dee-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;
}
.dee-sources a:hover span { text-decoration: underline; text-underline-offset: 3px; }

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

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

.dee-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;
}
.dee-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);
}

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

.dee-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(--dee-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;
}
.dee-form textarea::placeholder { color: #8690a2; opacity: 1; }

.dee-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(--dee-blue-2), var(--dee-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;
}
.dee-form button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(13,62,145,.28); }
.dee-form button[type="submit"].is-busy svg { animation: ebb-send-pulse .85s ease-in-out infinite alternate; }
.dee-form button[disabled] { opacity: .52; cursor: wait; }
@keyframes ebb-send-pulse { from { transform: translateX(-1px); opacity:.6; } to { transform:translateX(1px); opacity:1; } }

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

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

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

@media (max-width: 680px) {
  .dee-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;
  }
  .dee-launcher-mascot { width: 42px; height: 42px; }
  .dee-launcher-copy strong { font-size: 15px; }
  .dee-launcher-copy > span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dee-launcher-action { width: 36px; height: 36px; }

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

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

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

.dee-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;
}

.dee-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;
}

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

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

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

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

.dee-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;
}
.dee-dismiss:hover { opacity: 1; transform: scale(1.05); background: #fff !important; }
.dee-dismiss span {
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 1.2px;
  border-radius: 99px;
  background: currentColor;
}
.dee-dismiss span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.dee-dismiss span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

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

.dee-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);
}

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

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

.dee-head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: start;
}
.dee-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);
}
.dee-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;
}
.dee-font-tools button + button { border-left: 1px solid rgba(8,37,79,.08) !important; }
.dee-font-tools button:hover { background: rgba(255,255,255,.55) !important; }
.dee-font-tools button:disabled { opacity: .34; cursor: default; }

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

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

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

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

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

/* v0.3.0 bottom dock interaction */
.dee-welcome-dock,
.dee-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);
}

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

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

.dee-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%);
}

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

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

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

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

.dee-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;
}
.dee-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);
}

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

.dee-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(--dee-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;
}
.dee-welcome-form textarea::placeholder { color: #838da0; opacity: 1; }

.dee-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(--dee-blue-2), var(--dee-blue)) !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(13,62,145,.18);
}
.dee-welcome-form button[type="submit"]:hover { transform: translateY(-1px); }
.dee-welcome-form button[type="submit"].is-busy svg { animation: ebb-send-pulse .85s ease-in-out infinite alternate; }
.dee-welcome-form button[disabled] { opacity: .52; cursor: wait; }

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

.dee-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(--dee-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;
}
.dee-minimize:hover { background: rgba(255,255,255,.84) !important; transform: translateY(1px); }

.dee-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(--dee-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%);
}
.dee-compact-dock:hover { background: linear-gradient(140deg, rgba(255,255,255,.92), rgba(241,247,255,.76)) !important; }
.dee-compact-dock strong {
  color: var(--dee-navy);
  font-size: 13.5px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}
.dee-compact-divider {
  width: 1px;
  height: 22px;
  background: rgba(8,37,79,.08);
}
.dee-compact-copy {
  min-width: 0;
  overflow: hidden;
  color: #7b8496;
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dee-compact-chevron {
  display: grid;
  place-items: center;
  color: var(--dee-navy);
}

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

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

@media (max-width: 680px) {
  .dee-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;
  }
  .dee-welcome-mascot { width: 46px; height: 46px; align-self: start; margin-top: 10px; }
  .dee-welcome-heading strong { font-size: 19px; }
  .dee-welcome-heading span { font-size: 10.8px; }
  .dee-welcome-form { min-height: 50px; grid-template-columns: 23px minmax(0,1fr) 36px; padding-left: 9px; border-radius: 16px; }
  .dee-welcome-form textarea { font-size: 12.5px !important; }
  .dee-welcome-form button[type="submit"] { width: 34px; height: 34px; min-width: 34px !important; }
  .dee-welcome-note { font-size: 8.5px !important; }
  .dee-minimize { width: 28px; height: 28px; min-width: 28px !important; }

  .dee-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;
  }
  .dee-compact-dock strong { font-size: 12.5px; }
  .dee-compact-copy { font-size: 10.5px; }
  .dee-compact-spark svg { width: 16px; height: 16px; }
  .dee-compact-divider { height: 19px; }

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

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

/* v0.3.1 refined initial welcome dock */
.dee-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%);
}

.dee-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%);
}

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

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

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

.dee-welcome-heading span { display: none; }

.dee-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));
}

.dee-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%);
}

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

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

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

.dee-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;
}

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

.dee-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) {
  .dee-welcome-dock {
    width: calc(100vw - 18px);
    min-height: 130px;
    padding: 15px 38px 12px;
    border-radius: 20px 20px 0 0;
  }

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

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

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

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

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

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


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

.dee-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;
}

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

.dee-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%);
}

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

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

.dee-panel-title {
  gap: 3px;
}

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

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

.dee-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;
}

.dee-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%);
}

.dee-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;
}

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

.dee-welcome-form,
.dee-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;
}

.dee-welcome-form:focus-within,
.dee-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;
}

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

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

.dee-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;
}

.dee-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) {
  .dee-welcome-dock {
    width: calc(100vw - 20px);
  }
  .dee-panel {
    width: auto;
  }
}


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

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

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

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

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

/* Keep the prompt area slightly milkier than the surrounding glass for legibility. */
.dee-welcome-form,
.dee-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. */
.dee-welcome-form:focus-within,
.dee-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;
}

.dee-panel textarea:focus,
.dee-panel textarea:focus-visible,
.dee-welcome-form textarea:focus,
.dee-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. */
.dee-panel button:focus-visible,
.dee-panel a:focus-visible,
.dee-minimize:focus-visible,
.dee-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 */
.dee-panel,
.dee-welcome-dock,
.dee-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. */
.dee-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. */
.dee-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;
}

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

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

.dee-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);
}

.dee-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);
}

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

/* The compact dock gets the strongest neutral frost because its small helper text must survive dark footers. */
.dee-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;
}

.dee-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);
}

.dee-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;
}

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

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

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

/* Prompt field is a milky inner glass layer, independent from the outer panel. */
.dee-welcome-form,
.dee-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. */
.dee-welcome-form:focus-within,
.dee-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;
}

.dee-form textarea,
.dee-welcome-form textarea,
.dee-form textarea:focus,
.dee-welcome-form textarea:focus,
.dee-form textarea:focus-visible,
.dee-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. */
.dee-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;
}

.dee-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;
}

.dee-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;
}

.dee-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;
}

.dee-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;
}

.dee-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;
}

.dee-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. */
.dee-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;
}

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

/* Keep the input as the deliberately milkier inner-glass element. */
.dee-welcome-form,
.dee-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;
}

.dee-welcome-form:focus-within,
.dee-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. */
.dee-panel-title p,
.dee-welcome span,
.dee-thinking-label,
.dee-compact-copy,
.dee-welcome-note,
.dee-note {
  color: #42536c !important;
  text-shadow:
    0 1px 1px rgba(255,255,255,.72),
    0 0 8px rgba(255,255,255,.30);
}

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

/* A feathered white wash sits only behind the centered intro copy. */
.dee-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. */
.dee-note,
.dee-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;
}

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

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


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

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

/* Keep the welcome minimize control in the same upper-right visual position as the full dialog controls. */
.dee-welcome-dock .dee-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;
}
.dee-welcome-dock .dee-minimize:hover {
  transform: translateY(1px) !important;
}

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

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

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

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


/* v0.3.8 contextual T&C page cards */
.dee-sources {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.dee-sources .dee-source-card {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 112px minmax(0,1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(8,37,79,.09);
  border-radius: 16px;
  background: rgba(248,251,255,.72);
  color: var(--dee-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(8,37,79,.07), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.dee-sources .dee-source-card:hover {
  transform: translateY(-2px);
  border-color: rgba(28,91,180,.18);
  background: rgba(252,253,255,.88);
  box-shadow: 0 13px 30px rgba(8,37,79,.11), inset 0 1px 0 rgba(255,255,255,.86);
}

.dee-source-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, #e5eefb, #d5e3f6);
}

.dee-source-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), filter .2s ease;
}

.dee-source-card:hover .dee-source-media img { transform: scale(1.045); }

.dee-source-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,35,80,.04), transparent 58%);
  pointer-events: none;
}

.dee-source-media.is-fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.7), transparent 28%),
    linear-gradient(145deg, #e9f2ff, #bcd3f3);
}

.dee-source-mark {
  color: rgba(13,62,145,.66);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
}

.dee-source-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 14px 12px 15px;
}

.dee-source-eyebrow {
  color: #3472c9;
  font-size: 8px;
  line-height: 1.1;
  font-weight: 780;
  letter-spacing: .11em;
}

.dee-source-title {
  overflow: hidden;
  color: var(--dee-navy);
  font-size: calc(var(--dee-body-font-size) - 1px);
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -.015em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dee-source-description {
  display: -webkit-box;
  overflow: hidden;
  color: #5f6d83;
  font-size: calc(var(--dee-body-font-size) - 3.5px);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dee-source-action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #0c55bc;
  font-size: calc(var(--dee-body-font-size) - 3px);
  line-height: 1.2;
  font-weight: 680;
}

.dee-source-action svg { transition: transform .18s ease; }
.dee-source-card:hover .dee-source-action svg { transform: translateX(3px); }

@media (max-width: 680px) {
  .dee-sources .dee-source-card {
    min-height: 82px;
    grid-template-columns: 88px minmax(0,1fr);
    border-radius: 14px;
  }
  .dee-source-body { padding: 10px 11px 10px 12px; }
  .dee-source-eyebrow { font-size: 7px; }
  .dee-source-description { -webkit-line-clamp: 2; }
}


/* v0.3.9 content card polish */
.dee-sources .dee-source-card,
.dee-sources .dee-source-card:hover,
.dee-sources .dee-source-card:focus,
.dee-sources .dee-source-card:focus-visible,
.dee-sources .dee-source-card *,
.dee-sources .dee-source-card:hover *,
.dee-sources .dee-source-card:focus * {
  text-decoration: none !important;
}

.dee-source-body {
  gap: 4px;
}

.dee-source-title {
  font-size: calc(var(--dee-body-font-size) - .5px);
}

.dee-source-description {
  color: #53637a;
}

.dee-source-action {
  margin-top: 4px;
}

/* The card itself communicates clickability; keep hover refined rather than link-like. */
.dee-sources .dee-source-card:hover .dee-source-title,
.dee-sources .dee-source-card:hover .dee-source-description,
.dee-sources .dee-source-card:hover .dee-source-action {
  text-decoration: none !important;
}

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

/* v0.9.5 pre-submit youth privacy disclosure */
.dee-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 */
.dee-welcome-dock { min-height: 218px; }
.dee-welcome-intro {
  margin: 0;
  color: rgba(35,42,52,.74);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: left;
}
.dee-welcome-intro strong { color: var(--dee-ink); font-weight: 650; }
.dee-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);
}
.dee-welcome strong { font-size: 15px; line-height: 1.25; letter-spacing: -.01em; }
.dee-welcome span { display:block; color:var(--dee-muted); font-size:13px; line-height:1.48; }
@media (max-width: 680px) {
  .dee-welcome-dock { min-height: 238px; }
  .dee-welcome-intro { font-size: 10.8px; line-height: 1.42; }
  .dee-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. */
.dee-welcome-dock {
  min-height: 0 !important;
  width: min(620px, calc(100vw - 32px)) !important;
  padding: 15px 50px 16px !important;
}
.dee-welcome-content {
  gap: 9px !important;
}
.dee-welcome-intro {
  display: none !important;
}
.dee-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(--dee-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;
}
.dee-welcome-trigger:hover,
.dee-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;
}
.dee-welcome-trigger:active {
  transform: translateY(1px);
}
.dee-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;
}
.dee-welcome-trigger-action {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--dee-blue-2), var(--dee-blue));
  color: #fff;
  box-shadow: 0 7px 16px rgba(13,62,145,.18);
}
.dee-welcome-trigger .dee-dock-spark {
  pointer-events: none;
}
@media (max-width: 680px) {
  .dee-welcome-dock {
    padding: 14px 38px 14px !important;
  }
  .dee-welcome-trigger {
    min-height: 47px;
    grid-template-columns: 23px minmax(0,1fr) 34px;
    padding: 5px 5px 5px 9px !important;
  }
  .dee-welcome-trigger-copy {
    font-size: 12px;
  }
  .dee-welcome-trigger-action {
    width: 32px;
    height: 32px;
  }
}

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

/* DEE v0.1.0 — Digital Escape hotel pilot */
.dee-shell {
  --dee-blue: #FF8427;
  --dee-blue-2: #ff9a4d;
  --dee-navy: #112F56;
  --dee-ink: #112F56;
}

.dee-shell.has-visible-hero-launcher:not(.is-open) .dee-welcome-dock,
.dee-shell.has-visible-hero-launcher:not(.is-open) .dee-compact-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(14px) !important;
}

.dee-hero-launcher,
.dee-hero-launcher * { box-sizing: border-box; }

.dee-hero-launcher {
  width: min(680px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 20px;
  background: rgba(17,47,86,.90);
  color: #fff;
  box-shadow: 0 18px 54px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.dee-hero-launcher-copy { min-width: 0; display: grid; gap: 5px; }
.dee-hero-launcher-copy strong { font-size: clamp(20px,2vw,28px); line-height: 1.05; letter-spacing: -.03em; font-weight: 650; color: #fff; }
.dee-hero-launcher-copy span { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.76); }
.dee-hero-launcher-button {
  flex: 0 0 auto;
  min-width: 118px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #FF8427;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,132,39,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dee-hero-launcher-button:hover,
.dee-hero-launcher-button:focus-visible { transform: translateY(-1px); box-shadow: 0 11px 30px rgba(255,132,39,.34); outline: none; }

.dee-footer-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
.dee-footer-meta .dee-note { margin: 0 !important; flex: 1 1 auto; }
.dee-powered {
  flex: 0 0 auto;
  color: #7b879a;
  font-size: 9.5px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
a.dee-powered:hover,
a.dee-powered:focus-visible { color: #FF8427; text-decoration: none; }
.dee-powered strong { font-weight: 650; }

@media (max-width: 680px) {
  .dee-hero-launcher { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
  .dee-hero-launcher-button { width: 100%; }
  .dee-footer-meta { display: block; }
  .dee-powered { display: block; margin-top: 8px; text-align: right; }
}

/* DEE v0.1.3 — restore the proven Leroy interaction styling, with Digital Escape branding */
.dee-shell {
  --dee-blue: #0d3e91;
  --dee-blue-2: #0b56c8;
  --dee-navy: #112F56;
  --dee-ink: #112F56;
}

/* Keep orange in the DEE mark/brand artwork, not as the primary control color. */
.dee-form button[type="submit"],
.dee-welcome-trigger-action,
.dee-hero-launcher-button {
  background: linear-gradient(145deg, var(--dee-blue-2), var(--dee-blue)) !important;
  box-shadow: 0 9px 20px rgba(13,62,145,.22) !important;
}
.dee-hero-launcher-button:hover,
.dee-hero-launcher-button:focus-visible {
  box-shadow: 0 11px 28px rgba(13,62,145,.28) !important;
}
a.dee-powered:hover,
a.dee-powered:focus-visible { color: var(--dee-blue-2) !important; }

/* Give the DEE mark enough presence beside the compact Ask DEE title. */
.dee-panel-head {
  grid-template-columns: 43px minmax(0,1fr) auto !important;
  gap: 11px !important;
}
.dee-panel-mascot {
  width: 42px !important;
  height: 42px !important;
}
.dee-panel-eyebrow { color: #2d68c4 !important; }

/* Preserve the exact Leroy compact-dock rhythm instead of squeezing property copy into it. */
.dee-compact-copy {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Shield + disclosure remain readable while the Digital Escape signature stays secondary. */
.dee-footer-meta { align-items: center !important; }
.dee-footer-meta .dee-note { margin: 0 !important; }
.dee-note > svg {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
}
.dee-powered { opacity: .82; }

@media (max-width: 680px) {
  .dee-panel-head { grid-template-columns: 36px minmax(0,1fr) auto !important; }
  .dee-panel-mascot { width: 35px !important; height: 35px !important; }
}


/* DEE v0.1.5 — compact dock should read as a deliberate bottom tab, not a floating search bar. */
.dee-compact-dock {
  width: min(500px, calc(100vw - 28px)) !important;
  height: 52px !important;
  bottom: 0 !important;
  grid-template-columns: 30px auto minmax(0,1fr) 1px 34px !important;
  gap: 10px !important;
  padding: 0 9px 0 12px !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(140deg, rgba(255,255,255,.72), rgba(239,246,255,.52)) !important;
  box-shadow: 0 -9px 32px rgba(8,37,79,.13), inset 0 1px 0 rgba(255,255,255,.92) !important;
  backdrop-filter: blur(30px) saturate(132%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(132%) !important;
}
.dee-compact-dock::before,
.dee-compact-dock::after {
  border-radius: 18px 18px 0 0 !important;
}
.dee-compact-mark {
  width: 29px;
  height: 29px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(8,37,79,.10));
}
.dee-compact-dock strong {
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: -.01em;
}
.dee-compact-copy {
  font-size: 11.75px !important;
  color: #607087 !important;
  line-height: 1.1 !important;
}
.dee-compact-divider { height: 22px !important; }
.dee-compact-chevron { width: 34px; height: 34px; }

@media (max-width: 680px) {
  .dee-compact-dock {
    width: calc(100vw - 18px) !important;
    height: 48px !important;
    grid-template-columns: 27px auto minmax(0,1fr) 1px 30px !important;
    gap: 8px !important;
    padding-left: 10px !important;
    border-radius: 16px 16px 0 0 !important;
  }
  .dee-compact-dock::before,
  .dee-compact-dock::after { border-radius: 16px 16px 0 0 !important; }
  .dee-compact-mark { width: 26px; height: 26px; }
  .dee-compact-dock strong { font-size: 13px !important; }
  .dee-compact-copy { font-size: 10.75px !important; }
}

/* v0.1.14 live-web citation cards */
.dee-sources .dee-source-card.is-web {
  min-height: 68px;
  grid-template-columns: 58px minmax(0,1fr);
  border-radius: 13px;
  background: rgba(248,251,255,.8);
}
.dee-source-card.is-web .dee-source-media {
  background: linear-gradient(145deg, #edf4ff, #dce9fa);
}
.dee-source-card.is-web .dee-source-mark {
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(13,62,145,.68);
}
.dee-source-card.is-web .dee-source-body {
  padding: 9px 12px;
}
.dee-source-card.is-web .dee-source-description {
  -webkit-line-clamp: 1;
}
@media (max-width: 680px) {
  .dee-sources .dee-source-card.is-web {
    min-height: 64px;
    grid-template-columns: 52px minmax(0,1fr);
  }
}

/* DEE v0.1.17 — stable shortcode quick-question launcher + polished live sources */
.dee-hero-launcher,
.dee-hero-launcher * { box-sizing: border-box !important; }

.dee-hero-launcher {
  width: min(760px, calc(100% - 24px)) !important;
  max-width: 760px !important;
  min-width: 0 !important;
  min-height: 68px !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 8px 9px 8px 13px !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  display: grid !important;
  grid-template-columns: 42px auto 24px minmax(160px,1fr) 1px 42px !important;
  align-items: center !important;
  gap: 11px !important;
  border: 1px solid rgba(255,255,255,.84) !important;
  border-radius: 24px !important;
  background: linear-gradient(140deg, rgba(255,255,255,.78), rgba(238,245,253,.57)) !important;
  box-shadow: 0 13px 38px rgba(8,37,79,.14), inset 0 1px 0 rgba(255,255,255,.96) !important;
  backdrop-filter: blur(28px) saturate(126%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(126%) !important;
  color: #112F56 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: normal !important;
  overflow: hidden !important;
}

.dee-hero-launcher::before,
.dee-hero-launcher::after { content: none !important; display: none !important; }

.dee-hero-launcher:focus-within {
  border-color: rgba(95,145,217,.52) !important;
  box-shadow: 0 15px 42px rgba(8,37,79,.16), 0 0 0 3px rgba(68,126,211,.11), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.dee-hero-launcher-mark {
  width: 40px !important;
  height: 40px !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 9px rgba(8,37,79,.10));
}

.dee-hero-launcher-brand {
  display: block !important;
  color: #112F56 !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  letter-spacing: -.025em !important;
  white-space: nowrap !important;
}

.dee-hero-launcher-input {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 0 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1e3a60 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 44px !important;
  font-weight: 450 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.dee-hero-launcher-input::placeholder { color: #66778f !important; opacity: .92 !important; }

.dee-hero-launcher-divider {
  width: 1px !important;
  height: 31px !important;
  display: block !important;
  background: rgba(17,47,86,.12) !important;
}

.dee-hero-launcher-send {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255,255,255,.74) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #0b56c8, #0d3e91) !important;
  color: #fff !important;
  box-shadow: 0 7px 17px rgba(13,62,145,.22) !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: transform .16s ease, box-shadow .16s ease !important;
}

.dee-hero-launcher-send:hover { transform: translateY(-1px) !important; box-shadow: 0 9px 21px rgba(13,62,145,.28) !important; }
.dee-hero-launcher-send:focus-visible { outline: 2px solid rgba(42,127,234,.38) !important; outline-offset: 2px !important; }

.dee-compact-dock,
.dee-compact-dock::before,
.dee-compact-dock::after {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Digital Escape attribution should be secondary, not faint. */
.dee-powered { color: #53647a !important; opacity: 1 !important; }
.dee-powered strong { color: #44566f !important; font-weight: 700 !important; }
a.dee-powered:hover,
a.dee-powered:focus-visible,
a.dee-powered:hover strong,
a.dee-powered:focus-visible strong { color: #0b56c8 !important; }

/* Live web sources: compact editorial source rows instead of generic WEB blocks. */
.dee-sources .dee-source-card.is-web {
  width: min(100%, 620px) !important;
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0,1fr) 28px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 10px 9px 11px !important;
  overflow: hidden !important;
  border: 1px solid rgba(17,47,86,.10) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.55) !important;
  box-shadow: 0 7px 20px rgba(8,37,79,.055), inset 0 1px 0 rgba(255,255,255,.72) !important;
  backdrop-filter: blur(10px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(108%) !important;
  color: #112F56 !important;
}

.dee-sources .dee-source-card.is-web:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(42,105,192,.20) !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 10px 24px rgba(8,37,79,.08), inset 0 1px 0 rgba(255,255,255,.82) !important;
}

.dee-source-card.is-web .dee-source-web-icon {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgba(229,239,253,.82) !important;
  color: #2c67b7 !important;
}

.dee-source-card.is-web .dee-source-body {
  min-width: 0 !important;
  display: grid !important;
  align-content: center !important;
  gap: 2px !important;
  padding: 0 !important;
}

.dee-source-card.is-web .dee-source-web-meta {
  display: block !important;
  overflow: hidden !important;
  color: #6a7890 !important;
  font-size: 9.5px !important;
  line-height: 1.1 !important;
  font-weight: 650 !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.dee-source-card.is-web .dee-source-title {
  display: block !important;
  overflow: hidden !important;
  color: #16385f !important;
  font-size: calc(var(--dee-body-font-size) - 1.5px) !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.dee-source-card.is-web .dee-source-web-open {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  color: #315f9f !important;
  background: rgba(232,240,251,.58) !important;
  transition: transform .16s ease, background .16s ease !important;
}

.dee-source-card.is-web:hover .dee-source-web-open { transform: translate(1px,-1px) !important; background: rgba(220,234,252,.82) !important; }
.dee-source-card.is-web .dee-source-media,
.dee-source-card.is-web .dee-source-description,
.dee-source-card.is-web .dee-source-action { display: none !important; }


/* DEE v0.1.18 — restore the familiar sparkle and normalize launcher/source arrows. */
.dee-hero-launcher-spark {
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center !important;
  color: #2a7fea !important;
  flex: 0 0 auto !important;
}
.dee-hero-launcher-spark svg,
.dee-hero-launcher-send svg,
.dee-compact-chevron svg,
.dee-source-action svg,
.dee-source-web-open svg {
  display: block !important;
  flex: 0 0 auto !important;
}
.dee-hero-launcher-send svg {
  width: 19px !important;
  height: 19px !important;
  transform: translate(-.5px,.5px) !important;
}
.dee-compact-chevron svg {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
}
.dee-source-action { gap: 6px !important; }
.dee-source-action svg {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
}
.dee-source-web-open svg {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
}
@media (max-width: 680px) {
  .dee-hero-launcher {
    width: min(100%, calc(100% - 12px)) !important;
    min-height: 60px !important;
    grid-template-columns: 36px 22px minmax(0,1fr) 1px 38px !important;
    gap: 8px !important;
    padding: 7px 8px 7px 10px !important;
    border-radius: 21px !important;
  }
  .dee-hero-launcher-mark { width: 34px !important; height: 34px !important; }
  .dee-hero-launcher-brand { display: none !important; }
  .dee-hero-launcher-spark { width: 22px !important; height: 22px !important; }
  .dee-hero-launcher-input {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    line-height: 42px !important;
    font-size: 12.5px !important;
  }
  .dee-hero-launcher-divider { height: 28px !important; }
  .dee-hero-launcher-send {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
  .dee-sources .dee-source-card.is-web {
    grid-template-columns: 30px minmax(0,1fr) 26px !important;
    gap: 8px !important;
    min-height: 54px !important;
    padding: 8px 8px 8px 9px !important;
  }
  .dee-source-card.is-web .dee-source-web-icon { width: 29px !important; height: 29px !important; }
}

/* DEE v0.1.19 — geometry hardening: square viewport scrim + bottom-attached compact dock. */
html body .dee-shell,
html body .dee-shell.is-open {
  border-radius: 0 !important;
  clip-path: none !important;
  overflow: visible !important;
}

html body .dee-shell .dee-backdrop,
html body .dee-shell.is-open .dee-backdrop,
html body .dee-shell .dee-backdrop[hidden="false"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  overflow: visible !important;
  box-shadow: none !important;
  transform: none !important;
}
html body .dee-shell .dee-backdrop::before,
html body .dee-shell .dee-backdrop::after {
  content: none !important;
  display: none !important;
  border-radius: 0 !important;
  clip-path: none !important;
}

html body .dee-shell button.dee-compact-dock {
  bottom: -1px !important;
  border-radius: 18px 18px 0 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  overflow: hidden !important;
  clip-path: inset(0 round 18px 18px 0 0) !important;
}
html body .dee-shell button.dee-compact-dock::before,
html body .dee-shell button.dee-compact-dock::after {
  border-radius: 18px 18px 0 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
@media (max-width: 680px) {
  html body .dee-shell button.dee-compact-dock {
    border-radius: 16px 16px 0 0 !important;
    clip-path: inset(0 round 16px 16px 0 0) !important;
  }
  html body .dee-shell button.dee-compact-dock::before,
  html body .dee-shell button.dee-compact-dock::after {
    border-radius: 16px 16px 0 0 !important;
  }
}

/* DEE v0.1.21 — reliable one-way shortcode handoff + composer-matched send control.
   This replaces the malformed v0.1.20 append, which never became valid CSS in the browser. */
html.dee-conversation-started body .dee-hero-launcher,
html body .dee-hero-launcher.is-dee-conversation-hidden,
html body .dee-hero-launcher[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep the quick-question control aligned like the main DEE composer. */
html body form.dee-hero-launcher {
  grid-template-columns: 42px auto 24px minmax(160px, 1fr) 1px 44px !important;
  padding: 8px 12px 8px 13px !important;
}

/* Use the same clean circular send-button geometry as the working composer.
   High specificity intentionally defeats Salient/theme button decoration. */
html body form.dee-hero-launcher button.dee-hero-launcher-send,
html body form.dee-hero-launcher button.dee-hero-launcher-send:hover,
html body form.dee-hero-launcher button.dee-hero-launcher-send:focus,
html body form.dee-hero-launcher button.dee-hero-launcher-send:active {
  box-sizing: border-box !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 50% !important;
  outline: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  text-indent: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #0b56c8, #0d3e91) !important;
  background-image: linear-gradient(145deg, #0b56c8, #0d3e91) !important;
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(13,62,145,.22) !important;
  text-shadow: none !important;
  filter: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body form.dee-hero-launcher button.dee-hero-launcher-send:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 11px 24px rgba(13,62,145,.28) !important;
}
html body form.dee-hero-launcher button.dee-hero-launcher-send:focus,
html body form.dee-hero-launcher button.dee-hero-launcher-send:active {
  transform: none !important;
}
html body form.dee-hero-launcher button.dee-hero-launcher-send::before,
html body form.dee-hero-launcher button.dee-hero-launcher-send::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body form.dee-hero-launcher button.dee-hero-launcher-send svg {
  position: static !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  overflow: visible !important;
  fill: none !important;
}
html body form.dee-hero-launcher button.dee-hero-launcher-send svg path {
  vector-effect: non-scaling-stroke;
}

@media (max-width: 680px) {
  html body form.dee-hero-launcher {
    grid-template-columns: 36px 22px minmax(0, 1fr) 1px 40px !important;
    padding-right: 9px !important;
  }
  html body form.dee-hero-launcher button.dee-hero-launcher-send,
  html body form.dee-hero-launcher button.dee-hero-launcher-send:hover,
  html body form.dee-hero-launcher button.dee-hero-launcher-send:focus,
  html body form.dee-hero-launcher button.dee-hero-launcher-send:active {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex-basis: 40px !important;
  }
  html body form.dee-hero-launcher button.dee-hero-launcher-send svg {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
  }
}

/* DEE v0.1.22 — lock the shortcode paper-plane to the true center.
   Salient applies state-dependent SVG/button icon positioning; use a self-contained
   background glyph instead so rest/hover/focus render identically. */
html body form.dee-hero-launcher button.dee-hero-launcher-send,
html body form.dee-hero-launcher button.dee-hero-launcher-send:hover,
html body form.dee-hero-launcher button.dee-hero-launcher-send:focus,
html body form.dee-hero-launcher button.dee-hero-launcher-send:active {
  position: relative !important;
}
html body form.dee-hero-launcher button.dee-hero-launcher-send > svg {
  display: none !important;
}
html body form.dee-hero-launcher .dee-hero-launcher-plane,
html body form.dee-hero-launcher button.dee-hero-launcher-send:hover .dee-hero-launcher-plane,
html body form.dee-hero-launcher button.dee-hero-launcher-send:focus .dee-hero-launcher-plane,
html body form.dee-hero-launcher button.dee-hero-launcher-send:active .dee-hero-launcher-plane {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  transform: translate(-50%, -50%) !important;
  transition: none !important;
  pointer-events: none !important;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  background-size: 20px 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m4 12 14-7-4.2 14-2.7-5.9L4 12Z' stroke='%23fff' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M11.1 13.1 18 5' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}
@media (max-width: 680px) {
  html body form.dee-hero-launcher .dee-hero-launcher-plane {
    width: 19px !important;
    height: 19px !important;
    background-size: 19px 19px !important;
  }
}

/* DEE Core v2 — resilient in-chat document downloads. */
.dee-downloads {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.dee-download-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(32,72,132,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  color: #15335f;
  text-decoration: none !important;
  box-sizing: border-box;
}
.dee-download-card:hover,
.dee-download-card:focus-visible {
  background: rgba(255,255,255,.96);
  color: #15335f;
  text-decoration: none !important;
}
.dee-download-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(35,102,199,.08);
  color: #1f66c7;
}
.dee-download-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.dee-download-title {
  font-weight: 700;
  line-height: 1.25;
}
.dee-download-meta {
  color: #6b7890;
  font-size: .84em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Core v3 structured presentation */
.dee-bubble-copy {
  white-space: normal;
}
.dee-bubble-copy p {
  margin: 0 0 10px;
}
.dee-bubble-copy p:last-child {
  margin-bottom: 0;
}
.dee-inline-link {
  color: #0c52b9 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  font-weight: 600;
}
.dee-inline-link:hover,
.dee-inline-link:focus-visible {
  text-decoration-thickness: 2px !important;
}
.dee-choice-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}
.dee-choice-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(13,79,181,.18);
  border-radius: 11px;
  background: rgba(247,250,255,.88);
  color: #12345a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.dee-choice-button:hover,
.dee-choice-button:focus-visible {
  border-color: rgba(13,79,181,.42);
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}
.dee-choice-button:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
}
.dee-choice-label {
  font-weight: 650;
  line-height: 1.3;
}
.dee-choice-detail {
  color: var(--dee-muted);
  font-size: .82em;
  line-height: 1.25;
  text-align: right;
}

.dee-choice-attribution {
  margin-top: 2px;
  padding: 1px 2px 0;
  font-family: sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: normal;
  white-space: nowrap;
  color: #5e5e5e;
}
.dee-answer-list {
  margin: 7px 0 12px 1.15em;
  padding: 0;
}
.dee-answer-list:last-child {
  margin-bottom: 0;
}
.dee-answer-list li {
  margin: 0 0 7px;
  padding-left: 2px;
  line-height: 1.48;
}
.dee-answer-list li:last-child {
  margin-bottom: 0;
}

/* v0.6.12 — conversational UI cards and action styling */
.dee-choice-list {
  gap: 6px;
  margin-top: 12px;
}
.dee-choice-button {
  min-height: 34px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: linear-gradient(145deg, #0d4fb5, #0a347e);
  color: #fff;
  box-shadow: 0 7px 17px rgba(13,62,145,.16), inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  justify-content: flex-start;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.dee-choice-button:hover,
.dee-choice-button:focus-visible {
  border-color: rgba(255,255,255,.2);
  background: linear-gradient(145deg, #115bc9, #0b3d91);
  color: #fff;
  box-shadow: 0 9px 20px rgba(13,62,145,.22), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateY(-1px);
}
.dee-choice-button:focus-visible {
  outline: 2px solid rgba(37,112,224,.28);
  outline-offset: 2px;
}
.dee-choice-button:disabled {
  opacity: .58;
  filter: saturate(.72);
}
.dee-choice-label {
  font-weight: 520;
  line-height: 1.25;
}
.dee-choice-detail {
  margin-left: auto;
  color: rgba(255,255,255,.74);
  font-size: 11.5px;
  line-height: 1.2;
}

.dee-message.has-response-card {
  max-width: 88%;
}
.dee-message.has-response-card .dee-bubble {
  padding: 16px 18px;
  border-radius: 19px;
  background: rgba(255,255,255,.80);
  border-color: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(8,37,79,.09), inset 0 1px 0 rgba(255,255,255,.90);
}
.dee-response-card-shell {
  display: grid;
  grid-template-columns: 48px 1px minmax(0,1fr);
  gap: 14px;
  align-items: stretch;
}
.dee-response-card-icon {
  width: 46px;
  height: 46px;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0c52b9;
  background: linear-gradient(145deg, rgba(230,240,255,.96), rgba(244,248,255,.90));
  border: 1px solid rgba(13,79,181,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.dee-response-card-divider {
  width: 1px;
  min-height: 100%;
  background: rgba(13,79,181,.12);
}
.dee-response-card-content {
  min-width: 0;
  align-self: center;
}
.dee-response-card-content .dee-bubble-copy p:first-child {
  font-weight: 620;
  color: #12345a;
}
.dee-response-card-content .dee-answer-list {
  margin-top: 8px;
}
.dee-response-card-content .dee-answer-list li::marker {
  color: #32b86b;
}
.dee-response-card-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px;
  margin-top: 9px;
  color: #697790;
  font-size: 11.5px;
  line-height: 1.35;
}
.dee-response-card-sources > span:first-child {
  font-weight: 500;
}
.dee-response-source-link {
  font-size: inherit;
  font-weight: 600;
}

.dee-message.has-contact-card {
  max-width: 92%;
}
.dee-message.is-standalone-contact .dee-bubble.is-contact-shell {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.dee-contact-card {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(8,37,79,.09), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dee-message:not(.is-standalone-contact) .dee-contact-card {
  margin-top: 13px;
  background: rgba(248,251,255,.80);
  border-color: rgba(13,79,181,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.dee-contact-card-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0c52b9;
  background: linear-gradient(145deg, rgba(230,240,255,.96), rgba(244,248,255,.90));
  border: 1px solid rgba(13,79,181,.08);
}
.dee-contact-card-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.dee-contact-card-lead {
  color: #16375f;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.35;
}
.dee-contact-card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.dee-contact-link {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dee-contact-separator {
  color: rgba(75,92,118,.56);
}
.dee-contact-call {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid rgba(13,79,181,.62);
  background: rgba(255,255,255,.76);
  color: #0c52b9 !important;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 5px 13px rgba(13,79,181,.07), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.dee-contact-call:hover,
.dee-contact-call:focus-visible {
  background: #fff;
  color: #08499f !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(13,79,181,.12), inset 0 1px 0 rgba(255,255,255,.95);
  outline: none;
}

@media (max-width: 640px) {
  .dee-message.has-response-card,
  .dee-message.has-contact-card {
    max-width: 94%;
  }
  .dee-choice-button {
    min-height: 32px;
    padding: 7px 14px;
    font-size: 13.5px;
  }
  .dee-response-card-shell {
    grid-template-columns: 38px 1px minmax(0,1fr);
    gap: 10px;
  }
  .dee-response-card-icon,
  .dee-contact-card-icon {
    width: 36px;
    height: 36px;
  }
  .dee-response-card-icon svg,
  .dee-contact-card-icon svg {
    width: 21px;
    height: 21px;
  }
  .dee-contact-card {
    grid-template-columns: 38px minmax(0,1fr);
    gap: 10px;
    padding: 13px 14px;
  }
  .dee-contact-call {
    grid-column: 2;
    justify-self: start;
    min-height: 36px;
  }
}


/* v0.6.13–0.6.14 — high-end conversation surface
   Presentation only: tight message geometry, refined typography, compact citations,
   dedicated front-desk actions, and a lightweight outline icon family with no badge circles. */
.dee-messages {
  gap: 14px;
}
.dee-message {
  max-width: 82%;
}
.dee-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px 11px;
  border-radius: 18px;
  line-height: 1.42;
  letter-spacing: -.006em;
}
.dee-message.is-user .dee-bubble {
  width: fit-content;
  padding: 11px 16px;
  line-height: 1.4;
}
.dee-message.is-plain-assistant .dee-bubble {
  min-width: 0;
  padding: 12px 16px 11px;
}
.dee-bubble-copy {
  min-width: 0;
  line-height: inherit;
}
.dee-bubble-copy p {
  margin: 0 0 7px;
  line-height: 1.42;
}
.dee-bubble-copy p:last-child {
  margin-bottom: 0;
}
.dee-answer-list {
  margin: 6px 0 4px 1.12em;
  padding: 0;
}
.dee-answer-list:last-child {
  margin-bottom: 0;
}
.dee-answer-list li {
  margin: 0 0 4px;
  padding-left: 2px;
  line-height: 1.4;
}
.dee-answer-list li:last-child {
  margin-bottom: 0;
}

/* Choice messages are deliberate interaction surfaces, not generic full-height answer bubbles. */
.dee-message.has-choices {
  max-width: min(74%, 540px);
}
.dee-message.has-choices .dee-bubble {
  width: 100%;
  padding: 13px 16px 14px;
}
.dee-message.has-choices .dee-bubble-copy p {
  margin-bottom: 0;
  font-weight: 520;
}
.dee-choice-list {
  gap: 6px;
  margin-top: 10px;
}
.dee-choice-button {
  min-height: 32px;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: var(--dee-body-font-size) !important;
  font-weight: 500;
  line-height: 1.25;
}
.dee-choice-label {
  font-weight: 500;
}
.dee-choice-attribution {
  margin-top: 3px;
  padding-left: 2px;
  font-size: calc(var(--dee-body-font-size) - 3.5px);
  color: rgba(54,67,89,.72);
}

/* Structured answer cards: one integrated surface, no nested citation furniture. */
.dee-message.has-response-card {
  max-width: min(90%, 700px);
}
.dee-message.has-response-card .dee-bubble {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.90);
  box-shadow: 0 12px 30px rgba(8,37,79,.085), inset 0 1px 0 rgba(255,255,255,.94);
}
.dee-response-card-shell {
  grid-template-columns: 27px 1px minmax(0,1fr);
  gap: 13px;
  align-items: center;
}
.dee-response-card-icon {
  width: 27px;
  height: 27px;
  min-width: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2a6dc1;
  opacity: .96;
}
.dee-response-card-icon svg {
  width: 23px;
  height: 23px;
  overflow: visible;
}
.dee-response-card-divider {
  min-height: 100%;
  background: rgba(13,79,181,.13);
}
.dee-response-card-content {
  align-self: center;
}
.dee-response-card-content .dee-bubble-copy p:first-child {
  color: #12345a;
  font-weight: 630;
  letter-spacing: -.01em;
}
.dee-response-card-content .dee-bubble-copy p + p {
  margin-top: 1px;
}
.dee-response-card-content .dee-answer-list {
  margin-top: 6px;
}
.dee-response-card-sources {
  gap: 4px;
  margin-top: 7px;
  color: #697790;
  font-size: calc(var(--dee-body-font-size) - 3.5px);
  line-height: 1.3;
}
.dee-response-source-link {
  max-width: 100%;
  font-size: inherit !important;
  font-weight: 560;
  overflow-wrap: anywhere;
}

/* Front desk handoff: dedicated action card matching the approved visual direction. */
.dee-message.has-contact-card {
  max-width: min(94%, 760px);
}
.dee-message.is-standalone-contact .dee-bubble.is-contact-shell {
  width: 100%;
  padding: 0;
}
.dee-contact-card {
  width: 100%;
  grid-template-columns: 27px minmax(0,1fr) auto;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(8,37,79,.085), inset 0 1px 0 rgba(255,255,255,.95);
}
.dee-contact-card-icon {
  width: 27px;
  height: 27px;
  min-width: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2a6dc1;
  opacity: .96;
}
.dee-contact-card-icon svg {
  width: 23px;
  height: 23px;
  overflow: visible;
}
.dee-contact-card-body {
  gap: 4px;
}
.dee-contact-card-lead {
  color: #16375f;
  font-size: var(--dee-body-font-size);
  font-weight: 520;
  line-height: 1.32;
  letter-spacing: -.008em;
}
.dee-contact-card-links {
  gap: 7px;
  line-height: 1.28;
}
.dee-contact-link {
  font-size: calc(var(--dee-body-font-size) - 1px) !important;
  font-weight: 590;
}
.dee-contact-call {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 11px;
  background: rgba(255,255,255,.80);
  font-size: calc(var(--dee-body-font-size) - 1px);
  font-weight: 650;
}

/* Legacy source cards never stack beneath an integrated response card. The citation is rendered
   inside the card as an underlined source line. */
.dee-message.has-response-card .dee-sources,
.dee-message.has-contact-card .dee-sources {
  display: none !important;
}

@media (max-width: 640px) {
  .dee-messages { gap: 12px; }
  .dee-message { max-width: 92%; }
  .dee-message.has-choices,
  .dee-message.has-response-card,
  .dee-message.has-contact-card { max-width: 96%; }
  .dee-bubble,
  .dee-message.is-user .dee-bubble { padding: 11px 14px 10px; }
  .dee-message.has-choices .dee-bubble { padding: 12px 13px 13px; }
  .dee-choice-button { min-height: 31px; padding: 6px 13px; }
  .dee-response-card-shell { grid-template-columns: 24px 1px minmax(0,1fr); gap: 10px; }
  .dee-response-card-icon,
  .dee-contact-card-icon { width: 24px; height: 24px; min-width: 24px; }
  .dee-response-card-icon svg,
  .dee-contact-card-icon svg { width: 20px; height: 20px; }
  .dee-contact-card {
    grid-template-columns: 24px minmax(0,1fr);
    gap: 10px;
    padding: 12px 13px;
  }
  .dee-contact-call {
    grid-column: 2;
    justify-self: start;
    min-height: 35px;
    padding: 7px 11px;
  }
}

/* Approved contact-card divider treatment from the visual mockup. */
.dee-contact-card-body {
  border-left: 1px solid rgba(13,79,181,.13);
  padding-left: 12px;
}
@media (max-width: 640px) {
  .dee-contact-card-body { padding-left: 9px; }
}
