body[data-product] {
  --paper: #f6f5f0;
  --surface: #fffefa;
  --ink: #303d33;
  --muted: #71796b;
  --border: #e7e8de;
  --green: #4c6652;
  --green-soft: #e9eee4;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.product-icon {
  flex: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100svh;
}

.product-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
  height: 100svh;
  padding: 40px 18px 25px;
  border-right: 1px solid var(--border);
  background: #eeefe7;
}
.product-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-left: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 15px 15px 15px 5px;
  background: var(--green);
  color: #f4f5e9;
}

.brand-mark .product-icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.4;
}

.brand-copy {
  display: grid;
  gap: 5px;
}

.brand-copy strong {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: .07em;
  line-height: 1.1;
}

.brand-dot {
  color: #8b9b72;
}

.brand-copy > span {
  color: #6c7762;
  font-size: 11px;
  letter-spacing: .1em;
}

.product-nav {
  display: grid;
  gap: 8px;
}

.nav-link, .lab-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  color: #71796b;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
}

.nav-link .product-icon {
  width: 19px;
  height: 19px;
}

.nav-link[aria-current="page"] {
  background: #dfe5d6;
  color: #3e5a43;
  font-weight: 650;
}

.nav-link:hover:not([aria-current]), .lab-link:hover {
  background: #e3e7db;
  color: #3e5a43;
}

.rail-bottom {
  margin-top: auto;
}

.local-space {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 19px;
  color: #6c7762;
  font-size: 11px;
}

.local-space .product-icon {
  width: 13px;
  height: 13px;
}

.lab-link {
  min-height: 47px;
  border-top: 1px solid #dde1d4;
  border-radius: 0;
  padding-top: 11px;
  font-size: 11px;
}

.lab-link .product-icon {
  width: 16px;
  height: 16px;
}

.lab-link .lab-external {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: #929989;
}


.product-main {
  width: min(100%, 1450px);
  min-width: 0;
  margin-inline: auto;
  padding: 46px clamp(25px, 4vw, 64px) 30px;
}

.product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.product-heading h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  color: #344035;
  font-size: clamp(27px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.45;
}

.product-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .025em;
  line-height: 1.8;
}

.heading-date {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 5px;
  color: #6c7762;
  font-size: 12px;
  white-space: nowrap;
}

.heading-date .product-icon {
  width: 18px;
  height: 18px;
  color: #969f82;
}

.product-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 276px);
  align-items: start;
  gap: 28px;
}

.product-card {
  min-width: 0;
  border: 1px solid #e5e7dc;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 7px 25px #424c321f;
}

.product-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  min-height: 610px;
  height: clamp(610px, calc(100svh - 187px), 790px);
  overflow: hidden;
  box-shadow: 0 6px 28px #414c3207;
}
.product-chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 15px 24px;
}

.conversation-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.conversation-identity > p {
  color: #667460;
  font-size: 12px;
  font-weight: 550;
}

.mini-avatar {
  display: grid;
  flex: none;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: #e9eee1;
  color: #75866a;
}

.mini-avatar .product-icon {
  width: 15px;
  height: 15px;
}

.product-chat .call-indicator {
  gap: 6px;
  padding: 5px 0;
  color: #737d6b;
  background: transparent;
  font-size: 11px;
}

.product-chat .status-dot {
  width: 5px;
  height: 5px;
  background: #9baa8c;
}

.product-chat .call-indicator[data-state="active"] {
  color: #4c7250;
}

.product-chat .call-indicator[data-state="connecting"] .status-dot {
  animation: status-pulse 1.5s ease-in-out infinite;
}

.product-chat .call-indicator[data-state="error"] {
  color: #a05f46;
}

.product-transcript {
  height: auto;
  min-height: 0;
  padding: 24px;
  background: var(--surface);
  scrollbar-color: #d1d9c9 transparent;
  overflow-anchor: none;
}

.product-transcript:has(.product-empty-chat:not([hidden])) {
  display: grid;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.product-empty-chat {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 0 9px;
}

.island-scene {
  position: relative;
  flex: none;
  width: 100%;
  height: clamp(170px, 25svh, 240px);
  margin-top: -15px;
  overflow: hidden;
}

.island-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: saturate(.7);
}

.island-scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, #fffefa 0%, transparent 24%, transparent 68%, #fffefa 100%);
}

.empty-chat-copy {
  position: relative;
  margin-top: -6px;
  padding-inline: 12px;
}

.product-empty-chat h2 {
  color: #46533f;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(24px, 2.3vw, 33px);
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1.5;
}

.product-empty-chat p {
  margin-top: 12px;
  color: #757d6c;
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: .015em;
}

.product-chat .turn {
  max-width: min(88%, 560px);
  margin-bottom: 24px;
}

.product-chat .speaker {
  margin: 0 3px 8px;
  color: #6c7762;
  font-size: 11px;
}

.chat-history-tools {
  margin: 0 auto 20px;
  text-align: center;
}

.chat-history-tools:has(button[hidden]):has(p[hidden]) {
  display: none;
}

.history-older,
.chat-read-aloud,
.chat-delete-segment {
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #52664b;
  font: inherit;
  cursor: pointer;
}

.history-older {
  min-height: 40px;
  padding: 0 12px;
  font-size: 12px;
}

