:root {
  --bg: #050409;
  --bg-raised: #0a0714;
  --sheet: #17131f;
  --field: #0d0a18;
  --caption: #221c31;
  --goal: #1d1830;
  --ink: #edeaf4;
  --muted: #b9aeda;
  --subtle: rgba(237, 234, 244, .52);
  --line: rgba(255, 255, 255, .13);
  --purple: #8e47ff;
  --cup: #501a65;
  --magenta: #c3319a;
  --coral: #ff8964;
  --coral-deep: #ff6f4f;
  --xp: #f3fc2f;
  --success: #63d26b;
  --success-soft: #9fdca4;
  --danger: #ff7c78;
  --warning: #ffc24b;
  --warning-text: #ffd98a;
  --caption-auntea: #b9aeda;
  --caption-user: #ffb596;
  --spill-viewport-height: 100dvh;
  --visual-viewport-height: var(--spill-viewport-height, 100dvh);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 90% at 50% 0%, #160e29 0%, #050409 100%),
    var(--bg);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hidden { display: none !important; }
.invisible { visibility: hidden !important; }

#app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: var(--visual-viewport-height, 100dvh);
  overflow: hidden;
}

.phone {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }
@keyframes caption-update { from { opacity: 0; } to { opacity: 1; } }
@keyframes celebration-rise {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dots {
  0%, 80%, 100% { transform: scale(.45); opacity: .35; }
  40% { transform: scale(1); opacity: 1; }
}
@keyframes xp-pop {
  0% { opacity: 0; transform: translateY(12px) scale(.92); }
  45% { opacity: 1; transform: translateY(0) scale(1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes ring-pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 210, 107, .5); }
  70% { box-shadow: 0 0 0 22px rgba(99, 210, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 210, 107, 0); }
}

/* Incoming call */
.incoming {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: calc(80px + var(--safe-top)) 24px calc(54px + var(--safe-bottom));
  background:
    radial-gradient(105% 68% at 18% -8%, rgba(108, 59, 251, .32), transparent 62%),
    radial-gradient(100% 60% at 92% 0%, rgba(255, 137, 100, .18), transparent 64%),
    #050409;
  animation: fade-in .35s ease both;
}
.mode-badge {
  position: absolute;
  top: calc(18px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(237, 234, 244, .8);
  background: rgba(255, 255, 255, .055);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mode-badge.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--success);
}
.mode-badge.preview { color: #ffd3c3; border-color: rgba(255, 137, 100, .3); }
.incoming-avatar {
  width: 104px;
  height: 104px;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--cup);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18), 0 20px 50px rgba(0, 0, 0, .5);
}
.incoming-avatar img { width: 86px; height: 100px; object-fit: contain; transform: translateY(13px); }
.incoming h1 { margin: 16px 0 2px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.incoming-sub { margin: 0; color: rgba(255, 255, 255, .55); font-size: 13px; }
.incoming-actions { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.answer-wrap { display: flex; flex-direction: column; align-items: center; gap: 7px; color: rgba(255, 255, 255, .6); font-size: 12.5px; font-weight: 600; }
.answer {
  position: relative;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #63d26b;
  color: #0a2410;
  animation: ring-pulse 1.8s ease-out infinite;
}
.answer::before { display: none; }
.answer svg { width: 28px; height: 28px; }
.text-instead {
  margin-top: 6px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .75);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.ai-disclosure { margin-top: 14px; max-width: 270px; color: rgba(255, 255, 255, .45); font-size: 11.5px; line-height: 1.5; }
.ai-disclosure button {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--coral);
  padding: 0 8px;
}

/* Call shell */
.call {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #3d1052 0%, #501a65 42%, #2c0d3b 100%);
}
.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 50% at 80% -4%, rgba(255, 137, 100, .26), transparent 52%),
    radial-gradient(110% 46% at -10% 0%, rgba(108, 59, 251, .34), transparent 56%),
    linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 110px);
  z-index: 1;
  pointer-events: none;
}
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .74) 72%);
  z-index: 1;
  pointer-events: none;
}
.avatar-stage {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  transition: filter 200ms ease-out, opacity 200ms ease-out, transform 200ms ease-out;
}
.avatar-stage svg {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 340px;
  height: 400px;
  overflow: visible;
  transform: translate(-50%, -50%);
}
.avatar-stage[data-av="reconnecting"] { filter: grayscale(.14) brightness(.75); }
.avatar-stage[data-av="error"] { filter: saturate(.7) brightness(.72); }
.thinking-dots {
  position: absolute;
  left: 50%;
  bottom: 22%;
  display: none;
  gap: 5px;
  transform: translateX(-50%);
}
[data-av="thinking"] .thinking-dots { display: flex; }
.thinking-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9aeda;
  animation: dots 1.1s ease-in-out infinite;
}
.thinking-dots i:nth-child(2) { animation-delay: .12s; }
.thinking-dots i:nth-child(3) { animation-delay: .24s; }

.status-row {
  position: relative;
  z-index: 8;
  height: calc(52px + var(--safe-top));
  padding: calc(13px + var(--safe-top)) 26px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  font-size: 14px;
  font-weight: 650;
}
.status-icons { display: flex; gap: 6px; align-items: center; }
.notch {
  position: absolute;
  top: calc(10px + var(--safe-top));
  left: 50%;
  width: 120px;
  height: 34px;
  border-radius: 20px;
  transform: translateX(-50%);
  background: #050409;
}
.call-top {
  position: absolute;
  z-index: 60;
  top: calc(58px + var(--safe-top));
  left: 14px;
  right: 14px;
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 0s;
}
.call-top[data-visible="false"] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 0s 200ms;
}
.xp-pill, .call-pill {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(12, 8, 20, .6);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}
.xp-pill { grid-column: 1; justify-self: start; gap: 5px; padding: 0 10px; color: var(--xp); border-color: rgba(243, 252, 47, .35); transition: opacity .25s ease; }
.call-pill {
  grid-column: 2;
  justify-self: center;
  width: max-content;
  padding: 0 12px;
  color: rgba(255, 255, 255, .85);
  letter-spacing: .06em;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
}
.top-actions { grid-column: 3; justify-self: end; display: flex; gap: 6px; }
.mini-btn {
  position: relative;
  isolation: isolate;
  width: 44px;
  height: 44px;
  margin: -7px;
  border: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
}
.mini-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(12, 8, 20, .6);
  backdrop-filter: blur(10px);
}
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn:active { transform: scale(.92); }
.control-slash {
  display: none;
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #ff7b72;
  transform: rotate(45deg);
  pointer-events: none;
}
.mini-btn.off .control-slash,
.lane-segment.mic.muted .control-slash { display: block; }
.call-menu {
  position: absolute;
  z-index: 65;
  top: calc(94px + var(--safe-top));
  right: 14px;
  min-width: 190px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: var(--sheet);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  animation: rise 180ms ease both;
}
.call-menu-item {
  min-height: 44px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.call-menu-item:hover { background: rgba(255, 255, 255, .06); }
.call-menu-item strong { color: rgba(255, 255, 255, .4); font-size: 11px; font-weight: 700; }
.call-menu-item strong.on { color: var(--success); }
#menu-start-over strong { color: var(--danger); }

.self-view {
  position: absolute;
  z-index: 40;
  top: calc(100px + var(--safe-top));
  right: 14px;
  width: 74px;
  height: 98px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 16px;
  background: #221c31;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.self-view video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.self-view-off {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, .6);
  font-size: 9.5px;
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
}
.self-view-off svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, .55);
}

