:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #14110c;
  --ink-soft: #4f493f;
  --muted: #756d60;
  --black: #050505;
  --black-soft: rgba(5, 5, 5, 0.74);
  --gold: #d8b76a;
  --gold-2: #f2db9f;
  --gold-dark: #8d6725;
  --line: rgba(216, 183, 106, 0.32);
  --panel: rgba(255, 255, 255, 0.96);
  --panel-dark: rgba(5, 5, 5, 0.88);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
  --ease: 180ms ease;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

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

body {
  margin: 0;
  display: grid;
  place-items: center;
  background: #0b0a08;
  color: var(--ink);
  overflow: hidden;
}

#app {
  position: relative;
  width: min(100vw, 430px);
  height: min(100dvh, 932px);
  min-height: min(100dvh, 932px);
  overflow: hidden;
  background: var(--white);
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.hidden {
  display: none !important;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 8vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.25rem, 6vw, 1.72rem);
  line-height: 1.15;
  letter-spacing: 0;
}

p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.splash,
.entry-screen {
  min-height: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  text-align: center;
  background: var(--black);
  color: var(--ink);
}

.splash,
.entry-screen {
  position: absolute;
  inset: 0;
  padding: 0;
}

.splash {
  z-index: 1;
}

.entry-screen {
  z-index: 1;
}

.splash__image,
.entry__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: none;
}

.splash-progress {
  position: absolute;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom) + 24px);
  z-index: 2;
  width: min(72%, 280px);
  height: 6px;
  overflow: hidden;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.splash-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-2));
}

.entry-login {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 18px;
  padding: 24px 24px max(32px, env(safe-area-inset-bottom) + 22px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.entry-login .primary,
.entry-login small {
  position: relative;
  z-index: 1;
}

.entry-login small {
  max-width: min(88%, 320px);
  color: #fff8e9;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.92);
}
.footnote {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}


.footnote {
  margin: 16px auto 0;
}

.primary,
.generation-card,
.plan-card button,
.inline-form button,
.form-grid button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #9c742a, #ead18d 44%, #8d6725);
  font-weight: 800;
  transition: transform var(--ease), filter var(--ease);
}

.primary:active,
.generation-card:active,
.icon-button:active,
.close-button:active,
.panel-close:active,
.rafael-close:active {
  transform: scale(0.97);
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--white);
}

.workspace {
  display: contents;
}

.principal-stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 28% 44% 28%;
  justify-items: center;
  align-items: center;
  padding: 0 58px 120px 24px;
  background: var(--white);
}

.app-shell.theme-blackWhite {
  --ink: #f8f2e4;
  --ink-soft: #d9c9aa;
  --muted: #b9a77d;
  --line: rgba(242, 219, 159, 0.34);
  background: #050505;
}

.app-shell.theme-blackWhite .principal-stage {
  background: #050505;
}

.app-shell.theme-blackWhite .panel,
.app-shell.theme-blackWhite .notice-panel,
.app-shell.theme-blackWhite .subpanel {
  background: rgba(5, 5, 5, 0.86);
  border-color: rgba(242, 219, 159, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.app-shell.theme-blackWhite .plan-card,
.app-shell.theme-blackWhite .collection-item,
.app-shell.theme-blackWhite .settings-section,
.app-shell.theme-blackWhite .profile-section,
.app-shell.theme-blackWhite .shopping-card,
.app-shell.theme-blackWhite .client-card,
.app-shell.theme-blackWhite .profile-accordion-panel {
  background: rgba(255, 255, 255, 0.08);
  background-image: none;
  border-color: rgba(242, 219, 159, 0.28);
}

.app-shell.theme-blackWhite input,
.app-shell.theme-blackWhite select,
.app-shell.theme-blackWhite textarea {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(242, 219, 159, 0.28);
}

.app-shell.theme-blackWhite option {
  color: #14110c;
}

.app-shell.theme-blackWhite .generation-card {
  color: #16120c;
  background: rgba(255, 255, 255, 0.9);
}

.app-shell.theme-blackWhite .generation-card small {
  color: #806735;
}

.app-shell.theme-blackWhite .profile-hint {
  color: #fff8e9;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(242, 219, 159, 0.32);
}

.app-shell.theme-blackWhite .toast {
  color: #16120c;
  background: rgba(255, 248, 233, 0.96);
  border-color: rgba(242, 219, 159, 0.64);
}

.app-shell.theme-blackWhite .rafael-message {
  color: #fff8e9;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(242, 219, 159, 0.32);
}

.app-shell.theme-blackWhite .close-button,
.app-shell.theme-blackWhite .panel-close,
.app-shell.theme-blackWhite .rafael-close {
  color: #16120c;
  background: rgba(255, 255, 255, 0.96);
}

.app-shell.theme-blackWhite .close-button span,
.app-shell.theme-blackWhite .panel-close span,
.app-shell.theme-blackWhite .rafael-close span {
  color: #16120c;
}

.app-shell.theme-blackWhite .settings-article-button {
  color: #fff8e9;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(242, 219, 159, 0.36);
}

.app-shell.theme-blackWhite .notice-panel h1,
.app-shell.theme-blackWhite .notice-panel h2,
.app-shell.theme-blackWhite .notice-panel h3 {
  color: #fff8e9;
}


.light-cannon {
  position: absolute;
  z-index: 3;
  top: -76px;
  left: -8%;
  width: 116%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 14px 26px rgba(216, 183, 106, 0.24));
}

.main-orbit-ring {
  position: absolute;
  z-index: 1;
  top: 29%;
  left: 50%;
  width: min(96vw, 440px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, 0) rotate(0deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 18px 30px rgba(216, 183, 106, 0.18));
  will-change: transform;
}

.rafael-body {
  position: absolute;
  z-index: 2;
  top: 23.5%;
  left: 50%;
  translate: -50% 0;
  width: min(36vw, 154px);
  height: auto;
  max-height: none;
  object-fit: contain;
  animation: float 5.6s ease-in-out infinite;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.22));
}


