:root {
  color-scheme: dark;
  --bg: #000603;
  --panel: rgba(0, 18, 8, 0.7);
  --panel-glass: rgba(0, 16, 7, 0.7);
  --panel-strong: rgba(0, 255, 102, 0.11);
  --text: #eaffef;
  --muted: #9edfb5;
  --line: rgba(0, 255, 102, 0.2);
  --line-strong: rgba(186, 255, 203, 0.28);
  --gold: #00ff66;
  --blue: #8cffb6;
  --green: #00ff66;
  --red: #ff4d6d;
  --surface: linear-gradient(180deg, rgba(0, 255, 102, 0.052), rgba(0, 10, 4, 0.86));
  --surface-soft: linear-gradient(180deg, rgba(0, 255, 102, 0.064), rgba(0, 8, 3, 0.78));
  --shadow: 0 0 30px rgba(0, 255, 102, 0.08), 0 24px 90px rgba(0, 0, 0, 0.64);
  --premium-shadow: 0 0 0 1px rgba(186, 255, 203, 0.045), 0 0 34px rgba(0, 255, 102, 0.08), 0 24px 80px rgba(0, 0, 0, 0.74);
  --btn-height: 2.76rem;
  --btn-radius: 999px;
  --btn-border: rgba(0, 255, 102, 0.38);
  --btn-bg: rgba(0, 255, 102, 0.09);
  --btn-bg-strong: linear-gradient(135deg, rgba(0, 255, 102, 0.96), rgba(3, 176, 73, 0.96));
  --btn-glow: 0 0 18px rgba(0, 255, 102, 0.13), inset 0 0 14px rgba(0, 255, 102, 0.035);
  --card-radius: 1.32rem;
  --motion-fast: 140ms ease;
  --motion-soft: 220ms ease;
  --font-sans: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
  --terminal: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -8rem, rgba(186, 255, 203, 0.09), transparent 24rem),
    radial-gradient(circle at top left, rgba(0, 255, 102, 0.08), transparent 27rem),
    radial-gradient(circle at top right, rgba(0, 120, 48, 0.11), transparent 25rem),
    linear-gradient(180deg, rgba(0, 18, 8, 0.78), transparent 18rem),
    var(--bg);
  color: var(--text);
  font-family: var(--terminal);
  overflow-x: hidden;
}

html,
body,
.app-shell,
.screen,
.panel,
.hero,
.voice-panel,
.chat-log,
.message {
  isolation: isolate;
}

body::before {
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.42)),
    linear-gradient(90deg, rgba(0, 255, 102, 0.035), transparent 18%, transparent 82%, rgba(0, 255, 102, 0.035));
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 1;
}

body.is-typing *,
body.is-typing *::before,
body.is-typing *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

body.is-typing #matrixRain {
  opacity: 0.08;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .app-shell {
  filter: blur(12px) brightness(0.45);
  pointer-events: none;
  user-select: none;
}

#matrixRain {
  height: 100vh;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  position: fixed;
  width: 100vw;
  z-index: 0;
}

.access-gate {
  align-items: start;
  background:
    radial-gradient(circle at 50% 8%, rgba(186, 255, 203, 0.13), transparent 16rem),
    radial-gradient(circle at 100% 40%, rgba(0, 255, 102, 0.09), transparent 17rem),
    linear-gradient(180deg, rgba(0, 8, 3, 0.7), rgba(0, 0, 0, 0.92));
  display: grid;
  inset: 0;
  justify-items: center;
  padding: max(5.2rem, calc(env(safe-area-inset-top) + 4.6rem)) 1rem max(1rem, env(safe-area-inset-bottom));
  position: fixed;
  z-index: 20;
}

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

.access-card {
  backdrop-filter: blur(24px) saturate(1.05);
  background:
    radial-gradient(circle at 50% 0%, rgba(186, 255, 203, 0.16), transparent 9rem),
    linear-gradient(155deg, rgba(0, 255, 102, 0.105), rgba(0, 10, 4, 0.94));
  border: 1px solid rgba(186, 255, 203, 0.3);
  border-radius: 1.42rem;
  box-shadow: var(--premium-shadow);
  display: grid;
  gap: 0.62rem;
  max-width: 400px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
  text-align: center;
  width: min(100%, 420px);
}

.access-card::before {
  background: linear-gradient(90deg, transparent, rgba(186, 255, 203, 0.72), transparent);
  content: "";
  height: 1px;
  inset: 0 0 auto;
  opacity: 0.72;
  position: absolute;
}

.access-mark {
  color: #baffcb;
  font-family: "Avenir Next Condensed", "DIN Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.1rem, 13vw, 3.1rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-shadow: 0 0 18px rgba(0, 255, 102, 0.42);
}

.access-card span {
  color: rgba(186, 255, 203, 0.76);
  font-size: 0.54rem;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.access-card strong {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.18;
}

.access-card p,
.access-card small {
  color: rgba(234, 255, 239, 0.76);
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.42;
}

.access-card input {
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  min-height: 2.5rem;
  text-align: center;
  text-transform: uppercase;
}

.access-card button {
  min-height: 2.5rem;
}

.access-card .access-passkey-button {
  background:
    linear-gradient(135deg, rgba(186, 255, 203, 0.96), rgba(0, 255, 102, 0.72)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.46), transparent 62%);
  box-shadow: 0 0 28px rgba(0, 255, 102, 0.22);
}

.access-card .access-secondary-button {
  background: rgba(0, 10, 4, 0.68);
  border: 1px solid rgba(186, 255, 203, 0.22);
  color: rgba(234, 255, 239, 0.9);
  box-shadow: none;
}

.access-card .access-secondary-button:hover {
  border-color: rgba(186, 255, 203, 0.42);
}

.access-card small {
  background: rgba(0, 255, 102, 0.045);
  border: 1px solid rgba(0, 255, 102, 0.13);
  border-radius: 999px;
  color: rgba(186, 255, 203, 0.74);
  padding: 0.42rem 0.56rem;
}

.access-card small[data-state="success"] {
  background: rgba(0, 255, 102, 0.11);
  border-color: rgba(0, 255, 102, 0.32);
  color: #baffcb;
}

.access-card small[data-state="error"] {
  background: rgba(255, 77, 109, 0.1);
  border-color: rgba(255, 77, 109, 0.36);
  color: rgba(255, 174, 188, 0.92);
}

body::after {
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 255, 102, 0.024), rgba(0, 0, 0, 0)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 4px);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: fixed;
  z-index: 1;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.file-button {
  align-items: center;
  background: var(--btn-bg-strong);
  border: 1px solid rgba(186, 255, 203, 0.46);
  border-radius: var(--btn-radius);
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.22), inset 0 0 18px rgba(234, 255, 239, 0.12);
  color: #001a08;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: var(--btn-height);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1;
  padding: 0.74rem 1rem;
  position: relative;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, opacity 160ms ease, transform 120ms ease;
}

button:hover,
.file-button:hover {
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.32), inset 0 0 20px rgba(234, 255, 239, 0.14);
  transform: translateY(-1px);
}

