:root {
  color-scheme: dark;
  --bg: #05070a;
  --sidebar: rgba(9, 14, 18, .72);
  --surface: rgba(14, 22, 27, .72);
  --surface-2: rgba(20, 35, 42, .78);
  --line: rgba(122, 255, 230, .18);
  --text: #f4f6fb;
  --muted: #90a6aa;
  --soft: #d4fff5;
  --accent: #29ffd4;
  --accent-2: #5b7cff;
  --good: #75e0a3;
  --bad: #ff8d9b;
  --shadow: 0 24px 80px rgba(0, 0, 0, .40);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}

button, textarea, input { font: inherit; }

.matrix-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .42;
}

.machine-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(41, 255, 212, .24), transparent 18rem),
    radial-gradient(circle at 78% 72%, rgba(91, 124, 255, .18), transparent 24rem),
    linear-gradient(120deg, rgba(41, 255, 212, .05), transparent 35%, rgba(91, 124, 255, .06));
  opacity: .70;
  animation: machineDrift 18s linear infinite;
}

.machine-bg::before,
.machine-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(41, 255, 212, .18) 45%, transparent 48% 100%),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(41,255,212,.035) 82px, transparent 84px);
  mix-blend-mode: screen;
  opacity: .45;
  animation: scanline 9s linear infinite;
}

.machine-bg::after {
  opacity: .22;
  animation-duration: 5s;
  animation-direction: reverse;
}

body.generating .machine-bg {
  opacity: .92;
  animation-duration: 7s;
}

body.generating .matrix-bg,
body.speaking .matrix-bg {
  opacity: .72;
}

body.generating .machine-bg::before {
  opacity: .8;
}

@keyframes machineDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 88px 44px, -44px 88px, 0 0, 0 0; }
}

