/*
  BlobBots.ai — Pass 20B
  Contact Form Drawer + Validation
  Scope: front-end UI only. No OpenAI, voice, or lead backend calls in this pass.
*/
:root {
  --noah20-bg: #050812;
  --noah20-panel: rgba(7, 14, 24, 0.98);
  --noah20-panel-2: rgba(10, 22, 36, 0.96);
  --noah20-line: rgba(56, 189, 248, 0.24);
  --noah20-line-strong: rgba(56, 189, 248, 0.55);
  --noah20-cyan: #38bdf8;
  --noah20-cyan-2: #19d5ff;
  --noah20-pink: #f22575;
  --noah20-purple: #7c3aed;
  --noah20-green: #22c55e;
  --noah20-text: #f8fbff;
  --noah20-muted: #9fb4c8;
  --noah20-soft: rgba(255, 255, 255, 0.06);
  --noah20-radius: 22px;
  --noah20-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), 0 0 46px rgba(56, 189, 248, 0.16);
}

#noah-global-widget-root,
#noah-global-widget-root * {
  box-sizing: border-box;
}

#noah-global-widget-root {
  position: relative;
  z-index: 2147482000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.noah20-hidden,
.noah20-widget[hidden] {
  display: none !important;
}

/* Hide old page-specific Noah UIs after the clean global widget mounts. */
body.noah20-clean-mounted .noah-launcher,
body.noah20-clean-mounted .noah-panel,
body.noah20-clean-mounted .noah-cta-bubble,
body.noah20-clean-mounted #noah-scroll-top-btn,
body.noah20-clean-mounted #noah-engagement-bubble,
body.noah20-clean-mounted #noah-avatar-container,
body.noah20-clean-mounted #noah-chat-panel {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.noah20-launcher {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 2147482500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transform: translateZ(0);
}

.noah20-launcher[aria-expanded="true"] {
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
}

.noah20-launcher-bubble {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.15), transparent 34%),
    linear-gradient(135deg, rgba(242, 37, 117, 0.92), rgba(56, 189, 248, 0.88));
  box-shadow: 0 0 0 3px rgba(242, 37, 117, .48), 0 0 34px rgba(242, 37, 117, .42), 0 12px 36px rgba(0,0,0,.55);
  transition: box-shadow .22s ease, transform .22s ease, filter .22s ease;
}

.noah20-launcher:hover .noah20-launcher-bubble,
.noah20-launcher:focus-visible .noah20-launcher-bubble,
.noah20-launcher.noah20-ring-blue .noah20-launcher-bubble {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .7), 0 0 38px rgba(56, 189, 248, .56), 0 12px 36px rgba(0,0,0,.55);
  transform: translateY(-2px) scale(1.02);
}

.noah20-launcher.noah20-ring-green .noah20-launcher-bubble {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .76), 0 0 0 9px rgba(34,197,94,.13), 0 0 42px rgba(34, 197, 94, .45), 0 12px 36px rgba(0,0,0,.55);
  animation: noah20PulseGreen 1.35s infinite;
}

@keyframes noah20PulseGreen {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
  100% { filter: brightness(1); }
}

.noah20-launcher-img-wrap {
  width: 62px;
  height: 62px;
  border-radius: inherit;
  overflow: hidden;
  position: relative;
  display: block;
  background: linear-gradient(145deg, #101827, #07111e);
  border: 2px solid rgba(255,255,255,.2);
}

.noah20-launcher-img-wrap img,
.noah20-header-avatar img,
.noah20-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  display: block;
}

.noah20-launcher-img-wrap .noah20-avatar-photo {
  position: absolute;
  inset: 0;
  transform: none;
}

/* Pass 20A.1 photo fix: no letter overlay should ever cover Noah's face. */
.noah20-avatar-fallback {
  display: none !important;
}

.noah20-status-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--noah20-green);
  border: 3px solid #08111d;
  box-shadow: 0 0 18px rgba(34,197,94,.72);
}

.noah20-launcher-label {
  max-width: 160px;
  padding: 7px 11px;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 999px;
  background: rgba(7, 15, 26, .84);
  color: var(--noah20-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.noah20-panel {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(410px, calc(100vw - 28px));
  height: min(700px, calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  z-index: 2147482600;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--noah20-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(56,189,248,.12), transparent 34%),
    radial-gradient(circle at 95% 12%, rgba(242,37,117,.16), transparent 34%),
    linear-gradient(180deg, var(--noah20-panel) 0%, rgba(5, 8, 18, .985) 100%);
  border: 1px solid rgba(56, 189, 248, .36);
  border-radius: var(--noah20-radius);
  box-shadow: var(--noah20-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(.98);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.noah20-panel.noah20-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.noah20-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 14px;
  background: rgba(5, 12, 22, .88);
  border-bottom: 1px solid rgba(56,189,248,.2);
}

.noah20-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.noah20-header-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: visible;
  background: linear-gradient(135deg, var(--noah20-pink), var(--noah20-cyan));
  padding: 2px;
  box-shadow: 0 0 24px rgba(56,189,248,.25);
}

.noah20-header-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  position: relative;
  display: block;
  background: #07111e;
}

.noah20-header-avatar-inner .noah20-avatar-photo {
  position: absolute;
  inset: 0;
}

.noah20-title-wrap {
  min-width: 0;
}

.noah20-name {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .01em;
}

.noah20-role {
  margin-top: 4px;
  color: var(--noah20-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.noah20-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.74);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.noah20-close:hover,
.noah20-close:focus-visible {
  color: #fff;
  background: rgba(56,189,248,.1);
  border-color: rgba(56,189,248,.34);
}

.noah20-status-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(7, 16, 27, .72);
  border-bottom: 1px solid rgba(56,189,248,.12);
}

.noah20-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: var(--noah20-muted);
  font-size: 12px;
  font-weight: 800;
}

.noah20-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--noah20-green);
  box-shadow: 0 0 14px rgba(34,197,94,.72);
}

.noah20-pill-dot.pink {
  background: var(--noah20-pink);
  box-shadow: 0 0 14px rgba(242,37,117,.72);
}

.noah20-history {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px 14px 10px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.noah20-history::-webkit-scrollbar {
  width: 5px;
}

.noah20-history::-webkit-scrollbar-thumb {
  background: rgba(56,189,248,.28);
  border-radius: 999px;
}

.noah20-message {
  max-width: 86%;
  padding: 12px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.48;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.noah20-message.noah {
  align-self: flex-start;
  color: #eaf7ff;
  background: rgba(10, 26, 42, .96);
  border: 1px solid rgba(56,189,248,.26);
  border-bottom-left-radius: 6px;
}

.noah20-message.visitor {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, rgba(242,37,117,.92), rgba(56,189,248,.82));
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 22px rgba(242,37,117,.13);
}

.noah20-message.pending {
  color: rgba(234, 247, 255, .78);
  font-style: italic;
  border-style: dashed;
}

.noah20-composer-input:disabled,
.noah20-icon-btn:disabled {
  opacity: .58;
  cursor: wait;
}

.noah20-icon-btn:disabled:hover,
.noah20-icon-btn:disabled:focus-visible {
  transform: none;
  filter: none;
}

.noah20-chips {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.noah20-chips::-webkit-scrollbar { display: none; }

.noah20-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(56,189,248,.28);
  background: rgba(56,189,248,.07);
  color: #c8efff;
  border-radius: 999px;
  padding: 8px 11px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.noah20-chip:hover,
.noah20-chip:focus-visible {
  background: rgba(56,189,248,.14);
  border-color: rgba(56,189,248,.58);
  transform: translateY(-1px);
}

.noah20-contact-shell {
  flex: 0 0 auto;
  border-top: 1px solid rgba(56,189,248,.12);
  background: rgba(5, 8, 18, .72);
}

.noah20-contact-toggle {
  width: calc(100% - 28px);
  margin: 12px 14px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(242,37,117,.78);
  background: linear-gradient(135deg, rgba(242,37,117,.18), rgba(56,189,248,.08));
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(242,37,117,.13);
}

.noah20-contact-toggle:hover,
.noah20-contact-toggle:focus-visible {
  background: linear-gradient(135deg, rgba(242,37,117,.25), rgba(56,189,248,.12));
}

.noah20-contact-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
}

.noah20-contact-drawer.noah20-form-open {
  grid-template-rows: 1fr;
}

.noah20-contact-drawer-inner {
  overflow: hidden;
}

.noah20-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 14px;
}

.noah20-form-field {
  min-width: 0;
}

.noah20-form-field.full { grid-column: 1 / -1; }

.noah20-form label {
  display: block;
  margin: 0 0 5px;
  color: rgba(248,251,255,.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}


.noah20-field-hint {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  color: rgba(159,180,200,.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.noah20-form-field.noah20-field-invalid label,
.noah20-form-field.noah20-field-invalid .noah20-field-hint {
  color: var(--noah20-pink);
}

.noah20-form input,
.noah20-form textarea,
.noah20-composer-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(56,189,248,.26);
  background: rgba(3, 7, 16, .88);
  color: #fff;
  border-radius: 14px;
  outline: none;
  font: inherit;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.noah20-form input,
.noah20-form textarea {
  padding: 12px 12px;
}

.noah20-form textarea {
  min-height: 76px;
  resize: vertical;
}

.noah20-form input:focus,
.noah20-form textarea:focus,
.noah20-composer-input:focus {
  border-color: rgba(56,189,248,.82);
  box-shadow: 0 0 0 4px rgba(56,189,248,.1);
}

.noah20-form input.noah20-invalid,
.noah20-form textarea.noah20-invalid {
  border-color: var(--noah20-pink);
  box-shadow: 0 0 0 4px rgba(242,37,117,.12);
  animation: noah20Shake .34s ease both;
}

@keyframes noah20Shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.noah20-form-feedback {
  grid-column: 1 / -1;
  border: 1px solid rgba(56,189,248,.22);
  background: rgba(56,189,248,.07);
  color: #dff7ff;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.noah20-form-feedback[hidden] { display: none !important; }

.noah20-form-feedback.success {
  border-color: rgba(34,197,94,.38);
  background: rgba(34,197,94,.09);
  color: #d9ffe7;
}

.noah20-form-feedback.error {
  border-color: rgba(242,37,117,.42);
  background: rgba(242,37,117,.1);
  color: #ffe3ef;
}

.noah20-form-submit {
  grid-column: 1 / -1;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--noah20-pink), var(--noah20-cyan));
  color: #fff;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 13px 28px rgba(242,37,117,.18);
}

.noah20-form-note {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--noah20-muted);
  font-size: 12px;
  line-height: 1.45;
}

.noah20-footer {
  flex: 0 0 auto;
  padding: 11px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 8, 18, .94);
  border-top: 1px solid rgba(56,189,248,.18);
}