button:active,
.file-button:active {
  transform: translateY(1px);
}

button:focus-visible,
.file-button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(186, 255, 203, 0.62);
  outline-offset: 3px;
}

.nav-button:focus-visible {
  outline-offset: 1px;
}

button:disabled,
.file-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

input,
textarea,
select {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.035), rgba(0, 8, 3, 0.86));
  border: 1px solid rgba(0, 255, 102, 0.17);
  border-radius: 0.9rem;
  box-shadow: inset 0 0 16px rgba(0, 255, 102, 0.04);
  color: var(--text);
  outline: 0;
  padding: 0.78rem 0.86rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.052), rgba(0, 10, 4, 0.92));
  border-color: rgba(186, 255, 203, 0.38);
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.075), inset 0 0 18px rgba(0, 255, 102, 0.055);
}

textarea {
  min-height: 4.2rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(186, 255, 203, 0.36);
}

label {
  color: rgba(186, 255, 203, 0.74);
  display: grid;
  font-size: 0.68rem;
  font-weight: 1000;
  gap: 0.36rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

.app-shell {
  margin: 0 auto;
  max-width: 500px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(0.84rem, env(safe-area-inset-top)) 0.92rem calc(6.75rem + env(safe-area-inset-bottom));
  position: relative;
  z-index: 2;
}

.hero {
  backdrop-filter: blur(24px) saturate(1.08);
  border: 1px solid rgba(186, 255, 203, 0.22);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(186, 255, 203, 0.13), transparent 11rem),
    linear-gradient(160deg, rgba(0, 255, 102, 0.105), rgba(0, 16, 7, 0.86) 55%, rgba(0, 5, 2, 0.94));
  box-shadow: var(--premium-shadow);
  overflow: hidden;
  padding: 0.78rem 0.92rem 0.88rem;
  position: relative;
}

.hero::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%, transparent 66%, rgba(0, 255, 102, 0.08));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero::after {
  background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.9), transparent);
  content: "";
  height: 1px;
  inset: auto 0 0;
  position: absolute;
}

.hero-top {
  align-items: center;
  display: grid;
  gap: 0.34rem;
  justify-items: center;
  padding-top: 0;
  text-align: center;
}

.logo {
  align-items: center;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 20%, #eaffef, var(--green) 52%, #003d16);
  box-shadow: 0 0 28px rgba(0, 255, 102, 0.35);
  border-radius: 1.2rem;
  color: #001a08;
  display: none;
  font-size: 1.45rem;
  font-weight: 1000;
  justify-content: center;
  position: static;
  width: 3.35rem;
}

.title-lockup {
  display: grid;
  gap: 0.32rem;
  justify-items: center;
  width: 100%;
}

.eyebrow {
  color: rgba(234, 255, 239, 0.78);
  display: block;
  font-size: 0.48rem;
  font-weight: 1000;
  letter-spacing: 0.2em;
  max-width: 100%;
  order: 2;
  padding: 0;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.eyebrow span {
  color: #eaffef;
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.34);
}

.neo-title {
  align-items: center;
  color: var(--text);
  display: flex;
  font-family: "Avenir Next Condensed", "DIN Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.55rem, 12vw, 3.85rem);
  font-weight: 500;
  gap: 0;
  justify-content: center;
  letter-spacing: 0.035em;
  line-height: 0.86;
  margin-bottom: 0.05rem;
  margin-top: 0;
  order: 1;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.neo-title span {
  background: linear-gradient(180deg, #ffffff 0%, #d4ffdf 42%, #24ff7b 100%);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: transparent;
  display: inline !important;
  min-width: auto;
  padding: 0;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 8px rgba(0, 255, 102, 0.42),
    0 0 20px rgba(0, 255, 102, 0.22);
  transform: none;
}

.neo-title .dot {
  background: none;
  color: #baffcb;
  font-size: 0.44em;
  margin: 0 0.08em;
  opacity: 0.92;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow:
    0 0 8px rgba(0, 255, 102, 0.6),
    0 0 16px rgba(0, 255, 102, 0.28);
  transform: translateY(-0.02em);
}

h1 {
  margin: 0;
}

h2 {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.hero-copy {
  color: rgba(186, 255, 203, 0.72);
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 0.5rem auto 0;
  max-width: 21.5rem;
  position: relative;
  text-align: center;
}

.panel {
  backdrop-filter: blur(22px) saturate(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(1.04);
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.04), transparent 9rem),
    var(--panel-glass);
  background-color: rgba(0, 13, 6, 0.94);
  border: 1px solid rgba(0, 255, 102, 0.18);
  border-radius: 1.42rem;
  box-shadow: var(--premium-shadow);
  margin-top: 0.82rem;
  padding: 0.92rem;
  position: relative;
  transition: border-color var(--motion-soft), box-shadow var(--motion-soft), transform var(--motion-soft);
}

.panel::before {
  background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.46), transparent);
  content: "";
  height: 1px;
  left: 1.2rem;
  opacity: 0.42;
  position: absolute;
  right: 1.2rem;
  top: 0;
}

.screen {
  display: none;
  padding-bottom: 7.2rem;
}

.screen.active {
  animation: screenEnter 180ms ease-out;
  display: block;
}

.chat-panel {
  min-height: calc(100dvh - 18.1rem);
  padding-bottom: 0.96rem;
  position: relative;
}

.panel-head,
.button-row {
  align-items: center;
  display: flex;
  gap: 0.56rem;
  justify-content: space-between;
}

.panel-head h2 {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.neo-processing-badge {
  align-items: center;
  animation: badgePulse 1s infinite ease-in-out;
  background: linear-gradient(135deg, rgba(186, 255, 203, 0.96), rgba(0, 255, 102, 0.9));
  border: 1px solid rgba(186, 255, 203, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 255, 102, 0.28), inset 0 0 10px rgba(234, 255, 239, 0.16);
  color: #001a08;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.11em;
  padding: 0.18rem 0.46rem;
  position: static;
  text-transform: uppercase;
  text-shadow: none;
  z-index: 10;
}

.neo-processing-badge[hidden] {
  display: none;
}

.neo-processing-badge[data-state="listening"] {
  background: rgba(139, 255, 184, 0.92);
  color: #001a08;
}

.mini-badge {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.09), rgba(0, 9, 4, 0.68));
  border: 1px solid rgba(186, 255, 203, 0.18);
  border-radius: 999px;
  box-shadow: inset 0 0 12px rgba(0, 255, 102, 0.025);
  color: rgba(186, 255, 203, 0.78);
  font-size: 0.56rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  padding: 0.24rem 0.48rem;
  text-transform: uppercase;
}

.neo-processing-badge[data-state="heard"] {
  background: rgba(234, 255, 239, 0.95);
  color: #001a08;
}

.neo-processing-badge[data-state="processing"] {
  background: rgba(0, 255, 102, 0.96);
  color: #001a08;
}

.neo-processing-badge[data-state="error"] {
  background: rgba(255, 77, 109, 0.95);
  color: #220008;
}