@keyframes scanline {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.side {
  min-height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  backdrop-filter: blur(28px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}

.mark, .spark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 900;
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(41, 255, 212, .22);
}

.brand strong, .brand span, .title-block strong, .title-block span { display: block; }
.brand strong { font-size: 15px; }
.brand span, .label, .title-block span, .side-card, .auth-card { color: var(--muted); }

.new-chat, .nav a, .session-item {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.new-chat {
  padding: 11px 12px;
  background: var(--surface-2);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.nav, .session-list {
  display: grid;
  gap: 8px;
}

.session-panel {
  display: grid;
  gap: 9px;
}

.session-list {
  max-height: 252px;
  overflow: auto;
}

.session-item {
  width: 100%;
  min-height: 46px;
  background: rgba(17, 27, 32, .58);
  color: var(--soft);
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
}

.session-item.active {
  border-color: rgba(41, 255, 212, .55);
  background: rgba(41, 255, 212, .13);
  color: #fff;
}

.session-item strong,
.session-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-item strong {
  font-size: 12px;
}

.session-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.nav a {
  padding: 10px 12px;
  color: var(--soft);
}

.nav a.active {
  background: rgba(41, 255, 212, .13);
  border-color: rgba(41, 255, 212, .44);
  color: white;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 13px;
  display: grid;
  gap: 7px;
  overflow-wrap: anywhere;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 13px;
  display: grid;
  gap: 10px;
  overflow-wrap: anywhere;
}

.auth-user {
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(95,255,224,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  outline: none;
  padding: 10px 12px;
}

.auth-form input:focus {
  border-color: rgba(41,255,212,.45);
  box-shadow: 0 0 0 3px rgba(41,255,212,.08);
}

.auth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-actions button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

#auth-message {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.auth-modal[hidden],
.auth-mode[hidden],
[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(12px);
}

.auth-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(95,255,224,.24);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(10, 22, 26, .92), rgba(8, 12, 18, .86)),
    rgba(5, 10, 12, .92);
  box-shadow: 0 34px 120px rgba(0,0,0,.70), 0 0 80px rgba(41,255,212,.14);
  padding: 28px;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.auth-dialog h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.auth-dialog p {
  color: var(--muted);
  line-height: 1.5;
}

.auth-dialog .auth-form {
  margin-top: 16px;
}

.auth-dialog .auth-form input {
  min-height: 48px;
  border-radius: 22px;
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--soft);
  font-size: 13px;
}

.terms-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.terms-box {
  max-height: 170px;
  overflow: auto;
  border: 1px solid rgba(95,255,224,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  padding: 13px;
}

.terms-box strong {
  color: var(--text);
}

.terms-box p {
  margin: 8px 0 0;
  font-size: 12px;
}

.auth-switch {
  text-align: center;
  margin-bottom: 0;
}

.auth-switch button {
  padding: 0;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.side-card strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.chat {
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at top left, rgba(41, 255, 212, .13), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(124, 92, 255, .12), transparent 32rem),
    rgba(3, 7, 10, .72);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 12, 16, .68);
  backdrop-filter: blur(26px);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.title-block strong {
  font-size: 17px;
}

.status-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.online {
  border-color: rgba(117, 224, 163, .55);
  color: var(--good);
}

.status-pill.offline {
  border-color: rgba(255, 141, 155, .55);
  color: var(--bad);
}

.messages {
  overflow: auto;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.welcome {
  width: min(760px, 100%);
  margin: auto;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.manifesto-face {
  width: min(300px, 72vw);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 40px rgba(41, 255, 212, .22));
}

.manifesto-face::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(41,255,212,.24), transparent 24%),
    radial-gradient(circle at 50% 72%, rgba(91,124,255,.14), transparent 34%);
  border: 1px solid rgba(41,255,212,.22);
  animation: faceFloat 4.6s ease-in-out infinite;
}

.face-shell {
  width: 58%;
  height: 64%;
  position: relative;
  border-radius: 42% 42% 48% 48% / 36% 36% 58% 58%;
  background:
    linear-gradient(160deg, rgba(227,255,250,.20), rgba(41,255,212,.05)),
    rgba(8, 18, 22, .86);
  border: 1px solid rgba(189, 255, 245, .35);
  box-shadow:
    inset 0 0 42px rgba(41,255,212,.10),
    0 22px 70px rgba(0,0,0,.42);
  overflow: hidden;
  animation: faceFloat 4.6s ease-in-out infinite;
}

.brain {
  position: absolute;
  z-index: 2;
  top: 18%;
  width: 38%;
  height: 18%;
  border-radius: 999px 999px 24px 24px;
  background:
    repeating-linear-gradient(90deg, rgba(41,255,212,.20) 0 7px, transparent 8px 14px),
    linear-gradient(135deg, rgba(41,255,212,.26), rgba(91,124,255,.18));
  border: 1px solid rgba(41,255,212,.38);
  box-shadow: 0 0 24px rgba(41,255,212,.24);
  opacity: .72;
}

.eye {
  position: absolute;
  top: 42%;
  width: 18%;
  height: 9%;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(41,255,212,.78);
  animation: eyePulse 2.4s ease-in-out infinite;
}

.eye-left { left: 24%; }
.eye-right { right: 24%; }

.mouth {
  position: absolute;
  left: 33%;
  bottom: 24%;
  width: 34%;
  height: 7%;
  border-radius: 999px;
  background: rgba(41,255,212,.88);
  box-shadow: 0 0 18px rgba(41,255,212,.56);
}

.neck {
  position: absolute;
  bottom: 16%;
  width: 30%;
  height: 14%;
  border-radius: 999px 999px 32px 32px;
  background: rgba(41,255,212,.08);
  border: 1px solid rgba(41,255,212,.18);
}

body.generating .brain {
  opacity: 1;
  animation: brainThink .55s ease-in-out infinite alternate;
}

body.speaking .mouth {
  animation: mouthSpeak .18s ease-in-out infinite alternate;
}

body.speaking .eye {
  animation-duration: .9s;
}

@keyframes faceFloat {
  50% { transform: translateY(-8px); }
}

@keyframes eyePulse {
  50% { opacity: .55; transform: scaleX(.72); }
}

@keyframes brainThink {
  from { box-shadow: 0 0 16px rgba(41,255,212,.35), inset 0 0 8px rgba(255,255,255,.12); transform: translateY(0) scale(1); }
  to { box-shadow: 0 0 46px rgba(41,255,212,.95), inset 0 0 18px rgba(255,255,255,.25); transform: translateY(-2px) scale(1.06); }
}

@keyframes mouthSpeak {
  from { height: 5%; transform: scaleX(.72); border-radius: 999px; }
  to { height: 17%; transform: scaleX(1.05); border-radius: 45%; }
}

.welcome h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.welcome p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
}

.suggestions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.suggestions button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(14, 28, 32, .66);
  color: var(--text);
  text-align: left;
  padding: 12px;
  cursor: pointer;
}

