﻿:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #171717;
  --muted: #6f6f6b;
  --line: #deded8;
  --soft: #efefec;
  --ink: #111111;
  --danger: #a33434;
  --velora-stroke: #22252b;
  --velora-size: 182px;
  --look-x: 0px;
  --look-y: 0px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
  --glass-fill: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-edge: rgba(255, 255, 255, 0.76);
  --glass-line: rgba(16, 24, 40, 0.12);
  --glass-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

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

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.settings-button {
  position: fixed;
  top: 13px;
  right: 20px;
  z-index: 26;
  display: none;
  padding: 0;
}

body[data-view="chat"].has-key .settings-button {
  display: grid;
}

.glass-icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.18);
  color: rgba(10, 12, 16, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -12px 28px rgba(255, 255, 255, 0.20),
    0 14px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  place-items: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.glass-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glass-icon-button:hover {
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -13px 30px rgba(255, 255, 255, 0.24),
    0 16px 38px rgba(15, 23, 42, 0.16);
}

.settings-button:hover {
  transform: translateY(-1px);
}

.settings-popover {
  position: fixed;
  top: 66px;
  right: 20px;
  z-index: 25;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
}

.settings-account {
  max-width: 250px;
  padding: 10px 12px 8px;
  color: rgba(10, 12, 16, 0.62);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-popover[hidden] {
  display: none;
}

.logout-button,
.delete-account-button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(10, 12, 16, 0.9);
  padding: 0 12px;
  text-align: left;
  font-size: 14px;
}

.delete-account-button {
  color: var(--danger);
}

.logout-button:hover,
.delete-account-button:hover {
  background: rgba(255, 255, 255, 0.54);
}

.home-view,
.key-view,
.chat-view {
  display: none;
}

.shell[data-view="home"] .home-view,
.shell[data-view="key"] .key-view,
.shell[data-view="chat"] .chat-view {
  display: flex;
}

.home-view {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 36px;
  padding: 32px 20px;
}

.velora-zone {
  width: min(68vw, 420px);
  height: 314px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: transparent;
  cursor: default;
  user-select: none;
}

.velora-agent {
  width: var(--velora-size);
  height: var(--velora-size);
  display: block;
  overflow: visible;
  --look-x: 0px;
  --look-y: 0px;
}

.agent-shell,
.glyph-line {
  fill: none;
  stroke: var(--velora-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-shell {
  stroke-width: 18;
}

.glyph-line {
  stroke-width: 22;
}

.agent-shell-wrap {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transform: rotate(0deg);
  transition: transform 620ms cubic-bezier(.28, 0, .16, 1);
  will-change: transform;
}

.velora-agent.is-awake .agent-shell-wrap {
  transform: rotate(90deg);
}

.sleep-glyph {
  opacity: 1;
  transform-box: view-box;
  transform-origin: 200px 200px;
  transform: scale(1) rotate(0deg);
  transition:
    opacity 260ms cubic-bezier(.4, 0, .2, 1),
    transform 420ms cubic-bezier(.28, 0, .16, 1);
  will-change: opacity, transform;
}

.velora-agent.is-awake .sleep-glyph {
  opacity: 0;
  transform: scale(.9) rotate(18deg);
  transition-delay: 0ms;
}

.face-glyph {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 200px 200px;
  transform: scale(.86);
  transition:
    opacity 280ms cubic-bezier(.4, 0, .2, 1),
    transform 520ms cubic-bezier(.28, 0, .16, 1);
  will-change: opacity, transform;
}

.velora-agent.is-awake .face-glyph {
  opacity: 1;
  transform: scale(1);
  transition-delay: 140ms;
}

.eye-group {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 130ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.velora-agent:not(.is-awake) .eye-group {
  transform: translate(0px, 0px);
}

.home-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  min-width: 116px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  padding: 0 18px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-action {
  background: var(--ink);
  color: #fff;
}

.secondary-action {
  background: transparent;
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.key-view {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.key-panel {
  width: min(100%, 360px);
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.key-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  justify-self: center;
  margin-bottom: 8px;
}

.key-heading {
  text-align: center;
  font-size: 18px;
  font-weight: 650;
  color: rgba(10, 12, 16, 0.9);
}

.key-label {
  font-size: 13px;
  color: var(--muted);
}

.key-input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.key-input:focus {
  border-color: var(--ink);
}

.key-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.account-delete-dialog {
  width: min(calc(100% - 32px), 430px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--text);
}

.account-delete-dialog::backdrop {
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.account-delete-panel {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 24px 72px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
}

.account-delete-panel h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
}

.delete-account-copy {
  margin: 0 0 4px;
  color: rgba(10, 12, 16, 0.66);
  font-size: 13px;
  line-height: 1.7;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(10, 12, 16, 0.72);
  font-size: 20px;
  line-height: 1;
}

.delete-code-action {
  width: 100%;
  border-color: rgba(10, 12, 16, 0.24);
  background: rgba(255, 255, 255, 0.22);
}

.danger-action {
  border-color: var(--danger);
  background: var(--danger);
}

.key-panel {
  position: relative;
  width: min(100%, 420px);
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -24px 58px rgba(255, 255, 255, 0.16),
    0 28px 76px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
}

.key-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.36), transparent 30%),
    radial-gradient(circle at 78% 0%, rgba(100, 210, 255, 0.16), transparent 34%);
  pointer-events: none;
}

.key-panel > * {
  position: relative;
  z-index: 1;
}

.auth-agent-zone {
  justify-self: center;
  display: grid;
  width: 132px;
  height: 108px;
  margin: -6px 0 0;
  place-items: center;
  cursor: default;
  user-select: none;
}

.auth-agent-logo {
  width: 88px;
  height: 88px;
  display: block;
  overflow: visible;
  --look-x: 0px;
  --look-y: 0px;
}

.auth-agent-shell,
.auth-glyph-line {
  fill: none;
  stroke: rgba(22, 25, 31, 0.88);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-agent-shell {
  stroke-width: 18;
}

.auth-glyph-line {
  stroke-width: 22;
}

.auth-agent-shell-wrap {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transition: transform 620ms cubic-bezier(.28, 0, .16, 1);
}

.auth-agent-logo.is-awake .auth-agent-shell-wrap {
  transform: rotate(90deg);
}

.auth-sleep-glyph,
.auth-face-glyph {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transition: opacity 280ms cubic-bezier(.4, 0, .2, 1), transform 520ms cubic-bezier(.28, 0, .16, 1);
}

.auth-sleep-glyph {
  opacity: 1;
}

.auth-face-glyph {
  opacity: 0;
  transform: scale(.86);
}

.auth-agent-logo.is-awake .auth-sleep-glyph {
  opacity: 0;
  transform: scale(.9) rotate(18deg);
}

.auth-agent-logo.is-awake .auth-face-glyph {
  opacity: 1;
  transform: scale(1);
}

.auth-eye-group {
  transform-box: view-box;
  transform-origin: 200px 200px;
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 130ms cubic-bezier(.22, 1, .36, 1);
}

.key-heading {
  margin-top: -2px;
  text-align: center;
  font-size: 22px;
  font-weight: 680;
  color: rgba(10, 12, 16, 0.9);
}

.key-label {
  color: rgba(10, 12, 16, 0.58);
  font-size: 12px;
  font-weight: 620;
}

.key-input {
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.26);
  color: rgba(18, 22, 30, 0.94);
  padding: 0 19px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -13px 28px rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.key-input:focus {
  border-color: rgba(10, 12, 16, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 0 0 4px rgba(10, 12, 16, 0.06),
    0 14px 34px rgba(15, 23, 42, 0.08);
}

.key-panel .primary-action {
  min-height: 52px;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    #0c0d10;
  color: #fff;
  font-weight: 720;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.16);
}

.chat-view {
  min-height: 100vh;
  flex-direction: column;
  background: var(--panel);
}

.chat-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 18;
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 36px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.chat-header::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  pointer-events: none;
}

.icon-button {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.icon-button:hover {
  transform: translateY(calc(-50% - 1px));
}

.chat-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: rgba(14, 18, 26, 0.86);
}

.chat-title img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.messages {
  width: min(100%, 790px);
  margin: 0 auto;
  flex: 1;
  padding: 38px 18px 210px;
}

.empty-hint {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 1;
  width: min(calc(100% - 48px), 620px);
  margin: 0;
  transform: translate(-50%, -50%);
  color: rgba(22, 28, 38, 0.46);
  font-size: clamp(24px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}

.empty-hint[hidden] {
  display: none;
}

.message {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 26px;
}

.message.user {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  position: relative;
}

.message.assistant {
  grid-template-columns: minmax(0, 1fr);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
}

.bubble {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.72;
  font-size: 15px;
}

.user .bubble {
  max-width: min(680px, 88%);
  background: var(--soft);
  border-radius: 20px;
  padding: 10px 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.assistant .bubble {
  padding-top: 2px;
}

.message-actions {
  grid-column: 1;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6a6f78;
}

.message-actions[hidden] {
  display: none;
}

.message.user .message-actions {
  grid-column: 1;
  justify-self: end;
}

.action-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: #6a6f78;
  padding: 0;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.action-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-btn:hover {
  transform: translateY(-1px);
  background: #f9fafc;
}

.user-copy-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 8;
  margin: 0;
  min-width: 52px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.36);
  color: rgba(21, 26, 34, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 26px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  font-size: 13px;
}

.user-copy-menu[hidden] {
  display: none;
}

.action-btn[aria-pressed="true"] {
  background: #e9efff;
  color: #2944af;
}

.thinking {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.72;
}

.thinking img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 2px;
}

.markdown {
  font-size: 15px;
  color: #1f2937;
}

.markdown p {
  margin: 0 0 12px;
}

.markdown p:last-child {
  margin-bottom: 0;
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4 {
  margin: 0 0 10px;
  line-height: 1.4;
  font-weight: 700;
}

.markdown h1 { font-size: 28px; }
.markdown h2 { font-size: 22px; }
.markdown h3 { font-size: 18px; }

.markdown ul,
.markdown ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.markdown li {
  margin: 0 0 7px;
  line-height: 1.65;
}

.markdown pre {
  margin: 0 0 12px;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.5;
}

.markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

.markdown pre code {
  color: inherit;
  background: transparent;
  padding: 0;
}

.markdown img {
  max-width: 100%;
  border-radius: 10px;
  margin: 8px 0 12px;
  display: block;
}

.answer-artifact {
  margin: 14px 0 2px;
}

.answer-artifact a {
  display: block;
  width: min(100%, 720px);
}

.answer-artifact img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f4f6f8;
  border: 1px solid #e5e7eb;
}

.answer-artifact figcaption {
  margin-top: 7px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.answer-artifact.is-error::after {
  content: "图片加载失败";
  display: block;
  margin-top: 7px;
  color: #8a8f97;
  font-size: 12px;
}

.image-fallback {
  font-size: 12px;
  color: #8a8f97;
}

.markdown blockquote {
  margin: 0 0 12px;
  border-left: 3px solid #d1d5db;
  padding-left: 10px;
  color: #4b5563;
}

.composer {
  position: fixed;
  left: 50%;
  bottom: clamp(36px, 8vh, 86px);
  z-index: 20;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.10)),
    rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  padding: 10px 10px 10px 23px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -14px 30px rgba(255, 255, 255, 0.10),
    0 24px 70px rgba(15, 23, 42, 0.14),
    0 4px 14px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.composer::before,
.composer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.composer::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 34%, rgba(255, 255, 255, 0.18));
  opacity: 0.76;
}

.composer::after {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.12),
    inset 20px 0 34px rgba(255, 255, 255, 0.07);
}

