:root {
  color-scheme: dark;
  --bg: #05080c;
  --ink: #eef8ff;
  --muted: #8aa4b3;
  --quiet: #6b8492;
  --line: rgba(120, 210, 255, 0.16);
  --glass: rgba(7, 14, 20, 0.72);
  --glass-strong: rgba(4, 10, 16, 0.86);
  --accent: #6ce7ff;
  --accent-2: #7ef3c8;
  --warn: #ffc85a;
  --danger: #ff7b7b;
  --ok: #6ef3c5;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 50% 10%, rgba(40, 140, 190, 0.18), transparent 55%),
    #020509 url("/assets/visual/helix_background.png") center / cover no-repeat fixed;
}

body.helix-ui-visual {
  background: #000;
  overflow: hidden;
}

body.helix-ui-classic .helix-visual-root,
body.helix-ui-classic .helix-visual-hud,
body.helix-ui-classic .helix-console-fab,
body.helix-ui-classic .helix-console-scrim {
  display: none !important;
}

body.helix-ui-classic .helix-console-panel {
  position: static;
  transform: none;
  width: auto;
  max-width: none;
  height: auto;
  box-shadow: none;
  background: transparent;
}

body.helix-ui-classic .helix-console-panel-bar {
  display: none;
}

body.helix-ui-classic .helix-console-panel .stage {
  min-height: 100dvh;
  padding: 18px;
  place-items: center;
}

.helix-visual-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  pointer-events: none;
}

.helix-visual-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.helix-visual-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (orientation: portrait) {
  body.helix-ui-visual .helix-visual-art {
    object-fit: cover;
  }
}

.helix-visual-hud {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 245, 255, 0.92);
  background: rgba(4, 12, 20, 0.55);
  border: 1px solid rgba(100, 210, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.helix-visual-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ce7ff;
  box-shadow: 0 0 10px rgba(108, 231, 255, 0.8);
}

.helix-visual-hud.hud-listening .helix-visual-hud-dot {
  animation: helix-visual-pulse 1.2s ease-in-out infinite;
}

.helix-visual-hud.hud-thinking .helix-visual-hud-dot {
  animation: helix-visual-pulse 0.55s ease-in-out infinite;
  background: #ffc85a;
  box-shadow: 0 0 10px rgba(255, 200, 90, 0.85);
}

.helix-visual-hud.hud-speaking .helix-visual-hud-dot {
  animation: helix-visual-pulse 0.35s ease-in-out infinite;
  background: #7ef3c8;
}

.helix-visual-hud.hud-armed .helix-visual-hud-dot {
  opacity: 0.65;
}

.helix-visual-hud.hud-tap-to-enable-voice .helix-visual-hud-dot {
  background: #ffc85a;
  box-shadow: 0 0 12px rgba(255, 200, 90, 0.9);
  animation: helix-visual-pulse 1.8s ease-in-out infinite;
}

@keyframes helix-visual-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 1; }
}

.helix-console-fab {
  position: fixed;
  z-index: 8000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  padding: 12px 18px;
  border: 1px solid rgba(108, 231, 255, 0.35);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(8, 20, 32, 0.92), rgba(4, 10, 18, 0.88));
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(40, 160, 220, 0.12);
}

.helix-console-fab:hover {
  border-color: rgba(108, 231, 255, 0.55);
}

.helix-console-scrim {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.helix-console-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  width: min(430px, 100vw);
  display: flex;
  flex-direction: column;
  background: rgba(2, 6, 10, 0.96);
  border-left: 1px solid rgba(120, 210, 255, 0.12);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  transition: transform 0.28s ease;
}

.helix-console-panel.open {
  transform: translateX(0);
}