.message {
  width: min(820px, 100%);
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(12, 24, 29, .72);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  line-height: 1.6;
  white-space: pre-wrap;
}

.message.assistant {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(41,255,212,.94), rgba(196,255,241,.92));
  color: #03110e;
  border-color: transparent;
}

.message.pending {
  color: var(--muted);
  position: relative;
}

.message.pending::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 5px;
  background: var(--accent);
  vertical-align: -2px;
  animation: cursorBlink .75s steps(1) infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.composer {
  border-top: 1px solid var(--line);
  padding: 16px 22px 20px;
  background: rgba(3, 8, 11, .62);
  backdrop-filter: blur(24px);
}

.composer-box {
  width: min(940px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(9, 20, 24, .78);
  box-shadow: var(--shadow);
  padding: 10px;
}

textarea {
  width: 100%;
  min-height: 54px;
  max-height: 180px;
  resize: none;
  overflow-y: auto;
  border: 0;
  padding: 12px 14px;
  background: transparent;
  color: var(--text);
  outline: none;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 4px 0;
}

.composer-actions span {
  color: var(--muted);
  font-size: 12px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--text);
  color: #07080b;
  font-weight: 900;
  cursor: pointer;
}

.admin {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--bg);
}

.panel {
  width: min(860px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.panel a { color: var(--text); }
code, pre {
  background: #0b0d12;
  border: 1px solid var(--line);
  border-radius: 12px;
}
code { padding: 3px 7px; }
pre { padding: 14px; overflow: auto; }
dt { font-weight: 850; margin-top: 14px; }
dd { margin: 6px 0 0; color: var(--muted); }
.ok { color: var(--good); }
.bad { color: var(--bad); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .suggestions { grid-template-columns: 1fr; }
  .messages { padding: 22px 14px; }
  .composer { padding: 12px; }
}

/* 2026 glass/oracle shell override */
.shell {
  display: block;
}

.menu-button {
  position: fixed;
  z-index: 22;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(95,255,224,.24);
  border-radius: 18px;
  background: rgba(6, 16, 19, .56);
  color: var(--text);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0,0,0,.34), 0 0 26px rgba(41,255,212,.12);
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: 0 0 10px rgba(41,255,212,.42);
  transition: transform .2s ease, opacity .2s ease;
}

body.side-open .menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.side-open .menu-button span:nth-child(2) {
  opacity: 0;
}

body.side-open .menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.side-hover-zone {
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  width: 22px;
  height: 100vh;
}

.side-backdrop {
  position: fixed;
  z-index: 14;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(5px);
}

.side-backdrop[hidden] {
  display: none;
}

.side {
  position: fixed;
  z-index: 15;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: min(330px, calc(100vw - 34px));
  min-height: auto;
  border: 1px solid rgba(95, 255, 224, .20);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(10, 22, 26, .82), rgba(10, 15, 22, .58)),
    rgba(7, 12, 16, .62);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .50), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateX(calc(-100% - 28px));
  transition: transform .34s cubic-bezier(.2,.9,.2,1), box-shadow .34s ease, background .34s ease;
}

body.side-open .side,
.side:focus-within {
  transform: translateX(0);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .66), 0 0 60px rgba(41,255,212,.16);
}