.ghost-button {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.105), rgba(0, 11, 4, 0.7));
  border-color: var(--btn-border);
  box-shadow: var(--btn-glow), inset 0 0 0 1px rgba(186, 255, 203, 0.025);
  color: var(--green);
  letter-spacing: 0.012em;
  min-height: 2.35rem;
  padding: 0.58rem 0.82rem;
}

.ghost-button:hover {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.16), rgba(0, 16, 6, 0.76));
  border-color: rgba(186, 255, 203, 0.42);
  color: var(--text);
}

.danger {
  border-color: rgba(255, 77, 109, 0.46);
  color: var(--red);
}

.chat-log {
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(0, 255, 102, 0.11);
  border-radius: 1.18rem;
  box-shadow: inset 0 0 24px rgba(0, 255, 102, 0.026);
  display: grid;
  gap: 0.56rem;
  max-height: min(55dvh, 590px);
  min-height: min(39dvh, 370px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.66rem 0.52rem 0.86rem;
  scroll-behavior: smooth;
  scrollbar-color: rgba(0, 255, 102, 0.42) rgba(0, 12, 5, 0.62);
  scrollbar-width: thin;
}

.chat-log::-webkit-scrollbar {
  width: 0.34rem;
}

.chat-log::-webkit-scrollbar-track {
  background: rgba(0, 12, 5, 0.62);
  border-radius: 999px;
}

.chat-log::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 255, 102, 0.72), rgba(0, 120, 48, 0.42));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.22);
}

.message {
  border-radius: 1.16rem;
  font-size: 0.83rem;
  line-height: 1.55;
  padding: 0.86rem 0.92rem;
  transition: border-color var(--motion-soft), box-shadow var(--motion-soft), transform var(--motion-soft);
  white-space: pre-wrap;
}

.message-time {
  color: rgba(186, 255, 203, 0.36);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-top: 0.42rem;
  text-align: left;
  text-transform: uppercase;
}

.message.neo {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.08), rgba(0, 10, 4, 0.68));
  background-color: rgba(0, 12, 5, 0.94);
  border: 1px solid rgba(0, 255, 102, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 255, 102, 0.035), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.message.interactive-result {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.095), rgba(0, 12, 5, 0.76));
  background-color: rgba(0, 14, 6, 0.96);
  border-color: rgba(186, 255, 203, 0.25);
}

.message.structured-result {
  padding: 0.64rem;
  white-space: normal;
}

.message.compact-notice {
  border-color: rgba(186, 255, 203, 0.18);
  color: rgba(218, 255, 229, 0.86);
  font-size: 0.72rem;
  padding: 0.62rem 0.74rem;
}

.structured-cards {
  display: grid;
  gap: 0.46rem;
}

.structured-intro,
.structured-card {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.07), rgba(0, 10, 4, 0.72));
  border: 1px solid rgba(0, 255, 102, 0.16);
  border-radius: 0.88rem;
  box-shadow: inset 0 0 16px rgba(0, 255, 102, 0.024);
  display: grid;
  gap: 0.22rem;
  padding: 0.6rem 0.64rem;
  transition: border-color var(--motion-soft), box-shadow var(--motion-soft), transform var(--motion-soft);
}

.structured-intro {
  background:
    radial-gradient(circle at top right, rgba(186, 255, 203, 0.13), transparent 58%),
    linear-gradient(180deg, rgba(0, 255, 102, 0.105), rgba(0, 10, 4, 0.78));
  border-color: rgba(186, 255, 203, 0.26);
  min-height: 4.2rem;
  place-content: center start;
}

.structured-intro span,
.structured-card span {
  color: rgba(186, 255, 203, 0.68);
  font-size: 0.54rem;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.structured-intro strong,
.structured-card strong {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.26;
}

.structured-card p {
  color: rgba(234, 255, 239, 0.78);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.4;
  margin: 0;
}

.chat-result-actions {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(auto-fit, minmax(4.35rem, 1fr));
  margin-top: 0.72rem;
}

.structured-result .chat-result-actions {
  grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr));
}

.structured-result .chat-result-actions:has(.primary-action) {
  grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr));
}

.chat-result-actions .ghost-button {
  border-color: rgba(0, 255, 102, 0.18);
  color: rgba(218, 255, 229, 0.82);
  font-size: 0.62rem;
  min-height: 2.32rem;
  padding: 0.46rem 0.5rem;
}

.chat-result-actions .primary-action {
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.88), rgba(83, 236, 113, 0.92));
  border-color: rgba(186, 255, 203, 0.55);
  color: #001a08;
}

.chat-result-actions .danger-action {
  border-color: rgba(255, 77, 109, 0.24);
  color: rgba(255, 174, 188, 0.86);
}

.chat-secondary-actions {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.04), rgba(0, 8, 3, 0.68));
  border: 1px solid rgba(0, 255, 102, 0.13);
  border-radius: 0.94rem;
  grid-column: 1 / -1;
  padding: 0.42rem;
}

.chat-secondary-actions summary {
  align-items: center;
  color: rgba(186, 255, 203, 0.74);
  cursor: pointer;
  display: flex;
  font-size: 0.6rem;
  font-weight: 1000;
  justify-content: center;
  letter-spacing: 0.14em;
  list-style: none;
  min-height: 2.35rem;
  text-align: center;
  text-transform: uppercase;
  transition: color var(--motion-fast), text-shadow var(--motion-fast);
}

.chat-secondary-actions summary::-webkit-details-marker {
  display: none;
}

.chat-secondary-actions summary::after {
  content: " +";
  margin-left: 0.28rem;
}

.chat-secondary-actions[open] summary::after {
  content: " -";
}

.chat-secondary-actions[open] summary,
.advanced-engines[open] summary,
.profile-tools[open] summary,
.voice-tools[open] summary,
.voice-hints-drawer[open] summary {
  color: #d9ffe4;
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.32);
}

.chat-secondary-actions-grid {
  display: grid;
  gap: 0.36rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.42rem;
}

.chat-secondary-actions-grid .ghost-button {
  background: rgba(0, 10, 4, 0.72);
  border-color: rgba(186, 255, 203, 0.15);
  color: rgba(234, 255, 239, 0.76);
  min-height: 2.32rem;
  padding: 0.4rem 0.42rem;
}

.chat-secondary-actions-grid .danger-action {
  border-color: rgba(255, 77, 109, 0.24);
  color: rgba(255, 174, 188, 0.82);
}

.message.thinking {
  border-color: rgba(0, 255, 102, 0.5);
  box-shadow: 0 0 22px rgba(0, 255, 102, 0.16), inset 0 0 24px rgba(0, 255, 102, 0.08);
}

.typing-dots {
  display: inline-flex;
  gap: 0.22rem;
  margin-right: 0.28rem;
  vertical-align: middle;
}

.typing-dots i {
  animation: typingDot 0.9s infinite ease-in-out;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.68);
  display: block;
  height: 0.38rem;
  width: 0.38rem;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.13s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.26s;
}