.history-older:hover:not(:disabled),
.chat-read-aloud:hover,
.chat-delete-segment:hover:not(:disabled),
.chat-read-aloud[aria-pressed="true"] {
  background: #e8eddf;
}

.history-older:disabled {
  cursor: wait;
  opacity: .6;
}

.chat-turn-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0 3px 5px;
  color: #6c7762;
  font-size: 11px;
}

.chat-turn-meta .speaker {
  margin: 0;
}

.turn[data-role="user"] .chat-turn-meta {
  justify-content: end;
}

.chat-read-aloud {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -6px 0 -4px;
  padding: 0;
}

.chat-read-aloud .product-icon {
  width: 16px;
  height: 16px;
}

.chat-delete-segment {
  min-height: 36px;
  padding: 0 7px;
}

.chat-delete-segment:disabled {
  cursor: wait;
  opacity: .6;
}

.product-transcript[data-voice-active] .chat-read-aloud,
body[data-onboarding-call] .product-transcript .chat-history-tools,
body[data-onboarding-call] .product-transcript .turn[data-history] {
  display: none;
}

.product-chat .bubble {
  padding: 13px 17px;
  border-radius: 4px 17px 17px;
  background: #f1f3eb;
  color: #46543e;
  font-size: 14px;
  line-height: 1.85;
}

.product-chat .turn[data-role="user"] .bubble {
  border-radius: 17px 4px 17px 17px;
  background: #e7edde;
  color: #3e553b;
}

.product-voice-controls {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 10px 24px 0;
}

.chat-mode-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.product-voice-controls .button {
  width: auto;
  min-width: 172px;
  min-height: 47px;
  padding-inline: 21px;
  border-radius: 28px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .025em;
  transition: background .18s, transform .18s, box-shadow .18s;
}

.product-voice-controls .button.primary {
  background: var(--green);
  box-shadow: 0 4px 11px #42563a20;
}

.product-voice-controls .button.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #3d5942;
  box-shadow: 0 6px 14px #42563a29;
}

.product-voice-controls .button .product-icon {
  width: 17px;
  height: 17px;
}

.product-voice-controls .notice {
  min-height: 0;
  margin: 8px 0 0;
  text-align: center;
}

.onboarding-later {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #53664a;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.onboarding-later:hover {
  background: #e8eddf;
}

body[data-onboarding-call] .product-chat-layout {
  grid-template-columns: minmax(0, 1fr);
}

body[data-onboarding-call] .product-preview,
body[data-onboarding-call] .starter-row,
body[data-onboarding-call] .chat-composer,
body[data-onboarding-call] .empty-chat-copy,
body[data-onboarding-call] #chat-view .product-heading p:not(.mobile-greeting) {
  display: none;
}

.product-chat:not(:has(.product-empty-chat:not([hidden]))) .product-voice-controls {
  justify-items: start;
  padding-top: 5px;
}

.product-chat:not(:has(.product-empty-chat:not([hidden]))) .product-voice-controls .button {
  min-width: 0;
  min-height: 36px;
  padding-inline: 13px;
  font-size: 11px;
}

.starter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 18px 23px;
}

.product-chat:not(:has(.product-empty-chat:not([hidden]))) .starter-row, .product-chat:has(#chat-input:disabled) .starter-row {
  display: none;
}

.starter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #e7e8dd;
  border-radius: 7px;
  background: #fcfcf7;
  color: #6a785c;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.starter:hover {
  border-color: #c7d1ba;
  background: #eef2e6;
  color: #58704d;
}

.starter .product-icon {
  width: 13px;
  height: 13px;
}

.product-chat .chat-composer {
  padding: 0 23px 16px;
  border: 0;
}

.product-chat:not(:has(.product-empty-chat:not([hidden]))) .chat-composer {
  padding-top: 16px;
}

.product-chat .chat-composer-row {
  align-items: center;
  gap: 10px;
  padding: 9px 9px 9px 16px;
  border: 1px solid #e5e8db;
  border-radius: 13px;
  background: #f9faf4;
  transition: border-color .15s, box-shadow .15s;
}

.product-chat .chat-composer-row:focus-within {
  border-color: #9eaf90;
  box-shadow: 0 0 0 3px #9eaf9012;
}

.product-chat .button.chat-attach {
  color: #446454;
  background: transparent;
}

.product-chat .button.chat-attach:has(input:not(:disabled)):hover {
  background: #eaf2e8;
}

.product-chat .chat-composer textarea {
  min-height: 36px;
  max-height: 140px;
  padding: 8px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #46543e;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
}

.product-chat .chat-composer textarea::placeholder {
  color: #7a8470;
}

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

.product-chat .chat-composer textarea:disabled {
  background: transparent;
}

.product-chat .button.chat-send {
  width: 35px;
  min-width: 35px;
  min-height: 35px;
  padding: 0;
  border-radius: 50%;
  background: #596f4c;
}

.product-chat .button.chat-send:disabled {
  background: #e5eadb;
  color: #89997a;
  opacity: 1;
}

.product-chat .chat-send .product-icon {
  width: 16px;
  height: 16px;
}

.composer-hint {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  color: #727e64;
  font-size: 10px;
}

.composer-hint span {
  padding-left: 14px;
  border-left: 1px solid #dfe2d5;
}

.product-chat .conversation-footer {
  display: none;
  min-height: 35px;
  padding-inline: 24px;
  border-top-color: #eceee3;
  border-radius: 0;
  background: #f7f9f0;
  font-size: 11px;
}

