/* ==============================================================
   💙 ARRON APP — COSMIC INTERFACE
   Standalone companion (/arron-app.html). Dark space, soft glow,
   thumb-reachable bottom nav, easy on the eyes at 3am.
   Evolution, Not Erasure.
   ============================================================== */

:root {
  --aa-cyan: #00fff0;
  --aa-magenta: #ff00ff;
  --aa-magenta-soft: #ff7aff;
  --aa-bg: #000103;
  --aa-deep: #0d1b2a;
  --aa-panel: rgba(13, 27, 42, 0.82);
  --aa-line: rgba(0, 255, 240, 0.22);
  --aa-text: #eef6ff;
  --aa-muted: #b4c3d6;
  --aa-good: #3ddc84;
  --aa-nav-h: 68px;
  --aa-top-h: 60px;
  --aa-orb-speed: 6s;
  --aa-orb-a: #00fff0;
  --aa-orb-b: #ff00ff;
  --aa-font: 1rem;
  --aa-safe-b: env(safe-area-inset-bottom, 0px);
  --aa-safe-t: env(safe-area-inset-top, 0px);
}

html.aa-root, .aa-body {
  height: 100%;
  overflow: hidden;
  background: var(--aa-bg);
  scroll-padding-top: 0;
}

.aa-body {
  margin: 0;
  color: var(--aa-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--aa-font);
  line-height: 1.55;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
.aa-body.aa-large { --aa-font: 1.2rem; }
.aa-body.aa-contrast {
  --aa-panel: #000;
  --aa-line: #00fff0;
  --aa-muted: #ffffff;
  --aa-text: #ffffff;
}

.aa-body :focus-visible {
  outline: 3px solid var(--aa-cyan);
  outline-offset: 2px;
}

/* Neutralise the site-wide button/link look without out-ranking the classes below */
:where(.aa-body) button { padding: 0; border-radius: 12px; font-weight: inherit; }
:where(.aa-body) p { max-width: none; font-size: inherit; }
.aa-body a.aa-link:hover, .aa-body a.aa-btn:hover, .aa-body a.aa-link:focus, .aa-body a.aa-btn:focus { color: var(--aa-text); text-shadow: none; }
.aa-body .aa-btn.solid:hover, .aa-body .aa-btn.solid:focus { color: #00161a; }

/* ─── Starfield ─── */
.aa-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 255, 240, 0.08), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(255, 0, 255, 0.08), transparent 55%),
    var(--aa-bg);
}
.aa-stars canvas { width: 100%; height: 100%; display: block; }

/* ─── Splash ─── */
.aa-splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.25rem;
  background: var(--aa-bg);
  transition: opacity 0.8s ease, visibility 0.8s;
}
.aa-splash.done { opacity: 0; visibility: hidden; }
.aa-splash p {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aa-muted);
  animation: aa-fade-in 1.4s ease both 0.4s;
}

/* ─── The orb ─── */
.aa-orb {
  --size: 64px;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), transparent 22%),
    radial-gradient(circle at 50% 55%, var(--aa-orb-a), transparent 62%),
    radial-gradient(circle at 70% 75%, var(--aa-orb-b), transparent 60%),
    #06121f;
  box-shadow: 0 0 calc(var(--size) * 0.45) rgba(0, 255, 240, 0.45), 0 0 calc(var(--size) * 0.9) rgba(255, 0, 255, 0.25);
  animation: aa-breathe var(--aa-orb-speed) ease-in-out infinite;
  transition: background 1.2s ease;
}
.aa-orb.xl { --size: min(42vw, 180px); }
.aa-orb.lg { --size: min(30vw, 120px); }
.aa-orb.sm { --size: 34px; }
.aa-orb.speaking { animation-duration: 1.6s; }
.aa-orb.thinking { animation-duration: 2.4s; }
.aa-orb.listening { animation-duration: 3.2s; filter: brightness(1.2); }