.main-human-body {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26%;
  width: min(45vw, 182px);
  height: auto;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  translate: -50% 0;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.22));
}


.main-stage-body-outgoing {
  opacity: 1;
  will-change: opacity;
}

.main-stage-body-incoming {
  opacity: 0;
  will-change: opacity;
}
.stage-morph-lock {
  position: absolute;
  inset: 0;
  z-index: 95;
  cursor: wait;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: auto;
}


.rafael-platform {
  position: absolute;
  z-index: 2;
  top: 62%;
  left: 50%;
  translate: -50% 0;
  width: min(85%, 400px);
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.18));
}

.side-rail,
.bottom-nav {
  position: absolute;
  z-index: 20;
  display: flex;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.side-rail {
  top: max(148px, env(safe-area-inset-top) + 122px);
  right: 12px;
  flex-direction: column;
}

.bottom-nav {
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(94vw, 394px);
  transform: translateX(-50%);
  justify-content: center;
  align-items: flex-end;
}

.has-ad .bottom-nav {
  bottom: 58px;
}

.icon-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 9px 11px rgba(0, 0, 0, 0.16));
}

.icon-button img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.bottom-nav .icon-button[data-view="history"] img,
.bottom-nav .icon-button[data-view="favorites"] img {
  width: 39px;
  height: 39px;
}

.bottom-nav .icon-button[data-view="clients"] img,
.bottom-nav .icon-button[data-view="profile"] img {
  width: 37px;
  height: 37px;
}

.icon-button.is-active img,
.icon-button:hover img {
  filter: drop-shadow(0 0 10px rgba(216, 183, 106, 0.78));
}

.nav-generate {
  width: 78px;
  height: 78px;
  margin-bottom: -2px;
}

.nav-generate img {
  filter: none;
}

.nav-generate .generate-star {
  width: 49px;
  height: 49px;
  object-fit: contain;
}


.overlay,
.panel-layer,
.result-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.overlay {
  z-index: 50;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.panel-layer {
  z-index: 35;
  padding: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.result-layer {
  z-index: 60;
  padding: 0;
  background: transparent;
}

.generation-choice,
.notice-panel,
.panel,
.subpanel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.generation-choice,
.notice-panel,
.panel {
  position: relative;
  width: min(100%, 390px);
  max-height: min(88dvh, 780px);
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: normal;
  border-radius: 16px;
  padding: 22px;
}

.panel {
  color: var(--ink);
}

.panel h1,
.panel h2,
.panel h3,
.panel p,
.panel label,
.panel li,
.panel span,
.panel small,
.subpanel p,
.subpanel h2 {
  color: inherit;
}

.subpanel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
}

.micro {
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}

.generation-grid,
.login-actions {
  display: grid;
  gap: 12px;
  width: 100%;
}

.generation-choice .generation-grid {
  margin-top: 18px;
}

.generation-card {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.generation-card span {
  font-size: 1.05rem;
  font-weight: 800;
}

.generation-card small,
.profile-hint {
  color: var(--muted);
  line-height: 1.35;
}

.profile-hint {
  width: 100%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 183, 106, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.generation-card.is-locked {
  background: rgba(0, 0, 0, 0.04);
}

.processing-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vh, 24px);
  padding: 24px;
}

.generator-orbit {
  width: min(64vw, 230px);
  height: min(64vw, 230px);
  max-width: 230px;
  max-height: 230px;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  margin-top: clamp(-18px, -3vh, -10px);
  margin-bottom: clamp(6px, 1.6vh, 14px);
}

.orbit-star,
.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.orbit-star {
  width: min(31vw, 111px);
  max-width: 111px;
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.28));
}

.orbit-ring {
  width: min(65vw, 216px);
  max-width: 216px;
  animation: spin-centered 4s linear infinite;
}

.processing-steps {
  width: min(100%, 360px);
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.processing-steps li {
  --step-delay: calc(var(--step-index) * 0.48s);
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  padding: 4px 6px;
  border-radius: 8px;
  opacity: 0;
  color: var(--ink-soft);
  font-size: clamp(0.78rem, 2.6vw, 0.94rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  animation: processingStepState 4.2s linear both;
  animation-delay: var(--step-delay);
}

.processing-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.32);
  box-shadow: 0 0 0 rgba(0, 212, 255, 0);
  animation: processingDotPulse 4.2s linear both;
  animation-delay: var(--step-delay);
}

.theme-blackWhite .processing-steps li {
  color: rgba(255, 248, 233, 0.76);
}

.theme-blackWhite .processing-steps li span:last-child {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.36);
}

.black-piano {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f6f0e7;
  box-shadow: none;
}

.black-piano__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.black-piano.has-white-premium-wallpaper .black-piano__bg {
  opacity: 1;
}

