:root {
  color-scheme: light;
  --milk: #fffaf4;
  --cream: #fff4e6;
  --powder: #ffe8ee;
  --powder-strong: #f8cbd5;
  --champagne: #f8e6bd;
  --gold: #d8a94b;
  --coral: #d97074;
  --rose: #c84d66;
  --rose-dark: #8f2f48;
  --sage: #7aa890;
  --sage-dark: #2f725d;
  --sky: #b8d2dd;
  --blue: #557f98;
  --ink: #2b2622;
  --soft-ink: #5f5a53;
  --muted: #807a72;
  --line: rgba(91, 64, 54, 0.14);
  --panel: rgba(255, 253, 248, 0.9);
  --white-glass: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 16px 44px rgba(129, 73, 62, 0.12);
  --shadow-hover: 0 20px 54px rgba(129, 73, 62, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--milk);
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(145deg, rgba(255, 232, 238, 0.84), rgba(255, 250, 244, 0.56) 34%, rgba(248, 230, 189, 0.46) 100%),
    linear-gradient(180deg, var(--milk) 0%, #fff6f0 54%, #f7fff9 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 22px);
  opacity: 0.5;
}

button,
textarea,
select,
input {
  font: inherit;
  font-size: max(16px, 1em);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

h1,
h2,
p {
  margin: 0;
}

.app-shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
  min-width: 0;
  min-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.workspace.care-only {
  grid-template-columns: minmax(360px, 760px);
  justify-content: center;
}

.workspace.care-only .control-panel {
  border-right: 0;
}

.control-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: 22px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 244, 0.92)),
    var(--panel);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  animation: rise-in 0.45s ease both;
}

.brand > div:last-child {
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.35), transparent 38%),
    linear-gradient(135deg, var(--rose), var(--coral) 52%, #e8b960);
  color: white;
  box-shadow: 0 14px 28px rgba(200, 77, 102, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 33px;
  font-weight: 800;
}

.brand-mark::after {
  position: absolute;
  right: -5px;
  bottom: -6px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--milk);
  color: var(--gold);
  content: "✦";
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(129, 73, 62, 0.14);
}

h1 {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: 0;
}

.brand p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.28;
}

.love-note {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  overflow: visible;
  padding: 22px;
  border: 1px solid rgba(248, 203, 213, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 232, 238, 0.8)),
    linear-gradient(180deg, #fff9f7, #fff0f4);
  box-shadow: 0 18px 42px rgba(200, 77, 102, 0.13);
  line-height: 1.38;
  animation: rise-in 0.5s 0.04s ease both;
}

.love-note::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(216, 169, 75, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 48%);
}

.love-note > * {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.love-note small {
  color: var(--rose-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.love-note strong {
  display: block;
  max-width: 100%;
  color: var(--rose-dark);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.1;
}

.love-note span {
  display: block;
  max-width: 100%;
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.38;
}

.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-hearts span {
  position: absolute;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 18px rgba(200, 77, 102, 0.12);
  opacity: 0.72;
  animation: float-heart 6s ease-in-out infinite;
}

.floating-hearts span:nth-child(1) {
  right: 18px;
  top: 16px;
}

.floating-hearts span:nth-child(2) {
  right: 62px;
  bottom: 18px;
  animation-delay: 1.2s;
}

.floating-hearts span:nth-child(3) {
  left: 18px;
  bottom: 18px;
  animation-delay: 2.1s;
}

.home-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  animation: rise-in 0.52s 0.08s ease both;
}

.room-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 132px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: var(--white-glass);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(91, 64, 54, 0.09);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.room-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 42%);
}

.room-card > * {
  position: relative;
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.room-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 20px rgba(91, 64, 54, 0.08);
  font-size: 27px;
}

.room-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.room-card strong {
  min-width: 0;
  font-size: 20px;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.room-card span span {
  color: var(--soft-ink);
  line-height: 1.28;
  overflow-wrap: break-word;
}

.room-salon {
  background: linear-gradient(145deg, #fff2f5, #fffaf5);
}

.room-chat {
  background: linear-gradient(145deg, #f4f8ff, #fff7f9);
}

.room-recipes {
  background: linear-gradient(145deg, #fff6dc, #fffaf3);
}

.room-health {
  background: linear-gradient(145deg, #edf9f0, #fffaf0);
}

.home-button {
  min-height: 58px;
  border: 1px solid rgba(200, 77, 102, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--rose-dark);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(129, 73, 62, 0.08);
}

.care-mode-switch {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(248, 203, 213, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(129, 73, 62, 0.08);
  backdrop-filter: blur(16px);
}

.care-mode-button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--rose-dark);
  cursor: pointer;
  font-weight: 900;
}

.care-mode-button.active {
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: white;
  box-shadow: 0 8px 18px rgba(200, 77, 102, 0.2);
}

.mode-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 16px;
  animation: rise-in 0.35s ease both;
}

.section-heading,
.chat-heading {
  display: grid;
  gap: 6px;
  line-height: 1.36;
}

.section-heading strong,
.chat-heading strong {
  color: var(--rose-dark);
  font-size: 25px;
  line-height: 1.1;
}

.section-heading span,
.chat-heading span,
.result-topbar p,
.empty-state span,
.loader span,
.upload-box small,
.care-file small {
  color: var(--muted);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.mode-button {
  min-height: 56px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--soft-ink);
  cursor: pointer;
  font-weight: 900;
}

.mode-button.active {
  background: linear-gradient(135deg, var(--ink), #6a4d3e);
  color: white;
  box-shadow: 0 8px 18px rgba(43, 38, 34, 0.16);
}

.form-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: 16px;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 176px;
  place-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 22px;
  border: 1.5px dashed rgba(200, 77, 102, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 240, 244, 0.74)),
    #fff8f8;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-box:hover,
.upload-box.drag-over {
  border-color: var(--rose);
  background: linear-gradient(135deg, rgba(255, 248, 249, 0.94), rgba(255, 232, 238, 0.88));
  transform: translateY(-1px);
}

.upload-box input,
.care-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  color: #4a351c;
  box-shadow: 0 12px 24px rgba(216, 169, 75, 0.22);
  font-size: 34px;
  line-height: 1;
}

.upload-box strong {
  font-size: 20px;
}

.preview-strip {
  position: relative;
  overflow: hidden;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: #f7efea;
  box-shadow: 0 12px 26px rgba(91, 64, 54, 0.1);
}

.preview-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faceapp-presets {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(246, 217, 156, 0.58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(255, 238, 243, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 30px rgba(143, 72, 87, 0.08);
}

.faceapp-presets-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.faceapp-presets-heading strong {
  color: #a52d45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.05;
}

.faceapp-presets-heading span {
  color: #9b6b27;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.faceapp-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.faceapp-preset {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 78px;
  place-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 247, 0.68));
  color: #91475a;
  box-shadow: 0 10px 22px rgba(91, 64, 54, 0.07);
  cursor: pointer;
}

.faceapp-preset::after {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(216, 169, 75, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: transparent;
  content: "✓";
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(91, 64, 54, 0.07);
}

.faceapp-preset span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  box-shadow: 0 8px 16px rgba(143, 72, 87, 0.08);
}

.faceapp-preset strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
}

.faceapp-preset.active {
  border-color: rgba(216, 169, 75, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 252, 245, 0.98), rgba(255, 222, 231, 0.9));
  color: #b32740;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.68),
    0 14px 28px rgba(183, 40, 66, 0.13);
}

.faceapp-preset.active::after {
  background: linear-gradient(135deg, #d4a24a, #f6d99c);
  color: white;
}

.icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(43, 38, 34, 0.72);
  color: white;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--ink);
  font-weight: 900;
}

textarea,
select,
.chat-form input {
  width: 100%;
  border: 1px solid rgba(91, 64, 54, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

textarea {
  min-height: 138px;
  resize: vertical;
  padding: 15px;
  line-height: 1.45;
}

textarea::placeholder,
.chat-form input::placeholder {
  color: rgba(95, 90, 83, 0.68);
}

select {
  min-height: 56px;
  padding: 0 14px;
}

textarea:focus,
select:focus,
.chat-form input:focus {
  border-color: rgba(200, 77, 102, 0.62);
  box-shadow: 0 0 0 4px rgba(248, 203, 213, 0.32);
}

.history-title {
  color: var(--rose-dark);
  font-size: 19px;
  font-weight: 900;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: white;
  cursor: pointer;
  font-size: 19px;
  box-shadow: 0 16px 28px rgba(200, 77, 102, 0.24);
}

.primary-button:hover {
  box-shadow: 0 20px 36px rgba(200, 77, 102, 0.3);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-icon {
  font-size: 24px;
}

.secondary-button {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  padding: 0 18px;
  border: 1px solid rgba(216, 169, 75, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--rose-dark);
  box-shadow: 0 10px 22px rgba(91, 64, 54, 0.08);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.result-panel {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  gap: 20px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.84), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.5);
}

.result-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

h2 {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.08;
}

.result-stage {
  position: relative;
  display: grid;
  min-height: 460px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 240, 244, 0.62)),
    linear-gradient(180deg, #fffaf4, #f7fff9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 46px rgba(91, 64, 54, 0.1);
}

.empty-state,
.loader {
  display: grid;
  width: min(430px, calc(100% - 40px));
  gap: 12px;
  place-items: center;
  text-align: center;
}

.empty-state strong,
.loader strong {
  font-size: 22px;
  line-height: 1.18;
}

.empty-image {
  width: min(235px, 56vw);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, transparent 0 46%, rgba(122, 168, 144, 0.32) 47% 100%),
    linear-gradient(180deg, #ffe8ee 0 48%, #fffaf4 49% 100%);
  box-shadow: 0 18px 38px rgba(91, 64, 54, 0.12);
}

.empty-image::before {
  display: block;
  width: 48%;
  height: 30%;
  margin: 24% auto 0;
  border-radius: 50%;
  background: #e9b0a6;
  content: "";
}

.result-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1d1917;
}