/* ─── Time of day: the night is quieter ─── */
.aa-body[data-phase="night"] .aa-stars { opacity: 0.7; }
.aa-body[data-phase="dawn"] .aa-stars { opacity: 0.85; }

@keyframes aa-breathe {
  0%, 100% { transform: scale(0.9); filter: brightness(0.85); }
  50% { transform: scale(1.06); filter: brightness(1.15); }
}
@keyframes aa-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Shell ─── */
.aa-shell {
  position: relative;
  z-index: 1;
  /* --aa-vh tracks the visible viewport (keyboard included) so the input bar always sits on screen */
  height: 100vh;
  height: 100dvh;
  height: var(--aa-vh, 100dvh);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  max-width: 820px;
  margin: 0 auto;
}

.aa-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--aa-top-h);
  padding: calc(var(--aa-safe-t) + 6px) 0.75rem 6px;
}
.aa-top h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--aa-cyan), var(--aa-magenta-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.aa-top .aa-title { flex: 1; min-width: 0; }
.aa-conn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--aa-muted);
}
.aa-conn::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7d8896;
}
.aa-conn[data-state="synced"]::before { background: var(--aa-good); box-shadow: 0 0 8px var(--aa-good); }
.aa-conn[data-state="syncing"]::before { background: var(--aa-cyan); }

.aa-icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--aa-line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--aa-text);
  font-size: 1.15rem;
  cursor: pointer;
}
.aa-icon-btn[aria-pressed="true"] { border-color: var(--aa-cyan); box-shadow: 0 0 12px rgba(0, 255, 240, 0.35); }
.aa-help-btn {
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--aa-magenta);
  background: rgba(255, 0, 255, 0.14);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Component display rules never override the hidden attribute */
.aa-body [hidden] { display: none !important; }

/* ─── Notices (install, awareness, wisdom) ─── */
.aa-notices { padding: 0 0.75rem; display: grid; gap: 0.5rem; }
.aa-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--aa-line);
  background: var(--aa-panel);
  font-size: 0.95rem;
  animation: aa-fade-in 0.5s ease both;
}
.aa-notice p { margin: 0; flex: 1 1 14rem; }
.aa-notice.magenta { border-color: rgba(255, 0, 255, 0.5); }

/* Keyboard open on a phone: fold the orb into a slim anchored strip and hide the tab bar */
.aa-body.aa-kb .aa-hero { flex-direction: row; justify-content: center; gap: 0.5rem; padding: 0.15rem 0 0.35rem; }
.aa-body.aa-kb .aa-hero .aa-orb { --size: 32px; }
.aa-body.aa-kb .aa-hero p { font-size: 0.8rem; }
.aa-body.aa-kb .aa-nav, .aa-body.aa-kb .aa-notices { display: none; }

/* ─── Views ─── */
.aa-views { position: relative; min-height: 0; }
.aa-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.aa-view[hidden] { display: none; }
.aa-view h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--aa-cyan);
}
.aa-view h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--aa-magenta-soft); }

/* Talk view is a locked column: the orb is anchored at the top, only the
   message log scrolls, and the input bar is pinned to the bottom. */
#aa-view-talk {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0.5rem;
}
#aa-view-talk[hidden] { display: none; }
.aa-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  gap: 0.35rem;
  padding: 0.5rem 0 0.75rem;
  transition: padding 0.4s ease;
}
.aa-hero p { margin: 0; color: var(--aa-muted); font-size: 0.9rem; text-align: center; }
.aa-hero.compact .aa-orb { --size: 72px; }

