:root {
  color-scheme: dark;
  --bg: #0b110d;
  --panel: rgba(20, 28, 22, 0.78);
  --panel-strong: rgba(242, 241, 232, 0.06);
  --ink: #f2f1e8;
  --muted: #aeb5a6;
  --line: rgba(242, 241, 232, 0.09);
  --green: #b7e27b;
  --mint: #7cc9a0;
  --coral: #f08a67;
  --gold: #d8bd72;
  --danger: #dc6c62;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(242, 241, 232, 0.035), transparent 42%),
    linear-gradient(145deg, rgba(124, 201, 160, 0.11), transparent 36%),
    radial-gradient(circle at 76% 12%, rgba(216, 189, 114, 0.08), transparent 22%),
    var(--bg);
  color: var(--ink);
  font-family: Avenir Next, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
  letter-spacing: 0;
}

button,
textarea,
input {
  font: inherit;
}

button,
.file-label {
  min-height: 42px;
  border: 0;
  cursor: pointer;
}

button:disabled,
.file-label[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.62;
}

.app-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(42px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.topbar,
.section-heading,
.composer-actions,
.draft-card-header,
.draft-actions,
.panel-title,
.sync-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 34px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: Georgia, Songti SC, serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 4.6vw, 48px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.agent-panel,
.dashboard {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.agent-panel {
  position: relative;
  width: min(860px, 100%);
  min-height: min(760px, calc(100dvh - 150px));
  max-height: calc(100dvh - 96px);
  margin: 0 auto;
  padding: clamp(18px, 3.4vw, 32px);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.agent-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(183, 226, 123, 0.22);
  background:
    linear-gradient(180deg, rgba(242, 241, 232, 0.045), transparent 30%),
    linear-gradient(135deg, rgba(183, 226, 123, 0.07), transparent 42%);
  pointer-events: none;
}

.agent-panel > * {
  position: relative;
}

.dashboard {
  width: min(960px, 100%);
  margin: 8px auto 0;
  padding: 18px;
  border-radius: 8px;
}

.body-database {
  background: rgba(14, 20, 15, 0.54);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.body-database h2 {
  font-size: clamp(22px, 3.2vw, 34px);
}

.status-pill {
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

#storageStatus {
  border-color: rgba(167, 214, 109, 0.2);
  background: rgba(167, 214, 109, 0.06);
  color: #dce9ca;
}

.coach-note,
.sync-note {
  margin: 22px 0;
  padding: 16px 17px;
  border: 1px solid rgba(242, 241, 232, 0.08);
  border-left: 1px solid rgba(216, 189, 114, 0.36);
  border-radius: 8px;
  background: rgba(242, 241, 232, 0.035);
  color: var(--ink);
  line-height: 1.65;
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 20px 0 12px;
  padding: 4px 2px 8px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 241, 232, 0.18) transparent;
}

.chat-empty {
  align-self: center;
  width: min(520px, 100%);
  margin: 42px auto;
  padding: 20px;
  border: 1px solid rgba(216, 189, 114, 0.2);
  border-radius: 8px;
  background: rgba(242, 241, 232, 0.035);
  color: var(--ink);
  line-height: 1.7;
}

.chat-empty p {
  margin-bottom: 8px;
  font-size: 18px;
}

.chat-empty span {
  color: var(--muted);
  font-size: 14px;
}

.chat-empty-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.chat-empty-actions button {
  min-height: 42px;
  border: 1px solid rgba(242, 241, 232, 0.09);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(242, 241, 232, 0.045);
  color: #e6eadc;
  text-align: left;
}

.chat-message {
  display: grid;
  gap: 5px;
  max-width: min(82%, 680px);
}

.user-message {
  justify-self: end;
}

.agent-message {
  justify-self: start;
}

.chat-bubble {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  line-height: 1.65;
}

.user-message .chat-bubble {
  background: rgba(183, 226, 123, 0.16);
  color: var(--ink);
  border-bottom-right-radius: 7px;
}

.agent-message .chat-bubble {
  background: rgba(242, 241, 232, 0.045);
  color: #e8eadf;
  border-bottom-left-radius: 7px;
}

.chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.chat-message time {
  color: rgba(174, 181, 166, 0.72);
  font-size: 11px;
}

.user-message time {
  text-align: right;
}

.chat-image {
  display: block;
  width: min(260px, 100%);
  max-height: 220px;
  margin-bottom: 9px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(242, 241, 232, 0.12);
}

.typing-dots {
  display: inline-flex;
  gap: 5px;
  margin-top: 8px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  opacity: 0.42;
  animation: typingPulse 1.1s infinite ease-in-out;
}

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

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

@keyframes typingPulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.32;
  }
  40% {
    transform: translateY(-4px);
    opacity: 0.9;
  }
}

.inline-draft {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(183, 226, 123, 0.22);
  border-radius: 8px;
  background: rgba(9, 13, 10, 0.36);
}