.message.user {
  background:
    linear-gradient(180deg, rgba(139, 255, 184, 0.105), rgba(0, 18, 7, 0.66));
  border: 1px solid rgba(139, 255, 184, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  margin-left: 1.35rem;
}

.message.user .message-time {
  color: rgba(218, 255, 229, 0.38);
  text-align: right;
}

.chat-form {
  align-items: center;
  background: rgba(0, 9, 4, 0.92);
  border: 1px solid rgba(0, 255, 102, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.035), 0 12px 32px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 0.36rem;
  grid-template-columns: 1fr auto;
  margin-top: 0.64rem;
  padding: 0.28rem;
  position: sticky;
  bottom: calc(4.8rem + env(safe-area-inset-bottom));
  z-index: 5;
}

.chat-clean-row {
  display: flex;
  justify-content: center;
  margin-top: 0.52rem;
}

.subtle-button {
  background: rgba(0, 255, 102, 0.045);
  border-color: rgba(0, 255, 102, 0.18);
  box-shadow: inset 0 0 14px rgba(0, 255, 102, 0.024);
  color: rgba(186, 255, 203, 0.72);
  font-size: 0.66rem;
  min-height: 2.32rem;
  padding: 0.5rem 0.82rem;
}

.subtle-button:hover {
  background: rgba(0, 255, 102, 0.09);
  border-color: rgba(186, 255, 203, 0.32);
  color: var(--text);
}

.quick-actions {
  display: grid;
  gap: 0.44rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0.62rem 0 0.68rem;
}

.quick-actions button {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.072), rgba(0, 13, 5, 0.7));
  border-color: rgba(0, 255, 102, 0.2);
  box-shadow: inset 0 0 14px rgba(0, 255, 102, 0.026), 0 8px 20px rgba(0, 0, 0, 0.16);
  color: rgba(218, 255, 229, 0.86);
  font-size: 0.64rem;
  letter-spacing: 0;
  min-height: 2.22rem;
  padding: 0.5rem 0.36rem;
}

.quick-actions button:hover {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.16), rgba(0, 18, 7, 0.76));
  border-color: rgba(186, 255, 203, 0.42);
  color: var(--text);
}

.advanced-engines {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.035), rgba(0, 8, 3, 0.64));
  border: 1px solid rgba(0, 255, 102, 0.13);
  border-radius: 1rem;
  grid-column: 1 / -1;
  padding: 0.46rem;
}

.advanced-engines summary {
  align-items: center;
  color: rgba(186, 255, 203, 0.76);
  cursor: pointer;
  display: flex;
  font-size: 0.6rem;
  font-weight: 1000;
  justify-content: center;
  letter-spacing: 0.13em;
  list-style: none;
  min-height: 2.35rem;
  text-align: center;
  text-transform: uppercase;
}

.advanced-engines summary::-webkit-details-marker {
  display: none;
}

.advanced-engines summary::after {
  color: var(--green);
  content: " +";
  margin-left: 0.28rem;
}

.advanced-engines[open] summary::after {
  content: " -";
}

.advanced-engines-grid {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.52rem;
}

.advanced-engines-grid button {
  background: rgba(0, 10, 4, 0.72);
  border-color: rgba(186, 255, 203, 0.16);
  color: rgba(234, 255, 239, 0.78);
  font-size: 0.6rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.34rem;
}

.voice-panel {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.052), rgba(0, 8, 3, 0.72));
  background-color: rgba(0, 13, 5, 0.96);
  border: 1px solid rgba(0, 255, 102, 0.18);
  border-radius: 1.22rem;
  box-shadow: inset 0 0 22px rgba(0, 255, 102, 0.028);
  display: grid;
  gap: 0.46rem;
  grid-template-columns: 1fr;
  margin: 0 0 0.6rem;
  padding: 0.58rem;
}

.voice-button {
  background: linear-gradient(180deg, rgba(0, 255, 102, 0.14), rgba(0, 38, 14, 0.58));
  border-color: rgba(0, 255, 102, 0.34);
  box-shadow: var(--btn-glow);
  color: #d9ffe4;
  font-size: 0.82rem;
  grid-column: 1 / -1;
  letter-spacing: 0.015em;
  min-height: 2.42rem;
  padding: 0.62rem 0.9rem;
}

.voice-tools,
.voice-hints-drawer {
  grid-column: 1 / -1;
}

.voice-hints-drawer summary,
.voice-tools summary,
.profile-tools summary {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 0.68rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.04em;
  list-style: none;
  min-height: 2.35rem;
  text-align: center;
  text-transform: uppercase;
}

.voice-hints-drawer summary::-webkit-details-marker,
.voice-tools summary::-webkit-details-marker,
.profile-tools summary::-webkit-details-marker {
  display: none;
}

.voice-hints-drawer summary::after,
.voice-tools summary::after,
.profile-tools summary::after {
  content: " +";
  color: var(--green);
  margin-left: 0.28rem;
}

.voice-hints-drawer[open] summary::after,
.voice-tools[open] summary::after,
.profile-tools[open] summary::after {
  content: " -";
}

.voice-tools-grid {
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.62rem;
}

.sound-test-button {
  background: rgba(0, 255, 102, 0.055);
  border-color: rgba(0, 255, 102, 0.24);
  box-shadow: var(--btn-glow);
  color: var(--muted);
  font-size: 0.72rem;
  min-height: 2.34rem;
  padding: 0.54rem 0.8rem;
}

.sound-test-button:hover {
  border-color: rgba(186, 255, 203, 0.36);
  color: #d9ffe4;
}

#voiceFlowTestButton {
  border-color: rgba(186, 255, 203, 0.38);
  color: #baffcb;
}

.voice-button.listening {
  animation: pulseListen 1.4s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.95), rgba(18, 196, 91, 0.92));
  color: #001a08;
}

.voice-panel p {
  grid-column: 1 / -1;
  background: rgba(0, 255, 102, 0.052);
  border: 1px solid rgba(0, 255, 102, 0.16);
  border-radius: 0.95rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.45;
  padding: 0.5rem 0.62rem;
  text-align: center;
}

.voice-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  justify-content: center;
  margin-top: 0.42rem;
}

.voice-hints span {
  background: rgba(186, 255, 203, 0.07);
  border: 1px solid rgba(186, 255, 203, 0.16);
  border-radius: 999px;
  color: rgba(234, 255, 239, 0.78);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.42rem;
}

.mic-permission-panel {
  grid-column: 1 / -1;
}

.profile-tools {
  display: grid;
  gap: 0.68rem;
}

.profile-tools[open] summary {
  margin-bottom: 0.2rem;
}

.settings-drawer {
  padding: 0.58rem 0.7rem;
}

.settings-drawer summary,
.profile-tools summary {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.045), rgba(0, 8, 3, 0.62));
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.56rem 0.72rem;
}

.settings-drawer[open] {
  padding: 0.72rem;
}

.settings-drawer[open] summary {
  border-color: rgba(186, 255, 203, 0.28);
  color: #d9ffe4;
  margin-bottom: 0.56rem;
}

.voice-panel p[data-state="listening"] {
  background: rgba(139, 255, 184, 0.12);
  color: #baffcb;
}