.black-piano__content {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: auto;
  padding: max(76px, env(safe-area-inset-top) + 64px) 18px 112px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.startup-splash {
  position: absolute;
  inset: 0;
  z-index: 120;
}

.black-piano__content:has(.result-menu.is-open) {
  padding-bottom: 80px;
}

.black-piano__content p,
.black-piano__content li,
.black-piano__content span {
  color: #40372d;
}

.theme-blackWhite .black-piano__content,
.theme-blackWhite .black-piano__content p,
.theme-blackWhite .black-piano__content li,
.theme-blackWhite .black-piano__content span {
  color: #fff8e9;
}

.theme-blackWhite .black-piano__content .micro,
.theme-blackWhite .official-result-objective {
  color: #f3d885;
}

.official-result-title {
  margin: 0 0 4px;
  font-size: 25px;
  line-height: 1.08;
  white-space: nowrap;
}

.official-result-objective {
  margin: 0 0 12px;
}

.official-food-section {
  margin: 0 0 6px;
  line-height: 1.45;
}

.close-button,
.panel-close,
.rafael-close {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(216, 183, 106, 0.46);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.86rem;
  font-weight: 800;
}

.close-button,
.panel-close,
.rafael-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  z-index: 80;
}

.close-button img,
.panel-close img,
.rafael-close img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.close-button span,
.panel-close span,
.rafael-close span {
  color: var(--ink);
}


.result-section,
.meal-row,
.nutrition-card,
.golden-tip,
.notices {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(216, 183, 106, 0.34);
  background: rgba(255, 255, 255, 0.76);
  overflow-wrap: anywhere;
  word-break: normal;
}

.result-section h3,
.meal-row h3,
.nutrition-card h3,
.golden-tip h3 {
  margin-bottom: 10px;
  color: var(--gold-dark);
}

.meal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.meal-heading h3 {
  margin-bottom: 0;
  min-width: 0;
}