.inline-draft span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.inline-draft strong {
  font-size: 17px;
  line-height: 1.5;
}

.draft-takeaway {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.inline-draft .draft-chip-row em {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce9ca;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.inline-draft-actions button {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 800;
}

.inline-draft-actions button:first-child {
  background: var(--green);
  color: #101511;
}

.inline-draft-actions button:last-child {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.inline-draft.is-saved {
  border-color: rgba(124, 201, 160, 0.28);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 12px;
}

.chat-suggestions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(242, 241, 232, 0.045);
  color: #dce9ca;
  font-size: 13px;
  font-weight: 700;
}

.sync-note {
  margin-top: -8px;
  border-left-color: var(--gold);
  background: rgba(216, 189, 114, 0.08);
  color: var(--muted);
  font-size: 14px;
}

.composer {
  display: grid;
  gap: 10px;
}

textarea {
  width: 100%;
  min-height: 52px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  background: rgba(6, 10, 7, 0.62);
  color: var(--ink);
  line-height: 1.65;
  outline: none;
}

.chat-composer {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(242, 241, 232, 0.08);
  border-radius: 24px;
  background: rgba(10, 15, 11, 0.9);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px);
}

.chat-composer textarea {
  min-height: 46px;
  max-height: 118px;
  min-width: 0;
  resize: none;
  border: 0;
  border-radius: 18px;
  padding: 12px 13px;
  background: rgba(242, 241, 232, 0.055);
  overflow: hidden;
  line-height: 1.42;
}

.chat-composer .composer-actions {
  display: flex;
  gap: 7px;
}

.chat-composer .file-label,
.chat-composer .primary-button {
  min-width: 58px;
  min-height: 46px;
  border-radius: 18px;
  padding: 0 14px;
  white-space: nowrap;
}

.selected-image {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(242, 241, 232, 0.035);
}

.selected-image img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 12px;
}

.selected-image span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #0f140f;
  color: var(--ink);
  outline: none;
}

textarea:focus {
  border-color: rgba(167, 214, 109, 0.7);
}

input:focus,
select:focus {
  border-color: rgba(167, 214, 109, 0.7);
}

.primary-button,
.secondary-button,
.ghost-button,
.file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(180deg, #c8ee8e, #a8d96b);
  color: #101511;
  box-shadow: 0 12px 34px rgba(183, 226, 123, 0.17);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(242, 241, 232, 0.06);
  color: var(--ink);
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.image-preview {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f140f;
}

.draft-card,
.avatar-panel,
.chart-panel,
.insight-panel,
.timeline-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 13, 10, 0.36);
}

.draft-card {
  padding: 18px;
  border-color: rgba(216, 189, 114, 0.22);
}

.draft-card-header span,
.panel-title span {
  color: var(--muted);
  font-size: 13px;
}

.draft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}

.draft-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(167, 214, 109, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(183, 226, 123, 0.09), rgba(124, 201, 160, 0.035)),
    rgba(255, 255, 255, 0.025);
}

.draft-summary span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.draft-summary strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
}

.draft-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-chip {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(242, 241, 232, 0.055);
  color: #dce9ca;
  font-size: 13px;
  font-weight: 800;
}