.voice-panel p[data-state="heard"] {
  background: rgba(234, 255, 239, 0.14);
  color: #ffffff;
}

.voice-panel p[data-state="processing"] {
  animation: badgePulse 1s infinite ease-in-out;
  background: rgba(0, 255, 102, 0.18);
  border-color: rgba(0, 255, 102, 0.52);
  color: #eaffef;
  text-shadow: 0 0 14px rgba(0, 255, 102, 0.62);
}

.voice-panel p[data-state="error"] {
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.5);
  color: #ff8fa3;
}

.mic-permission-panel {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.48);
  border-radius: 0.95rem;
  color: #ffd7df;
  display: grid;
  gap: 0.48rem;
  padding: 0.72rem;
}

.mic-permission-panel[hidden] {
  display: none;
}

.mic-permission-panel strong {
  color: #ff8fa3;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mic-permission-panel p {
  background: transparent;
  border: 0;
  color: #ffd7df;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0;
  text-align: left;
}

body.neo-booting .hero,
body.neo-booting .voice-panel {
  animation: neoBootFlash 1.15s ease-out;
}

body.neo-booting .neo-title {
  animation: neoTitlePulse 1.15s ease-out;
}

@keyframes pulseListen {
  0%, 100% {
    box-shadow: 0 0 18px rgba(0, 255, 102, 0.22);
  }
  50% {
    box-shadow: 0 0 34px rgba(0, 255, 102, 0.48);
  }
}

@keyframes neoBootFlash {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 102, 0);
    filter: brightness(1);
  }
  26% {
    box-shadow: 0 0 44px rgba(0, 255, 102, 0.55), inset 0 0 30px rgba(0, 255, 102, 0.12);
    filter: brightness(1.35);
  }
  100% {
    box-shadow: var(--shadow);
    filter: brightness(1);
  }
}

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

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

@keyframes typingDot {
  0%, 70%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-0.18rem);
  }
}

@keyframes screenEnter {
  0% {
    opacity: 0;
    transform: translateY(0.28rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .panel:hover,
  .daily-home-card:hover,
  .memory-row:hover,
  .memory-item:hover,
  .action-card:hover,
  .structured-card:hover {
    border-color: rgba(186, 255, 203, 0.26);
    box-shadow: inset 0 0 20px rgba(0, 255, 102, 0.032), 0 16px 34px rgba(0, 0, 0, 0.26);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.chat-form input {
  border: 0;
  box-shadow: none;
  background: transparent;
  min-height: 2.38rem;
  padding: 0.62rem 0.7rem;
}

.chat-form button {
  min-height: 2.42rem;
  padding: 0.66rem 0.92rem;
}

.reset-chat-button {
  justify-self: center;
  margin-top: 0.72rem;
  min-height: 2rem;
  opacity: 0.68;
  padding: 0.42rem 0.82rem;
}

.reset-chat-button:hover {
  opacity: 1;
}

.stack-form {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.78rem;
}

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

.stack-form button {
  font-size: 0.78rem;
  min-height: 2.42rem;
  padding: 0.62rem 0.86rem;
}

.profile-summary {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.68rem;
}

.profile-summary-card {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.05), rgba(0, 8, 3, 0.72));
  border: 1px solid rgba(0, 255, 102, 0.16);
  border-radius: 1.12rem;
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.026), 0 10px 24px rgba(0, 0, 0, 0.16);
  display: grid;
  gap: 0.28rem;
  min-height: 4.55rem;
  padding: 0.62rem 0.68rem;
}

.profile-summary-card span {
  color: rgba(186, 255, 203, 0.72);
  font-size: 0.55rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-summary-card p {
  color: var(--text);
  font-size: 0.7rem;
  line-height: 1.38;
}

.profile-editor {
  margin-top: 0.62rem;
}

.profile-editor summary {
  align-items: center;
  background: rgba(0, 255, 102, 0.045);
  border: 1px solid rgba(0, 255, 102, 0.16);
  border-radius: 999px;
  color: rgba(218, 255, 229, 0.82);
  cursor: pointer;
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.04em;
  list-style: none;
  min-height: 2.35rem;
  padding: 0.56rem 0.78rem;
  text-align: center;
  text-transform: uppercase;
}

.profile-editor summary::-webkit-details-marker {
  display: none;
}

.profile-editor summary::after {
  color: var(--green);
  content: " +";
  margin-left: 0.28rem;
}

.profile-editor[open] summary::after {
  content: " -";
}

.stack-form button.saved {
  background: linear-gradient(135deg, #baffcb, var(--green));
  color: #001a08;
}

.save-status {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.07), rgba(0, 8, 3, 0.72));
  border: 1px solid rgba(186, 255, 203, 0.2);
  border-radius: 0.88rem;
  box-shadow: inset 0 0 16px rgba(0, 255, 102, 0.026);
  color: rgba(186, 255, 203, 0.88);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.42;
  padding: 0.54rem 0.64rem;
}

.memory-list {
  display: grid;
  gap: 0.58rem;
  margin-top: 0.82rem;
}

.memory-item,
.mission-card,
.action-card,
.module-card,
.architecture-card {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.046), rgba(0, 8, 3, 0.74));
  border: 1px solid rgba(0, 255, 102, 0.17);
  border-radius: 1.16rem;
  box-shadow: inset 0 0 20px rgba(0, 255, 102, 0.025), 0 14px 30px rgba(0, 0, 0, 0.2);
  color: var(--muted);
  line-height: 1.5;
  padding: 0.92rem;
  transition: border-color var(--motion-soft), box-shadow var(--motion-soft), transform var(--motion-soft);
}

.memory-item strong,
.mission-card strong,
.action-card strong,
.module-card strong,
.architecture-card strong {
  color: var(--text);
}

.memory-item {
  display: grid;
  gap: 0.36rem;
}

.memory-empty {
  border-style: dashed;
  border-color: rgba(186, 255, 203, 0.2);
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.02);
  min-height: 6.2rem;
  place-content: center;
  text-align: center;
}

.memory-empty span {
  color: rgba(186, 255, 203, 0.68);
}

.memory-empty p {
  color: rgba(234, 255, 239, 0.74);
  max-width: 30rem;
}

.v2-engine-card {
  border-color: rgba(186, 255, 203, 0.24);
  box-shadow: inset 0 0 22px rgba(0, 255, 102, 0.035), 0 16px 34px rgba(0, 0, 0, 0.24);
}

.v2-engine-card > strong {
  font-size: 0.92rem;
  line-height: 1.28;
}

.v2-metrics {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-metrics span {
  background: rgba(0, 255, 102, 0.055);
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 0.88rem;
  display: grid;
  gap: 0.14rem;
  padding: 0.48rem;
  text-align: center;
}

.v2-metrics b {
  color: var(--green);
  font-size: 0.86rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.28);
}