.noah20-helper {
  margin: 0 0 8px;
  color: var(--noah20-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}

.noah20-composer {
  display: grid;
  grid-template-columns: 1fr 48px 48px;
  gap: 8px;
  align-items: center;
}

.noah20-composer-input {
  height: 48px;
  padding: 0 14px;
}

.noah20-icon-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 19px;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.noah20-icon-btn:hover,
.noah20-icon-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.noah20-mic {
  background: linear-gradient(135deg, #241055, var(--noah20-purple));
  box-shadow: 0 0 22px rgba(124,58,237,.22);
}

.noah20-send {
  background: linear-gradient(135deg, var(--noah20-pink), var(--noah20-cyan));
  box-shadow: 0 0 22px rgba(56,189,248,.22);
}

.noah20-send svg,
.noah20-mic svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

@media (max-width: 560px) {
  .noah20-launcher {
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .noah20-launcher-label {
    display: none;
  }

  .noah20-panel {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: min(720px, calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    border-radius: 20px;
  }

  .noah20-header {
    padding: 14px;
  }

  .noah20-history {
    padding: 12px;
  }

  .noah20-message {
    max-width: 92%;
    font-size: 14px;
  }

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

  .noah20-composer {
    grid-template-columns: 1fr 46px 46px;
    gap: 7px;
  }

  .noah20-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .noah20-composer-input {
    height: 46px;
  }
}

@media (max-width: 370px) {
  .noah20-status-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .noah20-composer {
    grid-template-columns: 1fr 44px 44px;
  }

  .noah20-icon-btn {
    width: 44px;
    height: 44px;
  }
}


/*
  Pass 20A.1 — Noah Living Avatar Animation Upgrade + Centered Photo Fix
  Lightweight CSS-only avatar life: pulse glow, typing bubble, notification badge,
  idle float, hover lift, header glow. No video and no face animation.
*/
.noah20-living-avatar {
  isolation: isolate;
  animation: noah20IdleFloat 4.8s ease-in-out infinite;
  transform-origin: center;
}

.noah20-launcher-orbit {
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(18,181,240,.18) 0%, rgba(18,181,240,.08) 43%, transparent 66%),
    conic-gradient(from 90deg, rgba(18,181,240,0), rgba(18,181,240,.72), rgba(255,45,135,.62), rgba(18,181,240,0));
  filter: blur(.2px);
  opacity: .74;
  animation: noah20HaloPulse 3.4s ease-in-out infinite;
}

.noah20-launcher-bubble::before,
.noah20-header-avatar-live::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18,181,240,.22), rgba(18,181,240,.08) 46%, transparent 68%);
  z-index: -1;
  animation: noah20SoftGlowPulse 2.8s ease-in-out infinite;
}

.noah20-launcher-bubble::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  pointer-events: none;
}

.noah20-typing-bubble {
  position: absolute;
  right: 66px;
  bottom: 56px;
  min-width: 52px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px 999px 999px 10px;
  background: rgba(8, 12, 19, .92);
  border: 1px solid rgba(18,181,240,.46);
  box-shadow: 0 12px 30px rgba(0,0,0,.3), 0 0 22px rgba(18,181,240,.14);
  pointer-events: none;
  transform-origin: right bottom;
  animation: noah20BubbleDrift 4.8s ease-in-out infinite;
  transition: max-width .2s ease, padding .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.noah20-dots-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
}

.noah20-typing-bubble .noah20-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
  opacity: .45;
  animation: noah20TypingDot 1.35s ease-in-out infinite;
}

.noah20-typing-bubble .noah20-dot:nth-child(2) { animation-delay: .18s; }
.noah20-typing-bubble .noah20-dot:nth-child(3) { animation-delay: .36s; }

.noah20-bubble-message {
  display: none;
  max-width: 205px;
  color: #f8fbff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: left;
  white-space: normal;
}

.noah20-typing-bubble.noah20-avatar-message-mode {
  width: max-content;
  max-width: 220px;
  min-height: 38px;
  padding: 8px 11px;
  border-color: rgba(242,37,117,.54);
  box-shadow: 0 12px 30px rgba(0,0,0,.34), 0 0 25px rgba(242,37,117,.17), 0 0 18px rgba(18,181,240,.12);
}

.noah20-typing-bubble.noah20-avatar-message-mode .noah20-dots-wrap {
  display: none;
}

.noah20-typing-bubble.noah20-avatar-message-mode .noah20-bubble-message {
  display: block;
  animation: noah20MessagePop .26s ease both;
}

@keyframes noah20MessagePop {
  from { opacity: 0; transform: translateY(3px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.noah20-notification-badge {
  position: absolute;
  top: 0px;
  right: -1px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--noah20-pink), var(--noah20-cyan));
  border: 3px solid #080C13;
  box-shadow: 0 0 0 0 rgba(255,45,135,.44), 0 0 16px rgba(255,45,135,.55);
  animation: noah20BadgePop 5.2s ease-in-out infinite;
}

.noah20-launcher-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(18,181,240,.9);
  box-shadow: 0 0 14px rgba(18,181,240,.72);
  opacity: .55;
  z-index: -1;
  animation: noah20ParticleDrift 5.8s ease-in-out infinite;
}

.noah20-launcher-particle.p1 { top: -5px; left: 9px; animation-delay: .1s; }
.noah20-launcher-particle.p2 { top: 21px; right: -8px; width: 4px; height: 4px; animation-delay: .9s; }
.noah20-launcher-particle.p3 { bottom: 10px; left: -7px; width: 5px; height: 5px; animation-delay: 1.7s; }

.noah20-launcher:hover,
.noah20-launcher:focus-visible {
  animation-play-state: paused;
}

.noah20-launcher:hover .noah20-launcher-bubble,
.noah20-launcher:focus-visible .noah20-launcher-bubble {
  transform: translateY(-4px) scale(1.045);
}

.noah20-header-avatar-live {
  isolation: isolate;
}

.noah20-header-glow {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18,181,240,.24), transparent 67%);
  z-index: -1;
  animation: noah20SoftGlowPulse 3s ease-in-out infinite;
}

@keyframes noah20IdleFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

@keyframes noah20HaloPulse {
  0%, 100% { opacity: .48; transform: scale(.94) rotate(0deg); filter: blur(.2px); }
  50% { opacity: .92; transform: scale(1.06) rotate(8deg); filter: blur(.6px); }
}

@keyframes noah20SoftGlowPulse {
  0%, 100% { opacity: .42; transform: scale(.96); }
  50% { opacity: .86; transform: scale(1.08); }
}

@keyframes noah20BubbleDrift {
  0%, 100% { opacity: .9; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 1; transform: translate3d(0, -3px, 0) scale(1.02); }
}

@keyframes noah20TypingDot {
  0%, 80%, 100% { opacity: .32; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes noah20BadgePop {
  0%, 72%, 100% { transform: scale(.86); opacity: .74; box-shadow: 0 0 0 0 rgba(255,45,135,0), 0 0 12px rgba(255,45,135,.45); }
  78% { transform: scale(1.18); opacity: 1; box-shadow: 0 0 0 8px rgba(255,45,135,.13), 0 0 22px rgba(18,181,240,.45); }
  84% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255,45,135,0), 0 0 18px rgba(255,45,135,.55); }
}

@keyframes noah20ParticleDrift {
  0%, 100% { opacity: .22; transform: translate3d(0, 0, 0); }
  50% { opacity: .72; transform: translate3d(4px, -7px, 0); }
}

@media (max-width: 560px) {
  .noah20-typing-bubble {
    right: 60px;
    bottom: 52px;
    min-width: 48px;
    min-height: 28px;
  }

  .noah20-typing-bubble.noah20-avatar-message-mode {
    max-width: min(188px, calc(100vw - 128px));
    padding: 7px 10px;
  }

  .noah20-bubble-message {
    font-size: 11px;
    line-height: 1.22;
  }

  .noah20-notification-badge {
    width: 16px;
    height: 16px;
    top: -1px;
    right: -2px;
  }

  .noah20-launcher-orbit {
    inset: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noah20-living-avatar,
  .noah20-launcher-orbit,
  .noah20-launcher-bubble::before,
  .noah20-header-avatar-live::before,
  .noah20-header-glow,
  .noah20-typing-bubble,
  .noah20-typing-bubble .noah20-dot,
  .noah20-notification-badge,
  .noah20-launcher-particle {
    animation: none !important;
  }
}

/* Pass 20B.2 — desktop engagement bubble offset fix.
   Keeps Noah's face fully visible on desktop while preserving the mobile layout. */
@media (min-width: 769px) {
  .noah20-typing-bubble {
    right: 88px;
    bottom: 38px;
    transform-origin: right center;
    z-index: 2;
  }

  .noah20-typing-bubble.noah20-avatar-message-mode {
    max-width: 220px;
  }
}


/* Pass 20B.3 — typing bubble face-clear placement fix.
   Places the typing/message bubble fully outside Noah's avatar circle on desktop and mobile. */
.noah20-launcher-bubble {
  z-index: 3;
}

.noah20-typing-bubble {
  top: 12px;
  right: calc(50% + 46px);
  bottom: auto;
  z-index: 4;
  transform-origin: right center;
}

.noah20-typing-bubble.noah20-avatar-message-mode {
  max-width: min(220px, calc(100vw - 138px));
}

@media (min-width: 769px) {
  .noah20-typing-bubble {
    top: 12px;
    right: calc(50% + 48px);
    bottom: auto;
    transform-origin: right center;
  }

  .noah20-typing-bubble.noah20-avatar-message-mode {
    max-width: 224px;
  }
}

@media (max-width: 560px) {
  .noah20-typing-bubble {
    top: 13px;
    right: calc(50% + 44px);
    bottom: auto;
    min-width: 46px;
    min-height: 28px;
  }

  .noah20-typing-bubble.noah20-avatar-message-mode {
    max-width: min(176px, calc(100vw - 138px));
  }
}

/* --------------------------------------------------------------------------
   PASS 20D.1 — Contact Form Scroll + Desktop Chips Scroll Fix
   Keeps footer composer visible while allowing long forms/chip lists to scroll.
   -------------------------------------------------------------------------- */

.noah20-contact-shell {
  min-height: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

.noah20-contact-drawer {
  min-height: 0;
}

.noah20-contact-drawer-inner {
  min-height: 0;
}

.noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: clamp(260px, 42dvh, 440px);
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56,189,248,.48) rgba(255,255,255,.04);
}

.noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner::-webkit-scrollbar {
  width: 6px;
}

.noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

.noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner::-webkit-scrollbar-thumb {
  background: rgba(56,189,248,.42);
  border-radius: 999px;
}

@media (min-width: 561px) {
  .noah20-chips {
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56,189,248,.48) rgba(255,255,255,.04);
  }

  .noah20-chips::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  .noah20-chips::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
  }

  .noah20-chips::-webkit-scrollbar-thumb {
    background: rgba(56,189,248,.42);
    border-radius: 999px;
  }
}

