/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --bg: #f8f9fb;
  --surface: #fff;
  --surface-2: #eef0f5;
  --line: #161a2c17;
  --ink: #1b1c21;
  --ink-2: #5c6070;
  --ink-3: #9b9fad;
  --solid: #1b1c21;
  --solid-ink: #fff;
  --danger: #c8402c;
  --danger-soft: #fdecea;
  --online: #2fa76a;
  --overlay: #14162257;
  --float: 0 1px 2px #161a2c0f, 0 8px 26px #161a2c14;
  --glow: 34%;
  --material: #ffffff9e;
  --material-edge: inset 0 0 0 .5px #ffffffe6, inset 0 1px 0 #fffc;
  --blur: saturate(180%) blur(24px);
  --move: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --aura-1: #c9b6ff;
  --aura-2: #7b5cff;
  --aura-3: #ff8fd0;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, PingFang SC, HarmonyOS Sans SC, Microsoft YaHei, Segoe UI, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    color-scheme: dark;
    --bg: #0e0f13;
    --surface: #1b1c22;
    --surface-2: #272830;
    --line: #ffffff1a;
    --ink: #f2f3f7;
    --ink-2: #a9adba;
    --ink-3: #6f7380;
    --solid: #f2f3f7;
    --solid-ink: #14151a;
    --danger: #ff8a78;
    --danger-soft: #ff6e5a26;
    --online: #5fd699;
    --overlay: #0009;
    --float: 0 1px 2px #0006, 0 8px 26px #00000059;
    --glow: 26%;
    --material: #28293299;
    --material-edge: inset 0 0 0 .5px #ffffff24, inset 0 1px 0 #ffffff1a;
  }
}

:root[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --bg: #0e0f13;
  --surface: #1b1c22;
  --surface-2: #272830;
  --line: #ffffff1a;
  --ink: #f2f3f7;
  --ink-2: #a9adba;
  --ink-3: #6f7380;
  --solid: #f2f3f7;
  --solid-ink: #14151a;
  --danger: #ff8a78;
  --danger-soft: #ff6e5a26;
  --online: #5fd699;
  --overlay: #0009;
  --float: 0 1px 2px #0006, 0 8px 26px #00000059;
  --glow: 26%;
  --material: #28293299;
  --material-edge: inset 0 0 0 .5px #ffffff24, inset 0 1px 0 #ffffff1a;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}

@property --aura-1 {
  syntax: "<color>";
  inherits: true;
  initial-value: #c9b6ff;
}

@property --aura-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #7b5cff;
}

@property --aura-3 {
  syntax: "<color>";
  inherits: true;
  initial-value: #ff8fd0;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  overscroll-behavior-y: none;
  min-width: 320px;
  margin: 0;
}

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

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

h1, h2, p {
  margin: 0;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--aura-2);
  outline-offset: 2px;
}

.sr-only {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.avatar {
  color: #fff;
  background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--aura-1) 80%, #fff), color-mix(in srgb, var(--aura-2) 55%, #fff) 85%);
  -webkit-user-select: none;
  user-select: none;
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-weight: 700;
  line-height: 1;
  display: inline-grid;
  overflow: hidden;
}

.avatar img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.figure {
  flex: none;
  display: inline-block;
  position: relative;
}

.figure-orb {
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--aura-1) 55%, var(--surface)), color-mix(in srgb, var(--aura-2) 22%, var(--surface)) 70%, transparent 72%);
  border-radius: 50%;
  position: absolute;
  inset: 6%;
}