.v2-metrics small {
  color: rgba(186, 255, 203, 0.66);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v2-backlog {
  display: grid;
  gap: 0.48rem;
}

.v2-proposal {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.045), rgba(0, 7, 3, 0.72));
  border: 1px solid rgba(0, 255, 102, 0.14);
  border-radius: 0.98rem;
  display: grid;
  gap: 0.32rem;
  padding: 0.62rem;
}

.v2-proposal span {
  color: rgba(186, 255, 203, 0.7);
  font-size: 0.52rem;
  font-weight: 1000;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.v2-proposal strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.25;
}

.v2-proposal p {
  color: rgba(234, 255, 239, 0.78);
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1.42;
}

.v2-proposal small {
  color: rgba(186, 255, 203, 0.62);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.35;
}

.v2-actions {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: 1fr auto;
}

.v2-actions button {
  font-size: 0.62rem;
  min-height: 2.32rem;
  padding: 0.48rem 0.58rem;
}

.memory-item span {
  color: rgba(186, 255, 203, 0.72);
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory-item p {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.45;
}

.memory-item small {
  color: rgba(146, 217, 170, 0.72);
  font-size: 0.66rem;
}

.memory-table {
  display: grid;
  gap: 0.58rem;
}

.memory-row {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.044), rgba(0, 8, 3, 0.74));
  border: 1px solid rgba(0, 255, 102, 0.17);
  border-radius: 1.16rem;
  display: grid;
  gap: 0.7rem;
  padding: 0.82rem;
  transition: border-color var(--motion-soft), box-shadow var(--motion-soft), transform var(--motion-soft);
}

.memory-row-main {
  display: grid;
  gap: 0.32rem;
}

.memory-row-top {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
}

.memory-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  justify-content: flex-end;
}