.net-banner {
  position: absolute;
  z-index: 70;
  top: calc(102px + var(--safe-top));
  /* Centered without a transform: the rise animation (fill both) ends at
     transform none and would cancel a translateX centering. */
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  max-width: calc(100% - 116px);
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: var(--warning-text);
  background: rgba(28, 18, 8, .8);
  backdrop-filter: blur(12px);
  font-size: 11px;
  animation: rise .25s ease both;
}
.net-banner .spinner { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 1.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.net-banner.failed {
  width: min(270px, calc(100% - 116px));
  max-width: none;
  border-color: rgba(255, 137, 100, .36);
  text-align: center;
}
.net-banner button {
  min-height: 36px;
  margin-left: 8px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #180a04;
  background: var(--coral);
  font-size: 11px;
  font-weight: 800;
}
.sound-banner {
  position: absolute;
  z-index: 70;
  top: calc(145px + var(--safe-top));
  left: 0;
  right: 0;
  width: min(270px, calc(100% - 44px));
  margin-inline: auto;
  padding: 10px 14px;
  border: 1px solid rgba(243, 252, 47, .5);
  border-radius: 15px;
  color: #f7fbd1;
  background: rgba(22, 20, 7, .92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .4);
  text-align: left;
  animation: rise .25s ease both;
}
.sound-banner strong, .sound-banner span { display: block; }
.sound-banner strong { font-size: 13px; }
.sound-banner span { margin-top: 2px; color: rgba(247, 251, 209, .68); font-size: 10.5px; }

.receipt-toast {
  position: absolute;
  z-index: 85;
  top: calc(104px + var(--safe-top));
  left: 14px;
  right: 100px;
  text-align: center;
  padding: 7px 12px;
  border: 1px solid rgba(99, 210, 107, .4);
  border-radius: 999px;
  color: var(--success-soft);
  background: rgba(10, 20, 12, .78);
  font-size: 11px;
  animation: rise .3s ease both;
}

.otp-sms-notification {
  position: absolute;
  z-index: 90;
  top: calc(54px + var(--safe-top));
  left: 12px;
  right: 12px;
  min-height: 58px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  color: #fff;
  background: rgba(28, 24, 38, .94);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px);
  text-align: left;
  cursor: pointer;
  animation: slide-down 400ms cubic-bezier(.32, .72, 0, 1) both;
}
.otp-sms-notification:active { transform: scale(.985); }
.otp-sms-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #63d26b;
}
.otp-sms-icon svg {
  width: 18px;
  height: 18px;
  fill: #0a2410;
}
.otp-sms-copy {
  min-width: 0;
  flex: 1;
  display: block;
  color: rgba(255, 255, 255, .8);
  font-size: 12.5px;
  line-height: 1.35;
}
.otp-sms-copy > span:last-child {
  display: block;
  margin-top: 2px;
}
.otp-sms-copy b { letter-spacing: .08em; }
.otp-sms-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.otp-sms-head strong {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.otp-sms-head small {
  color: rgba(255, 255, 255, .45);
  font-size: 10.5px;
}

.celebration {
  position: absolute;
  z-index: 80;
  top: calc(148px + var(--safe-top));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 44px);
  min-height: 34px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  background: rgba(13, 9, 22, .9);
  pointer-events: none;
  animation: celebration-rise 300ms ease-out both;
}
.celebration-award {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.01em;
  background: linear-gradient(120deg, #ff9a6a, #c3319a, #8e47ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.level-chip { order: 3; padding: 2px 8px; border-radius: 99px; color: #180a04; background: var(--xp); font-size: 11px; font-weight: 700; white-space: nowrap; }
.celebration-root {
  order: 2;
  color: var(--success-soft);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.call-bottom {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: max(8px, var(--safe-bottom));
  display: flex;
  flex-direction: column;
  min-height: 0;
  pointer-events: none;
}
.call-bottom > * { pointer-events: auto; }

.captions {
  z-index: 20;
  min-height: 88px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 22px 12px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  text-align: center;
}
.caption-speaker {
  color: var(--caption-auntea);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .14em;
  text-shadow: 0 1px 8px rgba(5, 3, 10, .6);
}
.caption-speaker.user { color: var(--caption-user); }
.caption-text {
  width: 100%;
  max-width: 560px;
  color: #fff;
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 450;
  text-align: center;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 10px rgba(5, 3, 10, .7);
}
.captions[data-new-utterance="true"] .caption-speaker,
.captions[data-new-utterance="true"] .caption-text {
  animation: caption-update 120ms linear both;
}

.widget-sheet {
  position: relative;
  z-index: 30;
  margin: 0 8px 8px;
  max-height: 640px;
  min-height: 0;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 22px;
  background: var(--sheet);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
  transition: max-height 450ms cubic-bezier(.32, .72, 0, 1);
}
.widget-sheet.entering {
  animation: rise 200ms ease-out both;
}
.system-sheet-layer {
  position: absolute;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: max(8px, var(--safe-bottom));
  background: rgba(5, 4, 9, .62);
  animation: fade-in 200ms ease both;
}
.system-sheet-layer .system-sheet {
  width: calc(100% - 16px);
  max-width: 640px;
  margin: 0 auto;
}
.system-sheet-copy {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  line-height: 1.5;
}
.system-error-copy {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid rgba(255, 123, 114, .3);
  border-radius: 13px;
  background: #0d0a18;
}
.system-error-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 12.5px;
  line-height: 1.5;
}
.system-error-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 123, 114, .3);
  border-radius: 10px;
  color: var(--danger);
  background: rgba(255, 123, 114, .14);
  font-size: 17px;
  font-weight: 800;
}
.system-sheet-actions .destructive {
  border-color: rgba(255, 123, 114, .5);
  color: var(--danger);
  background: transparent;
}
.sheet-actions.action-row.system-sheet-actions { grid-template-columns: 1.4fr 1fr; }
.sheet-grab {
  width: 40px;
  height: 4px;
  flex: 0 0 4px;
  margin: 12px auto 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}