.spinner {
  width: 62px;
  height: 62px;
  border: 6px solid rgba(200, 77, 102, 0.16);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.history {
  display: flex;
  gap: 10px;
  min-height: 86px;
  overflow-x: auto;
  padding: 8px 2px 2px;
}

.history button {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #fff4e6;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(91, 64, 54, 0.08);
}

.history button.active {
  border-color: var(--rose);
}

.history img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-panel {
  display: grid;
  gap: 14px;
  min-height: 210px;
}

.chat-panel-home {
  min-height: 0;
}

.care-file {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1.5px dashed rgba(85, 127, 152, 0.34);
  border-radius: var(--radius);
  background: rgba(244, 248, 255, 0.8);
  cursor: pointer;
  font-weight: 900;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 340px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 244, 0.86)),
    var(--white-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px rgba(91, 64, 54, 0.08);
}

.chat-intro {
  position: relative;
  margin-left: 46px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px 24px 24px 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 242, 248, 0.78));
  color: #55484d;
  box-shadow: 0 14px 28px rgba(117, 74, 91, 0.08);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
  white-space: pre-line;
}

.chat-intro::before {
  position: absolute;
  left: -46px;
  bottom: 2px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 244, 248, 0.04), rgba(255, 244, 248, 0.04)),
    url("/assets/lubochka-avatar.png") center / cover no-repeat;
  box-shadow:
    0 9px 18px rgba(119, 78, 91, 0.13),
    0 0 0 5px rgba(255, 244, 248, 0.52);
  content: "";
}

.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  animation: bubble-in 0.24s ease both;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.assistant {
  justify-content: flex-start;
}

.chat-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7fb, #ffe8ee);
  box-shadow: 0 8px 16px rgba(200, 77, 102, 0.12);
  font-size: 17px;
}

.chat-message-content {
  display: grid;
  min-width: 0;
  max-width: min(620px, calc(100% - 44px));
  gap: 5px;
}

.chat-message.user .chat-message-content {
  max-width: min(620px, 88%);
  justify-items: end;
}

.chat-bubble {
  padding: 13px 15px;
  border-radius: 18px;
  line-height: 1.45;
  white-space: pre-line;
  box-shadow: 0 10px 20px rgba(91, 64, 54, 0.07);
}

.chat-bubble.assistant {
  border-bottom-left-radius: 8px;
  border: 1px solid rgba(248, 203, 213, 0.88);
  background: #fff0f4;
}

.chat-bubble.user {
  border-bottom-right-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #fffdf8;
}

.chat-meta {
  color: rgba(95, 90, 83, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: 8px;
}

.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0.35;
  animation: typing-dot 1s ease-in-out infinite;
}

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

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

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.chat-form input {
  min-height: 58px;
  min-width: 0;
  padding: 0 16px;
}

.chat-form button {
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  color: white;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(47, 114, 93, 0.18);
}

.workspace[data-room="health"] .care-mode-switch {
  border-color: rgba(122, 168, 144, 0.34);
  background: rgba(247, 255, 249, 0.82);
}

.workspace[data-room="health"] .care-mode-button {
  color: var(--sage-dark);
}

.workspace[data-room="health"] .care-mode-button.active,
.workspace[data-room="health"] .chat-form button {
  background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  box-shadow: 0 12px 24px rgba(47, 114, 93, 0.18);
}

.workspace[data-room="health"] .chat-heading strong {
  color: var(--sage-dark);
}

.workspace[data-room="health"] .chat-messages {
  border-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 255, 249, 0.92)),
    #f7fff9;
}

.workspace[data-room="health"] .chat-bubble.assistant {
  border-color: rgba(122, 168, 144, 0.3);
  background: #f2fbf5;
}

.workspace[data-room="health"] .chat-avatar {
  background: linear-gradient(135deg, #f7fff9, #e6f5eb);
}

.workspace[data-room="health"] .care-file {
  border-color: rgba(122, 168, 144, 0.34);
  background: rgba(247, 255, 249, 0.86);
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 0.9;
    transform: translateY(-3px);
  }
}

@keyframes float-heart {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

@keyframes gentle-glow-pulse {
  0%,
  100% {
    opacity: 0.66;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.98;
    transform: scale(1.05);
  }
}

@keyframes dreamy-shimmer {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(-8px);
  }
  50% {
    opacity: 0.72;
    transform: translateX(8px);
  }
}

@keyframes floating-sparkle {
  0%,
  100% {
    opacity: 0.25;
    transform: translate3d(0, 0, 0) scale(0.86);
  }
  50% {
    opacity: 0.95;
    transform: translate3d(8px, -16px, 0) scale(1.2);
  }
}

@keyframes floating-petal {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-24deg);
  }
  50% {
    transform: translate3d(10px, -18px, 0) rotate(-10deg);
  }
}

@keyframes butterfly-flutter {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(13deg) scale(1);
  }
  50% {
    transform: translate3d(-8px, -10px, 0) rotate(19deg) scale(1.03);
  }
}

@keyframes message-soft-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, #fff7f1 0%, #fff1f5 44%, #f8fff9 100%);
    font-size: 18px;
  }

  body::before {
    opacity: 0.28;
  }

  .app-shell {
    padding: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

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

  .control-panel,
  .result-panel {
    padding: 18px;
  }

  .control-panel {
    gap: 18px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .brand {
    gap: 12px;
    align-items: flex-start;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    font-size: 30px;
  }

  h1 {
    font-size: 28px;
  }

  .brand p {
    font-size: 16px;
  }

  .love-note {
    padding: 20px;
  }

  .love-note span {
    font-size: 17px;
  }

  .home-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .room-card {
    min-height: 112px;
    padding: 16px;
  }

  .room-icon {
    width: 50px;
    height: 50px;
  }

  .care-mode-switch {
    position: sticky;
    top: 0;
    z-index: 5;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(255, 248, 249, 0.92);
  }

  .care-mode-button,
  .mode-button,
  .home-button,
  .primary-button,
  .secondary-button,
  .chat-form button {
    min-height: 58px;
    font-size: 18px;
  }

  .section-heading strong,
  .chat-heading strong {
    font-size: 24px;
  }

  .upload-box {
    min-height: 150px;
    padding: 18px;
  }

  .preview-strip {
    height: 170px;
  }

  .faceapp-presets {
    padding: 13px;
  }

  .faceapp-presets-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .faceapp-presets-heading span {
    text-align: left;
  }

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

  textarea {
    min-height: 122px;
  }

  .result-panel {
    gap: 16px;
    background: transparent;
  }

  .result-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .result-actions {
    justify-content: stretch;
  }

  .result-actions .secondary-button {
    flex: 1 1 0;
  }

  h2 {
    font-size: 28px;
  }

  .result-stage {
    min-height: 350px;
  }

  .empty-state,
  .loader {
    width: min(340px, calc(100% - 28px));
  }

  .empty-image {
    width: min(172px, 48vw);
  }

  .chat-messages {
    height: 180px;
    padding: 14px;
  }

  .chat-message-content {
    max-width: calc(100% - 42px);
  }

  .chat-message.user .chat-message-content {
    max-width: 88%;
  }

  .chat-bubble {
    font-size: 17px;
  }

  .chat-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .chat-form input,
  select {
    min-height: 58px;
  }

  .history {
    min-height: 88px;
  }

  .history button {
    width: 88px;
    height: 88px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .app-shell {
    padding: 0;
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .control-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-stage {
    min-height: 430px;
  }
}

@media (max-width: 430px) {
  .control-panel,
  .result-panel {
    padding: 14px;
  }

  h1 {
    font-size: 25px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 27px;
  }

  .love-note strong {
    font-size: 22px;
  }

  .room-card {
    min-height: 106px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Elegant red and blue salon direction */
:root {
  --milk: #fffaf3;
  --cream: #fff1dc;
  --powder: #fff0f1;
  --champagne: #f6d99c;
  --gold: #d4a24a;
  --rose: #d8213c;
  --rose-dark: #9e1f32;
  --coral: #ef6b72;
  --nato-blue: #0b3a82;
  --nato-blue-2: #184f9d;
  --nato-blue-soft: #e9f4ff;
  --ink: #271f1c;
  --soft-ink: #5d514a;
  --muted: #83776f;
  --line: rgba(87, 55, 38, 0.13);
  --panel: rgba(255, 252, 246, 0.9);
  --white-glass: rgba(255, 255, 255, 0.82);
  --shadow-soft: 0 22px 48px rgba(78, 39, 31, 0.13);
  --shadow-hover: 0 26px 58px rgba(78, 39, 31, 0.18);
}

body {
  background:
    linear-gradient(140deg, #fffdf8 0%, #fff4ec 34%, #fff5f6 62%, #eef6ff 100%),
    linear-gradient(180deg, #fffaf3, #fff6f0);
  color: var(--ink);
}

body::before {
  background-image:
    linear-gradient(110deg, rgba(216, 33, 60, 0.05) 0 1px, transparent 1px 24px),
    linear-gradient(22deg, rgba(11, 58, 130, 0.045) 0 1px, transparent 1px 30px);
  opacity: 0.62;
}

.workspace {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 243, 0.88)),
    var(--panel);
}

.control-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 246, 238, 0.94)),
    var(--panel);
}

.brand {
  position: relative;
  min-height: 66px;
  padding-right: 62px;
}

.brand::after {
  position: absolute;
  top: 4px;
  right: 0;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 236, 239, 0.9));
  box-shadow: 0 14px 28px rgba(158, 31, 50, 0.14);
  color: var(--rose);
  content: "♥";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.38), transparent 44%),
    linear-gradient(135deg, #f8dde0 0%, var(--rose) 48%, #f0b76a 100%);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(91, 28, 38, 0.16);
}