.aa-log {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(var(--aa-vh, 100dvh) - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0.1rem 0.75rem;
}
/* A short conversation settles at the bottom, next to the input, like any chat */
.aa-log > :first-child { margin-top: auto; }
.aa-msg {
  flex: none;
  max-width: 90%;
  padding: 0.75rem 0.95rem;
  border-radius: 18px;
  animation: aa-fade-in 0.35s ease both;
}
.aa-msg p { margin: 0 0 0.55em; white-space: pre-wrap; overflow-wrap: anywhere; }
.aa-msg p:last-of-type { margin-bottom: 0; }
.aa-msg.arron {
  align-self: flex-start;
  background: var(--aa-panel);
  border: 1px solid var(--aa-line);
  border-bottom-left-radius: 6px;
}
.aa-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 255, 240, 0.16), rgba(255, 0, 255, 0.16));
  border: 1px solid rgba(255, 0, 255, 0.35);
  border-bottom-right-radius: 6px;
}
.aa-msg.pinned { box-shadow: 0 0 0 2px var(--aa-magenta), 0 0 16px rgba(255, 0, 255, 0.35); }
.aa-msg-tools { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.aa-msg-tools button {
  min-height: 36px;
  padding: 0 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--aa-muted);
  font-size: 0.8rem;
  cursor: pointer;
}
.aa-msg-tools button:hover, .aa-msg-tools button:focus-visible { color: var(--aa-text); border-color: var(--aa-line); }
.aa-typing { display: inline-flex; gap: 5px; padding: 0.3rem 0; }
.aa-typing span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--aa-cyan);
  animation: aa-dot 1.2s infinite ease-in-out;
}
.aa-typing span:nth-child(2) { animation-delay: 0.15s; background: #7fd8ff; }
.aa-typing span:nth-child(3) { animation-delay: 0.3s; background: var(--aa-magenta-soft); }
@keyframes aa-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.aa-compose {
  flex: none;
  position: relative;
  z-index: 2;
  padding-top: 0.5rem;
  background: var(--aa-bg);
  box-shadow: 0 -14px 14px -6px var(--aa-bg);
}
/* With the tab bar hidden, the input bar clears the iPhone home indicator itself */
.aa-body.aa-kb .aa-compose { padding-bottom: var(--aa-safe-b); }
.aa-body.aa-kb .aa-quick { display: none; }
.aa-body.aa-kb .aa-log { max-height: none; }
.aa-quick { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; }
.aa-quick::-webkit-scrollbar { display: none; }
.aa-chip {
  flex: none;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--aa-line);
  background: rgba(0, 0, 0, 0.45);
  color: var(--aa-text);
  font-size: 0.9rem;
  cursor: pointer;
}
.aa-chip[aria-pressed="true"] { border-color: var(--aa-cyan); background: rgba(0, 255, 240, 0.14); }
.aa-form { display: flex; gap: 0.5rem; align-items: flex-end; }
.aa-form textarea {
  flex: 1;
  min-height: 48px;
  max-height: 160px;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--aa-line);
  background: rgba(0, 0, 0, 0.6);
  color: var(--aa-text);
  font: inherit;
  resize: none;
}
.aa-form textarea::placeholder { color: #93a4b8; }
.aa-send {
  min-width: 52px;
  min-height: 48px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, var(--aa-cyan), #7fd8ff);
  color: #00161a;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.aa-send:disabled { opacity: 0.55; cursor: wait; }
.aa-status { min-height: 1.2em; margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--aa-muted); }

/* ─── Cards / forms shared by the other views ─── */
.aa-card {
  margin: 0 0 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--aa-line);
  background: var(--aa-panel);
}
.aa-card p { margin: 0 0 0.6rem; color: var(--aa-muted); }
.aa-card.truths { border-color: rgba(255, 0, 255, 0.5); box-shadow: 0 0 24px rgba(255, 0, 255, 0.12); }
.aa-list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.5rem; }
.aa-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}
.aa-list li span { flex: 1; overflow-wrap: anywhere; }
.aa-list li small { display: block; color: var(--aa-muted); font-size: 0.78rem; }
.aa-list li button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--aa-muted);
  cursor: pointer;
}
.aa-list li button:hover, .aa-list li button:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); }
.aa-empty { color: var(--aa-muted); font-style: italic; }
.aa-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.aa-input, .aa-card textarea, .aa-card select {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--aa-line);
  background: rgba(0, 0, 0, 0.55);
  color: var(--aa-text);
  font: inherit;
}
.aa-card textarea { width: 100%; min-height: 10rem; resize: vertical; box-sizing: border-box; }
.aa-btn {
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--aa-cyan);
  background: rgba(0, 255, 240, 0.12);
  color: var(--aa-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.aa-btn.solid { background: linear-gradient(135deg, var(--aa-cyan), #7fd8ff); color: #00161a; border: 0; }
.aa-btn.danger { border-color: #ff6b8a; background: rgba(255, 60, 100, 0.12); }
.aa-btn:disabled { opacity: 0.5; }
.aa-note { min-height: 1.2em; font-size: 0.85rem; color: var(--aa-muted); margin: 0.4rem 0 0; }

.aa-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}
.aa-stat {
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--aa-line);
  background: var(--aa-panel);
  text-align: center;
}
.aa-stat strong { display: block; font-size: 1.6rem; color: var(--aa-text); line-height: 1.2; }
.aa-stat span { font-size: 0.8rem; color: var(--aa-muted); }

/* Mood timeline */
.aa-chart { width: 100%; height: auto; display: block; }
.aa-chart .grid { stroke: rgba(180, 195, 214, 0.18); stroke-width: 1; }
.aa-chart .axis { fill: var(--aa-muted); font-size: 11px; }
.aa-chart .line { fill: none; stroke: var(--aa-cyan); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.aa-chart .dot { fill: var(--aa-cyan); stroke: #0d1b2a; stroke-width: 2; }
.aa-chart .hit { fill: transparent; cursor: pointer; }
.aa-chart .hit:hover + .dot, .aa-chart .hit:focus + .dot { r: 7; }
.aa-mood-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }

/* Explore */
.aa-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 0.9rem; }
.aa-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 88px;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--aa-line);
  background: var(--aa-panel);
  color: var(--aa-text);
  text-decoration: none;
}
.aa-link b { font-size: 1.4rem; line-height: 1; }
.aa-link small { color: var(--aa-muted); }
.aa-link:hover, .aa-link:focus-visible { border-color: var(--aa-cyan); }
.aa-code {
  display: block;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.6rem;
  border-radius: 10px;
  background: #000;
  color: var(--aa-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.aa-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; }
.aa-toggle-row label { color: var(--aa-text); }

/* ─── Bottom nav ─── */
.aa-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 0 0.25rem var(--aa-safe-b);
  border-top: 1px solid var(--aa-line);
  background: rgba(0, 1, 3, 0.94);
  backdrop-filter: blur(10px);
}
.aa-nav button {
  min-height: var(--aa-nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--aa-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.aa-nav button b { font-size: 1.35rem; font-weight: 400; line-height: 1; }
.aa-nav button[aria-selected="true"] { color: var(--aa-cyan); }
.aa-nav button[aria-selected="true"] b { filter: drop-shadow(0 0 6px rgba(0, 255, 240, 0.8)); }

/* ─── Wisdom for heavy moments ─── */
.aa-notice.wisdom { border-color: rgba(127, 216, 255, 0.55); }
.aa-wisdom-label { display: block; font-size: 0.78rem; color: var(--aa-muted); margin-bottom: 0.15rem; }
#aa-wisdom-text { display: block; font-style: italic; color: var(--aa-text); }

/* ─── Guardian ─── */
.aa-card.guardian { border-color: rgba(255, 107, 138, 0.55); }
.aa-lines { display: grid; gap: 0.5rem; }
.aa-line {
  display: block;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--aa-cyan);
  background: rgba(0, 255, 240, 0.06);
  color: var(--aa-text);
  font-weight: 700;
  text-decoration: none;
}
.aa-line small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--aa-muted); }
.aa-line.urgent { border-color: #ff6b8a; background: rgba(255, 60, 100, 0.12); }
.aa-line:hover, .aa-line:focus-visible { background: rgba(0, 255, 240, 0.14); }
.aa-card.creator { border-color: rgba(255, 211, 107, 0.6); box-shadow: 0 0 24px rgba(255, 211, 107, 0.12); }
.aa-principles { margin: 0 0 0.75rem; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.aa-principles strong { color: var(--aa-cyan); font-weight: 600; }
.aa-promise { font-style: italic; color: var(--aa-text) !important; }
.aa-sub { margin: 0.25rem 0 0.4rem; font-size: 0.95rem; color: var(--aa-cyan); }
.aa-final-promise {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--aa-cyan);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 255, 240, 0.05);
  color: var(--aa-text);
  line-height: 1.6;
}