.product-chat:has(.call-indicator[data-state="active"]):has(#mic-label:not([hidden])) .conversation-footer {
  display: flex;
}


.product-preview {
  min-width: 0;
  padding-top: 14px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 21px;
}

.preview-head h2 {
  min-width: 0;
  color: #5b6851;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .035em;
  white-space: nowrap;
}

.preview-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6c7762;
  text-decoration: none;
  white-space: nowrap;
  font-size: 11px;
}

.preview-all:hover {
  color: #4c6652;
}

.preview-all .product-icon {
  width: 13px;
  height: 13px;
}

.preview-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-link {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 106px;
  padding: 19px 15px;
  border: 1px solid #e7e8dd;
  border-radius: 12px;
  background: #fbfbf5;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s, border-color .18s;
}

.preview-link:hover {
  transform: translateY(-2px);
  border-color: #bdcbb1;
}

.preview-icon {
  display: grid;
  flex: 0 0 31px;
  height: 35px;
  place-items: center;
  border-radius: 9px;
  background: #eaf0df;
  color: #7e9167;
}

.preview-icon .product-icon {
  width: 17px;
  height: 17px;
}

.preview-link[data-kind="canvas"] {
  background: #fcf8ef;
  border-color: #ece6d9;
}

.preview-link[data-kind="canvas"] .preview-icon {
  color: #a48a5e;
  background: #f2ead9;
}

.preview-link[data-kind="audio"] {
  background: #f4f5f6;
  border-color: #e2e5e7;
}

.preview-link[data-kind="audio"] .preview-icon {
  color: #83959d;
  background: #e6edf0;
}

.preview-link[data-kind="image"] .preview-icon {
  color: #6f8e66;
  background: #e5eedf;
}

.preview-text {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.preview-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  color: #5f6b52;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.preview-meta {
  color: #747d65;
  font-size: 11px;
  line-height: 1.4;
}

.preview-empty-state {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 252px;
  padding: 25px 20px;
  border: 1px dashed #d9decd;
  border-radius: 13px;
  text-align: center;
}

.preview-empty-state:has(#preview-empty[hidden]) {
  display: none;
}

.memory-pages {
  position: relative;
  display: grid;
  width: 70px;
  height: 64px;
  place-items: center;
  margin-bottom: 18px;
  color: #9da98b;
}

.memory-pages > span {
  position: absolute;
  inset: 6px 12px;
  border: 1px solid #d9dece;
  border-radius: 6px;
  background: #f5f6ee;
  transform: rotate(-12deg);
}

.memory-pages > span + span {
  transform: rotate(9deg);
  background: #fafbf4;
}

.memory-pages .product-icon {
  z-index: 1;
  width: 27px;
  height: 27px;
}

.preview-empty {
  color: #6c7762;
  font-size: 12px;
  line-height: 1.9;
}

.empty-memory-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: #61764f;
  font-size: 11px;
  text-decoration: none;
}

.empty-memory-link .product-icon {
  width: 13px;
  height: 13px;
}

.preview-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 18px 2px;
  border-top: 1px solid #e1e5d6;
  color: #6b795d;
  font-size: 12px;
}

.preview-note > .product-icon {
  width: 17px;
  height: 17px;
}

.preview-note strong {
  color: #5f7252;
  font-size: 12px;
  font-weight: 500;
}

.preview-note p {
  margin-top: 7px;
  color: #6c7762;
  font-size: 11px;
  line-height: 1.8;
}

.memory-create-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #e0e4d5;
  border-radius: 10px;
  color: #64764f;
  font-size: 12px;
  text-decoration: none;
  transition: background .15s;
}

.memory-create-link:hover {
  background: #edf0e5;
}

.memory-create-link .product-icon {
  width: 14px;
  height: 14px;
}

.memory-create-link .product-icon:last-child {
  margin-left: auto;
}


.product-memories .product-heading {
  margin-bottom: 36px;
}

.product-memories .product-add {
  width: auto;
  min-height: 43px;
  padding-inline: 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 500;
}

.product-memories .memory-body {
  padding: 0;
}

.memory-collection h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 17px;
}

.memory-collection-status > .product-icon {
  display: none;
}

.memory-collection-status:has(#memory-list-status[hidden]) {
  display: none;
}

.memory-item-kind {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 7px;
  background: #edf0e4;
  color: #4e6746;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.memory-item[data-asset-type="audio"] .memory-item-kind {
  background: #e9eff4;
  color: #4a6377;
}

.memory-item[data-asset-type="image"] .memory-item-kind {
  background: #f1ebd8;
  color: #755c31;
}

.memory-item[data-asset-type="canvas"] .memory-item-kind {
  background: #f0e9f1;
  color: #715779;
}

.memory-call-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 9px 13px;
  border-radius: 20px;
  background: #e4eddd;
  color: #4b6c41;
  font-size: 12px;
  text-decoration: none;
}

.memory-call-link .product-icon {
  width: 15px;
  height: 15px;
}