.side-tab {
  display: none;
}

.chat {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: rgba(1, 5, 7, .28);
}

.oracle-stage {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.oracle-stage .manifesto-face {
  width: min(430px, 70vw);
  opacity: .78;
  transform: translateY(-24px);
}

.topbar,
.messages,
.composer {
  position: relative;
  z-index: 2;
}

.topbar {
  width: min(980px, calc(100vw - 82px));
  margin: 16px auto 0;
  border: 1px solid rgba(95,255,224,.16);
  border-radius: 999px;
  background: rgba(6, 13, 16, .34);
  box-shadow: 0 22px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}

.messages {
  height: calc(100vh - 84px);
  padding: 28px max(18px, 8vw) calc(var(--composer-height, 150px) + 24px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 92%, transparent 100%);
}

.welcome {
  margin-top: min(34vh, 260px);
  padding: 28px;
  border-radius: 42px;
  background: rgba(4, 13, 16, .24);
  border: 1px solid rgba(95,255,224,.12);
  backdrop-filter: blur(8px);
}

.welcome h1 {
  text-shadow: 0 0 34px rgba(41,255,212,.18);
}

.suggestions button {
  border-radius: 999px;
  background: rgba(7, 20, 24, .32);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.18);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.suggestions button:hover {
  transform: translateY(-2px);
  border-color: rgba(41,255,212,.44);
  background: rgba(41,255,212,.10);
}

.message {
  width: min(760px, 100%);
  border-radius: 30px;
  background: rgba(5, 15, 18, .34);
  border-color: rgba(95,255,224,.15);
  backdrop-filter: blur(18px);
}

.message.assistant {
  margin-left: max(0px, 6vw);
}

.message.user {
  margin-right: max(0px, 6vw);
  border-radius: 30px 30px 10px 30px;
}

.composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 0;
  padding: 16px 18px 22px;
  background: linear-gradient(to top, rgba(2,5,7,.74), rgba(2,5,7,0));
}

.composer-box {
  width: min(880px, calc(100vw - 34px));
  border-radius: 34px;
  background: rgba(4, 14, 17, .42);
  border-color: rgba(95,255,224,.18);
  backdrop-filter: blur(22px);
  box-shadow: 0 26px 90px rgba(0,0,0,.46), 0 0 60px rgba(41,255,212,.10), inset 0 1px 0 rgba(255,255,255,.10);
}

textarea {
  background: rgba(255, 255, 255, .025);
  border-radius: 24px;
  scrollbar-width: thin;
}

.composer-actions {
  border-top-color: rgba(95,255,224,.11);
}

.composer-actions button {
  min-width: 92px;
  background: linear-gradient(135deg, rgba(41,255,212,.95), rgba(218,255,247,.94));
  box-shadow: 0 0 28px rgba(41,255,212,.22);
}

body.generating .oracle-stage .brain {
  opacity: 1;
  animation: brainThink .42s ease-in-out infinite alternate;
}

body.speaking .oracle-stage .mouth {
  animation: mouthSpeak .13s ease-in-out infinite alternate;
}