@media (max-width: 560px) {
  .noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner {
    max-height: clamp(245px, 40dvh, 390px);
  }

  .noah20-chips {
    scrollbar-width: none;
  }

  .noah20-chips::-webkit-scrollbar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   PASS 20D.2 — Contact Form Full Drawer Polish Fix
   Fixes clunky partial opening while preserving scroll and fixed composer.
   -------------------------------------------------------------------------- */

.noah20-panel.noah20-form-active {
  /* form mode gives the drawer first priority instead of trapping it in a short strip */
}

.noah20-panel.noah20-form-active .noah20-history {
  flex: 0 0 auto;
  max-height: 128px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
}

.noah20-panel.noah20-form-active .noah20-chips {
  flex: 0 0 auto;
  padding-top: 0;
  padding-bottom: 10px;
}

.noah20-panel.noah20-form-active .noah20-contact-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(5, 8, 18, .8);
}

.noah20-panel.noah20-form-active .noah20-contact-toggle {
  flex: 0 0 auto;
}

.noah20-panel.noah20-form-active .noah20-contact-drawer.noah20-form-open {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  grid-template-rows: none;
}

.noah20-panel.noah20-form-active .noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56,189,248,.52) rgba(255,255,255,.04);
}

.noah20-panel.noah20-form-active .noah20-form {
  padding: 0 14px 16px;
  gap: 10px;
}

.noah20-panel.noah20-form-active .noah20-form input,
.noah20-panel.noah20-form-active .noah20-form textarea {
  min-height: 44px;
}

.noah20-panel.noah20-form-active .noah20-form textarea {
  min-height: 88px;
}

@media (min-width: 561px) {
  .noah20-panel.noah20-form-active .noah20-history {
    max-height: 112px;
  }

  .noah20-panel.noah20-form-active .noah20-chips {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-right: 14px;
  }
}

@media (max-width: 560px) {
  .noah20-panel.noah20-form-active .noah20-header {
    padding: 12px 14px;
  }

  .noah20-panel.noah20-form-active .noah20-status-row {
    padding: 8px 12px;
  }

  .noah20-panel.noah20-form-active .noah20-history {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
    overflow: hidden;
  }

  .noah20-panel.noah20-form-active .noah20-chips {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }

  .noah20-panel.noah20-form-active .noah20-contact-toggle {
    margin: 10px 12px;
    min-height: 42px;
  }

  .noah20-panel.noah20-form-active .noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner {
    max-height: none;
  }

  .noah20-panel.noah20-form-active .noah20-form {
    grid-template-columns: 1fr;
    padding: 0 12px 14px;
    gap: 9px;
  }

  .noah20-panel.noah20-form-active .noah20-field-hint {
    min-height: 10px;
    font-size: 9px;
  }

  .noah20-panel.noah20-form-active .noah20-form-note {
    font-size: 11px;
  }

  .noah20-panel.noah20-form-active .noah20-footer {
    padding-top: 9px;
  }

  .noah20-panel.noah20-form-active .noah20-helper {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   PASS 20D.3 — Responsive Desktop Contact Drawer Fix
   Mobile stays close to 20D.2. Desktop switches to a clean form-first mode so
   the drawer opens fully, scrolls correctly, and the footer cannot trap fields.
   -------------------------------------------------------------------------- */

@media (min-width: 769px) {
  .noah20-panel.noah20-form-active {
    width: min(460px, calc(100vw - 36px));
    height: min(760px, calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  /* In desktop form mode, remove chat distractions and give the form the stage. */
  .noah20-panel.noah20-form-active .noah20-history,
  .noah20-panel.noah20-form-active .noah20-chips {
    max-height: 0 !important;
    min-height: 0 !important;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none;
  }

  .noah20-panel.noah20-form-active .noah20-contact-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 1px solid rgba(56,189,248,.16);
    border-bottom: 1px solid rgba(56,189,248,.14);
    background:
      radial-gradient(circle at 15% 0%, rgba(56,189,248,.08), transparent 38%),
      rgba(5, 8, 18, .84);
  }

  .noah20-panel.noah20-form-active .noah20-contact-toggle {
    flex: 0 0 auto;
    width: calc(100% - 28px);
    margin: 14px;
    min-height: 46px;
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .noah20-panel.noah20-form-active .noah20-contact-drawer.noah20-form-open {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    grid-template-rows: none;
    overflow: hidden;
  }

  .noah20-panel.noah20-form-active .noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 4px 18px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(56,189,248,.56) rgba(255,255,255,.045);
  }

  .noah20-panel.noah20-form-active .noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner::-webkit-scrollbar {
    width: 7px;
  }

  .noah20-panel.noah20-form-active .noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner::-webkit-scrollbar-track {
    background: rgba(255,255,255,.045);
    border-radius: 999px;
  }

  .noah20-panel.noah20-form-active .noah20-contact-drawer.noah20-form-open .noah20-contact-drawer-inner::-webkit-scrollbar-thumb {
    background: rgba(56,189,248,.48);
    border-radius: 999px;
  }

  .noah20-panel.noah20-form-active .noah20-form {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    padding: 0 14px 18px;
  }

  .noah20-panel.noah20-form-active .noah20-form input,
  .noah20-panel.noah20-form-active .noah20-form textarea {
    min-height: 46px;
  }

  .noah20-panel.noah20-form-active .noah20-form textarea {
    min-height: 104px;
  }

  .noah20-panel.noah20-form-active .noah20-form-submit {
    min-height: 48px;
    margin-top: 2px;
  }

  /* Desktop form mode hides the chat composer so it cannot cover the form.
     It returns instantly when the visitor taps HIDE CONTACT FORM. */
  .noah20-panel.noah20-form-active .noah20-footer {
    display: none;
  }
}

/* Keep the phone/mobile behavior from 20D.2 intact. */
@media (max-width: 768px) {
  .noah20-panel.noah20-form-active .noah20-footer {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   PASS 20F — ElevenLabs WebRTC Voice UI States
   Adds clear connected/connecting/error states without changing the widget layout.
   -------------------------------------------------------------------------- */
.noah20-panel.noah20-voice-active .noah20-helper {
  color: #d9ffe7;
}

.noah20-panel.noah20-voice-error .noah20-helper {
  color: #ffe3ef;
}

.noah20-mic.noah20-voice-active {
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(18,181,240,.88));
  box-shadow: 0 0 0 4px rgba(34,197,94,.13), 0 0 28px rgba(34,197,94,.34);
  animation: noah20VoicePulse 1.35s ease-in-out infinite;
}

.noah20-mic.noah20-voice-connecting {
  background: linear-gradient(135deg, rgba(18,181,240,.92), rgba(124,58,237,.86));
  box-shadow: 0 0 0 4px rgba(18,181,240,.1), 0 0 25px rgba(18,181,240,.3);
  animation: noah20VoiceConnecting 1s ease-in-out infinite;
}

@keyframes noah20VoicePulse {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-1px) scale(1.035); filter: brightness(1.12); }
}

@keyframes noah20VoiceConnecting {
  0%, 100% { opacity: .78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .noah20-mic.noah20-voice-active,
  .noah20-mic.noah20-voice-connecting {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   PASS 21A — Voice-First Noah Widget Interface Upgrade
   Keeps the closed Noah avatar intact. Redesigns only the opened widget into a
   modern voice-first interface with Talk, Type, Voice Message, and Upload modes.
   -------------------------------------------------------------------------- */
.noah21-panel {
  width: min(470px, calc(100vw - 28px));
  height: min(760px, calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  background:
    radial-gradient(circle at 50% -8%, rgba(56, 189, 248, .22), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(242, 37, 117, .2), transparent 38%),
    radial-gradient(circle at 16% 72%, rgba(124, 58, 237, .18), transparent 36%),
    linear-gradient(180deg, rgba(5, 10, 20, .985) 0%, rgba(3, 6, 14, .99) 100%);
  border-color: rgba(56, 189, 248, .36);
  box-shadow: 0 28px 80px rgba(0,0,0,.66), 0 0 54px rgba(56,189,248,.18), inset 0 1px 0 rgba(255,255,255,.06);
}

.noah21-header {
  background: linear-gradient(180deg, rgba(8, 15, 30, .96), rgba(5, 10, 20, .78));
  border-bottom-color: rgba(56,189,248,.17);
}

.noah21-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent),
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.07), transparent 35%);
  opacity: .75;
}

.noah21-panel > * {
  position: relative;
  z-index: 1;
}

.noah21-main-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 12px;
  -webkit-overflow-scrolling: touch;
}

.noah21-main-stage::-webkit-scrollbar { width: 5px; }
.noah21-main-stage::-webkit-scrollbar-thumb { background: rgba(56,189,248,.3); border-radius: 999px; }

.noah21-hero {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 6px 0 0;
}

.noah21-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,.28);
  background: rgba(56,189,248,.07);
  color: #b9efff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.noah21-headline {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4.8vw, 31px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.04em;
}

.noah21-subtitle {
  width: min(340px, 100%);
  margin: 0;
  color: rgba(226, 242, 255, .72);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.noah21-orb {
  position: relative;
  width: 154px;
  height: 154px;
  margin: 8px 0 2px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  isolation: isolate;
  transition: transform .2s ease, filter .2s ease;
}

.noah21-orb:hover,
.noah21-orb:focus-visible {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.08);
  outline: none;
}

.noah21-orb-glass {
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 34% 25%, rgba(255,255,255,.34), transparent 22%),
    radial-gradient(circle at 62% 72%, rgba(56,189,248,.28), transparent 30%),
    linear-gradient(135deg, rgba(242,37,117,.96), rgba(124,58,237,.88) 45%, rgba(56,189,248,.96));
  box-shadow:
    inset 0 0 22px rgba(255,255,255,.12),
    inset 0 -18px 34px rgba(4,8,18,.35),
    0 0 0 1px rgba(255,255,255,.12),
    0 0 38px rgba(56,189,248,.32),
    0 0 52px rgba(242,37,117,.26);
  z-index: 1;
}

.noah21-orb-ring {
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: conic-gradient(from 90deg, rgba(56,189,248,0), rgba(56,189,248,.95), rgba(242,37,117,.9), rgba(124,58,237,.75), rgba(56,189,248,0));
  filter: blur(.2px);
  opacity: .68;
  animation: noah21OrbSpin 8s linear infinite;
}

.noah21-orb-ring.r2 {
  inset: -1px;
  opacity: .22;
  filter: blur(10px);
  animation-duration: 5.5s;
  animation-direction: reverse;
}

.noah21-orb-mic {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: rgba(3, 7, 16, .34);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
}

.noah21-orb-mic svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.noah21-orb-label {
  position: absolute;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  z-index: 4;
  white-space: nowrap;
  color: rgba(255,255,255,.86);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.noah21-orb-status {
  width: min(330px, 100%);
  margin: 0;
  color: rgba(220,242,255,.78);
  font-weight: 750;
}

.noah21-mode-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.noah21-mode-btn {
  min-width: 0;
  min-height: 62px;
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  color: rgba(239,248,255,.86);
  cursor: pointer;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 9px 8px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.noah21-mode-btn strong,
.noah21-mode-btn small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noah21-mode-btn strong {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.noah21-mode-btn small {
  margin-top: 2px;
  color: rgba(159,180,200,.78);
  font-size: 9px;
  font-weight: 800;
}

.noah21-mode-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(56,189,248,.12);
  color: #83e8ff;
  font-size: 11px;
  font-weight: 950;
}

.noah21-mode-btn:hover,
.noah21-mode-btn:focus-visible,
.noah21-mode-btn.active {
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.52);
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(242,37,117,.08));
  box-shadow: 0 0 24px rgba(56,189,248,.12), inset 0 1px 0 rgba(255,255,255,.08);
  outline: none;
}