.helix-console-panel-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.helix-console-panel-title {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.helix-console-panel-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.helix-console-panel .stage {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  place-items: stretch;
}

.helix-console-panel .device {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

.helix-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.helix-gate-overlay[hidden] {
  display: none !important;
}

.gate-overlay-card {
  position: relative;
  width: min(360px, 100%);
  margin: 0;
  inset: auto;
  border-radius: 20px;
  padding: 24px 20px 20px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
}

button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.device {
  position: relative;
  width: min(430px, 100%);
  height: min(920px, 100dvh);
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(5, 10, 16, 0.28), rgba(5, 10, 16, 0.72) 38%, rgba(3, 8, 12, 0.92)),
    transparent;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 24px 8px;
}

.clock {
  font-size: 34px;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
}

.place, .weather {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.weather {
  text-align: right;
  font-weight: 560;
  color: var(--ink);
}

.view {
  height: calc(100% - 210px);
  overflow: auto;
  padding: 8px 20px 24px;
}

.view.chat-view {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}

.greeting {
  margin: 10px 0 22px;
  max-width: 16ch;
  font-size: 34px;
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.greeting.short { max-width: none; font-size: 30px; }

.card {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card.feature { padding: 20px 18px 18px; }
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.quiet { color: var(--quiet); font-size: 12px; }
.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rows li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rows li:first-child { border-top: 0; }
.rows strong { display: block; font-size: 14px; font-weight: 600; }
.rows small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #4d6673;
  box-shadow: 0 0 0 4px rgba(77, 102, 115, 0.16);
  flex: 0 0 auto;
}
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(110, 243, 197, 0.14); }
.dot.wait { background: var(--warn); box-shadow: 0 0 0 4px rgba(255, 200, 90, 0.14); }
.dot.live { background: var(--accent); box-shadow: 0 0 0 4px rgba(108, 231, 255, 0.16); }

.transcript {
  flex: 1;
  overflow: auto;
  padding: 4px 2px 12px;
}

.bubble {
  max-width: 92%;
  margin: 0 0 10px;
  padding: 11px 13px;
  border-radius: 18px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.bubble.you {
  margin-left: auto;
  background: rgba(108, 231, 255, 0.14);
  border: 1px solid rgba(108, 231, 255, 0.2);
}

.bubble.helix {
  background: var(--glass-strong);
  border: 1px solid var(--line);
}

.bubble.trace {
  max-width: 100%;
  color: #9fd6e8;
  background: rgba(8, 24, 32, 0.45);
  border: 1px solid rgba(108, 231, 255, 0.15);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.bubble.trace.live {
  animation: helix-trace-pulse 1.8s ease-in-out infinite;
}

@keyframes helix-trace-pulse {
  0%, 100% { opacity: 0.72; border-color: rgba(108, 231, 255, 0.12); }
  50% { opacity: 1; border-color: rgba(108, 231, 255, 0.35); }
}

.bubble.sys, .bubble.err {
  max-width: 100%;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
}

.bubble.err { color: var(--danger); }

.composer {
  display: flex;
  gap: 8px;
}

.composer-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.composer-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.composer-attachments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.composer-attachments li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(22, 143, 191, 0.12);
  font-size: 12px;
  color: var(--muted);
}

.composer-attachments .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-attachments button {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.composer-attach {
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 8, 12, 0.7);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.composer-drag .composer-stack {
  outline: 1px dashed var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.composer-drop-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.composer input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 8, 12, 0.7);
  color: #fff;
  outline: none;
}

.composer button[type="submit"] {
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: #168fbf;
  color: #031017;
  font-weight: 700;
}

.composer button[type="submit"]:disabled { opacity: 0.45; }

.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.toggle:first-child { border-top: 0; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

.listen {
  position: absolute;
  inset: 0 0 92px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(3, 8, 12, 0.72);
  backdrop-filter: blur(16px);
  z-index: 4;
}

.orb {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 28%),
    radial-gradient(circle at 50% 50%, #6ce7ff, #103447 68%);
  box-shadow: 0 0 0 18px rgba(108, 231, 255, 0.08), 0 0 80px rgba(80, 210, 255, 0.35);
  animation: pulse 1.6s ease-in-out infinite;
}

.listen.thinking .orb { animation-duration: 2.4s; filter: saturate(0.8); }
.listen.speaking .orb {
  animation-duration: 1.1s;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 28%),
    radial-gradient(circle at 50% 50%, #7ef3c8, #104437 68%);
}

.listen-phase {
  margin: 22px 0 6px;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.listen-hint { margin: 0; color: var(--muted); font-size: 13px; }

.helix-status {
  position: absolute;
  right: 22px;
  bottom: calc(var(--safe-bottom) + 92px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.78;
}

.helix-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(110, 243, 197, 0.4);
  flex: 0 0 auto;
}

.helix-status.handsfree-armed {
  color: var(--ok);
  opacity: 0.88;
}

.helix-status.handsfree-armed .helix-status-label::after {
  content: " · HANDS-FREE";
  font-size: 9px;
  letter-spacing: 0.1em;
}

.helix-status.listening {
  color: var(--accent);
  opacity: 0.92;
  animation: helix-status-glow 2.4s ease-in-out infinite;
}

.helix-status.listening .helix-status-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(108, 231, 255, 0.55);
  animation: helix-status-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes helix-status-glow {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

@keyframes helix-status-dot-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(108, 231, 255, 0.45);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 14px rgba(108, 231, 255, 0.75);
  }
}

.dock {
  position: absolute;
  right: 16px;
  bottom: var(--safe-bottom);
  left: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 72px 1fr 1fr;
  align-items: end;
  height: 72px;
  padding: 8px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(6, 12, 18, 0.82);
  backdrop-filter: blur(18px);
}

.nav-btn, .mic {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-btn {
  height: 44px;
  color: #7d98a8;
}

.nav-btn.active { color: var(--accent); }
.nav-btn svg, .mic svg { width: 22px; height: 22px; fill: currentColor; }

.mic {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2ad2ff, #1178a6);
  color: #031017;
  box-shadow: 0 10px 24px rgba(18, 150, 200, 0.35);
}

.mic.hot {
  background: linear-gradient(180deg, #7ef3c8, #168f7a);
  box-shadow: 0 0 0 8px rgba(126, 243, 200, 0.16);
}

.gate {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px 110px;
  background: rgba(3, 8, 12, 0.78);
  backdrop-filter: blur(18px);
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.gate-form input {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 8, 12, 0.7);
  color: #fff;
  outline: none;
}

.gate-form button {
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: #168fbf;
  color: #031017;
  font-weight: 700;
}

.gate-err {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 13px;
}

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

@media (max-width: 520px) {
  .stage { padding: 0; }
  .device {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}


.conversation-banner {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(var(--safe-top, 0px) + 72px);
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 243, 200, 0.35);
  background: rgba(8, 20, 28, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.conversation-banner[hidden] {
  display: none !important;
}

.conversation-banner-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  flex: 1;
}

.conversation-end {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 120, 0.45);
  background: rgba(255, 80, 80, 0.12);
  color: #ffb4b4;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.mic.conversation-hot {
  box-shadow: 0 0 0 3px rgba(126, 243, 200, 0.35);
}

.camera-ctl {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(108, 231, 255, 0.08);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.camera-ctl[aria-pressed="true"] {
  background: rgba(126, 243, 200, 0.12);
  border-color: rgba(126, 243, 200, 0.35);
}

.camera-ctl-hint {
  margin: 10px 0 0;
  color: var(--warn);
  font-size: 13px;
  line-height: 1.4;
}

.camera-preview {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--safe-bottom) + 104px);
  z-index: 5;
  padding: 10px;
  border-radius: 16px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.camera-preview video {
  display: block;
  width: 100%;
  max-height: 140px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
}

.camera-close {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 123, 123, 0.18);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}



/* Email review — viewport modal above dock/mic (fixed stacking context) */
body.email-send-open {
  overflow: hidden;
}

.email-send-panel {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  background: rgba(2, 6, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.email-send-sheet {
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  max-height: min(92dvh, 920px);
  border-radius: 20px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.email-send-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--glass-strong);
}

.email-send-header h2 { margin: 0; font-size: 1.05rem; }

.email-send-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
}

.email-send-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.email-send-note { color: var(--quiet); font-size: 0.85rem; margin: 0 0 12px; }

.email-send-field { margin-bottom: 12px; }

.email-send-field label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.email-send-field pre,
.email-send-field p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
  line-height: 1.45;
}

.email-send-attachments { margin: 0; padding-left: 18px; font-size: 0.85rem; }

.email-send-footer {
  flex: 0 0 auto;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--glass-strong);
}

.email-send-err {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.email-send-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.email-send-confirm {
  flex: 1;
  min-width: 140px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #041018;
  font-weight: 600;
  cursor: pointer;
}

.email-send-confirm:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 520px) {
  .email-send-panel {
    padding: 0;
    align-items: stretch;
  }
  .email-send-sheet {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

@media (min-width: 521px) and (max-height: 700px) {
  .email-send-sheet { max-height: 96dvh; }
}