.brand-mark::after {
  color: var(--gold);
  content: "✧";
}

h1,
h2,
.love-note strong,
.section-heading strong,
.chat-heading strong,
.room-card strong,
.home-album-card strong,
.history-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  color: var(--rose-dark);
  font-size: clamp(27px, 3vw, 39px);
}

.brand p {
  color: var(--nato-blue);
  font-weight: 700;
}

.love-note {
  min-height: 190px;
  padding: 28px;
  border-color: rgba(246, 217, 156, 0.68);
  background:
    linear-gradient(110deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 248, 242, 0.91) 50%, rgba(233, 244, 255, 0.76) 100%),
    var(--milk);
  box-shadow: 0 24px 48px rgba(158, 31, 50, 0.12);
}

.love-note::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 46%),
    linear-gradient(90deg, rgba(216, 33, 60, 0.08), transparent 34%, rgba(11, 58, 130, 0.08) 100%);
}

.love-note::after {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 0;
  content: "🌹";
  font-size: 82px;
  opacity: 0.5;
  transform: rotate(-8deg);
}

.love-note small {
  color: #a06b1d;
  font-size: 13px;
  text-transform: none;
}

.love-note strong {
  max-width: calc(100% - 70px);
  color: var(--rose-dark);
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.08;
}

.love-note > span {
  max-width: calc(100% - 74px);
  color: var(--nato-blue);
  font-size: 20px;
  font-weight: 700;
}

.floating-hearts span {
  background: rgba(255, 255, 255, 0.82);
  color: var(--rose);
}

.home-section {
  gap: 14px;
}

.room-card {
  grid-template-columns: 1fr;
  min-height: 178px;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 18px 36px rgba(74, 43, 34, 0.1);
}

.room-card::before {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.62), transparent 42%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
}

.room-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 31px;
  box-shadow: 0 12px 24px rgba(74, 43, 34, 0.12);
}

.room-copy {
  justify-items: center;
}

.room-card strong {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.room-card span span {
  max-width: 210px;
  color: currentColor;
  font-size: 16px;
  line-height: 1.25;
  opacity: 0.82;
}

.room-salon {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #ef4559 0%, var(--rose) 52%, #a81c35 100%);
  color: white;
}

.room-salon .room-icon {
  color: var(--rose);
}

.room-chat {
  background: linear-gradient(135deg, #f4fbff 0%, #dceeff 48%, #c7e2ff 100%);
  color: var(--nato-blue);
}

.room-recipes {
  background: linear-gradient(135deg, #fff8eb 0%, #ffedc8 100%);
  color: #714416;
}

.room-health {
  background: linear-gradient(135deg, #f8fcff 0%, #e7f3ff 54%, #dfeaff 100%);
  color: var(--nato-blue);
}

.home-album-card {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 100px;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(246, 217, 156, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 220, 0.86)),
    var(--cream);
  color: var(--rose-dark);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 36px rgba(74, 43, 34, 0.1);
}

.home-album-card::after {
  position: absolute;
  right: 42px;
  top: 14px;
  color: rgba(11, 58, 130, 0.18);
  content: "✧";
  font-size: 30px;
}

.album-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, #fff4f5, #ffd9df);
  box-shadow: 0 12px 24px rgba(158, 31, 50, 0.12);
  font-size: 27px;
}

.home-album-card strong {
  display: block;
  font-size: 25px;
  line-height: 1.08;
}

.home-album-card small {
  display: block;
  margin-top: 5px;
  color: var(--soft-ink);
  font-size: 16px;
  font-weight: 700;
}

.album-arrow {
  color: #9b6122;
  font-size: 36px;
  line-height: 1;
}

.bottom-nav {
  display: none;
}

.home-button,
.care-mode-switch,
.mode-switch,
.upload-box,
textarea,
.chat-messages,
.result-stage,
.secondary-button {
  border-color: rgba(126, 85, 53, 0.16);
}

.care-mode-button.active,
.primary-button {
  background: linear-gradient(135deg, var(--rose), #ec5a66);
  box-shadow: 0 16px 30px rgba(216, 33, 60, 0.23);
}

.mode-button.active {
  background: linear-gradient(135deg, #c74762 0%, #ef7f92 54%, #d9a94f 100%);
  color: #fffaf6;
  box-shadow: 0 14px 30px rgba(199, 71, 98, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.section-heading strong,
.chat-heading strong,
.history-title {
  color: var(--rose-dark);
}

.result-panel {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.92), rgba(247, 252, 255, 0.78)),
    rgba(255, 255, 255, 0.56);
}

h2 {
  color: var(--rose-dark);
}

.result-stage {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 242, 0.6)),
    linear-gradient(180deg, #fffaf3, #f1f8ff);
}

.history-title {
  margin-bottom: 6px;
  font-size: 24px;
}

.history button {
  border-color: rgba(255, 255, 255, 0.78);
  background: #fff8ee;
}

.chat-panel {
  gap: 16px;
}

.chat-messages {
  border-color: rgba(255, 255, 255, 0.9);
}

.chat-bubble.assistant {
  background: #fff2f4;
}

.chat-bubble.user {
  background: #fffdf8;
}

.workspace[data-room="soul"] .chat-heading strong,
.workspace[data-room="soul"] .care-mode-button {
  color: var(--nato-blue);
}

.workspace[data-room="soul"] .care-mode-button.active,
.workspace[data-room="soul"] .chat-form button {
  background: linear-gradient(135deg, var(--nato-blue), #1d5db2);
  box-shadow: 0 14px 28px rgba(11, 58, 130, 0.2);
}

.workspace[data-room="soul"] .chat-messages {
  background:
    linear-gradient(160deg, #062b6a 0%, var(--nato-blue) 55%, #123f89 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 40px rgba(11, 58, 130, 0.18);
}

.workspace[data-room="soul"] .chat-bubble.assistant {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.workspace[data-room="soul"] .chat-bubble.user {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #2d6dc0, #0b3a82);
  color: white;
}

.workspace[data-room="soul"] .chat-meta {
  color: rgba(255, 255, 255, 0.72);
}

.workspace[data-room="soul"] .chat-message.assistant .chat-meta {
  color: rgba(255, 255, 255, 0.64);
}

.workspace[data-room="health"] .chat-heading strong,
.workspace[data-room="health"] .care-mode-button {
  color: var(--nato-blue);
}

.workspace[data-room="health"] .care-mode-button.active,
.workspace[data-room="health"] .chat-form button {
  background: linear-gradient(135deg, #0d6f77, #65a99d);
}

.workspace[data-room="health"] .chat-messages,
.workspace[data-room="health"] .care-file {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(233, 244, 255, 0.8)),
    #f8fcff;
}

.workspace[data-room="recipes"] .chat-heading strong {
  color: #9b6122;
}

.workspace[data-room="recipes"] .care-mode-button.active,
.workspace[data-room="recipes"] .chat-form button {
  background: linear-gradient(135deg, #c77b22, #e7b15e);
}

.workspace[data-room="recipes"] {
  background:
    radial-gradient(circle at 86% 12%, rgba(232, 178, 105, 0.2), transparent 30%),
    radial-gradient(circle at 8% 84%, rgba(255, 213, 222, 0.44), transparent 32%),
    linear-gradient(180deg, #fffaf3, #fff3ea 58%, #fff7f2);
}

.workspace[data-room="recipes"] .control-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.9), transparent 16%),
    radial-gradient(circle at 92% 18%, rgba(214, 147, 65, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 242, 232, 0.94));
}

.workspace[data-room="recipes"] .control-panel::before {
  position: absolute;
  right: 12px;
  top: 82px;
  z-index: 0;
  width: 168px;
  height: 150px;
  border-radius: 38px;
  background:
    radial-gradient(ellipse at 40% 42%, rgba(187, 132, 82, 0.22) 0 22%, transparent 23%),
    radial-gradient(circle at 76% 34%, rgba(241, 169, 157, 0.5) 0 16%, transparent 17%),
    radial-gradient(circle at 82% 42%, rgba(252, 210, 180, 0.48) 0 9%, transparent 10%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(229, 185, 126, 0.22));
  content: "";
  filter: blur(0.1px);
  opacity: 0.82;
}

.workspace[data-room="recipes"] .control-panel::after {
  position: absolute;
  right: 42px;
  top: 186px;
  z-index: 0;
  color: rgba(151, 91, 38, 0.48);
  content: "☕";
  font-size: 76px;
  opacity: 0.32;
}

.workspace[data-room="recipes"] .brand,
.workspace[data-room="recipes"] .chat-panel,
.workspace[data-room="recipes"] .bottom-nav {
  position: relative;
  z-index: 1;
}

.workspace[data-room="recipes"] .chat-panel {
  gap: 14px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 247, 231, 0.88), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 236, 224, 0.6));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 24px 58px rgba(139, 91, 44, 0.12);
  backdrop-filter: blur(14px);
}

.workspace[data-room="recipes"] .chat-heading {
  grid-template-columns: minmax(0, 1fr);
  padding: 2px 4px 0;
}

.workspace[data-room="recipes"] .chat-heading-avatar,
.workspace[data-room="recipes"] .mood-menu-button {
  display: none;
}

.workspace[data-room="recipes"] .chat-heading strong {
  color: #9b6122;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(31px, 8vw, 42px);
  line-height: 1.02;
}

.workspace[data-room="recipes"] .chat-heading span {
  color: #8d7663;
  font-size: 18px;
  font-weight: 700;
}

.recipe-kitchen {
  display: grid;
  gap: 16px;
}

.recipe-welcome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.recipe-avatar {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 244, 248, 0.04), rgba(255, 244, 248, 0.04)),
    url("/assets/lubochka-avatar.png") center / cover no-repeat;
  box-shadow:
    0 12px 24px rgba(119, 78, 57, 0.16),
    0 0 0 6px rgba(255, 241, 223, 0.66);
}