.memory-call-return {
  margin-left: 5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-memories .memory-search {
  max-width: 680px;
  margin-bottom: 25px;
  gap: 10px;
}

.memory-search-field {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
  padding-inline: 15px;
  border: 1px solid #e0e4d7;
  border-radius: 12px;
  background: #fcfcf7;
  color: #8f9b80;
}

.memory-search-field:focus-within {
  border-color: #a0b08f;
}

.memory-search-field .product-icon {
  width: 17px;
  height: 17px;
}

.memory-search-field input {
  padding: 13px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
}

.memory-search-field input:focus-visible {
  outline: none;
}

.product-memories .button.secondary {
  border-radius: 10px;
  background: #f8f9f2;
  color: #7a8a6a;
  font-size: 12px;
  font-weight: 500;
}

.product-memories .memory-editor {
  max-width: 850px;
  padding: 25px;
  border: 1px solid #dfe4d4;
  border-radius: 17px;
  background: var(--surface);
}

.product-memories .memory-editor label, .product-memories .memory-type legend {
  color: #657658;
  font-size: 12px;
  font-weight: 500;
}

.product-memories .memory-type {
  margin-bottom: 19px;
}

.product-memories .memory-type span {
  padding: 7px 17px;
  border-radius: 8px;
  background: #fafbf5;
  color: #88937c;
  font-size: 12px;
}

.product-memories .memory-type input:checked + span {
  border-color: #b9c8a7;
  background: #eaf0e1;
  color: #536b42;
}

.product-memories .memory-editor textarea {
  padding: 12px;
  border-color: #e1e6d7;
  border-radius: 10px;
  background: #fafbf6;
  font-size: 13px;
  line-height: 1.8;
}

.product-memories .memory-actions {
  margin-top: 18px;
}

.product-memories .memory-save {
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.product-memories .memory-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.product-memories .memory-item {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  min-width: 0;
  min-height: 176px;
  padding: 21px;
  border: 1px solid #e4e7d9;
  border-radius: 14px;
  background: #fffef8;
}

.product-memories .memory-item:focus {
  outline: 2px solid #9aaf85;
  outline-offset: 3px;
}

.product-memories .memory-item p {
  color: #5c6e4f;
  font-size: 13px;
  line-height: 1.85;
}

.product-memories .memory-item small {
  margin-top: 12px;
  color: #727e61;
  font-size: 11px;
}

.product-memories .memory-item .button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 500;
}

.product-memories .memory-item-controls {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf0e5;
}

.product-memories .memory-item[data-asset-type="canvas"] {
  background: #fcf8ef;
  border-color: #eae3d4;
}

.product-memories .memory-item[data-asset-type="audio"] {
  background: #f7f8f7;
}

.product-memories .memory-asset {
  margin-top: 14px;
}

.product-memories .memory-asset img {
  max-height: 220px;
  border-radius: 10px;
}

.product-memories .memory-canvas-analysis {
  font-weight: 400;
  line-height: 1.8;
}


@keyframes status-pulse {
  50% {
    opacity: .3;
  }
}

@media (min-width: 1600px) {
  .product-main {
    padding-top: 60px;
  }

  .product-chat-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }

}
@media (max-width: 1200px) {
  .product-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }

  .product-rail {
    padding-inline: 12px;
  }

  .product-main {
    padding-inline: 28px;
  }

  .product-chat-layout {
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 20px;
  }

  .heading-date {
    align-self: start;
    padding-top: 12px;
    font-size: 10px;
  }

  .heading-date .product-icon {
    display: none;
  }

  .product-memories .memory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}
@media (max-width: 980px) {
  .product-shell {
    grid-template-columns: 172px minmax(0, 1fr);
  }

  .product-main {
    padding: 35px 24px 25px;
  }

  .product-heading {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
  }

  .heading-date {
    padding-top: 0;
  }

  .product-chat-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .product-chat {
    min-height: 590px;
    height: calc(100svh - 181px);
    max-height: 770px;
  }

  .product-preview {
    padding-top: 0;
  }

  .preview-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .preview-link {
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 13px;
  }

  .preview-icon {
    flex-basis: auto;
    width: 29px;
    height: 29px;
  }

  .preview-empty-state {
    min-height: 195px;
  }

  .preview-note {
    margin-top: 20px;
  }

}
.mobile-app-header,
.mobile-bottom-nav,
.mobile-greeting,
.memory-map-back,
.memory-sky,
.memory-capture {
  display: none;
}