.meal-feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.meal-feedback-button {
  width: 38px;
  height: 38px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.meal-feedback-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.meal-feedback-button.is-active {
  background: rgba(216, 183, 106, 0.22);
  box-shadow: 0 0 0 2px rgba(151, 111, 35, 0.32), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.meal-feedback-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.result-section p,
.nutrition-card p,
.meal-row p,
.notices p {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  word-break: normal;
}


.result-section,
.result-section p,
.result-section li,
.result-section span,
.meal-row,
.meal-row p,
.meal-row li,
.meal-row span,
.nutrition-card,
.nutrition-card p,
.nutrition-card li,
.nutrition-card span,
.golden-tip,
.golden-tip p,
.golden-tip li,
.golden-tip span,
.notices,
.notices p,
.week-day,
.week-day p,
.week-day span,
.week-day__meal,
.week-day__meal span,
.meal-parts,
.meal-parts p {
  color: #40372d;
}

.result-section h3,
.meal-row h3,
.nutrition-card h3,
.golden-tip h3,
.week-day h3,
.week-day__meal strong {
  color: var(--gold-dark);
}

.theme-blackWhite .result-section,
.theme-blackWhite .result-section p,
.theme-blackWhite .result-section li,
.theme-blackWhite .result-section span,
.theme-blackWhite .meal-row,
.theme-blackWhite .meal-row p,
.theme-blackWhite .meal-row li,
.theme-blackWhite .meal-row span,
.theme-blackWhite .nutrition-card,
.theme-blackWhite .nutrition-card p,
.theme-blackWhite .nutrition-card li,
.theme-blackWhite .nutrition-card span,
.theme-blackWhite .golden-tip,
.theme-blackWhite .golden-tip p,
.theme-blackWhite .golden-tip li,
.theme-blackWhite .golden-tip span,
.theme-blackWhite .notices,
.theme-blackWhite .notices p,
.theme-blackWhite .week-day,
.theme-blackWhite .week-day p,
.theme-blackWhite .week-day span,
.theme-blackWhite .week-day__meal,
.theme-blackWhite .week-day__meal span,
.theme-blackWhite .meal-parts,
.theme-blackWhite .meal-parts p {
  color: #40372d;
}

.theme-blackWhite .result-section h3,
.theme-blackWhite .meal-row h3,
.theme-blackWhite .nutrition-card h3,
.theme-blackWhite .golden-tip h3,
.theme-blackWhite .week-day h3,
.theme-blackWhite .week-day__meal strong {
  color: #8d6725;
}

.result-section,
.nutrition-card,
.golden-tip,
.notices {
  margin-top: 16px;
}

.result-explanation,
.objective-analysis {
  border-color: rgba(216, 183, 106, 0.38);
}

.meal-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}


.week-plan {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.week-day {
  padding: 16px;
  border: 1px solid rgba(216, 183, 106, 0.36);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  background-image: none;
}

.week-day h3 {
  margin-bottom: 8px;
  color: var(--gold-dark);
}

.week-day__context {
  margin-bottom: 12px;
}

.week-day__meals {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.week-day__meal {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.week-day__meal strong {
  color: var(--gold-dark);
  font-size: 0.84rem;
}

.week-day__meal span {
  line-height: 1.42;
}

.meal-parts {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.meal-parts p {
  margin-bottom: 0;
}

.notices p {
  font-size: 0.92rem;
}

.heart-menu {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 4;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.46));
}

.heart-menu img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.result-menu {
  position: relative;
  height: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: height 360ms ease, max-height 360ms ease, margin 360ms ease, opacity 220ms ease;
}

.result-menu.is-open {
  height: 104px;
  max-height: 104px;
  margin-top: 10px;
  margin-bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}

.result-menu button {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 78px;
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 3px 1px;
  color: var(--ink);
  background: transparent;
  border: 0;
  opacity: 0;
  transform: translate(-50%, 42px) scale(0.5);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
}

.result-menu.is-open button {
  opacity: 1;
}

.result-menu.is-open button:nth-child(1) { transform: translate(-178%, 0) scale(1); transition-delay: 0ms; }
.result-menu.is-open button:nth-child(2) { transform: translate(-124%, -28px) scale(1); transition-delay: 45ms; }
.result-menu.is-open button:nth-child(3) { transform: translate(-50%, -42px) scale(1); transition-delay: 90ms; }
.result-menu.is-open button:nth-child(4) { transform: translate(24%, -28px) scale(1); transition-delay: 135ms; }
.result-menu.is-open button:nth-child(5) { transform: translate(78%, 0) scale(1); transition-delay: 180ms; }

.result-menu:not(.is-open) button:nth-child(1) { transition-delay: 160ms; }
.result-menu:not(.is-open) button:nth-child(2) { transition-delay: 120ms; }
.result-menu:not(.is-open) button:nth-child(3) { transition-delay: 80ms; }
.result-menu:not(.is-open) button:nth-child(4) { transition-delay: 40ms; }
.result-menu:not(.is-open) button:nth-child(5) { transition-delay: 0ms; }

.result-menu img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.result-menu span {
  color: var(--gold-dark);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 0 14px;
}

.panel-header img {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.24));
}

.panel-header h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(1.16rem, 4.9vw, 1.52rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-stack,
.collection-list {
  display: grid;
  gap: 12px;
}

.plan-card,
.collection-item {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.plan-card.is-current {
  border-color: rgba(216, 183, 106, 0.82);
  box-shadow: 0 0 0 2px rgba(216, 183, 106, 0.14) inset;
}

.plan-card span {
  color: var(--gold-dark);
  font-weight: 800;
}

.plan-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.18rem;
}

.plan-card ul {
  color: var(--ink-soft);
  line-height: 1.7;
  padding-left: 20px;
}

.billing-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
}

.billing-toggle button {
  min-height: 40px;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
}

.billing-toggle .is-active {
  color: var(--ink);
  background: linear-gradient(135deg, #9c742a, #ead18d 44%, #8d6725);
  font-weight: 800;
}

.invite-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 18px 20px;
  text-align: center;
}

.invite-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

.invite-card div {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
}

.invite-card span {
  display: none;
}

.invite-card h2 {
  width: 100%;
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.28rem, 5.5vw, 1.58rem);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-card strong {
  margin: 0;
}

.invite-card p {
  max-width: 25ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.invite-card .primary {
  margin-top: 4px;
}

.settings-control-block {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.wallpaper-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallpaper-choice {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  background-image: none;
  color: var(--ink);
  text-align: center;
}

.form-grid .wallpaper-choice {
  background: rgba(255, 255, 255, 0.62);
  background-image: none;
}

.form-grid .wallpaper-choice.is-active {
  background: rgba(255, 255, 255, 0.78);
  background-image: none;
}

.wallpaper-choice img {
  width: 100%;
  aspect-ratio: 9 / 14;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(216, 183, 106, 0.28);
}

.wallpaper-choice span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(0.72rem, 3vw, 0.82rem);
  font-weight: 900;
  line-height: 1.12;
}

.wallpaper-choice .oscar-switch {
  justify-self: center;
}

.wallpaper-choice.is-active {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(216, 183, 106, 0.82);
  box-shadow: 0 0 0 2px rgba(216, 183, 106, 0.14) inset;
}

.wallpaper-choice.is-active .oscar-switch {
  border-color: rgba(216, 183, 106, 0.84);
  background: linear-gradient(90deg, rgba(156, 116, 42, 0.42), rgba(234, 209, 141, 0.52));
  box-shadow: inset 0 0 8px rgba(216, 183, 106, 0.35), 0 0 0 3px rgba(216, 183, 106, 0.12);
}

.wallpaper-choice.is-active .oscar-switch b {
  transform: translateX(20px);
  background: linear-gradient(135deg, #f9e7a5, #d8b76a 55%, #9c742a);
  box-shadow: 0 0 9px rgba(244, 214, 123, 0.78), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.app-shell.theme-blackWhite .settings-control-block {
  color: var(--ink);
}

.app-shell.theme-blackWhite .wallpaper-choice {
  color: #fff8e9;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(242, 219, 159, 0.28);
}

.app-shell.theme-blackWhite .wallpaper-choice.is-active {
  background: rgba(255, 255, 255, 0.14);
  background-image: none;
  border-color: rgba(242, 219, 159, 0.64);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.form-grid label,
.inline-form {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}


.settings-panel {
  display: grid;
  gap: 14px;
  padding-bottom: 28px;
}

.settings-panel .settings-form {
  gap: 14px;
}

.settings-section {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
}

.settings-section legend,
.settings-section h2 {
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.settings-section h2,
.settings-section h3,
.settings-section p {
  margin: 0;
}

.settings-section h3 {
  font-size: 0.95rem;
  font-weight: 900;
}

.settings-section p {
  color: var(--ink-soft);
  line-height: 1.55;
}




.settings-article-button {
  min-height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(169, 125, 43, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--ink);
  font-size: clamp(0.76rem, 3.4vw, 0.88rem);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  text-wrap: balance;
}


.settings-reader-layer {
  z-index: 75;
  padding: 0;
  background: #ffffff;
}

.settings-reader {
  width: min(100%, 430px);
  height: 100%;
  max-height: none;
  border-radius: 0;
  padding: max(72px, env(safe-area-inset-top) + 62px) 22px 32px;
  background: #ffffff;
  box-shadow: none;
}

.settings-reader h1 {
  font-size: clamp(1.7rem, 9vw, 2.35rem);
  line-height: 1.06;
}

.settings-reader__body {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.settings-reader__body p {
  margin: 0;
  color: var(--ink);
  line-height: 1.72;
}
.settings-link {
  min-height: 42px;
  width: fit-content;
  max-width: 100%;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9c742a, #ead18d 44%, #8d6725);
  color: var(--ink);
  font-weight: 900;
}
.profile-panel {
  padding-bottom: 20px;
}

.profile-panel .micro {
  margin-bottom: 6px;
}

.profile-panel .form-grid {
  gap: 10px;
}

.profile-section {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
}

.profile-section legend {
  padding: 0 8px;
  color: var(--gold-dark);
  font-weight: 900;
}

.profile-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.profile-choice-group {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.profile-choice-label {
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.profile-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-choice-list.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-choice-list.is-activity-level > :last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 4px);
}

.form-grid .profile-choice-button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 2px 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--ink);
  filter: none;
  font-weight: 900;
  text-align: center;
  transition: none;
}

.form-grid .profile-choice-button > span {
  color: var(--ink);
  line-height: 1.05;
  font-size: 0.72rem;
  white-space: nowrap;
}

.oscar-switch {
  position: relative;
  display: block;
  width: 38px;
  height: 18px;
  border: 1px solid rgba(156, 116, 42, 0.38);
  border-radius: 999px;
  background: rgba(33, 29, 22, 0.12);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.16);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.oscar-switch b {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c8b783;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-grid .profile-choice-button.is-active .oscar-switch {
  border-color: rgba(216, 183, 106, 0.84);
  background: linear-gradient(90deg, rgba(156, 116, 42, 0.42), rgba(234, 209, 141, 0.52));
  box-shadow: inset 0 0 8px rgba(216, 183, 106, 0.35), 0 0 0 3px rgba(216, 183, 106, 0.12);
}

.form-grid .profile-choice-button.is-active .oscar-switch b {
  transform: translateX(20px);
  background: linear-gradient(135deg, #f9e7a5, #d8b76a 55%, #9c742a);
  box-shadow: 0 0 9px rgba(244, 214, 123, 0.78), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  min-height: 86px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
}

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.fridge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fridge-item {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(216, 183, 106, 0.24);
}

.fridge-item.is-off {
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
}

.fridge-toggle,
.fridge-remove {
  min-height: 42px;
  color: inherit;
  border: 0;
  background: transparent;
}

.fridge-toggle {
  max-width: 170px;
  padding: 8px 10px 8px 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fridge-remove {
  display: grid;
  place-items: center;
  padding: 0 8px 0 2px;
}

.fridge-remove img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.trash-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.trash-zone img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.collection-item {
  display: grid;
  gap: 6px;
  text-align: left;
  color: var(--ink);
}

.collection-item span,
.collection-item small {
  color: var(--muted);
}

.rafael-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--white);
}

.rafael-screen.theme-blackWhite {
  background: #050505;
}

.rafael-screen-portrait {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(64vw, 280px);
  height: min(58dvh, 470px);
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.rafael-screen-image {
  grid-area: 1 / 1;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 18px 28px rgba(27, 24, 19, 0.2));
}

.rafael-conversation {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: calc(76px + env(safe-area-inset-top)) 16px calc(112px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.rafael-conversation::-webkit-scrollbar { display: none; }

.rafael-message {
  width: fit-content;
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid rgba(216, 183, 106, 0.42);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

.rafael-message:first-child { margin-top: auto; }
.rafael-message.is-user { align-self: flex-end; color: #fff; border-color: #1b1813; background: #1b1813; }

.rafael-composer {
  position: absolute;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  width: calc(100% - 24px);
  max-width: 406px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid rgba(216, 183, 106, 0.56);
  border-radius: 8px;
  background: #11100e;
  transform: translateX(-50%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.rafael-composer textarea {
  min-width: 0;
  min-height: 48px;
  max-height: 132px;
  resize: none;
  padding: 7px 8px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  line-height: 1.35;
}

.rafael-composer textarea::placeholder { color: rgba(255, 255, 255, 0.58); }
.rafael-composer button { min-height: 42px; padding: 8px 12px; border: 1px solid rgba(216, 183, 106, 0.66); border-radius: 8px; color: #f0d992; background: #11100e; font-weight: 800; }
.rafael-composer .rafael-mic {
  width: 42px;
  min-width: 42px;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}
.rafael-composer .rafael-mic svg { width: 22px; height: 22px; fill: currentColor; }
.rafael-composer .rafael-mic.is-listening {
  color: #7eeeff;
  border-color: rgba(126, 238, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.14), 0 0 18px rgba(0, 184, 212, 0.28);
}
.rafael-composer button:disabled { opacity: .58; cursor: default; }
.rafael-client-save-offer {
  margin-top: 9px; padding: 10px; border: 1px solid rgba(216,183,106,.72); border-radius: 10px; background: rgba(255,255,255,.96); text-align: center;
}
.theme-blackWhite .rafael-client-save-offer { background: rgba(12,12,12,.94); }
.rafael-client-save-offer p { margin: 0 0 8px; font-size: .76rem; line-height: 1.25; font-weight: 800; }
.rafael-client-save-offer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rafael-client-save-offer__actions button { min-height: 34px; border-radius: 8px; font-weight: 900; color: #fff; border: 1px solid rgba(0,0,0,.15); }
.rafael-client-save-offer__actions .is-yes { background: #2f8a50; }
.rafael-client-save-offer__actions .is-no { background: #a93f3f; }





.ad-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px max(16px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(216, 183, 106, 0.24);
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.toast {
  position: absolute;
  pointer-events: none;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  display: grid;
  place-items: center;
  width: max-content;
  max-width: min(360px, calc(100% - 32px));
  max-height: min(42dvh, 280px);
  overflow: auto;
  padding: 12px 16px;
  border: 1px solid rgba(242, 219, 159, 0.42);
  border-radius: 14px;
  background: rgba(22, 18, 12, 0.94);
  color: #fff8e9;
  box-shadow: var(--shadow);
  text-align: center;
  line-height: 1.38;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

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

@keyframes spin-centered {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes processingStepState {
  0%, 8% {
    opacity: 0;
    color: var(--ink-soft);
    transform: translateY(4px);
  }
  12%, 28% {
    opacity: 1;
    color: var(--ink);
    transform: translateY(0);
    background: rgba(0, 212, 255, 0.08);
  }
  36%, 100% {
    opacity: 0.68;
    color: var(--ink-soft);
    transform: translateY(0);
    background: transparent;
  }
}

@keyframes processingDotPulse {
  0%, 8% {
    opacity: 0;
    background: rgba(0, 212, 255, 0.18);
    box-shadow: 0 0 0 rgba(0, 212, 255, 0);
  }
  12%, 28% {
    opacity: 1;
    background: #00d4ff;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.82);
  }
  36%, 100% {
    opacity: 0.78;
    background: rgba(0, 212, 255, 0.62);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.28);
  }
}

html[data-app-animations="off"] *,
html[data-app-animations="off"] *::before,
html[data-app-animations="off"] *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}

html[data-app-animations="off"] .processing-steps li,
html[data-app-animations="off"] .processing-dot {
  opacity: 1;
}

html[data-app-animations="off"] .orbit-ring,
html[data-app-animations="off"] .main-orbit-ring,
html[data-app-animations="off"] .splash__image,
html[data-app-animations="off"] .entry__image {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .processing-steps li {
    opacity: 0.78;
    transform: none;
  }

  .processing-dot {
    opacity: 0.82;
    background: #00d4ff;
  }
}

@media (max-width: 380px) {
  .principal-stage {
    padding-right: 52px;
    padding-bottom: 112px;
  }

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

  .icon-button img {
    width: 31px;
    height: 31px;
  }

  .bottom-nav .icon-button[data-view="history"] img,
  .bottom-nav .icon-button[data-view="favorites"] img {
    width: 35px;
    height: 35px;
  }

  .bottom-nav .icon-button[data-view="clients"] img,
  .bottom-nav .icon-button[data-view="profile"] img {
    width: 33px;
    height: 33px;
  }

  .nav-generate {
    width: 70px;
    height: 70px;
  }
  .nav-generate .generate-star {
    width: 43px;
    height: 43px;
  }

  .result-menu button {
    width: 72px;
  }

  .result-menu span {
    font-size: 0.56rem;
  }
}

@media (min-width: 481px) {
  #app {
    border-radius: 28px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  }
}

@media print {
  body,
  #app,
  .app-shell,
  .black-piano,
  .black-piano__content {
    width: auto;
    height: auto;
    overflow: visible;
    background: #fff !important;
    color: #111 !important;
  }

  .black-piano__bg,
  .close-button,
  .heart-menu,
  .result-menu,
  .notices {
    display: none !important;
  }
}

.shopping-panel {
  padding-bottom: 28px;
}

.shopping-list-stack {
  display: grid;
  gap: 14px;
}

.shopping-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.74);
}

.shopping-card__head {
  display: grid;
  gap: 4px;
}

.shopping-card__head strong {
  color: var(--gold-dark);
  font-size: 0.98rem;
}

.shopping-card__head span,
.shopping-card__head small {
  color: var(--muted);
  font-size: 0.82rem;
}

.shopping-items {
  display: grid;
  gap: 8px;
}

.shopping-item {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 183, 106, 0.38);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.shopping-item span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-dark);
  border-radius: 5px;
  background: transparent;
}

.shopping-item strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.shopping-item.is-checked {
  opacity: 0.62;
}

.shopping-item.is-checked span {
  background: linear-gradient(135deg, #9c742a, #ead18d 44%, #8d6725);
  box-shadow: inset 0 0 0 3px rgba(255, 253, 248, 0.82);
}

.shopping-item.is-checked strong {
  text-decoration: line-through;
}

.panel-action {
  width: 100%;
  margin: 4px 0 12px;
}


.clients-title {
  margin: 0 0 8px;
}

.clients-panel .client-form {
  margin-top: 0;
}

.client-tools {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.client-tools label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.client-tools input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
}

.client-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.client-filters button,
.client-card__action,
.client-planning button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 800;
}

.client-filters button.is-active,
.client-card__action,
.client-planning button:first-child {
  background: var(--gold-gradient);
}

.client-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.client-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.client-card.is-archived {
  opacity: 0.76;
}

.client-card__head {
  display: grid;
  gap: 4px;
}

.client-card strong {
  font-size: 1.05rem;
}

.client-card span {
  color: var(--gold-dark);
  font-weight: 800;
}

.client-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.client-tags,
.client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-tags small,
.client-meta small {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--muted);
}

.client-tags small {
  color: var(--gold-dark);
  font-weight: 800;
}

.client-planning {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.client-planning > strong {
  color: var(--gold-dark);
}

.client-planning div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}


.client-collections {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.64);
}

.client-collections > strong,
.client-collections summary {
  color: var(--gold-dark);
  font-weight: 900;
}

.client-collections details {
  border: 1px solid rgba(172, 132, 55, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  overflow: hidden;
}

.client-collections summary {
  cursor: pointer;
  list-style: none;
  padding: 10px;
}

.client-collections summary::-webkit-details-marker {
  display: none;
}

.client-collection-list,
.client-shopping-list-stack {
  padding: 0 10px 10px;
}

.client-collection-list {
  gap: 8px;
}

.client-collection-list .collection-item,
.client-shopping-list-stack .shopping-card {
  background: #ffffff;
}

.client-templates {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.client-templates > strong,
.client-templates summary {
  color: var(--gold-dark);
  font-weight: 900;
}

.client-templates button,
.client-template-card button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 800;
}

.client-templates details {
  border: 1px solid rgba(172, 132, 55, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  overflow: hidden;
}

.client-templates summary {
  cursor: pointer;
  list-style: none;
  padding: 10px;
}

.client-templates summary::-webkit-details-marker {
  display: none;
}

.client-template-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.client-template-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.client-template-card span,
.client-template-card small {
  color: var(--muted);
  font-size: 0.86rem;
}

.client-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.client-card__action {
  justify-self: start;
  margin-top: 2px;
}
.profile-choice-list.is-primary-goals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-choice-list.is-primary-goals > :last-child {
  grid-column: 2;
}

.profile-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.profile-action-row.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-panel-trigger,
.profile-action-row > button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  background-image: none;
  color: var(--ink);
  box-shadow: none;
  filter: none;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-panel-trigger.is-active,
.profile-action-row > button.is-active {
  border-color: rgba(156, 116, 42, 0.76);
  box-shadow: inset 0 0 0 1px rgba(216, 183, 106, 0.22);
}

.profile-panel-trigger.is-locked,
.profile-action-row > button.is-locked,
.form-grid .profile-choice-button.is-locked {
  opacity: 0.45;
}

.profile-accordion-panel {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(216, 183, 106, 0.24);
}

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

.profile-option-grid .profile-choice-button > span {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-nested-panel,
.profile-diseases-panel,
.profile-fridge-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(216, 183, 106, 0.3);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.56);
}

.profile-nested-panel > strong,
.profile-list-heading {
  color: var(--gold-dark);
  font-size: 0.8rem;
  text-align: center;
}

.profile-list-heading:not(:first-child) {
  margin-top: 5px;
}

.profile-fridge-search input {
  min-height: 42px;
}

.profile-suggestions,
.profile-fridge-items {
  display: grid;
  gap: 7px;
}

.profile-suggestions button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 40px;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--black);
  background-image: none;
  color: var(--ink);
  box-shadow: none;
  filter: none;
  text-align: left;
}

.profile-suggestions b {
  color: var(--gold-dark);
  font-size: 1.25rem;
  text-align: center;
}

.profile-trash-zone {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 48px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.profile-trash-zone img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.profile-trash-zone.is-ready {
  color: var(--gold-dark);
}

.profile-trash-zone.is-over {
  background: rgba(216, 183, 106, 0.16);
  outline: 1px solid rgba(156, 116, 42, 0.55);
  border-radius: 8px;
}

.form-grid .profile-fridge-item.is-dragging {
  opacity: 0.55;
  transform: scale(0.97);
}
.profile-fridge-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .profile-fridge-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 54px;
  padding: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  color: var(--ink);
  box-shadow: none;
  filter: none;
  font-size: 0.72rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.form-grid .profile-fridge-item.is-active .oscar-switch {
  border-color: rgba(216, 183, 106, 0.84);
  background: linear-gradient(90deg, rgba(156, 116, 42, 0.42), rgba(234, 209, 141, 0.52));
  box-shadow: inset 0 0 8px rgba(216, 183, 106, 0.35), 0 0 0 3px rgba(216, 183, 106, 0.12);
}

.form-grid .profile-fridge-item.is-active .oscar-switch b {
  transform: translateX(20px);
  background: linear-gradient(135deg, #f9e7a5, #d8b76a 55%, #9c742a);
  box-shadow: 0 0 9px rgba(244, 214, 123, 0.78), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.form-grid .profile-choice-button.is-locked {
  opacity: 0.45;
}

.history-panel { overflow-y: auto; }
.history-tools { display: grid; gap: 10px; margin-bottom: 10px; }
.history-search, .history-filters label { display: grid; gap: 4px; min-width: 0; color: var(--gold-dark); font-size: 0.72rem; font-weight: 800; }
.history-search input, .history-filters select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: rgba(255,255,255,.82); font: inherit; }
.history-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.history-panel .panel-action { width: 100%; margin-bottom: 10px; }

.favorites-panel { overflow-y: auto; }
.favorites-trash { position: sticky; top: 0; z-index: 2; margin-bottom: 8px; padding: 6px; background: rgba(255,255,255,.92); }
.favorite-item { touch-action: pan-y; }
.favorite-item.is-dragging { opacity: .55; transform: scale(.98); }

.client-delete-trash { position: sticky; top: 0; z-index: 4; margin: 8px 0; padding: 6px; background: rgba(255,255,255,.94); }
.client-card[draggable=true] { touch-action: pan-y; }
.client-card.is-dragging { opacity: .52; transform: scale(.98); }
.client-evolution-list { display: grid; gap: 7px; padding: 0 10px 10px; }
.client-evolution-list article { display: grid; gap: 3px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); }
.client-evolution-list span, .client-evolution-list small { color: var(--muted); font-size: .76rem; }

.shopping-groups, .shopping-group { display: grid; gap: 8px; }
.shopping-group h3 { margin: 8px 0 0; color: var(--gold-dark); font-size: .86rem; }
.shopping-item { grid-template-columns: 20px minmax(0, 1fr); }
.shopping-item small { grid-column: 2; color: var(--muted); font-size: .78rem; text-align: left; }
.shopping-item.is-checked small { text-decoration: line-through; }


.rafael-timeline {
  width: min(100%, 406px);
  align-self: center;
  display: block;
  padding: 0;
  border: 1px solid rgba(216, 183, 106, 0.62);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(27, 24, 19, 0.16);
  backdrop-filter: blur(10px);
}

.theme-blackWhite .rafael-timeline {
  color: #f7f1df;
  background: rgba(13, 13, 13, 0.94);
}

.rafael-timeline__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.rafael-timeline__header::-webkit-details-marker { display: none; }
.rafael-timeline__header::after {
  content: "▾";
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--gold-dark);
  font-size: 0.9rem;
  transition: transform 160ms ease;
}
.rafael-timeline[open] .rafael-timeline__header::after { transform: rotate(180deg); }
.rafael-timeline__body {
  display: grid;
  gap: 6px;
  padding: 0 8px 8px;
  border-top: 1px solid rgba(216, 183, 106, 0.38);
}

.rafael-timeline__header span { color: var(--gold-dark); font-weight: 900; }
.rafael-timeline__header small { color: var(--muted); font-size: 0.72rem; }
.theme-blackWhite .rafael-timeline__header small { color: rgba(255, 255, 255, 0.66); }

.rafael-timeline__events {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 7px 0 0;
  list-style: none;
}

.rafael-timeline-event {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 6px 7px;
  border: 1px solid rgba(216, 183, 106, 0.25);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
}

.theme-blackWhite .rafael-timeline-event { background: rgba(255, 255, 255, 0.06); }

html[data-app-animations="on"] .rafael-timeline-event {
  animation: rafael-timeline-enter 280ms ease both;
  animation-delay: calc(var(--timeline-index, 0) * 55ms);
}

@keyframes rafael-timeline-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rafael-timeline-event__marker {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #9c742a;
  box-shadow: 0 0 0 3px rgba(216, 183, 106, 0.2);
}

.rafael-timeline-event.is-blocked .rafael-timeline-event__marker { background: #9f493f; }
.rafael-timeline-event.is-ready .rafael-timeline-event__marker { background: #3d7650; }
.rafael-timeline-event.is-started .rafael-timeline-event__marker {
  background: #00b8d4;
  box-shadow: 0 0 0 4px rgba(0, 184, 212, 0.2);
}
.rafael-timeline-event.is-done .rafael-timeline-event__marker { background: #3d7650; }
.rafael-timeline-event.is-error .rafael-timeline-event__marker,
.rafael-timeline-event.is-timeout .rafael-timeline-event__marker { background: #9f493f; }
html[data-app-animations="on"] .rafael-timeline-event.is-started .rafael-timeline-event__marker {
  animation: rafael-execution-pulse 900ms ease-in-out infinite alternate;
}
@keyframes rafael-execution-pulse {
  from { transform: scale(0.9); opacity: 0.72; }
  to { transform: scale(1.18); opacity: 1; }
}

.rafael-timeline-event small { color: var(--gold-dark); font-size: 0.67rem; font-weight: 900; }
.rafael-timeline-event p { margin: 1px 0 0; color: inherit; font-size: 0.74rem; line-height: 1.28; }

@media (max-width: 520px) {
  .rafael-timeline { width: 100%; }
  .rafael-timeline__header { padding: 8px 10px; }
  .rafael-timeline__header span { font-size: 0.82rem; }
  .rafael-timeline__header small { font-size: 0.66rem; }
  .rafael-timeline-event small { font-size: 0.62rem; }
  .rafael-timeline-event p { font-size: 0.7rem; }
}

.rafael-primary-action-bar {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  margin: 8px 0 10px;
}
.rafael-primary-action-bar > button,
.rafael-primary-action-bar > .rafael-client-save-offer { width: 100%; }

.rafael-execution-action {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #00a8c4;
  border-radius: 8px;
  color: #07343c;
  background: rgba(0, 184, 212, 0.16);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}
.rafael-execution-action:hover,
.rafael-execution-action:focus-visible { background: rgba(0, 184, 212, 0.27); }
.rafael-execution-action.is-result { color: #173c24; border-color: #4f8b62; background: rgba(79, 139, 98, 0.18); }
.theme-blackWhite .rafael-execution-action { color: #eafcff; }
.theme-blackWhite .rafael-execution-action.is-result { color: #eefcf2; }

.rafael-execution-disabled {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 183, 106, 0.5);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(216, 183, 106, 0.1);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 1;
  cursor: not-allowed;
}

.theme-blackWhite .rafael-execution-disabled { color: rgba(255, 255, 255, 0.68); }