.recipe-welcome-bubble {
  padding: 17px 18px;
  border: 1px solid rgba(238, 199, 180, 0.76);
  border-radius: 24px 24px 24px 8px;
  background:
    linear-gradient(145deg, rgba(255, 242, 246, 0.94), rgba(255, 230, 219, 0.86));
  color: #4e3931;
  box-shadow: 0 16px 30px rgba(139, 91, 44, 0.1);
  font-size: 17px;
  line-height: 1.42;
}

.recipe-moods,
.popular-recipes {
  display: grid;
  gap: 12px;
}

.recipe-moods > strong,
.popular-recipes-heading strong {
  color: #8a551e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.recipe-mood-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 1px 2px 6px;
  scrollbar-width: none;
}

.recipe-mood-list::-webkit-scrollbar {
  display: none;
}

.recipe-mood-list button {
  min-height: 46px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 238, 223, 0.82));
  color: #785333;
  box-shadow: 0 12px 24px rgba(139, 91, 44, 0.1);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.popular-recipes-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.popular-recipes-heading span {
  color: #c77885;
  font-size: 14px;
  font-weight: 900;
}

.recipe-card-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 1px 2px 8px;
  scrollbar-width: none;
}

.recipe-card-grid::-webkit-scrollbar {
  display: none;
}

.recipe-card {
  position: relative;
  display: grid;
  width: 146px;
  flex: 0 0 146px;
  min-width: 0;
  overflow: hidden;
  padding: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.94);
  color: #4e3931;
  text-align: left;
  box-shadow: 0 16px 32px rgba(139, 91, 44, 0.12);
  cursor: pointer;
}

.recipe-card img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.recipe-card strong {
  padding: 10px 12px 4px;
  font-size: 16px;
  line-height: 1.15;
}

.recipe-card small {
  padding: 0 12px;
  color: #8f7a68;
  font-size: 13px;
  font-weight: 800;
}

.recipe-heart {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #d47a85;
  box-shadow: 0 8px 16px rgba(89, 56, 36, 0.12);
  font-size: 20px;
  line-height: 1;
}

.recipe-love-line {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(238, 199, 180, 0.54);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 252, 246, 0.94), rgba(255, 238, 223, 0.82));
  color: #8a6040;
  box-shadow: 0 14px 28px rgba(139, 91, 44, 0.08);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.workspace[data-room="recipes"] .chat-messages {
  max-height: 320px;
  min-height: 180px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 237, 220, 0.62), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.72), rgba(255, 242, 232, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 32px rgba(139, 91, 44, 0.08);
}

.workspace[data-room="recipes"] .chat-messages:empty {
  display: none;
}

.workspace[data-room="recipes"] .chat-bubble.assistant {
  border-color: rgba(238, 199, 180, 0.72);
  background: #fff3ea;
}

.workspace[data-room="recipes"] .chat-intro {
  border-color: rgba(238, 199, 180, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 247, 239, 0.96), rgba(255, 232, 213, 0.86));
  color: #6f4a2d;
}

.workspace[data-room="recipes"] .chat-form {
  position: sticky;
  bottom: 92px;
  grid-template-columns: auto minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 18px 38px rgba(139, 91, 44, 0.14);
  backdrop-filter: blur(18px);
}

.recipe-input-icons {
  display: none;
}

.workspace[data-room="recipes"] .recipe-input-icons {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  padding-left: 3px;
  font-size: 22px;
  white-space: nowrap;
}

.workspace[data-room="recipes"] .chat-form input {
  min-height: 52px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.workspace[data-room="recipes"] .chat-form input::placeholder {
  color: rgba(122, 94, 72, 0.62);
}

.workspace[data-room="recipes"] .chat-form button {
  width: 58px;
  min-height: 58px;
  padding: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(145deg, #e4ae59, #c98522);
  box-shadow:
    0 14px 28px rgba(201, 133, 34, 0.28),
    0 0 0 7px rgba(255, 226, 179, 0.4);
  font-size: 0;
}

.workspace[data-room="recipes"] .chat-form button::before {
  content: "›";
  font-size: 34px;
  line-height: 1;
}

.room-butterfly {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(135deg, #fff8fb 0%, #ffe4ea 42%, #eee8ff 100%);
  color: #93465b;
}

.room-butterfly .room-icon {
  color: #9f617e;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(145deg, #fff4f8, #f3dcff 48%, #ffd7de);
}

.workspace[data-room="butterfly"] {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 219, 228, 0.54), transparent 28%),
    radial-gradient(circle at 86% 58%, rgba(224, 216, 250, 0.52), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(255, 243, 248, 0.91));
}

.workspace[data-room="butterfly"] .control-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 231, 219, 0.72), transparent 25%),
    radial-gradient(circle at 0% 78%, rgba(226, 218, 250, 0.58), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 241, 248, 0.94));
}

.workspace[data-room="butterfly"] .care-mode-button {
  color: #9d4d63;
}

.workspace[data-room="butterfly"] .care-mode-button.active {
  background: linear-gradient(135deg, #bb536d, #e8a3a9 54%, #d5a84d);
  box-shadow: 0 14px 30px rgba(181, 83, 109, 0.23);
}

.butterfly-section {
  position: relative;
  z-index: 1;
  min-height: min(660px, calc(100vh - 190px));
  align-content: center;
}

.butterfly-card {
  position: relative;
  display: grid;
  min-height: 520px;
  align-content: end;
  gap: 18px;
  overflow: hidden;
  padding: 42px 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.68), transparent 24%),
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.88), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.78), rgba(255, 229, 237, 0.62) 46%, rgba(234, 228, 255, 0.58)),
    linear-gradient(180deg, #fffaf1, #fff1f7 52%, #f2eaff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 52px rgba(255, 255, 255, 0.46),
    0 28px 64px rgba(139, 82, 103, 0.18);
  backdrop-filter: blur(18px);
  isolation: isolate;
}

.butterfly-card::before,
.butterfly-card::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.butterfly-card::before {
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(115deg, rgba(138, 75, 83, 0.045) 0 1px, transparent 1px 17px),
    radial-gradient(circle at 22% 76%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.5px);
  background-size: auto, 18px 18px;
  opacity: 0.7;
}

.butterfly-card::after {
  inset: 1px;
  border-radius: 40px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.68), transparent 28%),
    linear-gradient(270deg, rgba(216, 169, 75, 0.22), transparent 42%);
  animation: dreamy-shimmer 7s ease-in-out infinite;
}

.butterfly-card > * {
  position: relative;
  z-index: 1;
}

.butterfly-glow {
  position: absolute;
  inset: 18%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 229, 0.95), rgba(255, 214, 226, 0.42) 42%, transparent 68%);
  filter: blur(8px);
  animation: gentle-glow-pulse 5.6s ease-in-out infinite;
}

.butterfly-card small {
  color: #b98635;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0;
}

.butterfly-card h2 {
  max-width: 420px;
  color: #a64258;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(36px, 8vw, 52px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  text-shadow: 0 8px 26px rgba(166, 66, 88, 0.12);
}

.butterfly-card p {
  max-width: 390px;
  color: #76535e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 5.6vw, 34px);
  line-height: 1.22;
}

.butterfly-message-fresh {
  animation: message-soft-in 0.42s ease both;
}

.butterfly-message-button {
  width: fit-content;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(216, 169, 75, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 246, 0.76));
  color: #9b4659;
  box-shadow: 0 14px 30px rgba(139, 82, 103, 0.12);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.butterfly-sparkles span,
.butterfly-petals span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.butterfly-sparkles span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d5a84d;
  box-shadow: 0 0 14px rgba(216, 169, 75, 0.68);
  animation: floating-sparkle 5s ease-in-out infinite;
}

.butterfly-sparkles span:nth-child(1) { left: 17%; top: 25%; }
.butterfly-sparkles span:nth-child(2) { right: 16%; top: 20%; animation-delay: 0.9s; }
.butterfly-sparkles span:nth-child(3) { right: 24%; top: 51%; animation-delay: 1.8s; }
.butterfly-sparkles span:nth-child(4) { left: 27%; top: 58%; animation-delay: 2.7s; }
.butterfly-sparkles span:nth-child(5) { right: 36%; top: 35%; animation-delay: 3.5s; }

.butterfly-petals span {
  width: 38px;
  height: 18px;
  border-radius: 70% 30% 70% 30%;
  background: rgba(242, 164, 177, 0.34);
  filter: blur(0.2px);
  transform: rotate(-24deg);
  animation: floating-petal 8s ease-in-out infinite;
}

.butterfly-petals span:nth-child(1) { left: 12%; top: 43%; }
.butterfly-petals span:nth-child(2) { right: 12%; top: 62%; animation-delay: 1.7s; }
.butterfly-petals span:nth-child(3) { right: 30%; top: 12%; animation-delay: 3.1s; }

.watercolor-butterfly {
  position: absolute;
  display: grid;
  width: 104px;
  height: 78px;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  opacity: 0.86;
  filter: drop-shadow(0 12px 22px rgba(138, 74, 105, 0.12));
  animation: butterfly-flutter 6.8s ease-in-out infinite;
}