@media (max-width: 660px) {
  body[data-product] {
    --mobile-header-height: calc(72px + env(safe-area-inset-top, 0px));
    --mobile-nav-height: calc(78px + env(safe-area-inset-bottom, 0px));
    height: var(--app-height, 100dvh);
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #f7f7f0;
  }

  .mobile-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--mobile-header-height);
    padding: calc(12px + env(safe-area-inset-top, 0px)) 24px 12px;
    background: #f7f7f0;
  }

  .mobile-app-header .product-brand {
    margin: 0;
    gap: 10px;
  }

  .mobile-app-header .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px 13px 13px 5px;
  }

  .mobile-app-header .brand-mark .product-icon {
    width: 22px;
    height: 22px;
  }

  .mobile-app-header .brand-copy {
    gap: 4px;
  }

  .mobile-app-header .brand-copy strong {
    font-size: 22px;
  }

  .mobile-app-header .brand-copy > span {
    font-size: 10px;
    letter-spacing: .1em;
  }

  .mobile-header-lab {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #e1e5d8;
    border-radius: 50%;
    background: #fcfcf6;
    color: #718267;
  }

  .mobile-header-lab .product-icon {
    width: 19px;
    height: 19px;
  }

  .product-shell {
    display: block;
    height: calc(var(--app-height, 100dvh) - var(--mobile-header-height) - var(--mobile-nav-height));
    min-height: 0;
    overflow: hidden;
  }

  .product-rail {
    display: none;
  }

  .product-main {
    height: 100%;
    padding: 0;
  }

  #chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  #chat-view > .product-heading {
    display: block;
    flex: none;
    margin: 0;
    padding: 18px 26px 8px;
  }

  #chat-view .mobile-greeting {
    display: block;
    margin: 0 0 8px;
    color: #7d8b6d;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .05em;
  }

  #chat-view .product-heading h1 {
    font-size: 29px;
    font-weight: 600;
    letter-spacing: .035em;
    line-height: 1.5;
  }

  #chat-view .product-heading p:not(.mobile-greeting),
  #chat-view .heading-date {
    display: none;
  }

  .product-chat-layout {
    display: block;
    flex: 1;
    min-height: 0;
  }

  .product-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .product-chat-top {
    flex: none;
    min-height: 54px;
    margin-inline: 23px;
    padding: 8px 0 13px;
    border-bottom: 1px solid #e5e9dc;
  }

  .conversation-identity > p {
    font-size: 13px;
  }

  .product-chat .call-indicator {
    font-size: 11px;
  }

  .product-chat:has(.product-empty-chat:not([hidden])) .product-chat-top {
    display: none;
  }

  .product-transcript {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 22px;
    background: transparent;
  }

  .product-transcript:has(.product-empty-chat:not([hidden])) {
    display: flex;
    padding: 0;
  }

  .product-empty-chat {
    width: 100%;
    height: 100%;
    min-height: 0;
    justify-content: center;
    padding: 0 0 8px;
  }

  .island-scene {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 75px;
    max-height: 300px;
    margin: 0;
  }

  .island-scene img {
    object-position: center 64%;
    filter: saturate(.75);
  }

  .island-scene::after {
    background: linear-gradient(to bottom, #f7f7f0, transparent 22%, transparent 65%, #f7f7f0);
  }

  .empty-chat-copy {
    flex: none;
    margin: 0;
    padding: 8px 25px 0;
  }

  .product-empty-chat h2 {
    display: none;
  }

  .product-empty-chat p {
    margin: 0;
    color: #7a866d;
    font-size: 13px;
    line-height: 1.9;
  }

  .product-voice-controls {
    flex: none;
    padding: 15px 24px 0;
  }

  .product-voice-controls .button {
    width: min(100%, 236px);
    min-height: 54px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
  }

  .product-voice-controls .button .product-icon {
    width: 20px;
    height: 20px;
  }

  .product-voice-controls .notice {
    margin-top: 8px;
    font-size: 12px;
  }

  .starter-row {
    flex: none;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 18px 22px;
  }

  .starter {
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 0 10px;
    border-color: #e2e7d9;
    border-radius: 22px;
    background: #fcfcf6;
    color: #6d805c;
    font-size: 11px;
    white-space: nowrap;
  }

  .starter .product-icon {
    width: 14px;
    height: 14px;
  }

  .starter:last-child {
    display: none;
  }

  .product-chat .chat-composer {
    flex: none;
    padding: 0 22px 18px;
  }

  .product-chat .chat-composer-row {
    min-height: 59px;
    gap: 8px;
    padding: 8px 8px 8px 17px;
    border: 1px solid #dde5d3;
    border-radius: 21px;
    background: #fffef9;
    box-shadow: 0 3px 14px #4b613509;
  }

  .product-chat .chat-composer textarea {
    max-height: 106px;
    padding-block: 8px;
    font-size: 16px;
  }

  .product-chat .button.chat-send {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .product-chat .chat-send .product-icon {
    width: 18px;
    height: 18px;
  }

  .composer-hint,
  .product-preview {
    display: none;
  }

  .product-chat .conversation-footer {
    flex: none;
    min-height: 32px;
    margin: 0 23px 9px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .product-chat .turn {
    max-width: 90%;
    margin-bottom: 21px;
  }

  .product-chat .bubble {
    padding: 12px 15px;
    font-size: 15px;
    line-height: 1.8;
  }

  .product-chat .speaker {
    font-size: 12px;
  }

  #chat-view:has(.product-empty-chat[hidden]) > .product-heading {
    display: none;
  }

  .product-chat:not(:has(.product-empty-chat:not([hidden]))) .product-voice-controls {
    justify-items: center;
    padding: 7px 22px 0;
  }

  .product-chat:not(:has(.product-empty-chat:not([hidden]))) .product-voice-controls .button {
    width: auto;
    min-height: 44px;
    padding-inline: 18px;
    font-size: 13px;
  }

  .product-chat:not(:has(.product-empty-chat:not([hidden]))) .chat-composer {
    padding-top: 12px;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    height: var(--mobile-nav-height);
    padding: 6px 40px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e5e9dc;
    background: #fcfcf7f5;
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav .nav-link {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 62px;
    padding: 6px 10px;
    color: #8b9480;
    font-size: 11px;
    font-weight: 500;
  }

  .mobile-bottom-nav .nav-link .product-icon {
    position: relative;
    width: 23px;
    height: 23px;
  }

  .mobile-bottom-nav .nav-link[aria-current="page"] {
    background: transparent;
    color: #46653d;
    font-weight: 650;
  }

  .mobile-bottom-nav .nav-link[aria-current="page"]::before {
    position: absolute;
    top: 5px;
    left: calc(50% - 25px);
    width: 50px;
    height: 30px;
    border-radius: 18px;
    background: #e8efdd;
    content: "";
  }

  .product-memories {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 26px;
  }

  body[data-product]:has(#memory-view:not([hidden])) {
    --sky-background: #0c1524;
    --sky-surface: #131f31;
    --sky-line: #293851;
    --sky-ink: #f1f4fa;
    --sky-muted: #aab9d0;
    --sky-accent: #b9e7dc;
    background: var(--sky-background);
  }

  body[data-product]:has(#memory-view:not([hidden])) .mobile-app-header {
    background: var(--sky-background);
  }

  body[data-product]:has(#memory-view:not([hidden])) .mobile-app-header .product-brand {
    color: var(--sky-ink);
  }

  body[data-product]:has(#memory-view:not([hidden])) .mobile-app-header .brand-copy > span {
    color: var(--sky-muted);
  }

  body[data-product]:has(#memory-view:not([hidden])) .mobile-app-header .brand-mark,
  body[data-product]:has(#memory-view:not([hidden])) .mobile-header-lab {
    border: 1px solid var(--sky-line);
    background: #192b3b;
    color: var(--sky-accent);
  }

  body[data-product]:has(#memory-view:not([hidden])) .mobile-bottom-nav {
    border-color: var(--sky-line);
    background: #101a2cf5;
  }

  body[data-product]:has(#memory-view:not([hidden])) .mobile-bottom-nav .nav-link {
    color: var(--sky-muted);
  }

  body[data-product]:has(#memory-view:not([hidden])) .mobile-bottom-nav .nav-link[aria-current="page"] {
    color: var(--sky-accent);
  }

  body[data-product]:has(#memory-view:not([hidden])) .mobile-bottom-nav .nav-link[aria-current="page"]::before {
    background: #26434a;
  }

  .product-memories {
    color: var(--sky-ink);
  }

  .product-memories .memory-heading {
    display: flex;
    align-items: center;
    margin: 6px 20px 18px;
  }

  .memory-heading h1 {
    color: var(--sky-ink);
    font-size: 31px;
    letter-spacing: .045em;
    line-height: 1.2;
  }

  .memory-heading #auto-memory-status {
    margin-top: 8px;
    color: var(--sky-muted);
    font-size: 12px;
    line-height: 1.55;
  }

  .product-memories .product-add {
    min-height: 44px;
    padding-inline: 12px;
    border-radius: 13px;
    background: var(--sky-accent);
    color: #123039;
    font-size: 13px;
    font-weight: 650;
  }

  .product-memories .product-add:hover:not(:disabled) {
    background: #d6f4ec;
    color: #123039;
  }

  .product-memories .product-add .product-icon {
    width: 16px;
    height: 16px;
  }

  .product-memories .memory-body {
    padding-inline: 20px;
  }

  .product-memories .memory-search {
    gap: 8px;
    margin-bottom: 13px;
  }

  .memory-search-field {
    min-height: 48px;
    border-color: var(--sky-line);
    background: var(--sky-surface);
    color: var(--sky-muted);
  }

  .memory-search-field input {
    padding-block: 11px;
    color: var(--sky-ink);
    font-size: 16px;
  }

  .memory-search-field input::placeholder {
    color: #a3b0c6;
  }

  .product-memories .memory-search .button {
    min-width: 57px;
    border-color: var(--sky-line);
    background: #1c2c43;
    color: var(--sky-ink);
    font-size: 13px;
  }

  .memory-map-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: -8px;
    color: var(--sky-accent);
    font-size: 13px;
    text-decoration: none;
  }

  body[data-product]:has(#memory-view[data-memory-layout="map"]:not([hidden]) .memory-editor[hidden]) {
    --mobile-header-height: 0px;
    --mobile-nav-height: 0px;
  }

  body[data-product]:has(#memory-view[data-memory-layout="map"]:not([hidden]) .memory-editor[hidden]) .mobile-app-header,
  body[data-product]:has(#memory-view[data-memory-layout="map"]:not([hidden]) .memory-editor[hidden]) .mobile-bottom-nav {
    display: none;
  }

  #memory-view[data-memory-layout="map"]:has(.memory-editor[hidden]) {
    padding: 0;
    scrollbar-width: none;
  }

  #memory-view[data-memory-layout="map"]:has(.memory-editor[hidden]) .memory-body {
    padding: 0;
  }

  #memory-view[data-memory-layout="map"]:has(.memory-editor[hidden]) .memory-heading,
  #memory-view[data-memory-layout="map"]:has(.memory-editor[hidden]) .memory-search,
  #memory-view[data-memory-layout="map"]:has(.memory-editor[hidden]) .memory-capture,
  #memory-view[data-memory-layout="map"]:has(.memory-editor[hidden]) .memory-collection,
  #memory-view[data-memory-layout="map"]:has(.memory-editor[hidden]) .memory-action-status,
  #memory-view[data-memory-layout="map"]:has(.memory-editor[hidden]) .memory-call-link {
    display: none;
  }

  .memory-sky {
    --star-color: #c7efe1;
    display: block;
  }

  #memory-view[data-memory-layout="list"] .memory-sky {
    display: none;
  }

  .memory-map {
    position: relative;
    isolation: isolate;
    height: max(var(--app-height, 100dvh), calc(var(--star-bands, 1) * 440px));
    overflow: hidden;
    background:
      radial-gradient(ellipse at 32% 38%, #183e506b, transparent 57%),
      radial-gradient(ellipse at 82% 68%, #45335566, transparent 59%),
      #0b1424;
  }

  .memory-map-orbits,
  #memory-star-links,
  #memory-stars {
    position: absolute;
    inset: 0;
  }

  .memory-map-orbits {
    pointer-events: none;
    background-image:
      radial-gradient(circle at 16% 13%, #c0cce955 0 1px, transparent 1.5px),
      radial-gradient(circle at 76% 18%, #c0cce950 0 .8px, transparent 1.5px),
      radial-gradient(circle at 91% 79%, #c0cce945 0 .8px, transparent 1.5px),
      radial-gradient(circle at 8% 77%, #c0cce943 0 .8px, transparent 1.5px),
      radial-gradient(circle at 34% 93%, #c0cce939 0 .8px, transparent 1.5px),
      radial-gradient(circle at 84% 92%, #c0cce950 0 .8px, transparent 1.5px);
    background-size: 100% calc(100% / var(--star-bands, 1));
  }

  .memory-map-orbits::before,
  .memory-map-orbits::after {
    position: absolute;
    inset: 19% 14%;
    border: 1px solid #809bbe20;
    border-radius: 50%;
    content: "";
    transform: rotate(-19deg);
  }

  .memory-map-orbits::after {
    inset: 29% 20%;
    border-style: dashed;
    border-color: #809bbe25;
  }

  #memory-star-links {
    pointer-events: none;
  }

  .memory-star-link {
    position: absolute;
    top: var(--star-y);
    left: var(--star-x);
    width: var(--star-link-length);
    border-top: 1px dashed #95acc761;
    transform: rotate(var(--star-link-angle));
    transform-origin: left center;
  }

  .memory-star {
    position: absolute;
    top: var(--star-y);
    left: var(--star-x);
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%);
  }

  .memory-star::before {
    width: calc(11px * var(--star-scale, 1));
    height: calc(11px * var(--star-scale, 1));
    border: 1px solid #fff9;
    border-radius: 50%;
    background: var(--star-color);
    box-shadow: 0 0 17px var(--star-color);
    content: "";
  }

  .memory-star:active {
    background: #253b514f;
  }

  .memory-star[data-kind="audio"]::before {
    border-radius: 3px;
    transform: rotate(45deg);
  }

  .memory-star[data-kind="image"]::before {
    border-radius: 3px;
  }

  .memory-star[data-kind="canvas"]::before {
    border: 0;
    border-radius: 0;
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
  }

  .memory-star[data-kind="audio"] {
    --star-color: #94c1fc;
  }

  .memory-star[data-kind="image"] {
    --star-color: #ffd39e;
  }

  .memory-star[data-kind="canvas"] {
    --star-color: #d8b9f8;
  }

  .memory-first-star {
    --star-x: 50%;
    --star-y: 48%;
    border: 1px solid #b9e7dc8a;
    background: #143440;
    color: var(--sky-accent);
    box-shadow: 0 0 25px #b9e7dc43;
  }

  .memory-first-star::before {
    content: none;
  }

  .memory-first-star .product-icon {
    width: 20px;
    height: 20px;
  }

  .memory-map-empty:not([data-error="true"]) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .memory-map-empty[data-error="true"] {
    position: absolute;
    inset: 0;
    display: grid;
    padding: 26px;
    place-content: center;
    color: #ffd4ce;
    font-size: 14px;
    text-align: center;
  }

  .product-memories button:focus-visible,
  body[data-product]:has(#memory-view:not([hidden])) .mobile-bottom-nav a:focus-visible {
    outline-color: var(--sky-accent);
    outline-offset: 0;
  }

  .memory-capture {
    display: block;
    margin: 21px 0 4px;
  }

  .memory-capture h2 {
    margin-bottom: 12px;
    color: var(--sky-ink);
    font-size: 17px;
  }

  .memory-capture-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  .memory-capture-options button {
    display: grid;
    justify-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 76px;
    padding: 11px 4px 10px;
    border: 1px solid var(--sky-line);
    border-radius: 15px;
    background: #162b33;
    color: #bce8dc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }

  .memory-capture-options button:active {
    box-shadow: inset 0 0 0 1px currentColor;
  }

  .memory-capture-options [data-memory-kind="audio"] {
    background: #192b46;
    color: #a9ccff;
  }

  .memory-capture-options [data-memory-kind="image"] {
    background: #302c38;
    color: #ffd39e;
  }

  .memory-capture-options [data-memory-kind="canvas"] {
    background: #28273e;
    color: #dbc3fb;
  }

  .memory-capture-options .product-icon {
    width: 23px;
    height: 23px;
  }

  .memory-collection-status {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px dashed #3b4c68;
    border-radius: 16px;
    background: var(--sky-surface);
  }

  .memory-collection-status > .product-icon {
    display: block;
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 10px;
    background: #213949;
    color: var(--sky-accent);
  }

  .product-memories #memory-list-status {
    min-height: 0;
    margin: 0;
    color: var(--sky-muted);
    font-size: 13px;
    line-height: 1.65;
  }

  .product-memories #memory-list-status[data-error="true"] {
    color: #ffc7c0;
  }

  .product-memories .memory-collection h2 {
    color: var(--sky-ink);
  }

  .product-memories .memory-list {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
  }

  .product-memories .memory-item {
    min-height: 0;
    gap: 11px;
    padding: 16px;
    border-color: var(--sky-line);
    border-radius: 17px;
    background: var(--sky-surface);
  }

  .product-memories .memory-item[data-asset-type] {
    border-color: var(--sky-line);
    background: var(--sky-surface);
  }

  .product-memories .memory-item p {
    color: var(--sky-ink);
    font-size: 15px;
  }

  .product-memories .memory-item small {
    color: var(--sky-muted);
    font-size: 12px;
  }

  .product-memories .memory-item .button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .product-memories .memory-item .button.secondary,
  .product-memories .memory-editor .button.secondary {
    border-color: var(--sky-line);
    background: #1c2c43;
    color: var(--sky-ink);
  }

  .product-memories .memory-item .button.memory-delete {
    border-color: #664251;
    background: #342337;
    color: #ffcdc6;
  }

  .product-memories .memory-item-controls {
    border-color: var(--sky-line);
  }

  .product-memories .memory-asset summary,
  .product-memories > .memory-body > .memory-action-status {
    color: var(--sky-accent);
  }

  .product-memories > .memory-body > .memory-action-status[data-error="true"] {
    color: #ffc7c0;
  }

  .product-memories .memory-editor {
    position: fixed;
    z-index: 30;
    inset: var(--mobile-header-height) 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(var(--app-height, 100dvh) - var(--mobile-header-height) - var(--mobile-nav-height));
    max-width: none;
    margin: 0;
    padding: 21px 23px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: var(--sky-background);
  }

  .product-memories .memory-type {
    flex: none;
    gap: 8px;
    margin-bottom: 26px;
  }

  .product-memories .memory-type legend {
    margin-bottom: 15px;
    color: var(--sky-ink);
    font-size: 18px;
  }

  .product-memories .memory-type label {
    flex: 1;
    text-align: center;
  }

  .product-memories .memory-type span {
    min-height: 45px;
    padding: 11px 8px;
    border-radius: 13px;
    border-color: var(--sky-line);
    background: var(--sky-surface);
    color: var(--sky-muted);
    font-size: 14px;
  }

  .product-memories .memory-type input:checked + span {
    border-color: #608391;
    background: #224049;
    color: var(--sky-accent);
  }

  .product-memories .memory-editor label {
    margin-bottom: 12px;
    color: var(--sky-muted);
    font-size: 14px;
  }

  .product-memories .memory-editor textarea {
    flex: none;
    min-height: 165px;
    padding: 15px;
    border-radius: 16px;
    border-color: var(--sky-line);
    background: var(--sky-surface);
    color: var(--sky-ink);
    font-size: 16px;
  }

  .product-memories .memory-actions {
    position: sticky;
    bottom: 0;
    gap: 12px;
    flex: none;
    margin-top: auto;
    padding-block: 17px;
    background: var(--sky-background);
  }

  .product-memories .memory-actions .button {
    flex: 1;
    min-height: 48px;
    border-radius: 16px;
    font-size: 15px;
  }

  .product-memories .memory-save,
  .product-memories .memory-save:hover:not(:disabled) {
    background: var(--sky-accent);
    color: #123039;
  }

  .product-memories #memory-media-status {
    color: var(--sky-muted);
  }

  .product-memories #memory-media-status[data-error="true"] {
    color: #ffc7c0;
  }

  .product-memories .memory-editor > .memory-action-status {
    position: sticky;
    bottom: 82px;
    flex: none;
    z-index: 1;
    margin: 15px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #213949;
    color: var(--sky-accent);
    font-size: 13px;
  }

  .product-memories .memory-editor > .memory-action-status[data-error="true"] {
    background: #412d37;
    color: #ffc7c0;
  }

  .product-memories:has(.memory-editor:not([hidden])) > .product-heading,
  .product-memories:has(.memory-editor:not([hidden])) #memory-search,
  .product-memories:has(.memory-editor:not([hidden])) .memory-sky,
  .product-memories:has(.memory-editor:not([hidden])) .memory-capture,
  .product-memories:has(.memory-editor:not([hidden])) .memory-collection,
  .product-memories:has(.memory-editor:not([hidden])) .memory-call-link {
    display: none;
  }

  .memory-call-link {
    min-height: 44px;
    margin-bottom: 16px;
    font-size: 12px;
  }

  body[data-keyboard-open] {
    --mobile-nav-height: 0px;
  }

  body[data-keyboard-open] .mobile-bottom-nav,
  body[data-keyboard-open] #chat-view > .product-heading,
  body[data-keyboard-open] .starter-row,
  body[data-keyboard-open] .product-empty-chat {
    display: none;
  }
}

@media (max-width: 380px) {
  .mobile-app-header {
    padding-inline: 20px;
  }

  #chat-view > .product-heading {
    padding-top: 10px;
  }

  #chat-view .product-heading h1 {
    font-size: 27px;
  }

  .product-voice-controls {
    padding-top: 10px;
  }

  .starter-row {
    padding-block: 13px;
  }

  .starter {
    font-size: 10px;
  }

  .product-chat .chat-composer {
    padding: 0 18px 13px;
  }

  .product-memories .memory-heading {
    margin-inline: 16px;
  }

  .product-memories .memory-body {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-chat .call-indicator[data-state="connecting"] .status-dot {
    animation: none;
  }

}