@media (max-width: 860px) {
  body { overflow: hidden; }
  .side {
    top: 10px;
    bottom: auto;
    height: calc(100vh - 20px);
    width: min(310px, calc(100vw - 30px));
    transform: translateX(calc(-100% - 24px));
    border-radius: 28px;
  }

  body.side-open .side,
  .side:focus-within {
    transform: translateX(0);
  }

  .side-hover-zone {
    display: none;
  }

  .topbar {
    width: calc(100vw - 76px);
    margin-left: 62px;
    border-radius: 28px;
    padding: 14px 16px;
  }

  .title-block span {
    font-size: 12px;
  }

  .oracle-stage .manifesto-face {
    width: min(330px, 82vw);
    opacity: .58;
    transform: translateY(-54px);
  }

  .messages {
    height: calc(100vh - 92px);
    padding: 18px 14px calc(var(--composer-height, 150px) + 22px) 44px;
  }

  .welcome {
    margin-top: 28vh;
    padding: 18px;
    border-radius: 30px;
  }

  .message.assistant,
  .message.user {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Manifesto hologram face */
.manifesto-face {
  width: min(360px, 72vw);
  aspect-ratio: 360 / 430;
  position: relative;
  display: grid;
  place-items: center;
  filter:
    drop-shadow(0 0 26px rgba(52, 218, 255, .36))
    drop-shadow(0 0 64px rgba(41, 255, 212, .16));
}

.oracle-stage .manifesto-face {
  width: min(430px, 72vw);
  opacity: .88;
  transform: translateY(-28px);
}

.manifesto-face::before,
.manifesto-face::after {
  content: "";
  position: absolute;
  inset: 2% 10% 5%;
  border-radius: 48% 48% 28% 28%;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(129, 222, 255, .25) 49%, transparent 51% 100%),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(96, 198, 255, .06) 16px, transparent 17px);
  mix-blend-mode: screen;
  opacity: .42;
  pointer-events: none;
}

.manifesto-face::after {
  inset: 4% 18% 25%;
  border: 1px solid rgba(106, 213, 255, .16);
  background: radial-gradient(circle at 50% 34%, rgba(77, 207, 255, .18), transparent 48%);
  animation: holoBreath 4.8s ease-in-out infinite;
}

.hologram-head {
  width: 100%;
  height: auto;
  overflow: visible;
  animation: holoFloat 5.4s ease-in-out infinite;
}

.holo-head-fill,
.holo-neck,
.holo-shoulders,
.holo-ear {
  fill: url(#holoSkin);
  stroke: rgba(99, 206, 255, .54);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.holo-shoulders,
.holo-neck {
  fill: rgba(42, 196, 255, .13);
}

.holo-grid,
.holo-detail,
.holo-neck-grid {
  fill: none;
  stroke: rgba(120, 218, 255, .42);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.holo-grid path,
.holo-neck-grid path {
  filter: url(#holoGlow);
}

.holo-detail {
  stroke: rgba(149, 231, 255, .50);
  stroke-width: 1.8;
}

.holo-eye {
  fill: rgba(77, 255, 230, .78);
  stroke: rgba(180, 255, 249, .72);
  stroke-width: 1;
  filter: drop-shadow(0 0 10px rgba(62, 255, 230, .95));
  animation: holoEyePulse 2.6s ease-in-out infinite;
}

.holo-mouth {
  fill: none;
  stroke: rgba(176, 248, 255, .68);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(107, 236, 255, .75));
}

body.generating .hologram-head {
  animation-duration: 2.2s;
}

body.generating .holo-grid,
body.generating .holo-neck-grid {
  animation: gridCharge .55s ease-in-out infinite alternate;
}

body.generating .holo-head-fill {
  stroke: rgba(41, 255, 212, .82);
  filter: drop-shadow(0 0 14px rgba(41,255,212,.45));
}

body.speaking .holo-mouth {
  animation: holoMouthSpeak .16s ease-in-out infinite alternate;
}

body.speaking .holo-eye {
  animation-duration: .85s;
}

@keyframes holoFloat {
  50% { transform: translateY(-9px) scale(1.01); }
}

@keyframes holoBreath {
  50% { opacity: .68; transform: scale(1.025); }
}

@keyframes holoEyePulse {
  50% { opacity: .62; transform: translateY(1px) scaleX(.92); }
}

@keyframes holoMouthSpeak {
  from {
    stroke-width: 4;
    transform: translateY(0) scaleY(.75);
    opacity: .68;
  }
  to {
    stroke-width: 8;
    transform: translateY(2px) scaleY(1.7);
    opacity: 1;
  }
}

@keyframes gridCharge {
  from { opacity: .55; stroke: rgba(120, 218, 255, .42); }
  to { opacity: 1; stroke: rgba(66, 255, 222, .86); }
}

@media (max-width: 860px) {
  .manifesto-face,
  .oracle-stage .manifesto-face {
    width: min(330px, 86vw);
  }
}