.watercolor-butterfly span {
  display: block;
  width: 48px;
  height: 70px;
  background:
    radial-gradient(circle at 48% 28%, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(circle at 62% 70%, rgba(218, 173, 222, 0.74), transparent 34%),
    linear-gradient(145deg, rgba(255, 202, 214, 0.82), rgba(206, 193, 249, 0.74));
}

.watercolor-butterfly span:first-child {
  border-radius: 78% 34% 68% 34%;
  transform-origin: right center;
}

.watercolor-butterfly span:last-child {
  border-radius: 34% 78% 34% 68%;
  transform-origin: left center;
}

.butterfly-one {
  right: 28px;
  top: 42px;
  transform: rotate(15deg);
}

.butterfly-two {
  left: 24px;
  top: 118px;
  width: 72px;
  height: 54px;
  opacity: 0.54;
  transform: rotate(-18deg);
  animation-delay: 1.3s;
}

.butterfly-two span {
  width: 33px;
  height: 50px;
}

.butterfly-florals {
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 190px;
  height: 150px;
  opacity: 0.74;
  background:
    radial-gradient(circle at 22% 52%, rgba(220, 113, 134, 0.58) 0 11px, transparent 12px),
    radial-gradient(circle at 42% 42%, rgba(238, 166, 184, 0.54) 0 15px, transparent 16px),
    radial-gradient(circle at 64% 58%, rgba(226, 191, 224, 0.62) 0 12px, transparent 13px),
    linear-gradient(48deg, transparent 0 47%, rgba(154, 116, 61, 0.34) 48% 50%, transparent 51%),
    linear-gradient(122deg, transparent 0 44%, rgba(154, 116, 61, 0.3) 45% 47%, transparent 48%);
  filter: blur(0.1px);
}

.workspace:not([data-room="home"]) .love-note {
  display: none;
}

.workspace:not([data-room="home"]) .brand {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding-right: 0;
}

.workspace:not([data-room="home"]) .brand::after {
  display: none;
}

.workspace:not([data-room="home"]) .brand-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b72842;
  box-shadow: none;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(183, 40, 66, 0.12);
}

.workspace:not([data-room="home"]) .brand-mark::before {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 45px;
  height: 18px;
  border-bottom: 2px solid rgba(206, 153, 76, 0.68);
  border-radius: 50%;
  content: "";
  transform: rotate(-10deg);
}

.workspace:not([data-room="home"]) .brand-mark::after {
  position: absolute;
  right: -1px;
  bottom: 8px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #d85a75;
  content: "✿";
  font-size: 16px;
  box-shadow: none;
}

.workspace:not([data-room="home"]) h1 {
  color: #b32740;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(22px, 5.8vw, 27px);
  font-weight: 400;
  line-height: 1.04;
}

.workspace:not([data-room="home"]) .brand h1 span,
.workspace:not([data-room="home"]) .brand h1 em {
  display: inline;
}

.workspace:not([data-room="home"]) .brand h1 em {
  font-style: italic;
}

.workspace:not([data-room="home"]) .brand p {
  margin-top: 2px;
  color: var(--nato-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.workspace[data-room="home"] .brand {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 54px;
  min-height: 82px;
  align-items: center;
  gap: 7px;
  padding: 0;
}

.workspace[data-room="home"] .brand::after {
  position: static;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.74) 54%, rgba(255, 244, 246, 0.92) 100%);
  color: #e0415b;
  content: "♥";
  font-size: 25px;
  box-shadow: 0 15px 30px rgba(104, 69, 45, 0.14);
}

.workspace[data-room="home"] .brand-mark {
  position: relative;
  display: grid;
  width: 70px;
  height: 76px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b72842;
  box-shadow: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(183, 40, 66, 0.12);
}

.workspace[data-room="home"] .brand-mark::before {
  position: absolute;
  left: 0;
  bottom: 9px;
  width: 58px;
  height: 24px;
  border-bottom: 2px solid rgba(206, 153, 76, 0.72);
  border-left: 1px solid transparent;
  border-radius: 50%;
  content: "";
  transform: rotate(-10deg);
}

.workspace[data-room="home"] .brand-mark::after {
  right: -1px;
  bottom: 12px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #d85a75;
  content: "✿";
  font-size: 22px;
  box-shadow: none;
}

.workspace[data-room="home"] .brand h1 {
  color: #b32740;
  font-size: clamp(24px, 6.15vw, 29px);
  line-height: 1.02;
  text-align: center;
  text-shadow: 0 6px 20px rgba(183, 40, 66, 0.08);
}

.workspace[data-room="home"] .brand h1 span {
  display: block;
  white-space: nowrap;
}

.workspace[data-room="home"] .brand h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
}

.workspace[data-room="home"] .brand p {
  display: none;
}

.workspace[data-room="home"] .love-note {
  min-height: 190px;
  padding: 24px 22px 18px;
  overflow: hidden;
  border: 1px solid rgba(228, 196, 145, 0.46);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 58%, rgba(255, 225, 219, 0.76) 0 14%, transparent 34%),
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.94), transparent 38%),
    linear-gradient(108deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 249, 240, 0.96) 58%, rgba(255, 243, 235, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 34px rgba(88, 54, 38, 0.1);
}

.workspace[data-room="home"] .love-note::before {
  position: absolute;
  top: auto;
  left: 17px;
  right: auto;
  bottom: 18px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  clip-path: none;
  color: rgba(233, 102, 125, 0.7);
  content: "♡  〰 〰 〰";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  opacity: 0.82;
  z-index: 0;
}

.workspace[data-room="home"] .love-note::after {
  display: none;
  content: "";
}

.workspace[data-room="home"] .love-note small {
  display: none;
}

.workspace[data-room="home"] .love-note strong {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: #b72842;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 7.2vw, 39px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.14;
  text-shadow: 0 5px 18px rgba(183, 40, 66, 0.1);
}

.workspace[data-room="home"] .love-note strong span {
  display: block;
  white-space: nowrap;
}

.workspace[data-room="home"] .love-note > span:not(.floating-hearts) {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-top: 8px;
  color: #a9691b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 400;
  white-space: normal;
}

.workspace[data-room="home"] .floating-hearts span {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 0;
    background:
      linear-gradient(135deg, #fffdf8 0%, #fff5ef 36%, #fff5f7 63%, #edf7ff 100%);
  }

  .control-panel,
  .result-panel {
    padding: 16px;
  }

  .control-panel {
    gap: 18px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .brand {
    align-items: center;
    min-height: 58px;
    padding-right: 58px;
    gap: 10px;
  }

  .brand::after {
    top: 6px;
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    font-size: 32px;
  }

  h1 {
    font-size: 24px;
  }

  .brand p {
    font-size: 14px;
  }

  .love-note {
    min-height: 148px;
    padding: 17px;
  }

  .love-note::after {
    right: 10px;
    bottom: 10px;
    font-size: 58px;
  }

  .love-note strong {
    max-width: calc(100% - 48px);
    font-size: 25px;
  }

  .workspace[data-room="home"] .love-note strong {
    max-width: 100%;
    font-size: clamp(40px, 10.8vw, 58px);
    line-height: 1.04;
  }

  .love-note > span {
    max-width: calc(100% - 36px);
    font-size: 15px;
  }

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

  .room-card {
    min-height: 136px;
    padding: 12px 9px;
    gap: 8px;
  }

  .room-icon {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .room-card strong {
    font-size: clamp(18px, 4.9vw, 21px);
  }

  .room-card span span {
    max-width: 140px;
    font-size: 13px;
  }

  .home-album-card {
    min-height: 80px;
    padding: 13px;
  }

  .album-icon {
    width: 46px;
    height: 46px;
  }

  .home-album-card strong {
    font-size: 20px;
  }

  .home-album-card small {
    font-size: 14px;
  }

  .care-mode-switch {
    display: none !important;
  }

  .home-button {
    display: none !important;
  }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(66px, 1.15fr) minmax(0, 0.9fr) minmax(60px, 1.05fr);
    gap: 2px;
    overflow: hidden;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px 24px 0 0;
    background:
      radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.96), transparent 34%),
      linear-gradient(135deg, rgba(255, 252, 247, 0.96), rgba(255, 235, 242, 0.94) 55%, rgba(235, 246, 255, 0.94));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 -14px 34px rgba(122, 72, 82, 0.16);
    backdrop-filter: blur(22px);
  }

  .bottom-nav-button {
    --nav-color: #b32740;
    --nav-bg: rgba(255, 238, 243, 0.9);
    --nav-glow: rgba(183, 40, 66, 0.12);
    display: grid;
    min-width: 0;
    min-height: 58px;
    place-items: center;
    gap: 4px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--nav-color);
    cursor: pointer;
    font-weight: 900;
    transform: translateY(0);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  }

  .bottom-nav-button span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    background:
      radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.98), transparent 30%),
      var(--nav-bg);
    font-size: 20px;
    line-height: 1;
    box-shadow:
      0 7px 14px var(--nav-glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  .bottom-nav-button small {
    max-width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0;
    text-overflow: clip;
    white-space: nowrap;
  }

  .bottom-nav-button[data-care-mode="butterfly"] small {
    font-size: 9.5px;
  }

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

  .bottom-nav-button[data-care-mode="home"] {
    --nav-color: #b45c6d;
    --nav-bg: linear-gradient(145deg, #fff4f7, #ffdbe4);
    --nav-glow: rgba(180, 92, 109, 0.14);
  }

  .bottom-nav-button[data-care-mode="salon"] {
    --nav-color: #b32740;
    --nav-bg: linear-gradient(145deg, #fff3f5, #ffc9d2);
    --nav-glow: rgba(183, 40, 66, 0.18);
  }

  .bottom-nav-button[data-care-mode="soul"] {
    --nav-color: #1d5a9f;
    --nav-bg: linear-gradient(145deg, #eef8ff, #cfe6ff);
    --nav-glow: rgba(29, 90, 159, 0.15);
  }

  .bottom-nav-button[data-care-mode="butterfly"] {
    --nav-color: #9d4d8f;
    --nav-bg: linear-gradient(145deg, #fff0fa, #eadcff);
    --nav-glow: rgba(157, 77, 143, 0.16);
  }

  .bottom-nav-button[data-care-mode="recipes"] {
    --nav-color: #a76517;
    --nav-bg: linear-gradient(145deg, #fff8e7, #ffe2a9);
    --nav-glow: rgba(167, 101, 23, 0.15);
  }

  .bottom-nav-button[data-care-mode="health"] {
    --nav-color: #1b7b72;
    --nav-bg: linear-gradient(145deg, #effbf8, #c9efe7);
    --nav-glow: rgba(27, 123, 114, 0.15);
  }

  .bottom-nav-button.active {
    color: var(--nav-color);
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 42%),
      var(--nav-bg);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.66),
      0 10px 22px var(--nav-glow);
    transform: translateY(0);
  }

  .bottom-nav-button.active span {
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
      0 8px 16px var(--nav-glow),
      0 0 0 4px rgba(255, 255, 255, 0.34);
  }

  .bottom-nav[data-room="soul"] .bottom-nav-button.active {
    color: var(--nato-blue);
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 42%),
      linear-gradient(145deg, rgba(237, 247, 255, 0.98), rgba(203, 228, 255, 0.92));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.66),
      0 10px 22px rgba(11, 58, 130, 0.14);
  }

  .bottom-nav[data-room="butterfly"] .bottom-nav-button.active {
    color: #a94f63;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 42%),
      linear-gradient(145deg, rgba(255, 240, 247, 0.98), rgba(237, 224, 255, 0.94));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.66),
      0 10px 22px rgba(169, 79, 99, 0.15);
  }

  .bottom-nav[data-room="recipes"] .bottom-nav-button.active {
    color: #b36d1d;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 42%),
      linear-gradient(145deg, rgba(255, 248, 233, 0.98), rgba(255, 229, 181, 0.92));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.66),
      0 10px 22px rgba(179, 109, 29, 0.14);
  }

  .bottom-nav[data-room="health"] .bottom-nav-button.active {
    color: #0d6f77;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 42%),
      linear-gradient(145deg, rgba(239, 251, 249, 0.98), rgba(204, 240, 234, 0.92));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.66),
      0 10px 22px rgba(13, 111, 119, 0.14);
  }

  .mode-switch {
    background: rgba(255, 253, 248, 0.82);
  }

  .upload-box {
    min-height: 154px;
  }

  .primary-button {
    min-height: 62px;
    font-size: 20px;
  }

  .chat-messages {
    height: min(42vh, 330px);
    min-height: 250px;
  }

  .workspace[data-room="soul"] .chat-messages {
    min-height: 300px;
  }

  .chat-form {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .chat-form button {
    padding: 0;
    font-size: 0;
  }

  .chat-form button::before {
    content: "›";
    font-size: 34px;
    line-height: 1;
  }

  .result-panel {
    padding-bottom: 20px;
  }

  .result-stage {
    min-height: 360px;
  }

  .butterfly-section {
    min-height: calc(100vh - 190px);
  }

  .butterfly-card {
    min-height: min(72vh, 560px);
    padding: 34px 24px 26px;
    border-radius: 38px;
  }

  .butterfly-card::after {
    border-radius: 36px;
  }

  .butterfly-card h2 {
    max-width: 300px;
  }

  .butterfly-card p {
    max-width: 300px;
  }

  .butterfly-message-button {
    width: 100%;
  }

  .watercolor-butterfly {
    width: 82px;
    height: 62px;
  }

  .watercolor-butterfly span {
    width: 38px;
    height: 58px;
  }

  .butterfly-one {
    right: 15px;
    top: 30px;
  }

  .butterfly-two {
    left: 18px;
    top: 108px;
  }
}