.memory-row-main span {
  color: rgba(186, 255, 203, 0.72);
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory-confidence {
  border: 1px solid rgba(186, 255, 203, 0.2);
  border-radius: 999px;
  color: rgba(234, 255, 239, 0.86);
  font-size: 0.5rem;
  font-weight: 1000;
  letter-spacing: 0.11em;
  padding: 0.18rem 0.36rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.memory-tier {
  border: 1px solid rgba(0, 255, 102, 0.22);
  border-radius: 999px;
  color: #baffcb;
  font-size: 0.5rem;
  font-weight: 1000;
  letter-spacing: 0.11em;
  padding: 0.18rem 0.36rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.memory-tier[data-tier="critical"] {
  background: rgba(0, 255, 102, 0.12);
  border-color: rgba(0, 255, 102, 0.36);
}

.memory-tier[data-tier="useful"] {
  background: rgba(105, 255, 155, 0.075);
  border-color: rgba(105, 255, 155, 0.24);
  color: rgba(218, 255, 226, 0.9);
}

.memory-tier[data-tier="stale"] {
  background: rgba(255, 214, 102, 0.075);
  border-color: rgba(255, 214, 102, 0.26);
  color: rgba(255, 226, 154, 0.9);
}

.memory-tier[data-tier="rejected"] {
  background: rgba(255, 90, 90, 0.075);
  border-color: rgba(255, 120, 120, 0.25);
  color: rgba(255, 190, 190, 0.92);
}

.memory-hierarchy-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.memory-hierarchy-card {
  background: rgba(0, 14, 5, 0.66);
  border: 1px solid rgba(0, 255, 102, 0.13);
  border-radius: 0.95rem;
  display: grid;
  gap: 0.18rem;
  padding: 0.66rem;
}

.memory-hierarchy-card span {
  color: rgba(186, 255, 203, 0.72);
  font-size: 0.52rem;
  font-weight: 1000;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.memory-hierarchy-card strong {
  color: var(--text);
  font-size: 1.1rem;
}

.memory-hierarchy-card small {
  color: rgba(146, 217, 170, 0.72);
  font-size: 0.58rem;
  line-height: 1.35;
}

.memory-confidence[data-confidence="solid"] {
  background: rgba(0, 255, 102, 0.1);
  border-color: rgba(0, 255, 102, 0.28);
  color: #baffcb;
}

.memory-confidence[data-confidence="check"] {
  background: rgba(255, 214, 102, 0.08);
  border-color: rgba(255, 214, 102, 0.28);
  color: rgba(255, 226, 154, 0.88);
}

.memory-confidence[data-confidence="old"] {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(234, 255, 239, 0.16);
  color: rgba(234, 255, 239, 0.66);
}

.memory-row-main p {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.45;
}

.memory-row-main small {
  color: rgba(146, 217, 170, 0.72);
  font-size: 0.64rem;
}

.memory-row-actions {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr 1fr;
}

.memory-row-actions button {
  font-size: 0.68rem;
  min-height: 2.35rem;
  padding: 0.5rem;
}

.contact-item strong {
  font-size: 0.9rem;
}

.contact-actions {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr auto;
}

.contact-actions button {
  min-height: 2.35rem;
  padding: 0.48rem 0.72rem;
}

.mission-card {
  display: grid;
  gap: 0.5rem;
}

.mission-card span {
  color: rgba(186, 255, 203, 0.72);
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-card p {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.5;
}

.mission-card button {
  margin-top: 0.2rem;
}

.action-list,
.module-grid {
  display: grid;
  gap: 0.56rem;
  margin-top: 0.72rem;
}

.action-list {
  gap: 0.54rem;
  padding-bottom: 7rem;
}

.module-grid {
  grid-template-columns: repeat(2, 1fr);
}

.today-dashboard {
  display: grid;
  gap: 0.64rem;
  margin-top: 0.62rem;
  padding-bottom: 6.8rem;
}

.daily-home-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(186, 255, 203, 0.22), transparent 8.5rem),
    radial-gradient(circle at 100% 32%, rgba(0, 255, 102, 0.16), transparent 10rem),
    linear-gradient(150deg, rgba(0, 255, 102, 0.17), rgba(0, 12, 5, 0.94) 56%, rgba(0, 3, 1, 0.98));
  border: 1px solid rgba(186, 255, 203, 0.36);
  border-radius: 1.48rem;
  box-shadow: 0 0 34px rgba(0, 255, 102, 0.14), 0 24px 58px rgba(0, 0, 0, 0.36);
  display: grid;
  gap: 0.66rem;
  overflow: hidden;
  padding: 0.96rem;
  position: relative;
  transition: border-color var(--motion-soft), box-shadow var(--motion-soft), transform var(--motion-soft);
}

.daily-home-card::before {
  background: linear-gradient(90deg, transparent, rgba(186, 255, 203, 0.96), transparent);
  content: "";
  height: 1px;
  inset: 0 0 auto;
  opacity: 0.8;
  position: absolute;
}

.daily-home-kicker {
  color: rgba(186, 255, 203, 0.78);
  font-size: 0.54rem;
  font-weight: 1000;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.daily-home-card strong {
  color: var(--text);
  font-size: 1.24rem;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.daily-home-card p {
  color: rgba(234, 255, 239, 0.84);
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.45;
}

.daily-home-card button {
  font-size: 0.9rem;
  min-height: 3rem;
  width: 100%;
}

.daily-home-quick-actions {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-home-quick-actions button {
  background: rgba(0, 10, 4, 0.72);
  border-color: rgba(186, 255, 203, 0.22);
  color: rgba(234, 255, 239, 0.9);
  font-size: 0.72rem;
  min-height: 2.28rem;
  padding: 0.52rem;
}

.daily-home-meta {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: 0.82fr 1.18fr;
}

.daily-home-meta span {
  background: rgba(0, 255, 102, 0.06);
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 0.98rem;
  color: rgba(234, 255, 239, 0.8);
  display: grid;
  font-size: 0.58rem;
  font-weight: 820;
  gap: 0.2rem;
  line-height: 1.28;
  min-width: 0;
  padding: 0.48rem;
}

.daily-home-meta b {
  color: var(--green);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.today-secondary-grid {
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.today-modules-panel {
  background:
    linear-gradient(180deg, rgba(0, 255, 102, 0.035), rgba(0, 8, 3, 0.7));
  border: 1px solid rgba(0, 255, 102, 0.14);
  border-radius: 1.08rem;
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.022);
  padding: 0.52rem;
}

.today-modules-panel summary {
  align-items: center;
  color: rgba(186, 255, 203, 0.78);
  cursor: pointer;
  display: flex;
  font-size: 0.66rem;
  font-weight: 1000;
  justify-content: center;
  letter-spacing: 0.14em;
  list-style: none;
  min-height: 2.35rem;
  text-transform: uppercase;
}

.today-modules-panel summary::-webkit-details-marker {
  display: none;
}

.today-modules-panel summary::after {
  color: var(--green);
  content: " +";
  margin-left: 0.35rem;
}

.today-modules-panel[open] summary {
  margin-bottom: 0.52rem;
}

.today-modules-panel[open] summary::after {
  content: " -";
}

.today-modules-panel summary small {
  align-items: center;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.18);
  border-radius: 999px;
  color: #baffcb;
  display: inline-flex;
  font-size: 0.54rem;
  justify-content: center;
  margin-left: 0.44rem;
  min-width: 1.25rem;
  padding: 0.16rem 0.34rem;
}

.today-internal-panel {
  background: linear-gradient(180deg, rgba(186, 255, 203, 0.022), rgba(0, 8, 3, 0.58));
  border-color: rgba(186, 255, 203, 0.1);
}

.today-internal-panel summary {
  color: rgba(186, 255, 203, 0.58);
}

.compact-system-grid {
  gap: 0.44rem;
}

.compact-system-card {
  background: linear-gradient(180deg, rgba(0, 255, 102, 0.026), rgba(0, 7, 3, 0.76));
  border-color: rgba(186, 255, 203, 0.12);
  box-shadow: inset 0 0 14px rgba(0, 255, 102, 0.018);
}

.compact-system-card p {
  color: rgba(220, 255, 226, 0.66);
}

.today-briefing {
  margin-top: 0.92rem;
}

.briefing-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(186, 255, 203, 0.18), transparent 8rem),
    radial-gradient(circle at 100% 20%, rgba(0, 255, 102, 0.13), transparent 10rem),
    linear-gradient(145deg, rgba(0, 255, 102, 0.13), rgba(0, 10, 4, 0.92) 58%, rgba(0, 3, 1, 0.96));
  border: 1px solid rgba(186, 255, 203, 0.3);
  border-radius: 1.38rem;
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.1), 0 20px 42px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 0.55rem;
  overflow: hidden;
  padding: 0.82rem;
  position: relative;
}

.briefing-card::before {
  background: linear-gradient(90deg, transparent, rgba(186, 255, 203, 0.86), transparent);
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.7;
  position: absolute;
  right: 0;
  top: 0;
}

.briefing-kicker {
  color: rgba(186, 255, 203, 0.76);
  font-size: 0.54rem;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.briefing-card strong {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.28;
}

.briefing-card p {
  color: rgba(234, 255, 239, 0.84);
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.48;
}

.briefing-metrics {
  display: grid;
  gap: 0.32rem;
  grid-template-columns: repeat(3, 1fr);
}

.briefing-metrics span {
  background: rgba(0, 255, 102, 0.06);
  border: 1px solid rgba(0, 255, 102, 0.14);
  border-radius: 0.82rem;
  color: rgba(234, 255, 239, 0.82);
  display: grid;
  font-size: 0.58rem;
  font-weight: 820;
  gap: 0.18rem;
  line-height: 1.25;
  min-width: 0;
  padding: 0.38rem;
}

.briefing-metrics b {
  color: var(--green);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.briefing-actions {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.briefing-card button {
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  min-height: 2.28rem;
  padding: 0.52rem 0.62rem;
}

.briefing-more-actions {
  background: rgba(0, 10, 4, 0.5);
  border: 1px solid rgba(0, 255, 102, 0.13);
  border-radius: 1rem;
  grid-column: 1 / -1;
  padding: 0.48rem;
}

.briefing-more-actions summary {
  align-items: center;
  color: rgba(186, 255, 203, 0.76);
  cursor: pointer;
  display: flex;
  font-size: 0.62rem;
  font-weight: 1000;
  justify-content: center;
  letter-spacing: 0.14em;
  list-style: none;
  min-height: 2.35rem;
  text-align: center;
  text-transform: uppercase;
}

.briefing-more-actions summary::-webkit-details-marker {
  display: none;
}

.briefing-more-actions summary::after {
  color: var(--green);
  content: " +";
  margin-left: 0.28rem;
}

.briefing-more-actions[open] summary::after {
  content: " -";
}

.briefing-more-grid {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.46rem;
}

.briefing-more-grid button {
  background: rgba(0, 10, 4, 0.72);
  border-color: rgba(186, 255, 203, 0.16);
  color: rgba(234, 255, 239, 0.82);
  font-size: 0.64rem;
  min-height: 2.24rem;
  padding: 0.42rem 0.34rem;
}

.composer-panel {
  background: rgba(0, 255, 102, 0.045);
  border: 1px solid rgba(0, 255, 102, 0.14);
  border-radius: 1rem;
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.48rem;
}

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

.composer-panel button {
  background: rgba(0, 10, 4, 0.72);
  border-color: rgba(186, 255, 203, 0.16);
  color: rgba(234, 255, 239, 0.88);
  font-size: 0.68rem;
  min-height: 2.15rem;
  padding: 0.42rem;
}

.today-card {
  background:
    radial-gradient(circle at top right, rgba(186, 255, 203, 0.075), transparent 8rem),
    linear-gradient(180deg, rgba(0, 255, 102, 0.07), rgba(0, 8, 3, 0.78));
  border: 1px solid rgba(0, 255, 102, 0.18);
  border-radius: 1.16rem;
  box-shadow: inset 0 0 20px rgba(0, 255, 102, 0.026), 0 14px 30px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
  padding: 0.78rem;
}

.today-card span {
  color: rgba(186, 255, 203, 0.72);
  font-size: 0.6rem;
  font-weight: 1000;
  grid-column: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.today-card strong {
  color: var(--text);
  font-size: 0.78rem;
  grid-column: 1;
  line-height: 1.28;
}

.today-card p {
  color: rgba(234, 255, 239, 0.82);
  font-size: 0.66rem;
  font-weight: 760;
  grid-column: 1 / -1;
  line-height: 1.48;
}

.today-card button {
  grid-column: 1;
  justify-self: stretch;
  min-height: 2.35rem;
  padding: 0.46rem 0.74rem;
}

.action-card {
  display: grid;
  gap: 0.48rem;
  padding: 0.78rem;
}

.action-card.pending {
  border-color: rgba(186, 255, 203, 0.28);
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.032), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.empty-action-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(186, 255, 203, 0.08), transparent 8rem),
    linear-gradient(180deg, rgba(0, 255, 102, 0.038), rgba(0, 8, 3, 0.78));
  border-color: rgba(186, 255, 203, 0.2);
  border-style: dashed;
  gap: 0.42rem;
  min-height: 8.2rem;
  place-content: center;
  text-align: center;
}

.empty-action-card strong {
  letter-spacing: -0.02em;
}

.empty-action-card p {
  color: rgba(234, 255, 239, 0.74);
  font-size: 0.72rem;
  line-height: 1.45;
  margin-inline: auto;
  max-width: 32rem;
}

.action-card.done {
  border-color: rgba(84, 227, 166, 0.35);
}

.action-card.rejected {
  border-color: rgba(255, 107, 107, 0.3);
  opacity: 0.76;
}

.action-meta,
.action-buttons {
  align-items: center;
  display: flex;
  gap: 0.52rem;
  justify-content: space-between;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr auto;
  scroll-margin-bottom: 8rem;
}

.action-buttons button {
  font-size: 0.72rem;
  min-height: 2.18rem;
  padding: 0.5rem 0.76rem;
}

.action-meta span {
  color: rgba(186, 255, 203, 0.78);
  font-size: 0.56rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.action-meta small {
  background: rgba(0, 255, 102, 0.06);
  border: 1px solid rgba(0, 255, 102, 0.16);
  border-radius: 999px;
  color: rgba(186, 255, 203, 0.72);
  font-size: 0.56rem;
  padding: 0.18rem 0.42rem;
}

.action-card > strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.action-card > p {
  color: rgba(234, 255, 239, 0.82);
  font-size: 0.74rem;
  line-height: 1.46;
}

.action-card pre {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(0, 255, 102, 0.16);
  border-radius: 0.95rem;
  box-shadow: inset 0 0 18px rgba(0, 255, 102, 0.03);
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1.55;
  margin: 0;
  overflow: auto;
  padding: 0.72rem;
  white-space: pre-wrap;
}

.result-actions {
  grid-template-columns: repeat(2, auto);
  justify-content: flex-end;
}

.approval-hint {
  background: rgba(0, 255, 102, 0.045);
  border: 1px solid rgba(0, 255, 102, 0.14);
  border-radius: 0.86rem;
  color: rgba(186, 255, 203, 0.82);
  font-size: 0.68rem;
  padding: 0.48rem 0.56rem;
}

.architecture-card {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.bottom-nav {
  backdrop-filter: blur(22px) saturate(1.05);
  background:
    radial-gradient(circle at 50% 0%, rgba(186, 255, 203, 0.08), transparent 12rem),
    linear-gradient(180deg, rgba(0, 255, 102, 0.075), rgba(0, 10, 4, 0.94)),
    rgba(0, 7, 2, 0.92);
  border: 1px solid rgba(186, 255, 203, 0.26);
  border-radius: 1.28rem;
  bottom: max(0.44rem, env(safe-area-inset-bottom));
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.12), 0 14px 36px rgba(0, 0, 0, 0.72), inset 0 0 22px rgba(0, 255, 102, 0.025);
  display: grid;
  gap: 0.36rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 50%;
  max-width: 390px;
  padding: 0.28rem;
  position: fixed;
  transform: translateX(-50%);
  width: min(390px, calc(100vw - 1rem));
  z-index: 5;
}

.nav-button {
  align-items: center;
  background: rgba(0, 255, 102, 0.028);
  border: 1px solid rgba(0, 255, 102, 0.075);
  border-radius: 1rem;
  box-shadow: none;
  color: rgba(234, 255, 239, 0.64);
  display: grid;
  font-size: 0.6rem;
  gap: 0.08rem;
  justify-items: center;
  letter-spacing: 0.01em;
  min-height: 2.44rem;
  padding: 0.38rem 0.34rem;
}

.nav-button:hover {
  background: rgba(0, 255, 102, 0.072);
  border-color: rgba(186, 255, 203, 0.22);
  color: var(--text);
}

.nav-button span {
  color: var(--green);
  font-size: 0.86rem;
  line-height: 1;
}

.nav-button.active {
  background:
    radial-gradient(circle at 50% 0%, rgba(186, 255, 203, 0.2), transparent 3rem),
    linear-gradient(180deg, rgba(0, 255, 102, 0.14), rgba(0, 255, 102, 0.052));
  border-color: rgba(186, 255, 203, 0.34);
  box-shadow: 0 0 18px rgba(0, 255, 102, 0.14), inset 0 0 16px rgba(0, 255, 102, 0.05);
  color: var(--text);
  text-shadow: 0 0 14px rgba(0, 255, 102, 0.45);
}

.nav-button.active::before {
  background: linear-gradient(90deg, transparent, rgba(186, 255, 203, 0.82), transparent);
  border-radius: 999px;
  content: "";
  height: 1px;
  left: 18%;
  opacity: 0.82;
  position: absolute;
  right: 18%;
  top: 0.25rem;
}

.file-button input {
  display: none;
}

.small-copy {
  color: rgba(186, 255, 203, 0.74);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.5;
  margin-top: 0.72rem;
}

@media (max-width: 390px) {
  .app-shell {
    padding-inline: 0.72rem;
  }

  .hero,
  .panel {
    border-radius: 1.28rem;
  }

  .neo-title {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .hero-copy {
    font-size: 0.68rem;
  }

  .chat-form {
    bottom: calc(4.65rem + env(safe-area-inset-bottom));
    gap: 0.28rem;
  }

  .chat-form input {
    font-size: 0.72rem;
    min-width: 0;
    padding-inline: 0.5rem;
  }

  .chat-form button {
    font-size: 0.8rem;
    padding-inline: 0.78rem;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .daily-home-card {
    padding: 0.82rem;
  }

  .daily-home-card strong {
    font-size: 1.08rem;
  }

  .daily-home-meta {
    grid-template-columns: 1fr;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row > * {
    width: 100%;
  }

  .profile-summary {
    grid-template-columns: 1fr;
  }

  .profile-summary-card {
    min-height: auto;
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 350px) {
  .app-shell {
    padding-inline: 0.58rem;
  }

  .chat-form {
    border-radius: 1.18rem;
    grid-template-columns: 1fr;
  }

  .chat-form button {
    width: 100%;
  }

  .bottom-nav {
    width: min(390px, calc(100vw - 0.7rem));
  }

  .nav-button {
    font-size: 0.56rem;
    min-height: 2.34rem;
  }
}