.sheet-head {
  flex: none;
  padding: 0 14px 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: rgba(255, 255, 255, .45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sheet-gate {
  color: var(--xp);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.sheet-body {
  min-height: 0;
  max-height: min(360px, max(1px, calc(var(--visual-viewport-height, 100dvh) - 380px)));
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 14px 14px;
  -webkit-overflow-scrolling: touch;
}
.widget-title { margin: 2px 0 6px; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.widget-sub { margin: 0 0 13px; color: rgba(255, 255, 255, .55); font-size: 12.5px; line-height: 1.42; }
.widget-error { margin: 8px 0; padding: 9px 10px; border: 1px solid rgba(255, 124, 120, .34); border-radius: 11px; color: #ffc1bd; background: rgba(255, 124, 120, .08); font-size: 12px; }
.gate-note { margin: 8px 0; color: rgba(237, 234, 244, .42); font-size: 11px; }

.goal-grid, .people-grid { display: grid; gap: 8px; }
.widget-sheet[data-module="goals"] .widget-title,
.widget-sheet[data-module="vibe"] .widget-title,
.widget-sheet[data-module="readback"] > .sheet-body > .widget-title,
.widget-sheet[data-module="readback"] > .sheet-body > .widget-sub {
  display: none;
}
.widget-sheet[data-module="goals"] .goal-grid,
.widget-sheet[data-module="vibe"] .chip-wrap {
  gap: 11px;
}
.goal-card, .person-card, .select-row, .vibe-chip {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  color: var(--ink);
  background: var(--goal);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.goal-card {
  min-height: 58px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  border-color: transparent;
  text-align: left;
}
.goal-icon {
  width: 36px;
  height: 36px;
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.goal-icon.people { background: linear-gradient(135deg, #ff8964, #c3319a); }
.goal-icon.circle { background: linear-gradient(135deg, #c3319a, #8e47ff); }
.goal-icon.create { background: linear-gradient(135deg, #8e47ff, #59b0ff); }
.goal-icon.loop { background: linear-gradient(135deg, #f3fc2f, #ff8964); }
.goal-icon svg { width: 19px; height: 19px; fill: #fff; }
.goal-icon.loop svg {
  fill: none;
  stroke: #180a04;
  stroke-width: 2;
}
.goal-copy {
  min-width: 0;
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.goal-card strong {
  display: block;
  color: #fff;
  font-size: 14.5px;
  line-height: 1.15;
  font-weight: 600;
}
.goal-card small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, .5);
  font-size: 11.5px;
  line-height: 1.2;
}
.goal-card.selected, .person-card.selected, .select-row.selected, .vibe-chip.selected {
  border-color: var(--coral);
  background: linear-gradient(125deg, rgba(255, 137, 100, .14), rgba(142, 71, 255, .12)), var(--goal);
}
.goal-card:active, .person-card:active, .vibe-chip:active { transform: scale(.985); }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.vibe-chip {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 137, 100, .44);
  border-radius: 999px;
  color: #ffb596;
  background: rgba(20, 10, 6, .58);
  font-size: 13px;
  font-weight: 650;
}
.vibe-chip { color: var(--ink); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .13); }
.quick-chip {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 137, 100, .5);
  border-radius: 99px;
  color: #ffb596;
  background: rgba(20, 10, 6, .72);
  font-size: 13.5px;
  font-weight: 600;
  animation: rise 250ms ease both;
}

.widget-sheet[data-module="vibe"] .chip-wrap {
  flex-direction: column;
  flex-wrap: nowrap;
}
.widget-sheet[data-module="vibe"] .vibe-chip {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 10px 11px 10px 58px;
  border-color: transparent;
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: #fff;
  background: #1d1830;
  font-size: 14.5px;
  line-height: 1.15;
  font-weight: 600;
  text-align: left;
}
.widget-sheet[data-module="vibe"] .vibe-chip::before {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.widget-sheet[data-module="vibe"] .vibe-chip::after {
  position: absolute;
  left: 58px;
  top: 31px;
  color: rgba(255, 255, 255, .5);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 400;
}
.widget-sheet[data-module="vibe"] .vibe-chip[data-vibe="lurker"]::before {
  content: "👀";
  background: linear-gradient(135deg, #221c31, #3a2f55);
}
.widget-sheet[data-module="vibe"] .vibe-chip[data-vibe="lurker"]::after {
  content: "reads everything, posts when it matters";
}
.widget-sheet[data-module="vibe"] .vibe-chip[data-vibe="commentator"]::before {
  content: "💬";
  background: linear-gradient(135deg, #c3319a, #8e47ff);
}
.widget-sheet[data-module="vibe"] .vibe-chip[data-vibe="commentator"]::after {
  content: "always got a take ready";
}
.widget-sheet[data-module="vibe"] .vibe-chip[data-vibe="main character"]::before {
  content: "★";
  color: #fff;
  background: linear-gradient(135deg, #f3fc2f, #ff8964);
}
.widget-sheet[data-module="vibe"] .vibe-chip[data-vibe="main character"]::after {
  content: "the timeline follows you";
}
.vibe-grid {
  display: grid;
  gap: 11px;
}
.vibe-card {
  min-height: 58px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #fff;
  background: #1d1830;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.vibe-card:active { transform: scale(.98); }
.vibe-card.selected { border-color: var(--coral); }
.vibe-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.vibe-icon.lurker { background: linear-gradient(135deg, #221c31, #3a2f55); }
.vibe-icon.commentator { background: linear-gradient(135deg, #c3319a, #8e47ff); }
.vibe-icon.main { background: linear-gradient(135deg, #f3fc2f, #ff8964); }
.vibe-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vibe-copy strong {
  color: #fff;
  font-size: 14.5px;
  line-height: 1.15;
  font-weight: 600;
}
.vibe-copy small {
  margin-top: 1px;
  color: rgba(255, 255, 255, .5);
  font-size: 11.5px;
  line-height: 1.2;
}
.widget-sheet[data-module="goals"] .goal-card.selected,
.widget-sheet[data-module="vibe"] .vibe-chip.selected {
  border-color: var(--coral);
  background: #1d1830;
}
.widget-sheet[data-module="interests"] .vibe-chip.selected,
.widget-sheet[data-module="tags"] .vibe-chip.selected,
.widget-sheet[data-module="create"] .vibe-chip.selected {
  border-color: transparent;
  color: #180a04;
  background: var(--xp);
}

.field, .composer {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--field);
}
.field { padding: 0 12px; }
textarea.field { min-height: 86px; padding: 11px 12px; resize: vertical; line-height: 1.4; }
.field::placeholder, textarea::placeholder { color: rgba(237, 234, 244, .32); }
.field-row { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 8px; }
.field-note { margin: 6px 2px 10px; color: rgba(237, 234, 244, .42); font-size: 11px; }
.field-note.ok { color: var(--success-soft); }

.tag-receipt { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-receipt span {
  padding: 7px 13px;
  border: 1px solid rgba(243, 252, 47, .4);
  border-radius: 999px;
  color: var(--xp);
  background: rgba(243, 252, 47, .08);
  font-size: 13px;
  font-weight: 600;
}
.handle-field {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: #0d0a18;
}
.handle-field > span { color: var(--coral); font-size: 15px; font-weight: 600; }
.handle-field .field {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  outline: 0;
}
.readback {
  display: block;
  padding: 4px 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: #0d0a18;
}
.readback-row {
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  border-radius: 0;
  background: none;
  font-size: 12px;
}
.readback-row:last-child { border-bottom: 0; }
.readback-row span:first-child {
  width: 64px;
  flex: 0 0 64px;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10.5px;
  font-weight: 700;
}
.readback-row strong {
  min-width: 0;
  flex: 1 1 auto;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.edit-link, .text-link {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--coral);
  padding: 7px;
  font-size: 12px;
}

.profile-label { color: rgba(255, 255, 255, .45); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.face-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; overflow: visible; padding-bottom: 3px; }
.face-choice { width: 48px; height: 48px; flex: none; padding: 0; overflow: hidden; border: 2.5px solid rgba(255, 255, 255, .14); border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff8964, #8e47ff); font-size: 16px; font-weight: 700; }
.face-choice.selected { border-color: var(--coral); }
.face-choice img { width: 100%; height: 100%; object-fit: cover; }
.handle-ideas { display: flex; flex-wrap: wrap; gap: 7px; }
.handle-ideas button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .05);
  font-size: 12.5px;
}

.phone-field { display: flex; align-items: center; gap: 8px; }
.phone-field > span {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  color: #fff;
  background: #0d0a18;
  font-size: 13px;
  font-weight: 700;
}
.phone-field .field { min-width: 0; flex: 1 1 auto; }

.people-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.widget-sheet[data-module="people"] .person-card {
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: left;
}
.person-avatar { width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: var(--purple); }
.widget-sheet[data-module="people"] .person-avatar { width: 40px; height: 40px; flex: 0 0 40px; }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-copy { min-width: 0; flex: 1 1 auto; }
.person-copy strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.person-copy small { display: block; margin-top: 1px; color: rgba(255, 255, 255, .5); font-size: 11.5px; line-height: 1.3; }
.person-copy small.matched { color: var(--xp); }
.person-action {
  min-width: 0;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
}
.widget-sheet[data-module="people"] .person-card.selected {
  border: 0;
  background: none;
}
.widget-sheet[data-module="people"] .person-card.selected .person-action {
  border-color: transparent;
  color: #180a04;
  background: var(--xp);
  font-weight: 700;
}

.post-preview { margin-bottom: 10px; padding: 11px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 13px; background: var(--goal); }
.post-author { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.post-author .person-avatar { width: 28px; height: 28px; }
.post-preview p { margin: 0; color: rgba(237, 234, 244, .78); font-size: 12.5px; line-height: 1.42; }
.draft-row { display: flex; flex-wrap: wrap; gap: 7px; overflow: visible; margin: 0; }
.composer-drafts button {
  max-width: 100%;
  padding: 8px 12px;
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 13px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .04);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: left;
}
.community-ideas button {
  padding: 6px 12px;
  border: 1px dashed rgba(243, 252, 47, .45);
  border-radius: 999px;
  color: var(--xp);
  background: rgba(243, 252, 47, .06);
  font-size: 12.5px;
  font-weight: 600;
}
.composer-mic-note { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .5); font-size: 11px; }
.composer-mic-note i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.composer-mic-note i.live { background: var(--success); }

.otp-destination { margin: 0; color: rgba(237, 234, 244, .55); font-size: 12px; }
.otp-boxes { display: flex; gap: 7px; justify-content: center; }
.otp-boxes span {
  width: 44px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  color: #fff;
  background: #0d0a18;
  font-size: 22px;
  font-weight: 700;
}
@keyframes otp-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.otp-boxes.error { animation: otp-shake 260ms ease both; }
.otp-entry { text-align: center; letter-spacing: .2em; font-size: 15px; font-weight: 600; }
.otp-wrap { position: relative; }
.otp-input {
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  color: var(--ink);
  background: var(--field);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: .32em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.otp-input::placeholder { font-size: 14px; font-weight: 600; letter-spacing: .05em; }
.otp-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }

.primary, .secondary {
  height: 44px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .2s, transform .15s;
}
.primary {
  width: 100%;
  margin-top: 12px;
  border: 0;
  color: #180a04;
  background: linear-gradient(92deg, #ff9a6a, var(--coral-deep));
}
.primary:disabled { opacity: .4; }
.primary:not(:disabled):active, .secondary:not(:disabled):active { transform: scale(.97); }
.secondary { padding: 0 16px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; background: transparent; }
.secondary.destructive { border-color: rgba(255, 123, 114, .5); color: #ff7b72; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.action-row .primary { margin-top: 0; }
.action-row .secondary { width: 100%; }
.name-skip { display: block; margin: 2px auto -6px; }

.remember-card {
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: #0d0a18;
}
.remember-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #8e47ff, #c3319a);
}
.remember-icon svg { width: 18px; height: 18px; }
.remember-card strong,
.remember-card small { display: block; }
.remember-card strong { color: #fff; font-size: 13.5px; font-weight: 600; }
.remember-card small { margin-top: 3px; color: rgba(255, 255, 255, .5); font-size: 11.5px; line-height: 1.4; }

.recap-inline-tree {
  height: auto;
  overflow: visible;
  display: flex;
  justify-content: center;
}
.recap-tree-graphic {
  position: relative;
  width: 230px;
  height: 269px;
  margin: 2px 0 12px;
}
.recap-tree-graphic > svg {
  width: 230px;
  height: 269px;
  display: block;
  overflow: visible;
}
.recap-inline-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.recap-inline-metrics span {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  text-align: left;
}
.recap-inline-metrics strong,
.recap-inline-metrics small { display: block; }
.recap-inline-metrics small {
  color: rgba(255, 255, 255, .45);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.recap-inline-metrics strong { color: #fff; font-size: 19px; font-weight: 600; }
.recap-inline-metrics .league strong { color: var(--xp); }
.recap-inline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.recap-streak,
.recap-verified {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.recap-streak {
  border: 1px solid rgba(99, 210, 107, .32);
  color: var(--success-soft);
  background: rgba(99, 210, 107, .12);
}
.recap-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .05);
}
.recap-verified svg { width: 12px; height: 12px; }

.tag-instruction {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 600;
}
.widget-sheet[data-module="tags"] .chip-wrap { gap: 7px; }
.widget-sheet[data-module="tags"] .vibe-chip,
.widget-sheet[data-module="create"] .vibe-chip {
  min-height: 34px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
}

.input-area {
  position: relative;
  z-index: 50;
  min-width: 0;
  margin: 0;
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.call-island { display: contents; }
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  overflow: visible;
}
.talk-row { display: grid; grid-template-columns: 44px 1fr 44px; gap: 7px; }
.talk-btn, .send-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.talk-btn { position: relative; color: var(--ink); background: rgba(13, 10, 24, .82); border: 1px solid rgba(255, 255, 255, .12); }
.talk-btn::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border: 2px solid var(--bg); border-radius: 50%; background: var(--success); }
.talk-btn.off::after { background: rgba(255, 255, 255, .25); }
.talk-btn.pending::after { background: var(--xp); }
.talk-btn svg, .send-btn svg { width: 18px; height: 18px; }
.talk-btn:disabled { opacity: .52; }
.talk-input { min-width: 0; height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; color: var(--ink); background: rgba(13, 10, 24, .8); }
.send-btn { color: #180a04; background: linear-gradient(92deg, var(--coral), var(--coral-deep)); }
.send-btn:disabled { opacity: .35; }
.voice-hint {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(237, 234, 244, .58);
  font-size: 11px;
}
.voice-hint .talk-btn { flex: none; }
.voice-hint.preview {
  min-height: 32px;
  color: rgba(237, 234, 244, .42);
  letter-spacing: .02em;
}
.voice-hint.secure { min-height: 32px; }
.voice-lane {
  min-height: 44px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 9px;
  align-items: center;
  color: rgba(237, 234, 244, .58);
  font-size: 11px;
}
.voice-lane[data-listening="false"] { color: rgba(237, 234, 244, .46); }
.type-instead {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  color: var(--coral);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.dock-row {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.input-area[data-lane="type"] .dock-row {
  justify-content: flex-start;
  gap: 8px;
}
.input-area[data-lane="voice"] .dock-hint { flex: 0 1 auto; }
.input-area[data-lane="type"] .dock-hint { flex: 1 1 auto; padding-left: 6px; }
.lane-toggle {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 99px;
  background: rgba(12, 8, 20, .6);
}
.lane-segment {
  position: relative;
  width: 54px;
  height: 44px;
  min-width: 54px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 99px;
  color: rgba(255, 255, 255, .6);
  background: transparent;
  box-shadow: none;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.lane-segment svg { width: 17px; height: 17px; stroke: currentColor; }
.lane-segment[aria-pressed="true"] {
  color: #180a04;
  background: linear-gradient(140deg, #ff9a6a, #ff6f4f);
  box-shadow: 0 4px 14px rgba(255, 111, 79, .4);
}
.lane-segment.mic.muted[aria-pressed="true"] {
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 123, 114, .16);
  box-shadow: inset 0 0 0 1.5px rgba(255, 123, 114, .5);
}
.lane-segment:active { transform: scale(.95); }
.dock-hint {
  min-width: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(5, 3, 10, .6);
}
.input-area[data-dedicated="true"] .dock-hint { color: rgba(255, 255, 255, .5); }
.dock-field {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dock-field .talk-input {
  min-width: 0;
  flex: 1 1 auto;
  height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 99px;
  color: #fff;
  background: rgba(13, 10, 24, .75);
  font-size: 14.5px;
  backdrop-filter: blur(6px);
}
.dock-field .send-btn {
  flex: 0 0 44px;
  transition: opacity .2s, transform .15s;
}
.dock-field .send-btn:not(:disabled):active { transform: scale(.92); }
.home-indicator { width: 120px; height: 5px; margin: 5px auto 0; border-radius: 999px; background: rgba(255, 255, 255, .28); }

/* Privacy */
.modal-backdrop {
  position: absolute;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(5, 4, 9, .82);
  backdrop-filter: none;
  animation: fade-in .2s ease both;
}
.privacy {
  width: 100%;
  max-height: min(88%, calc(var(--visual-viewport-height, 100dvh) - 16px));
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px calc(26px + var(--safe-bottom));
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 22px 22px 0 0;
  background: var(--sheet);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .55);
  animation: rise .35s cubic-bezier(.32, .72, 0, 1) both;
}
.privacy .sheet-grab {
  margin: 0 auto 2px;
}
.privacy h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.01em;
}
.privacy > p { margin: 0 0 14px; color: rgba(237, 234, 244, .55); font-size: 13px; line-height: 1.45; }
.privacy-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.privacy-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  line-height: 1.5;
}
.privacy-row i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 50%;
  color: transparent;
  background: var(--purple);
  font-size: 0;
}
.privacy-actions {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.privacy-actions .primary,
.privacy-actions .secondary {
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}
.privacy-actions .secondary { border-color: rgba(255, 255, 255, .28); }

/* Session transcript */
.transcript-drawer {
  width: 100%;
  max-height: 82%;
  display: flex;
  flex-direction: column;
  padding: 12px 16px calc(22px + var(--safe-bottom));
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 24px 24px 0 0;
  background: var(--sheet);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .55);
  animation: rise .35s cubic-bezier(.32, .72, 0, 1) both;
}
.transcript-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.transcript-head span {
  color: rgba(237, 234, 244, .45);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.transcript-head h2 { margin: 2px 0 0; font-size: 23px; }
.transcript-history {
  min-height: 100px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.transcript-line {
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 13px;
  color: var(--ink);
  background: var(--caption);
}
.transcript-line.user {
  align-self: flex-end;
  color: #241007;
  background: linear-gradient(92deg, #ff9a6a, #ff6f4f);
}
.transcript-line span {
  display: block;
  margin-bottom: 3px;
  opacity: .55;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.transcript-line p { margin: 0; font-size: 12.5px; line-height: 1.4; }
.transcript-empty { color: rgba(237, 234, 244, .5); font-size: 13px; text-align: center; }

/* Presenter */
.presenter {
  position: absolute;
  z-index: 120;
  inset: 0;
  padding: calc(24px + var(--safe-top)) 16px calc(22px + var(--safe-bottom));
  overflow: auto;
  color: var(--ink);
  background: rgba(5, 4, 9, .96);
  backdrop-filter: blur(18px);
  animation: fade-in .2s ease both;
}
.presenter-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.presenter h2 { margin: 0; font-size: 20px; }
.presenter h3 { margin: 18px 0 8px; color: rgba(237, 234, 244, .52); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.presenter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.presenter button { min-height: 44px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 11px; color: var(--ink); background: rgba(255, 255, 255, .045); }
.presenter pre { max-height: 210px; overflow: auto; padding: 10px; border-radius: 10px; color: #d9c8ff; background: #0d0a18; font: 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.close-presenter { width: 44px; min-height: 44px !important; border-radius: 50% !important; }

.verification-steps { display: grid; gap: 8px; margin: 12px 0 14px; }
.verification-steps > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; align-items: center; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .035); }
.verification-steps span { grid-row: 1 / span 2; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--xp); background: rgba(243, 252, 47, .1); font-size: 11px; font-weight: 850; }
.verification-steps strong { font-size: 12px; }
.verification-steps small { color: var(--muted); font-size: 10px; }
.presence-orbit { position: relative; display: grid; width: 116px; height: 116px; margin: 10px auto 16px; place-items: center; border: 1px solid rgba(142, 71, 255, .45); border-radius: 50%; box-shadow: 0 0 0 9px rgba(142, 71, 255, .07); }
.presence-orbit::before { position: absolute; inset: -6px; border: 2px solid transparent; border-top-color: var(--coral); border-radius: 50%; content: ""; animation: orbit 1.8s linear infinite; }
.presence-orbit.passed::before { border-color: var(--success); animation: none; }
.presence-orbit img { width: 80px; height: 80px; }
.presence-orbit span { position: absolute; right: -2px; bottom: 5px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #102814; background: var(--success); }
.presence-orbit span:empty { display: none; }
.presence-orbit svg { width: 18px; height: 18px; }
.visual-code { margin: 12px 0; padding: 14px; border: 1px solid rgba(243, 252, 47, .32); border-radius: 14px; color: var(--xp); background: rgba(243, 252, 47, .07); font: 850 34px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .28em; text-align: center; }
.badge-success-mark { display: grid; width: 64px; height: 64px; margin: 4px auto 12px; place-items: center; border-radius: 50%; color: #102814; background: var(--success); box-shadow: 0 0 0 10px rgba(99, 210, 107, .09); }
.badge-success-mark svg { width: 34px; height: 34px; }

@keyframes orbit { to { transform: rotate(1turn); } }

/* Recap and feed */
.recap {
  height: 100%;
  overflow: auto;
  padding: calc(56px + var(--safe-top)) 18px calc(28px + var(--safe-bottom));
  background:
    radial-gradient(100% 48% at 50% 0%, rgba(142, 71, 255, .28), transparent 70%),
    #050409;
}
.recap-eyebrow { color: var(--xp); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.recap h1 { margin: 5px 0 6px; font-size: 30px; line-height: 1.05; letter-spacing: -.035em; }
.recap-sub { margin: 0 0 18px; color: rgba(237, 234, 244, .55); font-size: 13px; }
.tree {
  position: relative;
  height: 260px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 90%, rgba(99, 210, 107, .18), transparent 38%),
    linear-gradient(155deg, rgba(142, 71, 255, .14), rgba(255, 137, 100, .08)),
    var(--sheet);
}
.tree svg { width: 100%; height: 100%; }
.recap-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
.metric { padding: 10px 6px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .035); }
.metric strong { display: block; font-size: 18px; }
.metric span { display: block; margin-top: 2px; color: rgba(237, 234, 244, .43); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 7px 10px; border: 1px solid rgba(99, 210, 107, .3); border-radius: 999px; color: var(--success-soft); background: rgba(99, 210, 107, .08); font-size: 11px; font-weight: 750; }

.feed {
  height: 100%;
  overflow: auto;
  color: #edeaf4;
  background: #0a0714;
}
.feed-safe-spacer { height: calc(52px + var(--safe-top)); flex: 0 0 auto; }
.feed-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; color: #fff; background: #0a0714; }
.feed-brand { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.feed-head-actions { display: flex; align-items: center; gap: 14px; }
.feed-head-actions svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.feed-avatar { display: grid; width: 32px; height: 32px; overflow: hidden; place-items: center; border-radius: 50%; color: #fff; background: #8e47ff; font-size: 13px; font-weight: 700; }
.feed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial,
.suggest-initial { display: grid; width: 100%; height: 100%; place-items: center; color: #fff; }
.feed-dm-row { display: flex; gap: 12px; align-items: flex-start; padding: 2px 16px 12px; overflow-x: auto; }
.feed-dm-person { display: flex; width: 52px; flex: 0 0 52px; flex-direction: column; align-items: center; gap: 4px; }
.feed-dm-person > span:last-child { max-width: 56px; overflow: hidden; color: rgba(255, 255, 255, .7); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.feed-dm-avatar { display: grid; width: 52px; height: 52px; overflow: hidden; place-items: center; border: 2px solid rgba(255, 255, 255, .18); border-radius: 50%; color: #fff; background: #501a65; font-size: 16px; font-weight: 700; }
.feed-dm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-dm-avatar.auntea { position: relative; border-color: #f3fc2f; }
.feed-dm-avatar.auntea img { width: 44px; height: 50px; margin-top: 13px; object-fit: contain; }
.feed-dm-avatar.auntea::after { position: absolute; right: 2px; bottom: 2px; width: 10px; height: 10px; border: 2px solid #0a0714; border-radius: 50%; background: #63d26b; content: ""; }
.feed-body { display: flex; flex-direction: column; gap: 10px; padding: 0 12px calc(14px + var(--safe-bottom)); }
.restore-banner { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid rgba(99, 210, 107, .28); border-radius: 14px; background: rgba(99, 210, 107, .12); color: #c9f5cc; }
.restore-banner > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #63d26b; color: #102814; }
.restore-banner svg { width: 17px; height: 17px; }
.restore-banner strong, .restore-banner small { display: block; }
.restore-banner strong { font-size: 14px; }
.restore-banner small { margin-top: 2px; color: rgba(255, 255, 255, .55); font-size: 11px; }
.feed-card { padding: 12px 13px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: #17131f; }
.feed-card.pinned { border-color: rgba(243, 252, 47, .35); }
.feed-label { color: rgba(255, 255, 255, .45); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.feed-card p { margin: 6px 0 0; color: rgba(255, 255, 255, .85); font-size: 13.5px; line-height: 1.5; }
.feed-card.pinned p { margin-top: 8px; color: #edeaf4; font-size: 14px; }
.feed-author { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13.5px; font-weight: 600; }
.feed-pinned { margin-left: auto; padding: 2px 8px; border: 1px solid rgba(243, 252, 47, .4); border-radius: 999px; color: #f3fc2f; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.feed-reactions { display: flex; gap: 16px; margin-top: 9px; color: rgba(255, 255, 255, .45); font-size: 11.5px; }
.feed-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; border: 1.5px dashed rgba(255, 255, 255, .18); border-radius: 16px; text-align: center; }
.feed-placeholder strong { color: rgba(255, 255, 255, .55); font-size: 12.5px; font-weight: 600; }
.feed-placeholder span { max-width: 250px; color: rgba(255, 255, 255, .35); font-size: 11px; line-height: 1.5; }
.feed-link,
.feed-restart { align-self: center; padding: 11px 18px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: rgba(255, 255, 255, .6); background: none; font: 600 12.5px/1 inherit; text-decoration: none; white-space: nowrap; cursor: pointer; }

/* Responsive anatomy: the app is always full-bleed, never a phone bezel. */
@media (min-width: 521px) {
  .status-row, .home-indicator { display: none; }
  .incoming { justify-content: center; padding: 36px; }
  .call-top {
    top: 20px;
    left: 24px;
    right: 24px;
  }
  .call-menu { top: 56px; right: 24px; }
  .call-bottom {
    top: 74px;
    left: 50%;
    right: auto;
    width: min(680px, 94vw);
    transform: translateX(-50%);
    overflow: hidden;
    justify-content: flex-end;
  }
  .receipt-toast { left: 0; right: 0; width: fit-content; max-width: min(680px, 94vw); margin-inline: auto; }
  .net-banner, .sound-banner { max-width: min(680px, 94vw); }
  .avatar-stage { inset: 0; display: block; }
  .avatar-stage svg {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 408px;
    height: 480px;
  }
  .thinking-dots { top: calc(40% + 252px); bottom: auto; }
  .privacy { width: min(680px, 94vw); margin: 0 auto 22px; border-radius: 22px; }
}

@media (max-height: 720px) and (max-width: 520px) {
  .avatar-stage { inset: 60px 0 132px; transform: scale(.82); }
  .captions {
    min-height: 76px;
    padding-bottom: 8px;
  }
  .caption-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .incoming { padding-top: calc(42px + var(--safe-top)); padding-bottom: calc(28px + var(--safe-bottom)); }
}

@media (max-height: 540px) and (max-width: 520px) {
  .avatar-stage { inset: 48px 0 190px; transform: scale(.58); }
  .self-view { display: none; }
  .input-area[data-dedicated="true"],
  .input-area[data-lane="voice"] {
    flex-direction: row;
    align-items: center;
  }
  .input-area[data-dedicated="true"] .quick-chips,
  .input-area[data-lane="voice"] .quick-chips {
    flex: 0 1 auto;
    flex-wrap: nowrap;
  }
  .input-area[data-dedicated="true"] .quick-chip:not(:first-child),
  .input-area[data-lane="voice"] .quick-chip:not(:first-child),
  .input-area[data-lane="type"][data-dedicated="false"] .quick-chips {
    display: none;
  }
  .input-area[data-dedicated="true"] .dock-row,
  .input-area[data-lane="voice"] .dock-row {
    width: auto;
    min-width: 118px;
    flex: 1 1 auto;
  }
  .input-area[data-dedicated="true"] .dock-hint,
  .input-area[data-lane="voice"] .dock-hint { display: none; }
  .stage::before { height: 72px; }
  .stage::after { height: 42%; }
  .captions { min-height: 70px; }
  .sheet-body > .widget-title,
  .sheet-body > .widget-sub { display: none; }
  .sheet-body {
    max-height: min(360px, max(1px, calc(var(--visual-viewport-height, 100dvh) - 420px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
[data-reduce="on"] *, [data-reduce="on"] *::before, [data-reduce="on"] *::after {
  animation: none !important;
  transition-duration: .01ms !important;
}

/* ── 06 Returning + Verified Badge components ─────────────────────────── */
.chip-rail { grid-column: 1; justify-self: start; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
  border-radius: 999px; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06);
  animation: fade-in .3s ease;
}
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.status-chip.nom { color: #c7a8ff; background: rgba(142, 71, 255, .16); border-color: rgba(142, 71, 255, .45); }
.status-chip.nom::before { background: #8e47ff; }
.status-chip.ok { color: #9fdca4; background: rgba(99, 210, 107, .14); border-color: rgba(99, 210, 107, .45); }
.status-chip.ok::before { background: #63d26b; }

.nom-card {
  display: flex; align-items: center; gap: 12px;
  background: #0d0a18; border: 1px solid rgba(142, 71, 255, .35);
  border-radius: 16px; padding: 12px 13px;
}
.nom-card.earned { border-color: rgba(99, 210, 107, .4); }
.nom-face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #8e47ff; flex-shrink: 0; }
.nom-card.earned .nom-face { border-color: #63d26b; }
.nom-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nom-copy strong { font-size: 15px; font-weight: 700; color: #fff; }
.nom-copy small { font-size: 12px; color: rgba(255, 255, 255, .55); }
.nom-chip {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
  color: #c7a8ff; background: rgba(142, 71, 255, .16); border: 1px solid rgba(142, 71, 255, .45);
  border-radius: 999px; padding: 4px 9px;
}
.nom-chip.earned { color: #0f2a14; background: #9fdca4; border-color: transparent; }

.consent-rows { display: flex; flex-direction: column; gap: 8px; }
.consent-rows > div { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: rgba(237, 234, 244, .85); }
.consent-rows > div > span { width: 6px; height: 6px; border-radius: 50%; background: #8e47ff; flex-shrink: 0; margin-top: 6px; }

.vsteps { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 4px; }
.vstep {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; padding: 11px 12px;
}
.vstep.run { background: rgba(142, 71, 255, .1); border-color: rgba(142, 71, 255, .4); }
.vstep-mark {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .4);
}
.vstep.run .vstep-mark { border-color: #8e47ff; color: #c7a8ff; }
.vstep.done .vstep-mark { border-color: #63d26b; color: #9fdca4; background: rgba(99, 210, 107, .16); }
.vstep-label { flex: 1; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.vstep.run .vstep-label, .vstep.done .vstep-label { color: #fff; }
.vstep-state { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: rgba(255, 255, 255, .35); }
.vstep.run .vstep-state { color: #c7a8ff; }
.vstep.done .vstep-state { color: #9fdca4; }

.challenge-cells { display: flex; gap: 9px; justify-content: center; padding: 2px 0 4px; }
.challenge-cell {
  width: 60px; height: 74px; border-radius: 14px;
  background: linear-gradient(180deg, #241536, #150c22);
  border: 1.5px solid rgba(142, 71, 255, .5);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: #fff;
}

@keyframes scan-sweep { 0% { transform: translateY(-100%); } 100% { transform: translateY(220%); } }
.pip-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(142, 71, 255, .55), transparent);
  animation: scan-sweep 1.5s linear infinite;
}

/* R6: terminal actions are a non-scrolling sibling of the R5 body. */
.sheet-actions {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 11px 14px 14px;
  margin: 0;
  background: var(--sheet);
}
.sheet-actions.action-row { grid-template-columns: 1fr 1fr; }
.sheet-actions .primary { margin-top: 0; }
.sheet-actions .secondary { width: 100%; }
.widget-sheet[data-module="recap"] .sheet-actions .primary {
  height: 48px;
  min-height: 48px;
  font-size: 16px;
  box-shadow: 0 10px 26px rgba(255, 111, 79, .35);
}

/* ── Card-owned answer surface ────────────────────────────────────────────
   The structured card carries the listening indicator, the choices, and its
   own "Type an answer" route, so the global dock stands down while it is up. */
.answer-listen { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.listen-row {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 5px 11px 5px 8px; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; background: rgba(12, 8, 20, .5); color: var(--ink);
  font-size: 12px; font-weight: 650; letter-spacing: .01em; min-height: 32px;
}
.listen-row:disabled { opacity: .55; cursor: default; }
.listen-row.live { border-color: rgba(99, 210, 107, .38); background: rgba(99, 210, 107, .09); }
.listen-mic { display: flex; width: 15px; height: 15px; color: rgba(237, 234, 244, .75); }
.listen-row.live .listen-mic { color: var(--success); }
.listen-row .listen-mic svg { width: 100%; height: 100%; }
.listen-label { white-space: nowrap; }
.listen-wave { display: inline-flex; align-items: center; gap: 2.5px; height: 18px; }
.listen-wave .wave-bar {
  width: 2.5px; height: 3px; border-radius: 999px; background: var(--success);
  transition: height 90ms linear;
}
.listen-wave.still .wave-bar { background: rgba(237, 234, 244, .3); height: 3px; }
.answer-lead { margin: 0; color: rgba(237, 234, 244, .58); font-size: 12.5px; line-height: 1.4; }

.answer-divider { height: 1px; margin: 13px 0 10px; background: rgba(255, 255, 255, .09); }
.type-answer {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px; background: rgba(255, 255, 255, .03);
  color: rgba(237, 234, 244, .82); font-size: 13.5px; font-weight: 600;
}
.type-answer:hover { border-color: rgba(255, 255, 255, .26); color: var(--ink); }
.type-answer svg { width: 17px; height: 17px; }

.composer-eyebrow {
  margin: 0 0 9px; color: rgba(237, 234, 244, .45);
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.composer-field { display: flex; align-items: center; gap: 8px; }
.composer-field .field { flex: 1; min-width: 0; }
.composer-field .send-btn { flex: none; width: 44px; height: 44px; }
.card-answer .text-link, #card-composer-back { display: block; margin: 11px auto 0; }

.confirm-lead { margin: 2px 0 4px; color: var(--ink); font-size: 15px; line-height: 1.45; }
.confirm-lead strong { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .listen-wave .wave-bar { transition: none; height: 3px !important; }
}
.sheet-actions.type-answer-row,
.sheet-actions.composer-back-row { display: block; }
.sheet-actions.type-answer-row { border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 11px; }
.sheet-actions.composer-back-row .text-link { display: block; margin: 0 auto; }

/* Phase machine: the card stays mounted while auntea speaks, but no input
   lands until awaiting_response. No dimming — a visibility flash on every
   utterance would be worse than the lock it communicates. */
.widget-sheet[data-phase-locked="true"] { pointer-events: none; }

/* Caption rule: the question stays visible while awaiting an answer (it is
   only ever replaced by the next turn), and an empty caption region reserves
   no space — no empty slab. The 88px floor exists only while text is showing,
   so geometry never jumps between utterances. */
.captions[data-empty="true"] { min-height: 0; padding-top: 0; padding-bottom: 0; }

/* History surface: the pop-open text lane. The composer footer mirrors the
   card's phase lock; private steps route to their dedicated field instead. */
.history-compose { flex: 0 0 auto; border-top: 1px solid rgba(255,255,255,.09); padding: 12px 16px calc(14px + var(--safe-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; background: var(--sheet); }
.history-step { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.history-row { display: flex; align-items: center; gap: 9px; }
.history-row input { flex: 1; min-width: 0; min-height: 44px; background: var(--field, #0d0a18); border: 1px solid rgba(255,255,255,.13); border-radius: 12px; padding: 11px 13px; font-size: 15px; color: var(--ink); }
.history-row input:disabled { opacity: .5; }
.history-private { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.65); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.transcript-line { position: relative; }
.transcript-line .history-edit { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* The stage-left / task-right split is RETIRED (01 Foundations revision). The
   answer card (R5) is the primary surface and must never move off-centre. At
   every width the app is ONE centered column — character, captions, the answer
   card, its action, the landing strip — governed by the min-width:521px block
   above; short and short-wide viewports (incl. 1560×478) reframe the stage via
   the collapse ladder below, not by splitting. A right-hand rail is reserved
   for secondary surfaces only (the transcript), never the answer. */

/* ── N2d: 44×44 hit areas. Visuals stay small where the design wants them
   small; the touch target does not. Every extended control is positioned so
   the pseudo-element grows its interactive box. */
.mini-btn, .close-presenter, .edit-link, .text-link, .call-pill,
.transcript-line .history-edit, #history-send { position: relative; }
.mini-btn::after, .close-presenter::after, .edit-link::after, .text-link::after,
.call-pill::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, 100%);
  height: max(44px, 100%);
  transform: translate(-50%, -50%);
}

/* Canonical card footer: an optional primary action above the landing strip,
   one pinned block. The mic chip is a 44px honest control (slash = muted);
   the voice-energy display stays on the character (steam). */
.canonical-foot { display: flex; flex-direction: column; gap: 9px; }
.strip-row { display: flex; align-items: center; gap: 9px; }
.strip-row .type-answer { flex: 1; }
.strip-mic {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.strip-mic[data-mic="live"] { border-color: rgba(99, 210, 107, .55); color: var(--success-soft, #9fdca4); }
.strip-mic[data-mic="muted"] .control-slash, .strip-mic[data-mic="off"] .control-slash { opacity: 1; }
.strip-mic[data-mic="off"] { opacity: .45; cursor: default; }
.strip-mic .control-slash { opacity: 0; }
.strip-row[data-strip="staged"] {
  background: rgba(255, 137, 100, .12);
  border: 1px solid var(--coral);
  border-radius: 13px;
  padding: 9px 10px 9px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.strip-quote { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-send { flex: 0 0 44px; width: 44px; height: 44px; }

/* The collapse ladder for short heights above phone width — landscape phones
   AND short-wide desktop, incl. the 1560×478 regression class. No upper width
   bound: the split used to own ≥1180px short-wide; now one centered column
   does, and the stage reframes (R2 yields first) so the answer card keeps real
   height with its footer pinned. The phone-portrait sheet formula (vvh − 380px)
   would collapse to a sliver here, so R5 gets a taller cap and scrolls. */
@media (min-width: 521px) and (max-height: 560px) {
  .avatar-stage svg { width: 240px; height: auto; top: 30%; }
  .captions { min-height: 56px; padding-bottom: 6px; }
  .call-bottom { top: 12px; }
  .sheet-body {
    max-height: max(120px, calc(var(--visual-viewport-height, 100dvh) - 210px));
  }
}