@media (max-width: 370px) {
  .room-card {
    min-height: 154px;
  }

  .room-icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .room-card strong {
    font-size: 19px;
  }

  .room-card span span {
    font-size: 14px;
  }

  .bottom-nav-button small {
    font-size: 10px;
  }

  .butterfly-card {
    min-height: 540px;
    padding: 30px 20px 22px;
  }
}

/* Luxury feminine wellness messenger */
.chat-heading-avatar,
.mood-menu-button,
.mood-strip {
  display: none;
}

.chat-heading-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.workspace[data-room="soul"] {
  background:
    radial-gradient(circle at 8% 32%, rgba(246, 210, 226, 0.5), transparent 28%),
    radial-gradient(circle at 92% 48%, rgba(221, 214, 245, 0.45), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.94), rgba(255, 244, 249, 0.88));
}

.workspace[data-room="soul"] .control-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 26%, rgba(252, 214, 228, 0.54), transparent 28%),
    radial-gradient(circle at 3% 72%, rgba(221, 211, 247, 0.48), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(255, 243, 249, 0.94));
}

.workspace[data-room="soul"] .control-panel::before,
.workspace[data-room="soul"] .control-panel::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.workspace[data-room="soul"] .control-panel::before {
  right: -58px;
  top: 160px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.8), transparent 18%),
    radial-gradient(circle at 62% 40%, rgba(245, 189, 213, 0.42), transparent 34%),
    radial-gradient(circle at 38% 68%, rgba(220, 211, 245, 0.36), transparent 36%);
  filter: blur(2px);
  opacity: 0.78;
}

.workspace[data-room="soul"] .control-panel::after {
  left: 20px;
  top: 280px;
  color: rgba(218, 72, 99, 0.25);
  content: "✦  ✧";
  font-size: 34px;
  letter-spacing: 110px;
}

.workspace[data-room="soul"] .brand,
.workspace[data-room="soul"] .chat-panel,
.workspace[data-room="soul"] .bottom-nav {
  position: relative;
  z-index: 1;
}

.workspace[data-room="soul"] .chat-panel {
  gap: 14px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 239, 247, 0.56)),
    rgba(255, 247, 250, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 24px 58px rgba(122, 75, 102, 0.12);
  backdrop-filter: blur(14px);
}

.workspace[data-room="soul"] .chat-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 4px;
}

.workspace[data-room="soul"] .chat-heading-avatar,
.workspace[data-room="soul"] .chat-avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #ffe3d2 0 16%, transparent 17%),
    radial-gradient(ellipse at 50% 34%, #cda06e 0 24%, transparent 25%),
    radial-gradient(ellipse at 50% 78%, #f7d4df 0 31%, transparent 32%),
    linear-gradient(145deg, #fff1df, #f4c28d);
  box-shadow:
    0 12px 24px rgba(119, 78, 57, 0.18),
    0 0 0 6px rgba(255, 244, 248, 0.65);
}

.workspace[data-room="soul"] .chat-heading-avatar {
  width: 58px;
  height: 58px;
}

.workspace[data-room="soul"] .chat-avatar {
  width: 42px;
  height: 42px;
}

.workspace[data-room="soul"] .chat-heading-avatar::before,
.workspace[data-room="soul"] .chat-avatar::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 43% 43%, #3a2a2b 0 2px, transparent 3px),
    radial-gradient(circle at 58% 43%, #3a2a2b 0 2px, transparent 3px),
    radial-gradient(ellipse at 50% 56%, rgba(178, 71, 81, 0.55) 0 5%, transparent 6%);
  content: "";
}

.workspace[data-room="soul"] .chat-heading-avatar::after,
.workspace[data-room="soul"] .chat-avatar::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff1f5, #ec6c83);
  color: white;
  content: "♥";
  font-size: 12px;
  box-shadow: 0 8px 16px rgba(218, 72, 99, 0.2);
}

.workspace[data-room="soul"] .chat-heading strong {
  color: #b32740;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(31px, 9vw, 42px);
  font-weight: 400;
  line-height: 1;
}

.workspace[data-room="soul"] .chat-heading span {
  color: #89797a;
  font-size: 18px;
  font-weight: 700;
}

.workspace[data-room="soul"] .mood-menu-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(238, 209, 217, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 248, 0.84));
  color: #aa5062;
  box-shadow: 0 12px 24px rgba(117, 74, 91, 0.08);
  cursor: pointer;
  font-weight: 800;
}

.workspace[data-room="soul"] .mood-menu-button::after {
  color: #c99a43;
  content: "⌄";
  font-size: 15px;
}

.workspace[data-room="soul"] .mood-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.workspace[data-room="soul"] .mood-strip::-webkit-scrollbar {
  display: none;
}

.workspace[data-room="soul"] .mood-button {
  min-height: 52px;
  flex: 0 0 auto;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 238, 246, 0.72));
  color: #7a5e73;
  box-shadow: 0 12px 26px rgba(117, 74, 91, 0.1);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.workspace[data-room="soul"] .mood-button:nth-child(3) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(235, 242, 255, 0.74));
}

.workspace[data-room="soul"] .mood-button:nth-child(4) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 220, 0.78));
}

.workspace[data-room="soul"] .chat-intro {
  border-color: rgba(238, 210, 232, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 244, 249, 0.96), rgba(238, 229, 255, 0.86));
  color: #5c4a5b;
}

.workspace[data-room="soul"] .chat-messages {
  position: relative;
  gap: 18px;
  height: min(57vh, 560px);
  min-height: 480px;
  overflow: hidden auto;
  padding: 24px 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 26%, rgba(255, 218, 232, 0.5), transparent 24%),
    radial-gradient(circle at 6% 78%, rgba(224, 214, 251, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(255, 248, 252, 0.84), rgba(255, 240, 248, 0.78)),
    #fff8fb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 20px 44px rgba(117, 74, 91, 0.11);
}

.workspace[data-room="soul"] .chat-messages::before {
  position: absolute;
  right: -32px;
  bottom: 42px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 26%, rgba(255, 255, 255, 0.78), transparent 16%),
    radial-gradient(circle at 66% 38%, rgba(244, 187, 213, 0.45), transparent 34%),
    radial-gradient(circle at 38% 66%, rgba(224, 210, 248, 0.38), transparent 36%);
  content: "";
  filter: blur(2px);
  opacity: 0.78;
}

.workspace[data-room="soul"] .chat-messages::after {
  position: absolute;
  right: 24px;
  top: 44%;
  color: rgba(213, 153, 58, 0.34);
  content: "✦";
  font-size: 22px;
}

.workspace[data-room="soul"] .chat-message,
.workspace[data-room="soul"] .chat-form {
  position: relative;
  z-index: 1;
}