.figure img {
  filter: drop-shadow(0 8px 12px #161a2c2e);
  width: 72%;
  height: auto;
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.figure-initial {
  color: var(--ink);
  place-items: center;
  font-size: 34%;
  font-weight: 700;
  display: grid;
  position: absolute;
  inset: 0;
}

.button {
  border: 1px solid var(--line);
  min-height: 48px;
  color: var(--ink);
  background: var(--surface);
  white-space: nowrap;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 600;
  display: inline-flex;
}

.button:hover:not(:disabled) {
  background: var(--surface-2);
}

.button.primary {
  border-color: var(--solid);
  color: var(--solid-ink);
  background: var(--solid);
}

.button.primary:hover:not(:disabled) {
  opacity: .88;
  background: var(--solid);
}

.button.danger {
  color: #fff;
  background: #d5432e;
  border-color: #d5432e;
}

.button:disabled {
  opacity: .45;
}

.link-button {
  min-height: 44px;
  color: var(--ink-2);
  text-underline-offset: 3px;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 8px 4px;
  font-size: 14px;
  text-decoration: underline;
}

.tool-button {
  width: 44px;
  height: 44px;
  color: var(--ink-2);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.tool-button:hover:not(:disabled):not(.disabled) {
  color: var(--ink);
  background: var(--surface-2);
}

.tool-button:disabled, .tool-button.disabled {
  opacity: .4;
  cursor: not-allowed;
}

.glass-button {
  width: 52px;
  height: 52px;
  color: var(--ink);
  background: var(--material);
  box-shadow: var(--material-edge), 0 0 0 .5px var(--line), 0 6px 22px #161a2c14;
  -webkit-backdrop-filter: var(--blur);
  border: 0;
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.glass-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.glass-button.off {
  color: var(--danger);
}

.glass-group {
  background: var(--material);
  height: 52px;
  box-shadow: var(--material-edge), 0 0 0 .5px var(--line), 0 6px 22px #161a2c14;
  -webkit-backdrop-filter: var(--blur);
  border-radius: 999px;
  flex: none;
  align-items: center;
  padding: 0 5px;
  display: flex;
}

.glass-group button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.glass-group button:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.glass-group button[aria-pressed="false"] {
  color: var(--ink-3);
}

select, textarea, input[type="text"], input[type="tel"] {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  border-radius: 14px;
  font-size: 16px;
}

select {
  min-width: 0;
  height: 44px;
  padding: 0 10px;
}

.splash {
  min-height: 100dvh;
  color: var(--ink-2);
  text-align: center;
  align-content: center;
  place-items: center;
  gap: 18px;
  padding: 24px;
  display: grid;
}

.splash-orb {
  background: radial-gradient(circle at 35% 30%, var(--aura-1), var(--aura-2) 70%);
  width: 72px;
  height: 72px;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--aura-2) 45%, transparent);
  border-radius: 50%;
}

.splash-title {
  color: var(--ink);
  font-size: 20px;
}

.loading-state {
  min-height: 80px;
  color: var(--ink-2);
  place-items: center;
  display: grid;
}

.notices {
  flex: none;
  gap: 8px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 14px;
  display: grid;
}

.notices:empty {
  display: none;
}

.notice {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--float);
  overflow-wrap: anywhere;
  border-radius: 16px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
}

.notice.error {
  color: var(--danger);
  background: var(--danger-soft);
  box-shadow: none;
  border-color: #0000;
}

.notice-close {
  width: 32px;
  height: 32px;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 50%;
  flex: none;
  place-items: center;
  margin: -4px -6px -4px 0;
  display: grid;
}

.notice-action {
  min-height: 32px;
  color: var(--solid-ink);
  background: var(--solid);
  border: 0;
  border-radius: 999px;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
}

.error-banner {
  color: var(--danger);
  background: var(--danger-soft);
  overflow-wrap: anywhere;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.notice-banner {
  color: var(--ink);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.ambient {
  z-index: -1;
  background: radial-gradient(130% 46% at 50% 112%, color-mix(in srgb, var(--aura-2) var(--glow), transparent), transparent 72%), radial-gradient(60% 34% at 92% 100%, color-mix(in srgb, var(--aura-3) calc(var(--glow) * .6), transparent), transparent 72%), radial-gradient(55% 30% at 6% 104%, color-mix(in srgb, var(--aura-1) calc(var(--glow) * .8), transparent), transparent 72%);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.ambient:after {
  content: "";
  background: radial-gradient(150% 60% at 50% 116%, color-mix(in srgb, var(--aura-2) calc(var(--glow) * 1.5), transparent), transparent 72%), radial-gradient(70% 44% at 96% 100%, color-mix(in srgb, var(--aura-3) var(--glow), transparent), transparent 72%), radial-gradient(60% 40% at 2% 104%, color-mix(in srgb, var(--aura-1) var(--glow), transparent), transparent 72%);
  opacity: 0;
  position: absolute;
  inset: 0;
}

.app.is-live .ambient:after {
  opacity: 1;
}

.app {
  width: 100%;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  isolation: isolate;
  flex-direction: column;
  display: flex;
  position: relative;
  overflow: hidden;
}

.topbar {
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 8px;
  display: flex;
}

.who {
  flex: 1;
  gap: 1px;
  min-width: 0;
  display: grid;
}

.who h1 {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
}

.presence {
  color: var(--ink-2);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.3;
  display: inline-flex;
}

.presence:before {
  content: "";
  background: var(--ink-3);
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
}

.presence.on:before {
  background: var(--online);
}

.main {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
}

:root {
  --figure-h: clamp(190px, 33dvh, 330px);
}

.figure-slot {
  flex: none;
  height: 0;
  position: relative;
}

.figure-slot.open {
  height: var(--figure-h);
}

.figure-close {
  z-index: 3;
  width: 36px;
  height: 36px;
  color: var(--ink-3);
  opacity: 0;
  pointer-events: none;
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: absolute;
  top: 6px;
  right: 14px;
}

.figure-slot.open .figure-close {
  opacity: 1;
  pointer-events: auto;
}

.figure-close:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.pet {
  z-index: 2;
  width: 100%;
  height: var(--figure-h);
  pointer-events: none;
  transform-origin: 50%;
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
}

.pet:before {
  content: "";
  background: radial-gradient(closest-side at 50% 56%, color-mix(in srgb, var(--aura-1) 34%, transparent), color-mix(in srgb, var(--aura-2) 9%, transparent) 62%, transparent);
  position: absolute;
  inset: 0;
}

.pet.mini:before, .pet.leaving {
  opacity: 0;
}

.pet-hit {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pet.dragging .pet-hit {
  cursor: grabbing;
}

.puppet {
  position: absolute;
  inset: 0;
}

.puppet-body {
  transform-origin: 50% 96%;
  will-change: transform;
  max-width: 94%;
  position: absolute;
  top: 5%;
  bottom: 7%;
  left: 50%;
  translate: -50%;
}

.puppet-body img {
  object-fit: contain;
  object-position: 50% 100%;
}

.puppet-body > img:first-child {
  width: auto;
  max-width: 100%;
  height: 100%;
  display: block;
}

.puppet-layer {
  width: 100%;
  height: 100%;
  transition: opacity 50ms linear;
  position: absolute;
  inset: 0;
}

.puppet-shadow {
  background: radial-gradient(closest-side, #161a2c33, #0000);
  border-radius: 50%;
  width: min(52%, 240px);
  height: 6%;
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.puppet.mood-offline {
  opacity: .6;
}

.character {
  position: absolute;
  inset: 0;
}

.character-mount, .character-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.character-still {
  width: auto;
  height: 80%;
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.character-initial {
  color: var(--ink-2);
  place-items: center;
  font-size: 56px;
  font-weight: 700;
  display: grid;
  position: absolute;
  inset: 0;
}

.character.mood-offline {
  opacity: .6;
}

.chat-col {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.messages {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  width: min(760px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: 12px 16px 18px;
  display: flex;
  overflow-y: auto;
}

.empty-conversation {
  color: var(--ink-2);
  text-align: center;
  flex: 1;
  align-content: center;
  place-items: center;
  gap: 8px;
  display: grid;
}

.empty-conversation p {
  color: var(--ink);
  letter-spacing: .01em;
  font-size: 24px;
  font-weight: 600;
}

.empty-conversation span {
  font-size: 14px;
}

.message {
  flex: none;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  display: flex;
}

.message.first {
  margin-top: 16px;
}

.message:first-child {
  margin-top: 0;
}

.message.user {
  align-self: flex-end;
  max-width: 84%;
}

.message-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 1px;
}

.message-column {
  justify-items: start;
  gap: 4px;
  min-width: 0;
  display: grid;
}

.message.user .message-column {
  justify-items: end;
}

.message-body {
  min-width: 0;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 3px 0;
  font-size: 16.5px;
  line-height: 1.7;
}

.message.user .message-body {
  background: var(--surface-2);
  border-radius: 22px;
  padding: 10px 16px;
  line-height: 1.6;
}

.message.user.first .message-body {
  border-top-right-radius: 6px;
}

.message.partial .message-body {
  color: var(--ink-2);
}

.message-image {
  object-fit: contain;
  border-radius: 14px;
  max-width: min(260px, 100%);
  max-height: 260px;
  margin-top: 8px;
  display: block;
}

.replay {
  min-height: 30px;
  color: var(--ink-3);
  background: none;
  border: 0;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  margin-left: -8px;
  padding: 0 8px;
  font-size: 12.5px;
  display: inline-flex;
}

.replay:hover, .replay:focus-visible {
  color: var(--ink);
  background: var(--surface-2);
}

.message.typing .message-body {
  align-items: center;
  gap: 5px;
  height: 34px;
  display: flex;
}

.message.typing i {
  background: var(--ink-3);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.starters {
  scrollbar-width: none;
  flex: none;
  gap: 8px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 14px 10px;
  display: flex;
  overflow-x: auto;
}

.starters::-webkit-scrollbar {
  display: none;
}

.starter {
  border: 1px solid var(--line);
  min-height: 40px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  white-space: nowrap;
  border-radius: 999px;
  flex: none;
  padding: 0 15px;
  font-size: 14.5px;
}

.starter:hover {
  background: var(--surface);
  box-shadow: var(--float);
}

.dock {
  flex: none;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 12px;
}

.composer {
  background: var(--material);
  box-shadow: var(--material-edge), 0 0 0 .5px var(--line), 0 10px 34px #161a2c1a;
  -webkit-backdrop-filter: var(--blur);
  border-radius: 32px;
  gap: 8px;
  padding: 6px;
  display: grid;
}

.attachment {
  justify-self: start;
  margin: 6px 0 0 8px;
  position: relative;
}

.attachment img {
  object-fit: cover;
  border-radius: 16px;
  width: 72px;
  height: 72px;
  display: block;
}

.attachment-remove {
  border: 2px solid var(--surface);
  width: 24px;
  height: 24px;
  color: var(--solid-ink);
  background: var(--solid);
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: absolute;
  top: -6px;
  right: -6px;
}

.composer-row {
  align-items: flex-end;
  gap: 4px;
  display: flex;
}

.composer-row .tool-button {
  width: 48px;
  height: 48px;
  color: var(--ink);
}

.composer-row textarea {
  resize: none;
  background: none;
  border: 0;
  border-radius: 0;
  flex: 1;
  min-width: 0;
  height: 48px;
  max-height: 132px;
  padding: 12px 2px;
  line-height: 1.5;
}

.composer-row textarea:focus-visible {
  outline: none;
}

.composer-row textarea::placeholder {
  color: var(--ink-3);
}

.send-button {
  width: 48px;
  height: 48px;
  color: var(--solid-ink);
  background: var(--solid);
  border: 0;
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.send-button:disabled {
  opacity: .4;
}

.voice-button {
  width: 48px;
  height: 48px;
  color: color-mix(in srgb, var(--aura-2) 72%, var(--ink));
  background: color-mix(in srgb, var(--aura-2) 15%, transparent);
  border: 0;
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}

.voice-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--aura-2) 24%, transparent);
}

.voice-button:disabled {
  opacity: .4;
}

.live {
  justify-items: center;
  gap: 8px;
  display: grid;
}

.live-state {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.3;
}

.live-bar {
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 2px 0 4px;
  display: flex;
}

.wave-pill {
  background: var(--material);
  max-width: 190px;
  height: 64px;
  box-shadow: var(--material-edge), 0 0 0 .5px var(--line), 0 10px 34px color-mix(in srgb, var(--aura-2) 26%, transparent);
  -webkit-backdrop-filter: var(--blur);
  border-radius: 999px;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.wave-pill canvas {
  filter: blur(9px) saturate(1.15);
  width: 116%;
  height: 134%;
  position: absolute;
  inset: -12% -8% -22%;
}

.wave-pill:after {
  content: "";
  border-radius: inherit;
  box-shadow: var(--material-edge);
  pointer-events: none;
  background: linear-gradient(#ffffff8c, #fff0 55%);
  position: absolute;
  inset: 0;
}

.wave-pill.muted canvas {
  opacity: .25;
}

.ai-disclosure {
  color: var(--ink-3);
  text-align: center;
  flex: none;
  padding: 8px 16px;
  font-size: 11.5px;
  line-height: 1.4;
}

.rail {
  z-index: 40;
  width: min(320px, 86vw);
  padding: calc(14px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
  background: var(--bg);
  box-shadow: var(--float);
  visibility: hidden;
  flex-direction: column;
  gap: 6px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  transform: translateX(-104%);
}

.rail.open {
  visibility: visible;
  transform: none;
}

.rail-backdrop {
  z-index: 35;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.rail-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.rail-head {
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0 2px 6px 8px;
  display: flex;
}

.rail-title {
  color: var(--ink-2);
  letter-spacing: .04em;
  font-size: 14px;
  font-weight: 600;
}

.role-nav {
  flex: 1;
  align-content: start;
  gap: 4px;
  min-height: 0;
  display: grid;
  overflow-y: auto;
}

.role-row {
  border-radius: 18px;
  align-items: center;
  gap: 2px;
  padding-right: 4px;
  display: flex;
}

.role-row:hover {
  background: var(--surface-2);
}

.role-row[data-current="true"] {
  background: var(--surface);
  box-shadow: var(--float);
}

.role-item {
  text-align: left;
  background: none;
  border: 0;
  border-radius: 18px;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 66px;
  padding: 8px 6px 8px 10px;
  display: flex;
}

.role-edit {
  color: var(--ink-3);
}

.role-item-text {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.role-item-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
}

.role-item-tagline {
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.role-add {
  border: 1px dashed var(--ink-3);
  min-height: 48px;
  color: var(--ink-2);
  background: none;
  border-radius: 18px;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  display: flex;
}

.role-add:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}

.welcome {
  width: 100%;
  min-height: 100dvh;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: center;
  gap: 22px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.welcome-art {
  text-align: center;
  justify-items: center;
  gap: 12px;
  width: min(480px, 100%);
  display: grid;
}

.hero-trio {
  justify-content: center;
  align-items: flex-end;
  display: flex;
}

.hero-trio .figure {
  aspect-ratio: 1;
  width: clamp(84px, 27vw, 128px) !important;
  height: auto !important;
}

.hero-trio .figure:nth-child(2) {
  z-index: 1;
  width: clamp(112px, 36vw, 168px) !important;
}

.hero-trio .figure:first-child {
  margin-right: -7%;
  transform: translateY(6%)scale(.86);
}

.hero-trio .figure:nth-child(3) {
  margin-left: -7%;
  transform: translateY(6%)scale(.86);
}

.welcome-line {
  text-wrap: balance;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
}

.welcome-sub {
  color: var(--ink-2);
  text-wrap: pretty;
  font-size: 15px;
  line-height: 1.6;
}

.login-card {
  border: 1px solid var(--line);
  background: var(--surface);
  width: min(440px, 100%);
  box-shadow: var(--float);
  border-radius: 28px;
  gap: 16px;
  padding: 22px 18px;
  display: grid;
}

.login-card h1 {
  font-size: 21px;
}

.subtle {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.login-card .subtle {
  margin-top: -8px;
}

.field {
  color: var(--ink-2);
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  display: grid;
}

.field input {
  background: var(--bg);
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  font-weight: 400;
}

.field input::placeholder {
  color: var(--ink-3);
}

.field input:focus-visible, select:focus-visible {
  outline: 2px solid var(--aura-2);
  outline-offset: 0;
  border-color: #0000;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-row {
  gap: 8px;
  display: flex;
}

.field-row .button {
  border-radius: 14px;
  flex: none;
  min-width: 116px;
  min-height: 50px;
  padding: 0 12px;
  font-size: 15px;
}

.login-submit {
  min-height: 52px;
  font-size: 17px;
}

.login-footnote {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
}

.consent {
  color: var(--ink-2);
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
}

.consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--solid);
  flex: none;
  margin: 2px 0 0;
}

.picker {
  width: 100%;
  min-height: 100dvh;
  padding: calc(32px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: center;
  gap: 22px;
  display: grid;
  position: relative;
}

.picker-head {
  text-align: center;
  gap: 8px;
  display: grid;
}

.picker-head h1 {
  font-size: 26px;
}

.picker .error-banner, .picker .notice-banner {
  width: min(520px, 100%);
}

.role-list {
  gap: 12px;
  width: min(520px, 100%);
  display: grid;
}

.role-option {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--float);
  text-align: left;
  border-radius: 26px;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 10px;
  display: grid;
}

.role-option:hover:not(:disabled) {
  border-color: var(--ink-3);
}

.role-option:disabled {
  opacity: .55;
  box-shadow: none;
}

.role-text {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.role-name {
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 700;
}

.role-description {
  color: var(--ink-2);
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
}

.role-action {
  color: var(--solid-ink);
  background: var(--solid);
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.role-option:disabled .role-action {
  color: var(--ink-2);
  background: var(--surface-2);
}

.blank-option {
  border: 1px dashed var(--ink-3);
  width: min(520px, 100%);
  min-height: 52px;
  color: var(--ink-2);
  background: none;
  border-radius: 22px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  display: inline-flex;
}

.blank-option:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--ink-2);
}

.blank-option:disabled {
  opacity: .5;
}

.settings-column {
  gap: 22px;
  width: min(560px, 100%);
  margin: 0 auto;
  display: grid;
}

.settings-page .sheet-group {
  gap: 10px;
}

.editor-page {
  width: 100%;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  isolation: isolate;
  flex-direction: column;
  display: flex;
  position: relative;
  overflow: hidden;
}

.editor-bar {
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  display: flex;
}

.editor-bar h1 {
  flex: 1;
  font-size: 19px;
  font-weight: 700;
}

.editor-bar .button {
  min-height: 46px;
  padding: 0 22px;
}

.editor-body {
  min-height: 0;
  padding: 6px 16px calc(40px + env(safe-area-inset-bottom));
  flex: 1;
  overflow-y: auto;
}

.editor-body > .error-banner {
  width: min(960px, 100%);
  margin: 0 auto 12px;
}

.editor-grid {
  gap: 22px;
  width: min(560px, 100%);
  margin: 0 auto;
  display: grid;
}

.editor-fields {
  gap: 22px;
  min-width: 0;
  display: grid;
}

.editor-page .sheet-group {
  gap: 12px;
}

.editor-page .field textarea {
  resize: vertical;
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  font-weight: 400;
  line-height: 1.6;
}

.editor-page .field select {
  width: 100%;
  height: 50px;
  font-weight: 400;
}

.editor-page .field input {
  background: var(--surface);
}

.editor-page .sheet-group > .link-button {
  justify-self: start;
}

.editor-look .look-preview {
  height: clamp(200px, 34dvh, 320px);
}

@media (min-width: 980px) {
  .editor-bar {
    padding: 16px max(24px, 50% - 480px);
  }

  .editor-grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    align-items: start;
    gap: 40px;
    width: min(960px, 100%);
  }

  .editor-look {
    position: sticky;
    top: 0;
  }

  .editor-look .look-preview {
    height: 360px;
  }
}

.look-preview {
  background: radial-gradient(closest-side at 50% 56%, color-mix(in srgb, var(--aura-1) 34%, transparent), color-mix(in srgb, var(--aura-2) 9%, transparent) 62%, transparent);
  height: 200px;
  position: relative;
}

.choice-row {
  gap: 8px;
  display: flex;
}

.choice-row .button {
  flex: 1;
}

.choice {
  border: 1px solid var(--line);
  min-height: 44px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 14px;
  flex: 1;
  font-size: 15px;
}

.choice[aria-checked="true"] {
  border-color: var(--solid);
  color: var(--solid-ink);
  background: var(--solid);
}

.swatch-row {
  justify-content: space-between;
  gap: 8px;
  display: flex;
}

.swatch {
  border: 3px solid var(--bg);
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 50%;
}

.swatch[aria-checked="true"] {
  box-shadow: 0 0 0 2px var(--solid);
}

.trait-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
  display: flex;
}

.trait {
  border: 1px solid var(--line);
  min-height: 34px;
  color: var(--ink-2);
  background: none;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13.5px;
}

.trait[aria-pressed="true"] {
  border-color: var(--solid);
  color: var(--solid-ink);
  background: var(--solid);
}

.field-note {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}

.memory-empty {
  color: var(--ink-2);
  background: var(--surface);
  text-align: center;
  border-radius: 16px;
  padding: 14px;
  font-size: 14px;
}

.memory-list {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  overflow: hidden;
}

.memory-list li {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 4px 4px 14px;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
}

.memory-list li:first-child {
  border-top: 0;
}

.memory-list li span {
  overflow-wrap: anywhere;
  min-width: 0;
  padding: 6px 0;
}

.memory-add {
  gap: 8px;
  display: flex;
}

.memory-add input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
}

.memory-add .button {
  flex: none;
}

.advanced {
  border: 1px solid var(--line);
  border-radius: 18px;
  gap: 10px;
  padding: 12px 14px;
  display: grid;
}

.advanced summary {
  color: var(--ink-2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.advanced[open] summary {
  margin-bottom: 10px;
}

.advanced textarea {
  resize: vertical;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
}

.danger-link {
  color: var(--danger);
  justify-self: center;
}

.danger-zone {
  background: var(--danger-soft);
  border-radius: 18px;
  padding: 14px;
}

.danger-zone p {
  color: var(--danger);
}

.sheet-backdrop {
  z-index: 50;
  background: var(--overlay);
  justify-content: center;
  align-items: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.sheet {
  width: min(480px, 100%);
  max-height: 88dvh;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  gap: 14px;
  display: grid;
  overflow-y: auto;
}

.sheet-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  display: flex;
}

.sheet-header h2 {
  font-size: 19px;
}

.sheet-group {
  gap: 8px;
  display: grid;
}

.sheet-group-title {
  color: var(--ink-2);
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.sheet-list {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  display: grid;
  overflow: hidden;
}

.sheet-item {
  border: 0;
  border-top: 1px solid var(--line);
  min-height: 56px;
  color: var(--ink);
  text-align: left;
  background: none;
  border-radius: 0;
  align-content: center;
  gap: 2px;
  padding: 10px 16px;
  font-size: 16px;
  text-decoration: none;
  display: grid;
}

.sheet-item:first-child {
  border-top: 0;
}

.sheet-item:hover:not(:disabled):not(.sheet-field) {
  background: var(--surface-2);
}

.sheet-item small {
  color: var(--ink-3);
  font-size: 12px;
}

.sheet-item.danger {
  color: var(--danger);
}

.sheet-item:disabled {
  opacity: .45;
}

.sheet-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.sheet-field select {
  background: var(--surface-2);
  border-color: #0000;
  justify-self: end;
  max-width: 100%;
}

.sheet-body {
  gap: 14px;
  display: grid;
}

.sheet-body p {
  color: var(--ink-2);
  line-height: 1.7;
}

.legal {
  width: min(760px, 100%);
  padding: calc(24px + env(safe-area-inset-top)) 18px calc(48px + env(safe-area-inset-bottom));
  color: var(--ink);
  margin: 0 auto;
  line-height: 1.8;
}

.legal h1 {
  margin-bottom: 16px;
  font-size: 28px;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.legal p, .legal li {
  color: var(--ink-2);
  font-size: 15px;
}

.legal strong {
  color: var(--ink);
}

.legal p {
  margin: 8px 0;
}

.legal ul {
  padding-left: 20px;
}

.legal .draft-note {
  color: var(--ink);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
}

@media (min-width: 600px) {
  .sheet-backdrop {
    align-items: center;
    padding: 24px;
  }

  .sheet {
    box-shadow: var(--float);
    border-radius: 28px;
    padding: 20px 22px 24px;
  }
}

@media (max-height: 560px) {
  :root {
    --figure-h: 0px;
  }

  .pet {
    display: none;
  }
}

@media (min-width: 980px) {
  .topbar {
    padding: 16px 20px 10px;
  }

  .who h1 {
    font-size: 20px;
  }

  .main {
    flex-direction: row-reverse;
    gap: 4px;
    padding: 0 20px 0 0;
  }

  .figure-slot {
    width: 0;
    height: auto;
  }

  .figure-slot.open {
    width: min(40%, 460px);
    height: auto;
  }

  .pet {
    width: min(40%, 460px);
    height: calc(100% - 22px);
    left: auto;
    right: 20px;
  }

  .messages {
    padding: 16px 24px 22px;
  }

  .message.user {
    max-width: 72%;
  }

  .dock, .starters, .notices {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ai-disclosure {
    padding-bottom: 12px;
  }

  .welcome {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-content: center;
    align-items: center;
    gap: 64px;
    padding: 40px max(40px, 50% - 520px);
  }

  .welcome-art {
    width: min(520px, 100%);
  }

  .welcome-line {
    font-size: 28px;
  }

  .welcome-sub {
    font-size: 16px;
  }

  .hero-trio .figure {
    width: 170px !important;
  }

  .hero-trio .figure:nth-child(2) {
    width: 230px !important;
  }

  .login-card {
    padding: 30px 28px;
  }

  .picker {
    align-content: center;
    padding-top: 40px;
  }

  .picker-head h1 {
    font-size: 32px;
  }

  .role-list.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(900px, 100%);
  }

  .role-list.wide .role-option {
    text-align: center;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 22px 18px;
  }

  .role-list.wide .role-option .figure {
    width: 150px !important;
    height: 150px !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .app {
    transition: --aura-1 .7s, --aura-2 .7s, --aura-3 .7s;
  }

  .ambient:after {
    transition: opacity .6s;
  }

  .messages {
    scroll-behavior: smooth;
    animation: .35s both fade;
  }

  .message {
    animation: rise .32s var(--move) both;
  }

  .message.user {
    transform-origin: 100% 100%;
    animation: pop .42s var(--spring) both;
  }

  .message.typing i {
    animation: 1.2s infinite both blink;
  }

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

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

  .replay {
    animation: .3s both fade;
  }

  .presence.on:before {
    animation: 2.4s ease-in-out infinite pulse;
  }

  .starter {
    animation: pop .45s var(--spring) both;
  }

  .starter:nth-child(2) {
    animation-delay: 60ms;
  }

  .starter:nth-child(3) {
    animation-delay: .12s;
  }

  .notice {
    animation: drop .36s var(--spring) both;
  }

  .dock > * {
    animation: dock .5s var(--spring) both;
  }

  .live-state {
    animation: .25s both fade;
  }

  .attachment {
    animation: pop .35s var(--spring) both;
  }

  .send-button {
    animation: pop .3s var(--spring) both;
  }

  .pet {
    animation: pet-in .7s var(--spring) both;
  }

  .pet.leaving {
    opacity: 0;
    transition: opacity .38s ease, scale .38s var(--move);
    scale: .7;
  }

  .pet.armed {
    transition: transform .62s var(--spring);
  }

  .pet.armed.leaving {
    transition: transform .62s var(--spring), opacity .38s ease, scale .38s var(--move);
  }

  .pet.armed.dragging {
    transition: none;
  }

  .pet:before {
    transition: opacity .4s;
  }

  .figure-slot {
    transition: height .5s var(--move), width .5s var(--move);
  }

  .figure-close {
    transition: opacity .3s .2s, background .2s;
  }

  .pet.mini .pet-hit:active {
    cursor: grabbing;
  }

  .rail {
    transition: transform .42s var(--move), visibility .42s;
  }

  .rail-backdrop {
    transition: opacity .32s;
  }

  .role-item {
    transition: background .2s, box-shadow .2s;
  }

  .sheet-backdrop {
    animation: .25s both fade;
  }

  .sheet {
    animation: sheet-up .42s var(--move) both;
  }

  .sheet-backdrop.closing {
    animation: .2s reverse both fade;
  }

  .sheet-backdrop.closing .sheet {
    animation: .2s ease-in reverse both sheet-up;
  }

  .sheet-body, .sheet-group {
    animation: rise .3s var(--move) both;
  }

  .glass-button, .voice-button, .send-button, .tool-button, .button, .starter, .role-option, .glass-group button {
    transition: transform .18s var(--move), background .2s ease, opacity .2s ease, box-shadow .2s ease;
  }

  .glass-button:active:not(:disabled), .voice-button:active:not(:disabled), .send-button:active:not(:disabled), .glass-group button:active {
    transform: scale(.9);
  }

  .button:active:not(:disabled), .starter:active, .role-option:active:not(:disabled), .tool-button:active:not(:disabled) {
    transform: scale(.96);
  }

  .composer {
    transition: box-shadow .25s;
  }

  .composer:focus-within {
    box-shadow: var(--material-edge), 0 0 0 1px color-mix(in srgb, var(--aura-2) 40%, transparent), 0 12px 38px color-mix(in srgb, var(--aura-2) 22%, transparent);
  }

  .splash-orb {
    animation: 3.2s ease-in-out infinite breathe;
  }

  .hero-trio .figure {
    animation: hero .7s var(--spring) both;
  }

  .hero-trio .figure:first-child {
    animation-delay: 80ms;
  }

  .hero-trio .figure:nth-child(3) {
    animation-delay: .16s;
  }

  .welcome-line, .welcome-sub, .picker-head {
    animation: rise .5s var(--move) .15s both;
  }

  .login-card {
    animation: rise .55s var(--move) .2s both;
  }

  .role-option {
    animation: rise .5s var(--move) both;
  }

  .role-option:nth-child(2) {
    animation-delay: 70ms;
  }

  .role-option:nth-child(3) {
    animation-delay: .14s;
  }

  .topbar > * {
    animation: .4s both fade;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 600px) {
  .sheet {
    animation: sheet-in .36s var(--spring) both;
  }

  .sheet-backdrop.closing .sheet {
    animation: .18s ease-in reverse both sheet-in;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-10px)scale(.97);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.86);
  }
}

@keyframes dock {
  from {
    opacity: 0;
    transform: translateY(16px)scale(.94);
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: scale(.94);
  }
}

@keyframes pet-in {
  from {
    opacity: 0;
    scale: .55;
  }
}

@keyframes hero {
  from {
    opacity: 0;
    translate: 0 16px;
    scale: .7;
  }
}

@keyframes blink {
  0%, 60%, 100% {
    opacity: .3;
  }

  30% {
    opacity: 1;
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--online) 45%, transparent);
  }

  50% {
    box-shadow: 0 0 0 5px #0000;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/