.noah21-mode-btn.active .noah21-mode-icon {
  background: linear-gradient(135deg, var(--noah20-pink), var(--noah20-cyan));
  color: #fff;
}

.noah21-switch-note {
  margin: 0;
  color: rgba(159,180,200,.72);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.noah21-mode-panels {
  margin-top: 12px;
}

.noah21-mode-panels [hidden] {
  display: none !important;
}

.noah21-mini-card,
.noah21-dictate-card,
.noah21-upload-card {
  width: 100%;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.noah21-mini-card {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  text-align: left;
}

.noah21-mini-card strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.noah21-mini-card span {
  color: rgba(220,242,255,.7);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 650;
}

.noah21-type-panel {
  display: flex;
  min-height: 250px;
  max-height: 360px;
  flex-direction: column;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(3,7,16,.38);
}

.noah21-type-panel .noah20-history {
  flex: 1 1 auto;
  min-height: 156px;
  padding: 12px;
}

.noah21-composer {
  flex: 0 0 auto;
  padding: 10px;
  border-top: 1px solid rgba(56,189,248,.14);
  background: rgba(5,8,18,.8);
}

.noah21-dictate-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.noah21-record-btn,
.noah21-record-stop,
.noah21-primary-btn,
.noah21-secondary-btn {
  min-height: 42px;
  border-radius: 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.noah21-record-btn,
.noah21-primary-btn {
  border: none;
  background: linear-gradient(135deg, var(--noah20-pink), var(--noah20-cyan));
  color: #fff;
  box-shadow: 0 0 24px rgba(56,189,248,.18);
}

.noah21-record-stop,
.noah21-secondary-btn {
  border: 1px solid rgba(56,189,248,.28);
  background: rgba(56,189,248,.07);
  color: #dff7ff;
}

.noah21-record-btn:disabled {
  opacity: .72;
  cursor: wait;
}

.noah21-transcript {
  width: 100%;
  min-height: 92px;
  border: 1px solid rgba(56,189,248,.26);
  background: rgba(3, 7, 16, .88);
  color: #fff;
  border-radius: 16px;
  outline: none;
  padding: 12px;
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

.noah21-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
}

.noah21-mode-feedback {
  margin: 0;
  color: rgba(159,180,200,.76);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
}

.noah21-mode-feedback.success { color: #d9ffe7; }
.noah21-mode-feedback.error { color: #ffe3ef; }

.noah21-upload-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  border-style: dashed;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.noah21-upload-card:hover,
.noah21-upload-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.5);
  background: rgba(56,189,248,.07);
}

.noah21-upload-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.noah21-upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(242,37,117,.85), rgba(56,189,248,.78));
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.noah21-upload-card strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.noah21-upload-card small {
  color: rgba(220,242,255,.72);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.noah21-upload-list {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.noah21-upload-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(56,189,248,.14);
}

.noah21-upload-row strong,
.noah21-upload-row small {
  min-width: 0;
  color: rgba(238,248,255,.86);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noah21-upload-row small {
  color: rgba(159,180,200,.75);
}

.noah21-contact-shell {
  flex: 0 0 auto;
  border-top-color: rgba(56,189,248,.16);
  background: rgba(4, 8, 17, .92);
}

.noah21-contact-toggle {
  width: calc(100% - 32px);
  margin: 12px 16px;
  min-height: 43px;
  border-radius: 999px;
  border-color: rgba(56,189,248,.34);
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(242,37,117,.08));
  letter-spacing: .08em;
}

.noah21-sms-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 14px;
  background: rgba(56,189,248,.055);
  color: rgba(232,246,255,.8);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.noah21-sms-consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 1px 0 0;
  accent-color: var(--noah20-cyan);
}

.noah21-panel[data-noah21-voice-status="connecting"] .noah21-orb,
.noah21-panel[data-noah21-voice-status="listening"] .noah21-orb,
.noah21-panel[data-noah21-voice-status="speaking"] .noah21-orb,
.noah21-panel[data-noah21-voice-status="connected"] .noah21-orb {
  animation: noah21OrbBreathe 1.45s ease-in-out infinite;
}

.noah21-panel[data-noah21-voice-status="listening"] .noah21-orb-glass {
  background:
    radial-gradient(circle at 34% 25%, rgba(255,255,255,.34), transparent 22%),
    linear-gradient(135deg, rgba(34,197,94,.96), rgba(56,189,248,.92));
  box-shadow: 0 0 48px rgba(34,197,94,.36), 0 0 70px rgba(56,189,248,.25);
}

.noah21-panel[data-noah21-voice-status="speaking"] .noah21-orb-glass,
.noah21-panel[data-noah21-voice-status="speaking"] .noah21-speaking-avatar {
  animation: noah21SpeakingWave 1.05s ease-in-out infinite;
}

.noah21-panel[data-noah21-voice-status="speaking"] .noah20-header-avatar {
  box-shadow: 0 0 0 4px rgba(242,37,117,.14), 0 0 36px rgba(56,189,248,.34), 0 0 42px rgba(242,37,117,.22);
}

.noah21-panel[data-noah21-voice-status="error"] .noah21-orb-glass {
  background: linear-gradient(135deg, rgba(242,37,117,.9), rgba(124,58,237,.78));
}

@keyframes noah21OrbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes noah21OrbBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes noah21SpeakingWave {
  0%, 100% { filter: brightness(1) saturate(1); transform: scale(1); }
  50% { filter: brightness(1.16) saturate(1.22); transform: scale(1.025); }
}

@media (min-width: 900px) {
  .noah21-panel {
    right: calc(26px + env(safe-area-inset-right, 0px));
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  .noah21-panel {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: min(720px, calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  }

  .noah21-main-stage {
    padding: 13px 12px 10px;
  }

  .noah21-headline {
    font-size: 24px;
  }

  .noah21-subtitle {
    font-size: 12px;
  }

  .noah21-orb {
    width: 134px;
    height: 134px;
    margin-top: 4px;
  }

  .noah21-orb-mic {
    width: 50px;
    height: 50px;
    border-radius: 18px;
  }

  .noah21-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .noah21-mode-btn {
    min-height: 54px;
    border-radius: 16px;
  }

  .noah21-type-panel {
    min-height: 236px;
    max-height: 334px;
  }

  .noah21-contact-toggle {
    width: calc(100% - 24px);
    margin: 10px 12px;
    min-height: 42px;
    font-size: 12px;
  }

  .noah21-sms-consent {
    font-size: 10.5px;
  }
}

@media (max-width: 370px) {
  .noah21-mode-grid {
    grid-template-columns: 1fr;
  }

  .noah21-orb {
    width: 118px;
    height: 118px;
  }

  .noah21-orb-label {
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noah21-orb,
  .noah21-orb-ring,
  .noah21-orb-glass,
  .noah21-speaking-avatar {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   PASS 21A.2 — Futuristic Desktop Widget Polish + Orb Animation Upgrade
   Desktop-first compact spaceship-console polish. Logic stays intact.
   -------------------------------------------------------------------------- */
.noah21-panel {
  width: min(430px, calc(100vw - 28px));
  height: auto;
  max-height: calc(100dvh - 38px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  border-radius: 30px;
  border-color: rgba(88, 220, 255, .46);
  background:
    radial-gradient(circle at 50% -18%, rgba(112, 226, 255, .2), transparent 29%),
    radial-gradient(circle at 92% 18%, rgba(255, 48, 143, .22), transparent 34%),
    radial-gradient(circle at 5% 76%, rgba(126, 79, 255, .24), transparent 32%),
    linear-gradient(145deg, rgba(13, 25, 41, .985), rgba(4, 7, 18, .992) 54%, rgba(3, 6, 14, .998));
  box-shadow:
    0 30px 90px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.035),
    0 0 42px rgba(56,189,248,.22),
    0 0 74px rgba(242,37,117,.12),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(56,189,248,.12);
}

.noah21-panel::before {
  background:
    linear-gradient(115deg, transparent 4%, rgba(255,255,255,.045) 20%, transparent 36%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 7px);
  opacity: .62;
  animation: noah21PanelSurfaceDrift 9s ease-in-out infinite alternate;
}

.noah21-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from 150deg,
    rgba(56,189,248,.06),
    rgba(56,189,248,.8),
    rgba(242,37,117,.72),
    rgba(124,58,237,.72),
    rgba(56,189,248,.06));
  opacity: .48;
  filter: drop-shadow(0 0 12px rgba(56,189,248,.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: noah21EdgeShimmer 7s linear infinite;
}

.noah21-header {
  margin: 12px auto 0;
  width: min(286px, calc(100% - 44px));
  padding: 13px 14px;
  border: 1px solid rgba(56,189,248,.14);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(6, 12, 24, .96), rgba(4, 8, 18, .92));
  box-shadow: 0 16px 36px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035);
}

.noah21-main-stage {
  padding: 10px 18px 8px;
  overflow-y: auto;
}

.noah21-hero {
  gap: 8px;
  padding-top: 0;
}

.noah21-eyebrow {
  min-height: 23px;
  padding: 4px 10px;
  font-size: 9px;
  letter-spacing: .17em;
  background: rgba(56,189,248,.055);
  box-shadow: inset 0 0 18px rgba(56,189,248,.05);
}

.noah21-headline {
  width: min(300px, 100%);
  font-size: clamp(22px, 3.2vw, 29px);
  line-height: 1.02;
  text-wrap: balance;
}

.noah21-subtitle {
  width: min(314px, 100%);
  font-size: 12.5px;
  line-height: 1.34;
  color: rgba(226,242,255,.7);
}

.noah21-orb {
  width: 142px;
  height: 142px;
  margin: 6px 0 0;
  transform-style: preserve-3d;
  filter: saturate(1.05);
}

.noah21-orb:hover,
.noah21-orb:focus-visible {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.1) saturate(1.18);
}

.noah21-orb:active {
  transform: translateY(0) scale(.985);
}

.noah21-orb-aura {
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(56,189,248,.24), transparent 54%),
    conic-gradient(from 0deg, transparent, rgba(242,37,117,.22), transparent, rgba(56,189,248,.22), transparent);
  filter: blur(13px);
  opacity: .9;
  animation: noah21OrbAuraBreathe 3.8s ease-in-out infinite;
}

.noah21-orb-glass {
  inset: 19px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.46), transparent 17%),
    radial-gradient(circle at 72% 72%, rgba(56,189,248,.35), transparent 28%),
    radial-gradient(circle at 42% 54%, rgba(255,255,255,.13), transparent 23%),
    linear-gradient(135deg, rgba(242,37,117,.98), rgba(124,58,237,.88) 44%, rgba(56,189,248,.96));
  box-shadow:
    inset 0 0 20px rgba(255,255,255,.16),
    inset 0 -18px 34px rgba(4,8,18,.36),
    0 0 0 1px rgba(255,255,255,.14),
    0 0 36px rgba(56,189,248,.38),
    0 0 62px rgba(242,37,117,.28);
  animation: noah21OrbGlassLife 4.7s ease-in-out infinite;
}

.noah21-orb-ring {
  inset: 7px;
  opacity: .78;
  animation: noah21OrbSpin 5.8s linear infinite;
}

.noah21-orb-ring.r2 {
  inset: -4px;
  opacity: .28;
  filter: blur(12px);
  animation-duration: 4.4s;
}

.noah21-orb-mic {
  width: 54px;
  height: 54px;
  border-radius: 19px;
  background: rgba(12, 18, 38, .38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 18px rgba(56,189,248,.16);
}

.noah21-orb-label {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  margin-top: -2px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(56,189,248,.38);
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.08), transparent);
}