.workspace[data-room="soul"] .chat-message {
  gap: 12px;
}

.workspace[data-room="soul"] .chat-message-content {
  max-width: min(620px, calc(100% - 58px));
}

.workspace[data-room="soul"] .chat-message.user .chat-message-content {
  max-width: min(620px, 84%);
}

.workspace[data-room="soul"] .chat-bubble {
  padding: 16px 18px;
  border-radius: 28px;
  color: #2f2830;
  font-size: 16px;
  line-height: 1.45;
  box-shadow:
    0 14px 28px rgba(117, 74, 91, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.workspace[data-room="soul"] .chat-bubble.assistant {
  border: 1px solid rgba(238, 210, 232, 0.82);
  border-bottom-left-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 242, 249, 0.96), rgba(238, 229, 255, 0.88));
}

.workspace[data-room="soul"] .chat-bubble.user {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-bottom-right-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 239, 0.92));
}

.workspace[data-room="soul"] .chat-bubble.assistant::after {
  margin-left: 8px;
  color: rgba(177, 111, 174, 0.74);
  content: "♥";
}

.workspace[data-room="soul"] .chat-meta {
  color: rgba(132, 116, 126, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.workspace[data-room="soul"] .typing .chat-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-right: 20px;
}

.workspace[data-room="soul"] .typing-dots i {
  width: 7px;
  height: 7px;
  background: #c990ca;
}

.workspace[data-room="soul"] .chat-form {
  grid-template-columns: 48px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 239, 248, 0.66));
  box-shadow:
    0 18px 38px rgba(117, 74, 91, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.workspace[data-room="soul"] .chat-form::before {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(238, 225, 255, 0.72));
  color: #bd77c4;
  content: "+";
  font-size: 28px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.workspace[data-room="soul"] .chat-form input {
  min-height: 54px;
  border: 1px solid rgba(228, 207, 214, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #3a3035;
  box-shadow:
    inset 0 2px 8px rgba(117, 74, 91, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}

.workspace[data-room="soul"] .chat-form input::placeholder {
  color: rgba(124, 111, 118, 0.68);
}

.workspace[data-room="soul"] .chat-form button {
  position: relative;
  display: grid;
  min-width: 0;
  width: 62px;
  min-height: 62px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.58), transparent 28%),
    linear-gradient(145deg, #ef6c82, #d92343);
  color: white;
  box-shadow:
    0 16px 30px rgba(216, 33, 60, 0.28),
    0 0 0 7px rgba(255, 228, 235, 0.62);
  font-size: 0;
}

.workspace[data-room="soul"] .chat-form button::before {
  content: "➤";
  font-size: 25px;
  line-height: 1;
  transform: translateX(1px);
}

.workspace[data-room="soul"] .chat-form button::after {
  position: absolute;
  right: -2px;
  top: -8px;
  color: #d6a64d;
  content: "✦";
  font-size: 18px;
}

.workspace[data-room="soul"] .bottom-nav {
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 250, 0.9));
  box-shadow: 0 18px 38px rgba(117, 74, 91, 0.14);
}

.workspace[data-room="soul"] .bottom-nav-button.active {
  color: #bd253d;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 224, 231, 0.86), transparent 42%),
    linear-gradient(180deg, rgba(255, 248, 239, 0.92), rgba(255, 238, 243, 0.92));
}

@media (max-width: 760px) {
  .workspace[data-room="soul"] .control-panel {
    gap: 12px;
    min-height: 100vh;
    padding-bottom: 116px;
  }

  .workspace[data-room="soul"] .chat-panel {
    margin: 0 -2px;
    padding: 16px 12px 14px;
    border-radius: 32px;
  }

  .workspace[data-room="soul"] .chat-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .workspace[data-room="soul"] .mood-menu-button {
    display: none;
  }

  .workspace[data-room="soul"] .chat-heading strong {
    font-size: 34px;
  }

  .workspace[data-room="soul"] .chat-heading span {
    font-size: 17px;
  }

  .workspace[data-room="soul"] .mood-button {
    min-height: 50px;
    padding: 0 15px;
    font-size: 14px;
  }

  .workspace[data-room="soul"] .chat-messages {
    height: min(48vh, 430px);
    min-height: 390px;
    padding: 22px 12px 18px;
    border-radius: 30px;
  }

  .workspace[data-room="soul"] .chat-bubble {
    font-size: 16px;
  }

  .workspace[data-room="soul"] .chat-form {
    grid-template-columns: 42px minmax(0, 1fr) 58px;
    gap: 8px;
    margin-top: -2px;
  }

  .workspace[data-room="soul"] .chat-form::before {
    width: 42px;
    height: 42px;
    font-size: 25px;
  }

  .workspace[data-room="soul"] .chat-form input {
    min-height: 52px;
    padding: 0 15px;
    font-size: 16px;
  }

  .workspace[data-room="soul"] .chat-form button {
    width: 58px;
    min-height: 58px;
  }
}

.workspace[data-room="soul"] .chat-heading-avatar,
.workspace[data-room="soul"] .chat-avatar {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 239, 228, 0.98) 0 34%, transparent 35%),
    radial-gradient(ellipse at 50% 36%, rgba(207, 164, 105, 0.78) 0 35%, transparent 36%),
    linear-gradient(145deg, #fff1df, #f4c28d);
}

.workspace[data-room="soul"] .chat-heading-avatar::before,
.workspace[data-room="soul"] .chat-avatar::before {
  position: static;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  background: none;
  content: "👩🏼‍🦳";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1;
}

.workspace[data-room="soul"] .chat-heading-avatar::before {
  font-size: 37px;
}

.workspace[data-room="soul"] .chat-avatar::before {
  font-size: 27px;
}

.workspace[data-room="soul"] .chat-heading-avatar,
.workspace[data-room="soul"] .chat-avatar {
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 244, 248, 0.04), rgba(255, 244, 248, 0.04)),
    url("/assets/lubochka-avatar.png") center / cover no-repeat;
  box-shadow:
    0 14px 28px rgba(119, 78, 91, 0.18),
    0 0 0 6px rgba(255, 244, 248, 0.72);
}

.workspace[data-room="soul"] .chat-heading-avatar::before,
.workspace[data-room="soul"] .chat-avatar::before {
  display: none;
  content: "";
}

.workspace[data-room="soul"] .chat-bubble.assistant,
.workspace[data-room="soul"] .chat-bubble.user {
  color: #2f2830;
}

.workspace[data-room="soul"] .chat-message.assistant .chat-meta,
.workspace[data-room="soul"] .chat-message.user .chat-meta {
  color: rgba(132, 116, 126, 0.78);
}

.workspace[data-room="health"] {
  background:
    radial-gradient(circle at 86% 10%, rgba(188, 214, 183, 0.24), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(248, 226, 188, 0.28), transparent 32%),
    linear-gradient(180deg, #fffdf7 0%, #f7f3e9 56%, #f1f7ef 100%);
}

.workspace[data-room="health"] .control-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(235, 244, 228, 0.88), transparent 22%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 243, 233, 0.94));
}

.workspace[data-room="health"] .control-panel::before {
  position: absolute;
  right: -36px;
  top: 92px;
  z-index: 0;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 42%, rgba(139, 165, 123, 0.26), transparent 34%),
    radial-gradient(circle at 62% 58%, rgba(226, 197, 142, 0.18), transparent 42%);
  content: "";
  filter: blur(6px);
}

.workspace[data-room="health"] .brand,
.workspace[data-room="health"] .chat-panel,
.workspace[data-room="health"] .bottom-nav {
  position: relative;
  z-index: 1;
}

.workspace[data-room="health"] .care-mode-switch {
  border-color: rgba(137, 162, 118, 0.28);
  background: rgba(255, 253, 248, 0.78);
}

.workspace[data-room="health"] .care-mode-button {
  color: #607259;
}

.workspace[data-room="health"] .care-mode-button.active {
  background: linear-gradient(135deg, #76945f, #a5ba89);
  box-shadow: 0 12px 24px rgba(92, 126, 74, 0.18);
}

.workspace[data-room="health"] .chat-panel {
  gap: 14px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 36px;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(238, 246, 232, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 58px rgba(91, 113, 78, 0.12);
  backdrop-filter: blur(16px);
}

.workspace[data-room="health"] .chat-heading {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  min-height: 208px;
  overflow: hidden;
  align-items: start;
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.9) 45%, rgba(255, 253, 248, 0.26) 100%),
    url("/assets/health/wellness-corner.jpg") right center / cover no-repeat;
  box-shadow: 0 18px 36px rgba(91, 113, 78, 0.1);
}

.workspace[data-room="health"] .chat-heading::after {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: rgba(112, 139, 91, 0.72);
  content: "🌿";
  font-size: 32px;
}

.workspace[data-room="health"] .chat-heading-avatar,
.workspace[data-room="health"] .mood-menu-button {
  display: none;
}

.workspace[data-room="health"] .chat-heading-copy {
  position: relative;
  z-index: 1;
  max-width: min(62%, 430px);
}

.workspace[data-room="health"] .chat-heading strong {
  color: #315b3c;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1.02;
}

.workspace[data-room="health"] .chat-heading span {
  display: block;
  margin-top: 8px;
  color: #665d50;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.health-analysis-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(234, 246, 228, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 34px rgba(91, 113, 78, 0.1);
  cursor: pointer;
}

.workspace[data-room="health"] .health-analysis-card {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(234, 246, 228, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 34px rgba(91, 113, 78, 0.1);
}

.health-analysis-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.health-analysis-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 255, 255, 0.92), transparent 32%),
    linear-gradient(145deg, rgba(238, 247, 230, 0.96), rgba(219, 235, 209, 0.92));
  color: #799563;
  font-size: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

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

.health-analysis-copy strong {
  color: #315b3c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.1;
}