.draft-observation {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.draft-field {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.draft-field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.draft-field strong {
  display: block;
  min-height: 22px;
  overflow-wrap: anywhere;
}

.draft-notes {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.draft-notes textarea {
  min-height: 78px;
}

.draft-actions {
  margin-top: 14px;
  justify-content: flex-end;
}

.quick-log {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.quick-log button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(242, 241, 232, 0.045);
  color: #dce9ca;
  font-weight: 700;
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.metric {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(242, 241, 232, 0.035);
}

.metric p {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

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

.chart-panel,
.avatar-panel,
.insight-panel,
.timeline-panel {
  padding: 16px;
}

.avatar-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.52fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.body-avatar-stage {
  min-height: 188px;
  border: 1px solid rgba(167, 214, 109, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 22%, rgba(242, 241, 232, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(167, 214, 109, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(242, 241, 232, 0.035) 0 1px, transparent 1px 34px),
    #0d130e;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.body-avatar-stage svg {
  width: 100%;
  height: 188px;
  display: block;
}

.living-avatar .latest-stroke {
  animation: avatarStrokeBirth 1.4s ease-out both;
  transform-origin: center;
}

.living-avatar.has-new-stroke {
  animation: avatarCanvasPulse 1.1s ease-out both;
}

@keyframes avatarStrokeBirth {
  0% {
    opacity: 0;
    transform: scale(0.94);
    filter: brightness(1.45);
  }
  45% {
    opacity: 1;
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes avatarCanvasPulse {
  0% {
    filter: saturate(1) brightness(1);
  }
  42% {
    filter: saturate(1.2) brightness(1.08);
  }
  100% {
    filter: saturate(1) brightness(1);
  }
}

.avatar-copy p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.avatar-latest {
  padding: 10px 12px;
  border: 1px solid rgba(216, 189, 114, 0.18);
  border-radius: 8px;
  background: rgba(216, 189, 114, 0.055);
  color: #e7dcc2 !important;
  font-size: 13px;
}

.avatar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avatar-tag {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.avatar-tag strong {
  color: var(--gold);
}

.chart {
  min-height: 112px;
  margin-top: 12px;
}

.chart svg {
  width: 100%;
  height: 112px;
  overflow: visible;
}

.empty-state {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.insight-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.insight-item {
  padding: 12px;
  border-radius: 8px;
  background: rgba(167, 214, 109, 0.08);
  line-height: 1.55;
}

.action-item {
  background: rgba(183, 226, 123, 0.12);
  color: var(--ink);
  font-size: 15px;
}

.subtle-item {
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.insight-item strong {
  color: var(--green);
}

.timeline {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.log-item {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.log-item time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.log-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

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

.profile-editor {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(9, 13, 10, 0.42);
}

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

.profile-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-wide {
  grid-column: 1 / -1;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .app-shell {
    padding: 18px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .agent-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(150deg, rgba(124, 201, 160, 0.12), transparent 34%),
      var(--bg);
  }

  .app-shell {
    min-height: 100dvh;
    padding: calc(env(safe-area-inset-top) + 10px) 12px calc(env(safe-area-inset-bottom) + 18px);
  }

  .section-heading,
  .draft-card-header,
  .draft-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: -2px -4px 10px;
    padding: 8px 4px 10px;
    background: linear-gradient(180deg, rgba(11, 17, 13, 0.96), rgba(11, 17, 13, 0.72));
    backdrop-filter: blur(20px);
  }

  .brand-lockup {
    gap: 9px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: 20px;
    line-height: 1.05;
  }

  h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .topbar .sync-actions {
    width: auto;
    gap: 6px;
  }

  .topbar .ghost-button,
  .topbar .status-pill {
    min-height: 31px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .topbar .ghost-button,
  .topbar .file-label {
    width: 34px;
    min-width: 34px;
    overflow: hidden;
    text-align: center;
    word-break: keep-all;
  }

  .sync-actions,
  .draft-actions {
    width: 100%;
  }

  .topbar .sync-actions {
    width: auto;
  }

  .sync-actions > *,
  .draft-actions > * {
    flex: 1;
  }

  .metric-grid,
  .avatar-layout,
  .draft-grid,
  .profile-grid,
  .quick-log {
    grid-template-columns: 1fr;
  }

  .agent-panel,
  .dashboard {
    padding: 12px;
    border-color: rgba(242, 241, 232, 0.06);
    background: rgba(14, 20, 15, 0.48);
    box-shadow: none;
  }

  .agent-panel {
    width: 100%;
    min-height: calc(100dvh - 112px);
    max-height: calc(100dvh - 112px);
    display: flex;
    flex-direction: column;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding-inline: 2px;
  }

  .agent-panel .section-heading {
    margin: 4px 8px 0;
  }

  .agent-panel .section-heading .eyebrow {
    display: none;
  }

  .chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    margin: 12px 0 8px;
    padding: 4px 8px 10px;
    overflow-y: auto;
  }

  .chat-thread:not(.is-empty) {
    flex: 1;
    min-height: 0;
  }

  .chat-empty {
    margin: 10px auto 6px;
    padding: 16px;
    border-radius: 18px;
  }

  .chat-message {
    max-width: 90%;
  }

  .chat-bubble {
    padding: 12px 13px;
    border-radius: 18px;
    font-size: 14px;
  }

  .chat-suggestions {
    display: none;
  }

  .chat-suggestions button {
    flex: 0 0 auto;
  }

  .chat-composer {
    flex: 0 0 auto;
    position: relative;
    z-index: 10;
    width: calc(100% - 12px);
    margin: 8px 6px 0;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 7px;
    border-radius: 22px;
    background: rgba(9, 14, 10, 0.96);
    box-shadow: 0 -10px 42px rgba(0, 0, 0, 0.34);
  }

  .chat-composer textarea {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 13px 12px;
    font-size: 14px;
    line-height: 1.35;
  }

  .chat-composer .composer-actions {
    align-items: center;
    flex-direction: row;
    width: auto;
  }

  .chat-composer .composer-actions > * {
    flex: 0 0 auto;
  }

  .chat-composer .file-label,
  .chat-composer .primary-button {
    width: 54px;
    min-width: 54px;
    min-height: 48px;
    padding: 0;
    font-size: 13px;
    border-radius: 17px;
  }

  .selected-image {
    margin-bottom: 0;
    min-height: 48px;
  }

  .coach-note,
  .sync-note {
    padding: 14px;
  }

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

  .body-avatar-stage {
    min-height: 240px;
  }

  .body-avatar-stage svg {
    height: 240px;
  }

  .profile-editor {
    padding: 16px;
  }
}