.noah21-orb-status {
  width: min(304px, 100%);
  font-size: 11.5px;
  line-height: 1.28;
  color: rgba(220,242,255,.8);
}

.noah21-mode-grid {
  width: min(332px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.noah21-mode-btn {
  min-height: 48px;
  border-radius: 17px;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    rgba(3,7,16,.34);
  border-color: rgba(56,189,248,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(0,0,0,.12);
}

.noah21-mode-btn strong,
.noah21-mode-btn small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.noah21-mode-btn strong {
  font-size: 12px;
  line-height: 1.05;
}

.noah21-mode-btn small {
  margin-top: 2px;
  font-size: 8.5px;
  line-height: 1.05;
  letter-spacing: .02em;
}

.noah21-mode-icon {
  width: 22px;
  height: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 14px rgba(56,189,248,.08);
}

.noah21-mode-btn:hover,
.noah21-mode-btn:focus-visible,
.noah21-mode-btn.active {
  transform: translateY(-2px);
  border-color: rgba(96, 231, 255, .64);
  background:
    radial-gradient(circle at 12% 50%, rgba(242,37,117,.2), transparent 34%),
    linear-gradient(135deg, rgba(56,189,248,.16), rgba(124,58,237,.1));
  box-shadow: 0 0 28px rgba(56,189,248,.14), inset 0 1px 0 rgba(255,255,255,.09);
}

.noah21-switch-note {
  width: min(300px, 100%);
  font-size: 10.5px;
  line-height: 1.28;
  opacity: .86;
}

.noah21-mode-panels {
  margin-top: 9px;
}

.noah21-talk-panel .noah21-mini-card {
  width: min(306px, 100%);
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
}

.noah21-mini-card strong {
  font-size: 12.5px;
}

.noah21-mini-card span {
  font-size: 11.5px;
  line-height: 1.35;
}

.noah21-contact-shell {
  border-top-color: rgba(56,189,248,.14);
  background: linear-gradient(180deg, rgba(5,9,20,.72), rgba(3,6,14,.96));
}

.noah21-contact-toggle {
  width: min(276px, calc(100% - 36px));
  min-height: 44px;
  margin: 10px auto 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    linear-gradient(90deg, rgba(56,189,248,.08), rgba(242,37,117,.06));
  box-shadow: 0 0 26px rgba(56,189,248,.1), inset 0 1px 0 rgba(255,255,255,.07);
}

.noah21-orb-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.noah21-orb-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #7ee7ff;
  box-shadow: 0 0 12px currentColor;
  opacity: .78;
  transform: translate(-50%, -50%);
  animation: noah21ParticleOrbit 4.8s ease-in-out infinite;
}

.noah21-orb-particle.p1 { color: #79e8ff; animation-delay: 0s; --x: 54px; --y: -18px; }
.noah21-orb-particle.p2 { color: #ff4fa6; animation-delay: -.6s; --x: -44px; --y: -28px; }
.noah21-orb-particle.p3 { color: #aa7cff; animation-delay: -1.2s; --x: 34px; --y: 48px; }
.noah21-orb-particle.p4 { color: #6bf6d5; animation-delay: -1.8s; --x: -56px; --y: 22px; }
.noah21-orb-particle.p5 { color: #fff; animation-delay: -2.4s; --x: 16px; --y: -58px; width: 3px; height: 3px; }
.noah21-orb-particle.p6 { color: #43cfff; animation-delay: -3s; --x: -18px; --y: 58px; width: 4px; height: 4px; }
.noah21-orb-particle.p7 { color: #ff7cca; animation-delay: -3.6s; --x: 62px; --y: 24px; width: 4px; height: 4px; }
.noah21-orb-particle.p8 { color: #b4ecff; animation-delay: -4.2s; --x: -62px; --y: -4px; width: 3px; height: 3px; }

.noah21-orb-burst .noah21-orb-particle {
  animation: noah21ParticleBurst .68s cubic-bezier(.16, 1, .3, 1) both;
}

.noah21-panel[data-noah21-voice-status="listening"] .noah21-orb-ring,
.noah21-panel[data-noah21-voice-status="speaking"] .noah21-orb-ring,
.noah21-panel[data-noah21-voice-status="connecting"] .noah21-orb-ring {
  opacity: .95;
  animation-duration: 2.8s;
}

.noah21-panel[data-noah21-voice-status="speaking"] .noah21-orb-glass {
  animation: noah21OrbSpeaking 1.25s ease-in-out infinite;
}

.noah21-panel[data-noah21-voice-status="listening"] .noah21-orb-aura {
  background:
    radial-gradient(circle, rgba(34,197,94,.24), transparent 52%),
    conic-gradient(from 0deg, transparent, rgba(34,197,94,.28), transparent, rgba(56,189,248,.22), transparent);
}

@keyframes noah21PanelSurfaceDrift {
  0% { transform: translate3d(-2px, -1px, 0); opacity: .48; }
  100% { transform: translate3d(2px, 1px, 0); opacity: .75; }
}

@keyframes noah21EdgeShimmer {
  to { transform: rotate(360deg); }
}

@keyframes noah21OrbAuraBreathe {
  0%, 100% { transform: scale(.96); opacity: .62; filter: blur(13px); }
  50% { transform: scale(1.08); opacity: .98; filter: blur(16px); }
}

@keyframes noah21OrbGlassLife {
  0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1) saturate(1.08); }
  45% { transform: scale(1.018) rotate(1.4deg); filter: brightness(1.12) saturate(1.22); }
  72% { transform: scale(.995) rotate(-.8deg); }
}

@keyframes noah21OrbSpeaking {
  0%, 100% { transform: scale(1); filter: brightness(1.06) saturate(1.16); }
  50% { transform: scale(1.045); filter: brightness(1.22) saturate(1.32); }
}

@keyframes noah21ParticleOrbit {
  0%, 100% { opacity: .18; transform: translate(-50%, -50%) scale(.45); }
  45% { opacity: .86; transform: translate(calc(-50% + var(--x) * .64), calc(-50% + var(--y) * .64)) scale(1); }
  70% { opacity: .48; transform: translate(calc(-50% + var(--x) * .36), calc(-50% + var(--y) * .36)) scale(.72); }
}

@keyframes noah21ParticleBurst {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.55); }
  72% { opacity: .9; transform: translate(calc(-50% + var(--x) * 1.38), calc(-50% + var(--y) * 1.38)) scale(1.25); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x) * 1.72), calc(-50% + var(--y) * 1.72)) scale(.28); }
}

@media (min-width: 900px) {
  .noah21-panel {
    right: calc(26px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .noah21-panel:not(.noah20-form-active) .noah21-main-stage {
    max-height: calc(100dvh - 176px);
  }
}

@media (max-width: 560px) {
  .noah21-panel {
    height: min(720px, calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    border-radius: 26px;
  }

  .noah21-header {
    width: calc(100% - 28px);
    margin-top: 10px;
  }

  .noah21-main-stage {
    padding: 11px 12px 8px;
  }

  .noah21-orb {
    width: 130px;
    height: 130px;
  }

  .noah21-orb-label {
    margin-top: -1px;
  }

  .noah21-mode-grid {
    width: min(328px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .noah21-mode-btn {
    min-height: 50px;
    padding: 8px 9px;
  }

  .noah21-mode-btn strong { font-size: 11px; }
  .noah21-mode-btn small { font-size: 8px; }
}

@media (max-width: 370px) {
  .noah21-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .noah21-mode-btn {
    grid-template-columns: 20px minmax(0,1fr);
    padding: 7px;
  }

  .noah21-mode-btn strong { font-size: 10.5px; }
  .noah21-mode-btn small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .noah21-panel::before,
  .noah21-panel::after,
  .noah21-orb-aura,
  .noah21-orb-particle {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   PASS 21A.3 — Widget Layout Compactness + Button Alignment Polish
   Fixes mode-button text alignment, compact panel proportions, mobile CTA
   centering, and stronger contact CTA emphasis. Logic stays unchanged.
   -------------------------------------------------------------------------- */
.noah21-panel {
  width: min(392px, calc(100vw - 28px));
  max-height: calc(100dvh - 30px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  border-radius: 28px;
}

.noah21-header {
  width: min(294px, calc(100% - 34px));
  margin-top: 10px;
  padding: 12px 13px;
}

.noah21-main-stage {
  padding: 9px 14px 7px;
}

.noah21-hero {
  width: 100%;
  gap: 7px;
}

.noah21-headline {
  width: min(284px, 100%);
  font-size: clamp(21px, 3vw, 27px);
}

.noah21-subtitle {
  width: min(300px, 100%);
  font-size: 12px;
  line-height: 1.28;
}

.noah21-orb {
  width: 136px;
  height: 136px;
  margin: 5px 0 0;
}

.noah21-orb-label {
  margin-top: 1px;
  padding: 2px 12px;
  min-height: 20px;
  position: relative;
  z-index: 2;
}

.noah21-orb-status {
  width: min(292px, 100%);
  font-size: 11.2px;
  line-height: 1.22;
}

.noah21-mode-grid {
  width: min(330px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 3px;
}

.noah21-mode-btn {
  min-height: 64px;
  height: auto;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 11px;
  text-align: left;
  overflow: hidden;
}

.noah21-mode-btn > span:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;
  line-height: 1;
}

.noah21-mode-btn strong,
.noah21-mode-btn small {
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.noah21-mode-btn strong {
  font-size: 12px;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.noah21-mode-btn small {
  margin-top: 4px;
  font-size: 8.4px;
  line-height: 1.08;
  opacity: .86;
}

.noah21-mode-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.noah21-switch-note {
  width: min(284px, 100%);
  font-size: 10.2px;
  line-height: 1.2;
}

.noah21-mode-panels {
  margin-top: 8px;
}

.noah21-talk-panel .noah21-mini-card {
  width: min(294px, 100%);
  padding: 10px 12px;
}

.noah21-mini-card span {
  font-size: 11.2px;
  line-height: 1.3;
}

.noah21-contact-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(56,189,248,.16);
}

.noah21-contact-toggle {
  width: min(312px, 100%);
  margin: 9px auto 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(120, 231, 255, .7);
  background:
    radial-gradient(circle at 18% 50%, rgba(242,37,117,.25), transparent 38%),
    linear-gradient(135deg, rgba(56,189,248,.28), rgba(124,58,237,.18) 52%, rgba(242,37,117,.18));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 0 26px rgba(56,189,248,.26),
    0 0 36px rgba(242,37,117,.11),
    inset 0 1px 0 rgba(255,255,255,.13);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .075em;
}

.noah21-contact-toggle:hover,
.noah21-contact-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(160, 242, 255, .88);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 0 34px rgba(56,189,248,.34),
    0 0 46px rgba(242,37,117,.16),
    inset 0 1px 0 rgba(255,255,255,.16);
}

@media (min-width: 900px) {
  .noah21-panel {
    right: calc(26px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .noah21-panel:not(.noah20-form-active) .noah21-main-stage {
    max-height: calc(100dvh - 162px);
  }
}

@media (max-width: 560px) {
  .noah21-panel {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: min(96dvh, calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 24px;
  }

  .noah21-header {
    width: min(304px, calc(100% - 24px));
    margin-top: 9px;
    padding: 11px 12px;
  }

  .noah21-main-stage {
    padding: 8px 11px 6px;
  }

  .noah21-hero {
    gap: 6px;
  }

  .noah21-eyebrow {
    min-height: 21px;
    padding: 3px 9px;
  }

  .noah21-headline {
    font-size: 22px;
    width: min(274px, 100%);
  }

  .noah21-subtitle {
    width: min(286px, 100%);
    font-size: 11.4px;
    line-height: 1.25;
  }

  .noah21-orb {
    width: 124px;
    height: 124px;
    margin-top: 3px;
  }

  .noah21-orb-mic {
    width: 48px;
    height: 48px;
    border-radius: 17px;
  }

  .noah21-orb-label {
    margin-top: 0;
    font-size: 10px;
  }

  .noah21-orb-status {
    width: min(282px, 100%);
    font-size: 10.8px;
    line-height: 1.2;
  }

  .noah21-mode-grid {
    width: min(318px, 100%);
    gap: 8px;
  }

  .noah21-mode-btn {
    min-height: 62px;
    padding: 9px 10px;
    gap: 9px;
  }

  .noah21-mode-btn strong {
    font-size: 11.4px;
    line-height: 1.05;
  }

  .noah21-mode-btn small {
    font-size: 8px;
    line-height: 1.05;
  }

  .noah21-switch-note {
    font-size: 9.8px;
    line-height: 1.18;
    width: min(274px, 100%);
  }

  .noah21-contact-shell {
    padding: 0 12px 12px;
  }

  .noah21-contact-toggle {
    width: min(304px, 100%);
    min-height: 48px;
    margin: 9px auto 0;
    font-size: 12.5px;
  }
}

@media (max-width: 390px) {
  .noah21-header {
    width: calc(100% - 22px);
  }

  .noah21-mode-grid {
    width: min(304px, 100%);
    gap: 7px;
  }

  .noah21-mode-btn {
    min-height: 60px;
    padding: 8px 8px;
    gap: 7px;
  }

  .noah21-mode-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    font-size: 10px;
  }

  .noah21-mode-btn strong {
    font-size: 10.8px;
  }

  .noah21-mode-btn small {
    font-size: 7.6px;
  }
}

@media (max-width: 340px) {
  .noah21-mode-grid {
    grid-template-columns: 1fr;
    width: min(250px, 100%);
  }

  .noah21-mode-btn {
    min-height: 48px;
  }

  .noah21-mode-btn small {
    font-size: 8px;
  }
}

/* --------------------------------------------------------------------------
   PASS 21B — Noah Open Widget Complete Redesign From Scratch
   Full creative redesign of the OPENED widget only. Closed avatar stays intact.
   Voice/text/form/lead logic continues using existing data attributes.
   -------------------------------------------------------------------------- */
.noah21b-panel {
  --n21b-cyan: #54e6ff;
  --n21b-blue: #3b82ff;
  --n21b-pink: #ff3c9b;
  --n21b-violet: #8b5cf6;
  --n21b-ink: rgba(3, 7, 16, .96);
  --n21b-glass: rgba(8, 17, 33, .68);
  --n21b-line: rgba(108, 231, 255, .34);
  --n21b-line-hot: rgba(255, 67, 166, .38);
  width: min(430px, calc(100vw - 28px));
  height: auto;
  max-height: min(760px, calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  aspect-ratio: auto;
  border-radius: 31px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -18%, rgba(84, 230, 255, .23), transparent 42%),
    radial-gradient(circle at 104% 20%, rgba(255, 60, 155, .24), transparent 44%),
    radial-gradient(circle at -8% 78%, rgba(139, 92, 246, .28), transparent 44%),
    linear-gradient(180deg, rgba(8, 16, 31, .96), rgba(2, 5, 14, .99));
  border: 1px solid rgba(98, 229, 255, .45);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .72),
    0 0 0 1px rgba(255,255,255,.045) inset,
    0 0 76px rgba(84, 230, 255, .16),
    0 0 96px rgba(255, 60, 155, .11);
  transform-origin: right bottom;
}

.noah21b-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(84,230,255,.09) 19%, transparent 20% 51%, rgba(255,60,155,.075) 52%, transparent 53% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 6%, rgba(255,255,255,.075), transparent 36%);
  mix-blend-mode: screen;
  opacity: .72;
  animation: noah21bSurface 7s ease-in-out infinite alternate;
}

.noah21b-panel::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: conic-gradient(from var(--noah21b-edge, 0deg), rgba(84,230,255,0), rgba(84,230,255,.9), rgba(255,60,155,.72), rgba(139,92,246,.65), rgba(84,230,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .38;
  animation: noah21bEdge 7.5s linear infinite;
}

@property --noah21b-edge {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.noah21b-shell,
.noah21b-shell-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.noah21b-shell-line {
  inset: auto;
  width: 1px;
  height: 130%;
  background: linear-gradient(180deg, transparent, rgba(84,230,255,.42), transparent);
  opacity: .34;
  filter: blur(.15px);
  transform: rotate(15deg);
}
.noah21b-shell-line.l1 { left: 18%; top: -14%; animation: noah21bScan 8s linear infinite; }
.noah21b-shell-line.l2 { right: 20%; top: -22%; animation: noah21bScan 10s linear infinite reverse; background: linear-gradient(180deg, transparent, rgba(255,60,155,.35), transparent); }
.noah21b-shell-line.l3 { left: 52%; top: -30%; animation: noah21bScan 12s linear infinite; opacity: .2; }

.noah21b-header {
  width: auto;
  margin: 14px 14px 0;
  padding: 12px 12px;
  border-radius: 24px;
  border: 1px solid rgba(84,230,255,.18);
  background:
    radial-gradient(circle at 11% 20%, rgba(84,230,255,.14), transparent 42%),
    linear-gradient(135deg, rgba(9, 20, 38, .88), rgba(4, 8, 18, .9));
  box-shadow:
    0 16px 48px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter: blur(18px);
}

.noah21b-identity { gap: 11px; }
.noah21b-avatar {
  width: 50px;
  height: 50px;
  padding: 2px;
  box-shadow: 0 0 24px rgba(84,230,255,.28), 0 0 32px rgba(255,60,155,.15);
}
.noah21b-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(84,230,255,0), rgba(84,230,255,.75), rgba(255,60,155,.72), rgba(84,230,255,0));
  opacity: .7;
  filter: blur(5px);
  animation: noah21bSpin 4s linear infinite;
}
.noah21b-title-wrap { min-width: 0; }
.noah21b-topline {
  color: rgba(143, 238, 255, .74);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.noah21b-header .noah20-name {
  font-size: 20px;
  line-height: .96;
  letter-spacing: -.03em;
}
.noah21b-header .noah20-role {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .17em;
  color: var(--n21b-cyan);
}
.noah21b-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.noah21b-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(84,230,255,.2);
  background: rgba(84,230,255,.06);
  color: rgba(228,249,255,.82);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.noah21b-live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34,197,94,.9);
}
.noah21b-close {
  width: 36px;
  height: 36px;
  border-radius: 15px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
}

.noah21b-stage {
  overflow-y: auto;
  padding: 12px 14px 9px;
  scrollbar-gutter: stable;
}
.noah21b-stage::-webkit-scrollbar { width: 5px; }
.noah21b-stage::-webkit-scrollbar-thumb { background: linear-gradient(var(--n21b-cyan), var(--n21b-pink)); border-radius: 999px; }

.noah21b-console {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 0;
}
.noah21b-hero {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 2px 0 0;
}
.noah21b-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: min(340px, 100%);
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(84,230,255,.22);
  background: linear-gradient(135deg, rgba(84,230,255,.09), rgba(255,60,155,.055));
  color: rgba(227, 248, 255, .88);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .035em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(84,230,255,.08) inset;
}
.noah21b-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--n21b-pink);
  box-shadow: 0 0 16px rgba(255,60,155,.92);
}
.noah21b-headline {
  width: min(330px, 100%);
  margin: 0;
  font-size: clamp(29px, 4.2vw, 38px);
  line-height: .94;
  font-weight: 1000;
  letter-spacing: -.065em;
  color: #fff;
  text-shadow: 0 0 28px rgba(84,230,255,.18);
}
.noah21b-subtitle {
  width: min(335px, 100%);
  margin: 0;
  color: rgba(229, 244, 255, .78);
  font-size: 12.4px;
  line-height: 1.42;
  font-weight: 750;
}

.noah21b-core-zone {
  position: relative;
  display: grid;
  place-items: center;
  width: 214px;
  height: 214px;
  margin: 0;
  isolation: isolate;
}
.noah21b-core-shadow {
  position: absolute;
  inset: 25px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(84,230,255,.28), rgba(255,60,155,.14) 46%, transparent 70%);
  filter: blur(20px);
  animation: noah21bBreathe 2.8s ease-in-out infinite;
}
.noah21b-orb {
  width: 176px;
  height: 176px;
  margin: 0;
  filter: saturate(1.12);
}
.noah21b-orb:hover,
.noah21b-orb:focus-visible {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.12) saturate(1.22);
}
.noah21b-orb:active {
  transform: scale(.975);
}
.noah21b-orb-aura {
  position: absolute;
  inset: -24px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(84,230,255,.2), transparent 54%),
    conic-gradient(from 0deg, transparent, rgba(84,230,255,.25), transparent, rgba(255,60,155,.3), transparent);
  filter: blur(10px);
  animation: noah21bBreathe 2.4s ease-in-out infinite;
}
.noah21b-orb-wave {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 1px solid rgba(84,230,255,.22);
  opacity: .48;
  animation: noah21bWave 3.1s ease-in-out infinite;
}
.noah21b-orb-wave.w2 {
  inset: 18px;
  border-color: rgba(255,60,155,.22);
  animation-delay: -1.3s;
}
.noah21b-orb .noah21-orb-ring.r1 {
  inset: 8px;
  opacity: .86;
  background: conic-gradient(from 0deg, transparent, var(--n21b-cyan), var(--n21b-blue), var(--n21b-pink), var(--n21b-violet), transparent);
  animation-duration: 4.7s;
}
.noah21b-orb .noah21-orb-ring.r2 {
  inset: -8px;
  opacity: .32;
  filter: blur(13px);
  animation-duration: 6.6s;
}
.noah21b-orb-scan {
  position: absolute;
  inset: 28px;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.32) 48%, transparent 56% 100%);
  opacity: .26;
  z-index: 2;
  mix-blend-mode: screen;
  animation: noah21bOrbScan 4.5s ease-in-out infinite;
}
.noah21b-orb .noah21-orb-glass {
  inset: 25px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255,255,255,.55), transparent 18%),
    radial-gradient(circle at 66% 78%, rgba(84,230,255,.38), transparent 32%),
    radial-gradient(circle at 23% 75%, rgba(255,60,155,.28), transparent 32%),
    linear-gradient(135deg, rgba(255,60,155,.98), rgba(139,92,246,.94) 46%, rgba(84,230,255,.98));
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.18),
    inset 0 -22px 38px rgba(1,4,12,.34),
    0 0 0 1px rgba(255,255,255,.18),
    0 0 46px rgba(84,230,255,.4),
    0 0 72px rgba(255,60,155,.28);
  animation: noah21bOrbLife 2.8s ease-in-out infinite;
}
.noah21b-orb-mic {
  width: 60px;
  height: 60px;
  border-radius: 21px;
  background: rgba(5, 10, 24, .55);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 14px 28px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.noah21b-orb-mic svg { width: 30px; height: 30px; }

.noah21b-command-line {
  width: min(340px, 100%);
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: -8px;
}
.noah21b-command-line .noah21-orb-label {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid rgba(84,230,255,.25);
  background: rgba(2, 7, 16, .58);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .17em;
  box-shadow: 0 0 24px rgba(84,230,255,.12);
}
.noah21b-command-line .noah21-orb-status {
  width: 100%;
  margin: 0;
  color: rgba(229,244,255,.78);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
}

.noah21b-mode-dock {
  width: min(356px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 2px auto 0;
  padding: 7px;
  border-radius: 24px;
  border: 1px solid rgba(84,230,255,.15);
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
    rgba(2, 7, 16, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 48px rgba(0,0,0,.25);
}
.noah21b-mode-dock .noah21-mode-btn {
  min-height: 74px;
  height: 74px;
  width: 100%;
  display: grid;
  grid-template-rows: 25px 1fr;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 5px;
  padding: 8px 5px 7px;
  border-radius: 17px;
  text-align: center;
  border: 1px solid rgba(84,230,255,.16);
  background: rgba(255,255,255,.038);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.noah21b-mode-dock .noah21-mode-btn > span:last-child {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  width: 100%;
  min-width: 0;
}
.noah21b-mode-dock .noah21-mode-btn strong,
.noah21b-mode-dock .noah21-mode-btn small {
  width: 100%;
  max-width: 100%;
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  overflow-wrap: normal;
  text-align: center;
}
.noah21b-mode-dock .noah21-mode-btn strong {
  font-size: 10.6px;
  line-height: 1.02;
  letter-spacing: -.03em;
}
.noah21b-mode-dock .noah21-mode-btn small {
  margin: 0;
  color: rgba(202, 226, 244, .7);
  font-size: 8px;
  line-height: 1.06;
  font-weight: 850;
}
.noah21b-mode-dock .noah21-mode-icon {
  width: 24px;
  height: 24px;
  flex: none;
  font-size: 10px;
  box-shadow: 0 0 16px rgba(84,230,255,.1);
}
.noah21b-mode-dock .noah21-mode-btn:hover,
.noah21b-mode-dock .noah21-mode-btn:focus-visible,
.noah21b-mode-dock .noah21-mode-btn.active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(84,230,255,.16), rgba(255,60,155,.11));
  border-color: rgba(84,230,255,.52);
  box-shadow: 0 0 24px rgba(84,230,255,.16), inset 0 1px 0 rgba(255,255,255,.09);
}
.noah21b-switch-note {
  width: min(335px, 100%);
  color: rgba(173,198,218,.72);
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 800;
}

.noah21b-mode-panels {
  width: min(356px, 100%);
  margin: 0 auto;
}
.noah21b-mini-card,
.noah21b-dictate-card,
.noah21b-upload-card,
.noah21b-type-panel {
  border: 1px solid rgba(84,230,255,.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 10%, rgba(84,230,255,.1), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 44px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}
.noah21b-mini-card {
  padding: 13px 15px;
  display: grid;
  gap: 6px;
}
.noah21b-card-label,
.noah21b-panel-title span {
  color: rgba(84,230,255,.72);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.noah21b-mini-card strong,
.noah21b-panel-title strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 950;
}
.noah21b-mini-card span:last-child {
  color: rgba(228,244,255,.72);
  font-size: 11.4px;
  line-height: 1.35;
  font-weight: 700;
}
.noah21b-type-panel {
  min-height: 280px;
  max-height: 395px;
  overflow: hidden;
}
.noah21b-type-panel .noah20-history {
  min-height: 178px;
  padding: 13px;
}
.noah21b-composer {
  background: rgba(2, 7, 16, .82);
}
.noah21b-dictate-card {
  padding: 13px;
}
.noah21b-panel-title {
  display: grid;
  gap: 3px;
  text-align: left;
}
.noah21b-upload-card {
  padding: 18px 14px;
}

.noah21b-contact-shell {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(84,230,255,.13);
  background: linear-gradient(180deg, rgba(2,7,16,0), rgba(2,7,16,.52));
}
.noah21b-contact-toggle {
  width: min(356px, 100%);
  min-height: 54px;
  margin: 12px auto 0;
  border-radius: 19px;
  border: 1px solid rgba(84,230,255,.74);
  background:
    radial-gradient(circle at 16% 50%, rgba(255,60,155,.34), transparent 38%),
    linear-gradient(135deg, rgba(84,230,255,.34), rgba(139,92,246,.22) 50%, rgba(255,60,155,.2));
  color: #fff;
  font-size: 13.3px;
  line-height: 1.1;
  font-weight: 1000;
  letter-spacing: .085em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 0 32px rgba(84,230,255,.28),
    0 0 42px rgba(255,60,155,.14),
    inset 0 1px 0 rgba(255,255,255,.15);
}
.noah21b-contact-toggle:hover,
.noah21b-contact-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(199,250,255,.95);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 42px rgba(84,230,255,.38),
    0 0 56px rgba(255,60,155,.2),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.noah21b-contact-drawer {
  width: min(356px, 100%);
  margin: 0 auto;
}
.noah21b-panel.noah20-form-active {
  height: min(760px, calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
}
.noah21b-panel.noah20-form-active .noah21b-stage {
  max-height: 258px;
}
.noah21b-panel.noah20-form-active .noah21b-console {
  gap: 6px;
}
.noah21b-contact-drawer.noah20-form-open {
  flex: 1 1 auto;
  max-height: calc(100dvh - 260px);
}
.noah21b-contact-drawer.noah20-form-open .noah21b-contact-drawer-inner {
  max-height: min(430px, calc(100dvh - 320px));
  border-radius: 22px;
  border: 1px solid rgba(84,230,255,.18);
  background: rgba(3, 9, 19, .76);
}
.noah21b-form {
  gap: 10px;
}
.noah21b-form input,
.noah21b-form textarea {
  border-radius: 14px;
}

.noah21b-panel[data-noah21-voice-status="connecting"] .noah21b-live-pill,
.noah21b-panel[data-noah21-voice-status="listening"] .noah21b-live-pill,
.noah21b-panel[data-noah21-voice-status="connected"] .noah21b-live-pill {
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.08);
}
.noah21b-panel[data-noah21-voice-status="speaking"] .noah21b-live-pill {
  border-color: rgba(255,60,155,.4);
  background: rgba(255,60,155,.09);
}
.noah21b-panel[data-noah21-voice-status="listening"] .noah21b-orb,
.noah21b-panel[data-noah21-voice-status="connected"] .noah21b-orb {
  filter: brightness(1.12) saturate(1.24) drop-shadow(0 0 20px rgba(34,197,94,.22));
}
.noah21b-panel[data-noah21-voice-status="speaking"] .noah21b-orb {
  filter: brightness(1.18) saturate(1.36) drop-shadow(0 0 25px rgba(255,60,155,.25));
}
.noah21b-panel[data-noah21-voice-status="speaking"] .noah21b-orb-wave,
.noah21b-panel[data-noah21-voice-status="listening"] .noah21b-orb-wave {
  animation-duration: 1.25s;
  opacity: .72;
}
.noah21b-panel[data-noah21-voice-status="speaking"] .noah21b-avatar {
  animation: noah21bAvatarSpeak 1.2s ease-in-out infinite;
}
.noah21b-panel .noah21-orb-burst .noah21-orb-particle,
.noah21b-panel .noah21b-orb.noah21-orb-burst .noah21-orb-particle {
  animation: noah21ParticleBurst .72s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes noah21bSurface {
  0% { opacity: .42; transform: translate3d(-1px,-1px,0); }
  100% { opacity: .78; transform: translate3d(1px,1px,0); }
}
@keyframes noah21bEdge { to { --noah21b-edge: 360deg; } }
@keyframes noah21bScan {
  0% { transform: translateY(-20%) rotate(15deg); opacity: .05; }
  35% { opacity: .36; }
  100% { transform: translateY(40%) rotate(15deg); opacity: .06; }
}
@keyframes noah21bSpin { to { transform: rotate(360deg); } }
@keyframes noah21bBreathe {
  0%, 100% { transform: scale(.96); opacity: .6; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes noah21bWave {
  0%,100% { transform: scale(.93); opacity: .25; }
  45% { transform: scale(1.08); opacity: .72; }
}
@keyframes noah21bOrbScan {
  0%, 38% { transform: translateX(-55%) rotate(8deg); opacity: 0; }
  54% { opacity: .32; }
  78%, 100% { transform: translateX(60%) rotate(8deg); opacity: 0; }
}
@keyframes noah21bOrbLife {
  0%,100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
  50% { transform: scale(1.025) rotate(1.2deg); filter: brightness(1.13); }
}
@keyframes noah21bAvatarSpeak {
  0%,100% { box-shadow: 0 0 22px rgba(84,230,255,.28), 0 0 28px rgba(255,60,155,.13); }
  50% { box-shadow: 0 0 32px rgba(84,230,255,.48), 0 0 44px rgba(255,60,155,.28); }
}

@media (min-width: 900px) {
  .noah21b-panel {
    right: calc(26px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  .noah21b-panel {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 28px;
  }
  .noah21b-header {
    margin: 10px 10px 0;
    padding: 10px;
    border-radius: 22px;
  }
  .noah21b-live-pill { display: none; }
  .noah21b-avatar { width: 47px; height: 47px; }
  .noah21b-header .noah20-name { font-size: 18px; }
  .noah21b-stage { padding: 10px 11px 8px; }
  .noah21b-console { gap: 8px; }
  .noah21b-kicker {
    max-width: 312px;
    min-height: 27px;
    padding: 0 10px;
    font-size: 8.7px;
    letter-spacing: .03em;
  }
  .noah21b-headline {
    width: min(304px, 100%);
    font-size: 28px;
  }
  .noah21b-subtitle {
    width: min(306px, 100%);
    font-size: 11.6px;
    line-height: 1.32;
  }
  .noah21b-core-zone {
    width: 178px;
    height: 178px;
  }
  .noah21b-orb {
    width: 148px;
    height: 148px;
  }
  .noah21b-orb .noah21-orb-glass { inset: 22px; }
  .noah21b-orb-mic { width: 54px; height: 54px; }
  .noah21b-command-line { margin-top: -6px; }
  .noah21b-mode-dock {
    width: min(326px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
    border-radius: 22px;
  }
  .noah21b-mode-dock .noah21-mode-btn {
    min-height: 67px;
    height: 67px;
    border-radius: 15px;
    padding: 7px 3px 6px;
  }
  .noah21b-mode-dock .noah21-mode-icon {
    width: 22px;
    height: 22px;
  }
  .noah21b-mode-dock .noah21-mode-btn strong { font-size: 9.2px; line-height: 1; }
  .noah21b-mode-dock .noah21-mode-btn small { font-size: 7.1px; line-height: 1; }
  .noah21b-mode-panels { width: min(326px, 100%); }
  .noah21b-mini-card { padding: 11px 12px; }
  .noah21b-contact-shell { padding: 0 11px 12px; }
  .noah21b-contact-toggle {
    width: min(326px, 100%);
    min-height: 52px;
    font-size: 12.4px;
  }
  .noah21b-contact-drawer { width: min(326px, 100%); }
  .noah21b-panel.noah20-form-active {
    height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .noah21b-panel.noah20-form-active .noah21b-stage {
    max-height: 220px;
  }
  .noah21b-contact-drawer.noah20-form-open .noah21b-contact-drawer-inner {
    max-height: calc(100dvh - 305px);
  }
}

@media (max-width: 390px) {
  .noah21b-header { margin-inline: 8px; }
  .noah21b-kicker { font-size: 8px; }
  .noah21b-headline { font-size: 25px; }
  .noah21b-subtitle { font-size: 11px; }
  .noah21b-core-zone { width: 164px; height: 164px; }
  .noah21b-orb { width: 136px; height: 136px; }
  .noah21b-mode-dock {
    width: min(304px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .noah21b-mode-dock .noah21-mode-btn {
    height: 54px;
    min-height: 54px;
    grid-template-columns: 24px 1fr;
    grid-template-rows: 1fr;
    text-align: left;
    justify-items: start;
    padding: 7px 9px;
    gap: 8px;
  }
  .noah21b-mode-dock .noah21-mode-btn > span:last-child {
    justify-items: start;
    align-content: center;
  }
  .noah21b-mode-dock .noah21-mode-btn strong,
  .noah21b-mode-dock .noah21-mode-btn small { text-align: left; }
  .noah21b-mode-dock .noah21-mode-btn strong { font-size: 10.5px; }
  .noah21b-mode-dock .noah21-mode-btn small { font-size: 7.4px; }
}

@media (max-width: 330px) {
  .noah21b-mode-dock { width: min(270px, 100%); }
  .noah21b-mode-dock .noah21-mode-btn small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .noah21b-panel::before,
  .noah21b-panel::after,
  .noah21b-shell-line,
  .noah21b-avatar-ring,
  .noah21b-core-shadow,
  .noah21b-orb-aura,
  .noah21b-orb-wave,
  .noah21b-orb-scan,
  .noah21b-orb .noah21-orb-glass {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   PASS 21B.1 — Desktop-Only Noah Console Layout Upgrade
   Mobile is intentionally locked. These overrides apply only at 900px+.
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .noah21b-panel {
    width: min(760px, calc(100vw - 56px));
    max-height: min(660px, calc(100dvh - 52px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    right: calc(28px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 34px;
    background:
      radial-gradient(circle at 50% -14%, rgba(84, 230, 255, .24), transparent 36%),
      radial-gradient(circle at 104% 24%, rgba(255, 60, 155, .22), transparent 38%),
      radial-gradient(circle at -8% 74%, rgba(139, 92, 246, .26), transparent 38%),
      linear-gradient(145deg, rgba(9, 18, 34, .972), rgba(2, 5, 14, .994) 62%, rgba(3, 7, 18, .99));
  }

  .noah21b-panel::before {
    background:
      linear-gradient(120deg, transparent 0 14%, rgba(84,230,255,.08) 15%, transparent 16% 54%, rgba(255,60,155,.075) 55%, transparent 56% 100%),
      repeating-linear-gradient(90deg, rgba(255,255,255,.026) 0 1px, transparent 1px 8px),
      repeating-linear-gradient(0deg, rgba(84,230,255,.018) 0 1px, transparent 1px 16px),
      radial-gradient(circle at 50% 6%, rgba(255,255,255,.075), transparent 36%);
    opacity: .76;
  }

  .noah21b-header {
    width: auto;
    margin: 16px 18px 0;
    padding: 14px 16px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .noah21b-identity {
    gap: 14px;
    min-width: 0;
  }

  .noah21b-avatar {
    width: 56px;
    height: 56px;
  }

  .noah21b-title-wrap {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .noah21b-topline {
    margin: 0;
    font-size: 9.5px;
    letter-spacing: .2em;
    line-height: 1;
  }

  .noah21b-header .noah20-name {
    font-size: 23px;
    line-height: 1;
    letter-spacing: -.025em;
  }

  .noah21b-header .noah20-role {
    margin-top: 0;
    font-size: 10.5px;
    line-height: 1.15;
    letter-spacing: .16em;
    white-space: nowrap;
  }

  .noah21b-live-pill {
    display: inline-flex;
    min-height: 30px;
    padding-inline: 12px;
  }

  .noah21b-close {
    width: 40px;
    height: 40px;
    border-radius: 16px;
  }

  .noah21b-stage {
    padding: 16px 18px 10px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-gutter: auto;
  }

  .noah21b-stage::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .noah21b-console {
    gap: 14px;
  }

  .noah21b-hero {
    width: 100%;
    min-height: 292px;
    display: grid;
    grid-template-columns: minmax(190px, .9fr) minmax(230px, 1fr) minmax(205px, .95fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 20px;
    row-gap: 10px;
    align-items: center;
    justify-items: stretch;
    text-align: left;
    padding: 2px 2px 0;
  }

  .noah21b-kicker {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
    min-height: 29px;
    padding: 0 12px;
    font-size: 9px;
    line-height: 1;
    text-align: left;
  }

  .noah21b-headline {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 220px;
    justify-self: start;
    text-align: left;
    font-size: clamp(30px, 2.6vw, 40px);
    line-height: .92;
    letter-spacing: -.065em;
  }

  .noah21b-subtitle {
    grid-column: 1;
    grid-row: 3 / span 2;
    width: 100%;
    max-width: 230px;
    justify-self: start;
    text-align: left;
    font-size: 12.2px;
    line-height: 1.45;
  }

  .noah21b-core-zone {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 246px;
    height: 246px;
    justify-self: center;
    align-self: center;
  }

  .noah21b-core-shadow {
    inset: 18px;
    filter: blur(24px);
  }

  .noah21b-orb {
    width: 202px;
    height: 202px;
  }

  .noah21b-orb .noah21-orb-glass {
    inset: 30px;
  }

  .noah21b-orb-mic {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }

  .noah21b-orb-mic svg {
    width: 34px;
    height: 34px;
  }

  .noah21b-command-line {
    grid-column: 2;
    grid-row: 4;
    width: min(250px, 100%);
    justify-self: center;
    margin-top: -6px;
    gap: 6px;
    text-align: center;
  }

  .noah21b-command-line .noah21-orb-label {
    min-height: 28px;
    padding: 0 22px;
    font-size: 10.5px;
    letter-spacing: .16em;
  }

  .noah21b-command-line .noah21-orb-status {
    font-size: 11.2px;
    line-height: 1.25;
  }

  .noah21b-mode-dock {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
    width: 100%;
    max-width: 218px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0;
    padding: 10px;
    border-radius: 26px;
    background:
      radial-gradient(circle at 12% 10%, rgba(84,230,255,.12), transparent 36%),
      linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
      rgba(2,7,16,.58);
  }

  .noah21b-mode-dock .noah21-mode-btn {
    min-height: 58px;
    height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: 1fr;
    place-items: center start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    text-align: left;
  }

  .noah21b-mode-dock .noah21-mode-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .noah21b-mode-dock .noah21-mode-btn > span:last-child {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 3px;
    width: 100%;
  }

  .noah21b-mode-dock .noah21-mode-btn strong,
  .noah21b-mode-dock .noah21-mode-btn small {
    text-align: left;
    white-space: nowrap;
  }

  .noah21b-mode-dock .noah21-mode-btn strong {
    font-size: 12.4px;
    line-height: 1.05;
    letter-spacing: -.015em;
  }

  .noah21b-mode-dock .noah21-mode-btn small {
    font-size: 9px;
    line-height: 1.05;
  }

  .noah21b-switch-note {
    grid-column: 3;
    grid-row: 4;
    width: 100%;
    max-width: 218px;
    justify-self: stretch;
    text-align: center;
    font-size: 10.2px;
    line-height: 1.28;
    margin: -2px 0 0;
  }

  .noah21b-mode-panels {
    width: 100%;
    margin: 0 auto;
  }

  .noah21b-mini-card {
    width: 100%;
    min-height: 82px;
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 4px;
    align-items: center;
    padding: 14px 18px;
    border-radius: 24px;
  }

  .noah21b-mini-card .noah21b-card-label {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(84,230,255,.22);
    background: rgba(84,230,255,.06);
    text-align: center;
  }

  .noah21b-mini-card strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
  }

  .noah21b-mini-card span:last-child {
    grid-column: 2;
    grid-row: 2;
    font-size: 11.7px;
    line-height: 1.35;
  }

  .noah21b-type-panel {
    width: 100%;
    min-height: 300px;
    max-height: 390px;
  }

  .noah21b-dictate-card,
  .noah21b-upload-card {
    width: 100%;
  }

  .noah21b-contact-shell {
    padding: 0 18px 16px;
    border-top-color: rgba(84,230,255,.14);
  }

  .noah21b-contact-toggle {
    width: min(420px, 100%);
    min-height: 56px;
    border-radius: 20px;
    font-size: 13.8px;
    letter-spacing: .09em;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.055),
      0 0 38px rgba(84,230,255,.32),
      0 0 54px rgba(255,60,155,.18),
      inset 0 1px 0 rgba(255,255,255,.16);
  }

  .noah21b-contact-drawer {
    width: min(680px, 100%);
  }

  .noah21b-panel.noah20-form-active {
    height: min(700px, calc(100dvh - 52px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  }

  .noah21b-panel.noah20-form-active .noah21b-stage {
    max-height: 330px;
    overflow-y: auto;
  }

  .noah21b-contact-drawer.noah20-form-open {
    width: min(680px, 100%);
    max-height: calc(100dvh - 380px);
  }

  .noah21b-contact-drawer.noah20-form-open .noah21b-contact-drawer-inner {
    max-height: min(390px, calc(100dvh - 430px));
  }
}