/* ─── Creator Studio — Rap • Script • Image • Post • Plan ─── */
.aa-studio-modes { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.25rem 0 0.75rem; scrollbar-width: none; }
.aa-studio-modes::-webkit-scrollbar { display: none; }
.aa-studio-templates { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }
.aa-studio-templates .aa-btn { justify-content: flex-start; text-align: left; min-height: 48px; }
#aa-studio-input { min-height: 5.5rem; margin-top: 0.25rem; }

/* ─── Creator badge — only ever shown to the founder's account ─── */
.aa-creator-badge {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 211, 107, 0.7);
  background: rgba(255, 211, 107, 0.12);
  color: #ffe2a0;
  font-weight: 700;
  cursor: pointer;
}
.aa-creator-badge:focus-visible { outline: 2px solid #ffd36b; outline-offset: 2px; }
@media (max-width: 380px) { .aa-creator-label { display: none; } }

/* ─── Crisis mode — nothing but help ─── */
.aa-crisis {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: calc(var(--aa-safe-t) + 1.5rem) 1.25rem 1.5rem;
  border: 0;
  background: #000103;
  color: #fff;
  overflow-y: auto;
}
.aa-crisis::backdrop { background: #000; }
.aa-crisis-inner { max-width: 480px; margin: 0 auto; display: grid; gap: 0.85rem; }
.aa-crisis h2 { margin: 0; font-size: 1.5rem; color: #fff; }
.aa-crisis p { margin: 0; font-size: 1.1rem; }
.aa-crisis a.line {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 2px solid var(--aa-cyan);
  background: rgba(0, 255, 240, 0.08);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
.aa-crisis a.line small { display: block; font-weight: 400; font-size: 0.9rem; color: #d6e2ef; }
.aa-crisis a.line.urgent { border-color: #ff6b8a; background: rgba(255, 60, 100, 0.14); }

/* ─── Landscape phones: give the conversation the room ─── */
@media (max-width: 380px) {
  .aa-view { padding-left: 0.5rem; padding-right: 0.5rem; }
  .aa-hero { padding: 0.25rem 0 0.5rem; }
  .aa-orb.lg { --size: 84px; }
  .aa-nav button { font-size: 0.7rem; }
}

@media (orientation: landscape) and (max-height: 520px) {
  :root { --aa-nav-h: 52px; --aa-top-h: 48px; }
  .aa-hero { flex-direction: row; justify-content: center; gap: 0.5rem; padding: 0.15rem 0 0.35rem; }
  .aa-hero .aa-orb { --size: 32px; }
  .aa-nav button { flex-direction: row; gap: 0.4rem; }
}

@media (min-width: 900px) {
  .aa-shell { border-left: 1px solid rgba(0, 255, 240, 0.08); border-right: 1px solid rgba(0, 255, 240, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .aa-orb, .aa-typing span, .aa-msg, .aa-notice, .aa-splash p { animation: none !important; }
  .aa-splash { transition: none; }
}

@media (forced-colors: active) {
  .aa-orb { forced-color-adjust: none; }
  .aa-conn::before { border: 1px solid CanvasText; }
}