.composer textarea {
  min-height: 42px;
  max-height: 180px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(10, 12, 16, 0.9);
  line-height: 1.5;
  padding: 10px 4px 8px 0;
  caret-color: var(--ink);
}

.composer textarea::placeholder {
  color: rgba(67, 72, 84, 0.48);
}

.voice-button,
.send-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.send-button {
  background: var(--ink);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.voice-button svg,
.send-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-button {
  background: transparent;
  color: rgba(86, 92, 103, 0.74);
  box-shadow: none;
}

.send-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 13px 28px rgba(0, 0, 0, 0.26);
}

.voice-button:hover {
  transform: translateY(-1px);
  color: rgba(48, 54, 64, 0.86);
  background: rgba(255, 255, 255, 0.24);
}

.send-button:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .agent-shell-wrap,
  .sleep-glyph,
  .face-glyph,
  .eye-group {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .settings-button {
    top: 10px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .settings-popover {
    top: 58px;
    right: 14px;
  }

  .chat-header {
    height: 64px;
  }

  .icon-button {
    left: 14px;
    width: 42px;
    height: 42px;
  }

  .home-view {
    gap: 28px;
  }

  .velora-zone {
    width: min(82vw, 360px);
    height: 230px;
  }

  .velora-agent {
    --velora-size: 156px;
  }

  .messages {
    padding: 26px 15px 178px;
  }

  .empty-hint {
    top: 44%;
    width: min(calc(100% - 36px), 420px);
    font-size: clamp(24px, 8vw, 34px);
  }

  .message {
    gap: 11px;
  }

  .user .bubble {
    max-width: 92%;
  }

  .composer {
    bottom: 16px;
    width: calc(100% - 20px);
    min-height: 60px;
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    padding: 9px 9px 9px 18px;
  }

  .voice-button,
  .send-button {
    width: 40px;
    height: 40px;
  }

  .message-actions {
    margin-top: 4px;
  }
}