.health-analysis-copy small {
  color: #665d50;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.health-attach-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(249, 244, 234, 0.9));
  color: #4f754b;
  box-shadow: 0 12px 24px rgba(91, 113, 78, 0.12);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.health-analysis-card.care-file-loading {
  cursor: progress;
  opacity: 0.92;
}

.health-analysis-card.care-file-loading .health-attach-button {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(145deg, #91ad78, #5f855c);
  color: #fff;
  box-shadow:
    0 14px 26px rgba(91, 113, 78, 0.18),
    0 0 0 6px rgba(227, 242, 218, 0.72);
}

.health-retreat {
  display: grid;
  gap: 14px;
}

.health-mood-section,
.health-care-plan,
.health-quick-grid button {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 16px 32px rgba(91, 113, 78, 0.09);
}

.health-mood-section {
  display: grid;
  gap: 12px;
  padding: 4px 2px 0;
}

.health-mood-section > strong {
  color: #4b5e40;
  font-size: 19px;
  line-height: 1.2;
}

.health-mood-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 1px 2px 7px;
  scrollbar-width: none;
}

.health-mood-list::-webkit-scrollbar,
.health-quick-grid::-webkit-scrollbar {
  display: none;
}

.health-mood-list button {
  min-height: 48px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 239, 226, 0.86));
  color: #5f6b55;
  box-shadow: 0 12px 24px rgba(91, 113, 78, 0.09);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.health-mood-list button.active {
  border-color: rgba(129, 158, 105, 0.42);
  background:
    linear-gradient(145deg, rgba(238, 248, 229, 0.98), rgba(207, 227, 195, 0.92));
  color: #315b3c;
  box-shadow:
    0 14px 26px rgba(91, 113, 78, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.health-care-plan {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 34%, rgba(216, 232, 206, 0.86), transparent 36%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(233, 244, 226, 0.82));
}

.health-plan-intro {
  display: grid;
  gap: 7px;
}

.health-plan-intro > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 229, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 28px;
}

.health-plan-intro strong {
  color: #315b3c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.1;
}

.health-plan-intro small {
  color: #746a5f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.health-care-plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.health-care-plan li {
  position: relative;
  padding-left: 26px;
  color: #5a554d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.health-care-plan li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #8aa36f;
  color: white;
  content: "✓";
  font-size: 12px;
  line-height: 1;
}

.health-plan-illustration {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 70%, rgba(206, 226, 198, 0.82), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92), transparent 62%);
  font-size: 44px;
}

.health-quick-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.health-quick-grid button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 196px;
  flex: 0 0 196px;
  gap: 4px 12px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  color: #4e5847;
  text-align: left;
  cursor: pointer;
}

.health-quick-grid button > span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: rgba(236, 247, 227, 0.84);
  color: #6d8a56;
  font-size: 23px;
}

.health-quick-grid strong {
  color: #315b3c;
  font-size: 15px;
  line-height: 1.1;
}

.health-quick-grid small {
  color: #72675d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.workspace[data-room="health"] .chat-messages {
  max-height: 330px;
  min-height: 190px;
  padding: 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 18%, rgba(229, 242, 220, 0.68), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(241, 248, 236, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 32px rgba(91, 113, 78, 0.08);
}

.workspace[data-room="health"] .chat-message-content {
  max-width: min(620px, calc(100% - 58px));
}

.workspace[data-room="health"] .chat-bubble.assistant {
  border: 1px solid rgba(188, 208, 174, 0.78);
  border-bottom-left-radius: 10px;
  background:
    linear-gradient(145deg, rgba(250, 255, 246, 0.98), rgba(231, 243, 224, 0.9));
  color: #313b2f;
}

.workspace[data-room="health"] .chat-bubble.user {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 239, 0.92));
}

.workspace[data-room="health"] .chat-intro {
  border-color: rgba(188, 208, 174, 0.74);
  background:
    linear-gradient(145deg, rgba(250, 255, 246, 0.96), rgba(231, 243, 224, 0.88));
  color: #3f5139;
}

.workspace[data-room="health"] .chat-intro::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(145deg, rgba(241, 249, 234, 0.98), rgba(222, 238, 213, 0.92));
  color: #6d8a56;
  content: "🌿";
  font-size: 20px;
}

.workspace[data-room="health"] .chat-avatar {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 241, 216, 0.86));
  box-shadow:
    0 12px 24px rgba(91, 113, 78, 0.12),
    0 0 0 6px rgba(236, 247, 227, 0.68);
}

.workspace[data-room="health"] .chat-avatar::before {
  content: "🌿";
  font-size: 22px;
}

.workspace[data-room="health"] .chat-form {
  position: sticky;
  bottom: 92px;
  grid-template-columns: 48px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow:
    0 18px 38px rgba(91, 113, 78, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.workspace[data-room="health"] .recipe-input-icons {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(241, 249, 234, 0.96), rgba(222, 238, 213, 0.92));
  font-size: 0;
}

.workspace[data-room="health"] .recipe-input-icons::before {
  content: "🌿";
  font-size: 24px;
}

.workspace[data-room="health"] .chat-form input {
  min-height: 54px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #344033;
}

.workspace[data-room="health"] .chat-form input::placeholder {
  color: rgba(95, 107, 85, 0.68);
}

.workspace[data-room="health"] .chat-form button {
  display: grid;
  width: 62px;
  min-height: 62px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.58), transparent 28%),
    linear-gradient(145deg, #9eb77d, #6f925b);
  color: white;
  box-shadow:
    0 16px 30px rgba(102, 133, 82, 0.26),
    0 0 0 7px rgba(229, 243, 219, 0.72);
  font-size: 0;
}

.workspace[data-room="health"] .chat-form button::before {
  content: "➤";
  font-size: 24px;
  line-height: 1;
  transform: translateX(1px);
}

.workspace[data-room="health"] .bottom-nav-button.active {
  color: #3f6c47;
  background:
    radial-gradient(circle at 50% 18%, rgba(238, 248, 229, 0.9), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(224, 240, 214, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(92, 126, 74, 0.14);
}

@media (max-width: 760px) {
  .workspace[data-room="health"] .control-panel {
    gap: 12px;
    min-height: 100vh;
    padding-bottom: 116px;
  }

  .workspace[data-room="health"] .chat-panel {
    margin: 0 -2px;
    padding: 15px 12px 14px;
    border-radius: 34px;
  }

  .workspace[data-room="health"] .chat-heading {
    min-height: 188px;
    padding: 22px 18px;
    border-radius: 30px;
    background:
      linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.9) 52%, rgba(255, 253, 248, 0.18) 100%),
      url("/assets/health/wellness-corner.jpg") right center / cover no-repeat;
  }

  .workspace[data-room="health"] .chat-heading-copy {
    max-width: 68%;
  }

  .workspace[data-room="health"] .chat-heading strong {
    font-size: clamp(34px, 9vw, 48px);
  }

  .workspace[data-room="health"] .chat-heading span {
    font-size: 15px;
  }

  .health-analysis-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    border-radius: 28px;
  }

  .health-attach-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
  }

  .health-analysis-icon {
    width: 54px;
    height: 54px;
  }

  .health-care-plan {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .health-plan-illustration {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 76px;
    height: 76px;
    opacity: 0.62;
  }

  .health-care-plan ul {
    padding-right: 82px;
  }

  .health-quick-grid button {
    width: 184px;
    flex-basis: 184px;
  }

  .workspace[data-room="health"] .chat-messages {
    height: min(38vh, 330px);
    min-height: 240px;
    border-radius: 28px;
  }

  .workspace[data-room="health"] .chat-form {
    grid-template-columns: 42px minmax(0, 1fr) 58px;
    gap: 8px;
  }

  .workspace[data-room="health"] .recipe-input-icons {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .workspace[data-room="health"] .chat-form input {
    min-height: 52px;
    padding: 0 8px;
    font-size: 16px;
  }

  .workspace[data-room="health"] .chat-form button {
    width: 58px;
    min-height: 58px;
  }
}

@media (max-width: 760px) {
  .workspace[data-room="soul"] {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .workspace[data-room="soul"] .control-panel {
    display: grid;
    height: calc(100vh - 72px - env(safe-area-inset-bottom));
    height: calc(100dvh - 72px - env(safe-area-inset-bottom));
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
  }

  .workspace[data-room="soul"] .brand {
    display: none;
  }

  .workspace[data-room="soul"] .chat-panel {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0;
    padding: 10px 10px 12px;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 92% 10%, rgba(255, 221, 235, 0.48), transparent 28%),
      linear-gradient(180deg, rgba(255, 247, 251, 0.96), rgba(255, 239, 247, 0.94));
    box-shadow: none;
  }

  .workspace[data-room="soul"] .chat-heading {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 64px;
    padding: 6px 6px 4px;
  }

  .workspace[data-room="soul"] .chat-heading-avatar {
    width: 48px;
    height: 48px;
  }

  .workspace[data-room="soul"] .chat-heading strong {
    font-size: 30px;
  }

  .workspace[data-room="soul"] .chat-heading span {
    font-size: 15px;
    line-height: 1.2;
  }

  .workspace[data-room="soul"] .mood-strip {
    gap: 8px;
    padding: 0 2px 6px;
  }

  .workspace[data-room="soul"] .mood-button {
    min-height: 42px;
    padding: 0 13px;
    font-size: 13px;
  }

  .workspace[data-room="soul"] .chat-messages {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 16px 10px 14px;
    border-radius: 28px;
  }

  .workspace[data-room="soul"] .chat-message-content {
    max-width: min(620px, calc(100% - 48px));
  }

  .workspace[data-room="soul"] .chat-message.user .chat-message-content {
    max-width: 86%;
  }

  .workspace[data-room="soul"] .chat-bubble {
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.42;
  }

  .workspace[data-room="soul"] .chat-form {
    grid-template-columns: 42px minmax(0, 1fr) 58px;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border-radius: 28px;
  }
}
