:root {
  --bg: #f6efe9;
  --panel: rgba(255, 250, 246, 0.84);
  --panel-strong: rgba(255, 248, 243, 0.94);
  --panel-border: rgba(132, 88, 78, 0.14);
  --text: #2f2421;
  --muted: #7a6560;
  --gold: #b87d6e;
  --gold-strong: #975e54;
  --gold-soft: rgba(184, 125, 110, 0.14);
  --chip-bg: rgba(191, 156, 146, 0.16);
  --danger: #c45f5f;
  --ok: #4f9d74;
  --working: #d39a58;
  --shadow: 0 18px 44px rgba(104, 75, 67, 0.12);
  --radius-panel: 20px;
  --radius-control: 18px;
  --radius-soft: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 18%, rgba(220, 176, 166, 0.34), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(244, 220, 202, 0.52), transparent 24%),
    linear-gradient(180deg, #f8f2ed 0%, #f1e7df 100%);
  color: var(--text);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.has-visit-sheet {
  overflow: hidden;
}

body.has-pricing-summary {
  overflow: hidden;
}

.bg-glow {
  position: fixed;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(88px);
  opacity: 0.18;
}

.bg-glow-1 {
  top: -8vw;
  right: -4vw;
  background: #d5a097;
}

.bg-glow-2 {
  bottom: -10vw;
  left: -9vw;
  background: #f0d8cb;
}

.app {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 18px 0 calc(30px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
}

.hero,
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  border-radius: var(--radius-panel);
  padding: 18px 22px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: var(--gold-strong);
  min-width: 0;
}

h1 {
  margin: 4px 0 2px;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 0.92rem;
}

.subtitle:empty,
.hint:empty,
.status:empty,
.receipt-meta:empty,
.empty-text:empty,
.review-note:empty,
.section-head h2:empty,
.mini-label:empty {
  display: none;
}

.lang-toggle,
.cta,
.ghost,
.review-copy-btn,
.remove-btn {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.lang-toggle,
.ghost {
  border: 1px solid rgba(132, 88, 78, 0.16);
  background: rgba(255, 248, 243, 0.84);
  color: var(--text);
}

.lang-toggle {
  border-radius: var(--radius-control);
  min-width: 122px;
  min-height: 54px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas:
    "intake reviews"
    "dishes reviews";
  gap: 14px;
  align-items: start;
}

.layout.single-stage {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intake";
}

.intake-card {
  grid-area: intake;
}

.dishes-card {
  grid-area: dishes;
  scroll-margin-top: 12px;
}

.reviews-card {
  grid-area: reviews;
  scroll-margin-top: 12px;
}

.card {
  border-radius: var(--radius-panel);
  padding: 16px;
}

.app.landing-mode {
  width: min(1120px, 92vw);
}

.landing-shell {
  display: grid;
  gap: 14px;
}

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

.landing-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.landing-card h2 {
  margin: 0;
  font-size: 1rem;
}

.landing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.landing-card-primary {
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 239, 221, 0.72), transparent 34%),
    rgba(255, 248, 243, 0.94);
}

.landing-status {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-strong);
  font-weight: 700;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-link {
  text-decoration: none;
}

.section-head h2 {
  margin: 0;
  font-size: 1rem;
}

.hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.text-link {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gold-strong);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.action-btn,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin-top: 12px;
  text-align: center;
  text-decoration: none;
}

#correctionToggle {
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(239, 192, 122, 0.92);
  font-size: 0.84rem;
  font-weight: 600;
  justify-content: flex-start;
  text-decoration: underline;
  text-decoration-color: rgba(239, 192, 122, 0.34);
  text-underline-offset: 3px;
}

#correctionToggle:hover:not(:disabled) {
  transform: none;
  color: var(--gold-strong);
}

.inline-notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(247, 213, 130, 0.26);
  background: rgba(247, 213, 130, 0.1);
  color: var(--working);
  font-size: 0.86rem;
  line-height: 1.45;
}

.refresh-btn {
  margin-top: 14px;
  justify-content: center;
}

.refresh-btn.is-loading {
  position: relative;
  color: transparent;
}

.refresh-btn.is-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(248, 241, 231, 0.22);
  border-top-color: var(--gold-strong);
  animation: spin 0.8s linear infinite;
}

.upload-actions,
.secondary-actions,
.correction-row,
.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-actions,
.secondary-actions {
  margin-top: 14px;
}

.upload-actions .cta,
.upload-actions .ghost {
  min-width: 152px;
}

.slim-actions {
  margin-top: 12px;
}

.cta,
.ghost,
.review-copy-btn {
  border-radius: var(--radius-control);
  padding: 11px 17px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  font-size: 0.92rem;
}

.cta,
.review-copy-btn {
  border-color: rgba(168, 111, 100, 0.18);
  background: linear-gradient(135deg, #d59a87 0%, #edd0bf 100%);
  color: #382522;
  box-shadow: 0 12px 24px rgba(168, 111, 100, 0.18);
}

.cta:hover:not(:disabled),
.ghost:hover:not(:disabled),
.review-copy-btn:hover:not(:disabled),
.lang-toggle:hover:not(:disabled),
.remove-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(104, 75, 67, 0.14);
}

.ghost {
  box-shadow: 0 8px 18px rgba(104, 75, 67, 0.06);
}

.ghost:hover:not(:disabled),
.lang-toggle:hover:not(:disabled) {
  border-color: rgba(184, 125, 110, 0.28);
  background: rgba(255, 250, 246, 0.96);
}

.cta:hover:not(:disabled),
.review-copy-btn:hover:not(:disabled) {
  border-color: rgba(168, 111, 100, 0.26);
  background: linear-gradient(135deg, #cf8f7c 0%, #f2d9ca 100%);
}

.cta:focus-visible,
.ghost:focus-visible,
.review-copy-btn:focus-visible,
.lang-toggle:focus-visible,
.remove-btn:focus-visible {
  outline: 2px solid rgba(184, 125, 110, 0.42);
  outline-offset: 3px;
}

.cta:disabled,
.ghost:disabled,
.review-copy-btn:disabled,
.lang-toggle:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.compact {
  min-height: 44px;
  padding-inline: 14px;
}

.hidden-input {
  display: none;
}

.receipt-preview {
  margin-top: 14px;
  min-height: 240px;
  border-radius: var(--radius-soft);
  border: 1px dashed rgba(239, 192, 122, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(13, 10, 8, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.receipt-preview.empty {
  padding: 18px;
}

.receipt-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.receipt-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.empty-text {
  margin: 0;
  text-align: center;
  color: rgba(248, 241, 231, 0.72);
  line-height: 1.55;
  font-size: 0.92rem;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(240, 190, 115, 0.14);
  color: var(--gold-strong);
  font-size: 0.82rem;
}

.recognized-list {
  margin-top: 14px;
  min-height: 84px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--radius-soft);
  border: 1px solid rgba(239, 192, 122, 0.16);
  background: rgba(13, 10, 8, 0.3);
}

.recognized-list.empty {
  border-style: dashed;
}

.reviews-grid.empty {
  border-radius: var(--radius-soft);
  padding: 18px;
  border: 1px dashed rgba(239, 192, 122, 0.16);
  background: rgba(13, 10, 8, 0.3);
}

.dish-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid rgba(239, 192, 122, 0.22);
  color: var(--text);
}

.dish-chip span {
  font-size: 0.86rem;
  line-height: 1.3;
}

.remove-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.remove-btn:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.correction-block {
  margin-top: 16px;
}

.mini-label {
  display: block;
  margin: 0 0 8px;
  color: var(--gold-strong);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-input {
  flex: 1 1 210px;
  min-width: 0;
  border-radius: var(--radius-control);
  border: 1px solid rgba(239, 192, 122, 0.22);
  background: rgba(12, 9, 7, 0.62);
  color: var(--text);
  padding: 12px 14px;
  min-height: 46px;
  font-size: 0.92rem;
}

.text-input:focus {
  outline: none;
  border-color: rgba(239, 192, 122, 0.48);
  box-shadow: 0 0 0 3px rgba(240, 190, 115, 0.12);
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(239, 192, 122, 0.92) 50%),
    linear-gradient(135deg, rgba(239, 192, 122, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.select-input:disabled {
  cursor: not-allowed;
}

.uncertain-wrap {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-soft);
  border: 1px solid rgba(247, 213, 130, 0.18);
  background: rgba(247, 213, 130, 0.08);
}

.uncertain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.reviews-grid {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.review-context-bar {
  margin-top: 10px;
  margin-bottom: 6px;
  display: grid;
  gap: 10px;
}

.service-toggle-btn,
.visit-option-btn,
.choice-chip {
  width: 100%;
  border: 1px solid rgba(132, 88, 78, 0.16);
  background: rgba(255, 248, 243, 0.88);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.context-pill-btn,
.service-toggle-btn {
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.context-pill-btn {
  width: fit-content;
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 8px;
  justify-content: flex-start;
  align-items: baseline;
  color: var(--text);
}

.service-toggle-btn {
  min-height: 50px;
  padding: 10px 14px;
  border-color: rgba(132, 88, 78, 0.14);
  background: rgba(255, 250, 246, 0.84);
}

.service-toggle-btn:hover,
.visit-option-btn:hover,
.choice-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 125, 110, 0.34);
  box-shadow: 0 12px 24px rgba(104, 75, 67, 0.1);
}

.context-pill-btn:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.context-pill-btn:disabled,
.service-toggle-btn:disabled,
.visit-option-btn:disabled,
.choice-chip:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.context-pill-action,
.service-toggle-meta {
  flex: 0 0 auto;
  color: #8f5c4d;
  font-size: 0.8rem;
  font-weight: 700;
}

.context-pill-copy,
.service-toggle-copy {
  min-width: 0;
  display: grid;
}

.context-pill-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.service-toggle-copy {
  gap: 2px;
}

.context-pill-label,
.service-toggle-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.context-pill-label {
  color: #af7959;
}

.service-toggle-label {
  color: #9a7368;
}

.context-pill-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
}

.service-toggle-value {
  font-size: 0.92rem;
  color: var(--text);
}

.service-toggle-btn.has-selection {
  border-color: rgba(184, 125, 110, 0.28);
  background: rgba(184, 125, 110, 0.12);
}

.service-toggle-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 92, 77, 0.22);
  background: rgba(143, 92, 77, 0.08);
  font-size: 0.76rem;
}

.context-pill-action {
  color: #b37149;
  font-size: 0.84rem;
  text-decoration: underline;
  text-decoration-color: rgba(179, 113, 73, 0.42);
  text-underline-offset: 3px;
}

.service-panel {
  max-height: 0;
  margin-top: 0;
  padding: 0 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 248, 243, 0);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.2, 0.9, 0.22, 1),
    margin-top 0.22s ease,
    padding 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.service-panel.is-open {
  max-height: 520px;
  margin-top: 10px;
  padding: 12px;
  border-color: rgba(132, 88, 78, 0.14);
  background: rgba(255, 248, 243, 0.88);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.choice-grid,
.visit-options {
  display: grid;
  gap: 10px;
}

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

.choice-chip,
.visit-option-btn {
  border-radius: 16px;
  padding: 12px 14px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.choice-chip.selected,
.visit-option-btn.selected {
  border-color: rgba(184, 125, 110, 0.42);
  background: linear-gradient(135deg, rgba(232, 199, 186, 0.72), rgba(244, 228, 216, 0.9));
  box-shadow: inset 0 0 0 1px rgba(184, 125, 110, 0.18);
}

.sheet-backdrop {
  --visit-sheet-drag-progress: 0;
  --visit-sheet-drag-y: 0px;
  --visit-sheet-drag-scale: 0;
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 5, 4, 0);
  backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.62s ease,
    background 0.62s ease,
    backdrop-filter 0.92s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.62s;
}

.sheet-backdrop.is-open {
  background: rgba(80, 56, 48, calc(0.2 * (1 - var(--visit-sheet-drag-progress))));
  backdrop-filter: blur(calc(16px * (1 - var(--visit-sheet-drag-progress))));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.62s ease,
    background 0.62s ease,
    backdrop-filter 0.92s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.sheet-backdrop.is-dragging,
.sheet-backdrop.is-dragging .visit-sheet {
  transition: none;
}

.visit-sheet {
  width: min(560px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(132, 88, 78, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.98), rgba(248, 239, 233, 0.98)),
    rgba(255, 248, 243, 0.96);
  box-shadow: 0 28px 48px rgba(104, 75, 67, 0.18);
  padding: 14px 14px 14px;
  opacity: 0;
  transform: translateY(54px) scale(0.972);
  transition:
    opacity 0.58s ease,
    transform 0.96s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.sheet-backdrop.is-open .visit-sheet {
  opacity: 1;
  transform: translateY(var(--visit-sheet-drag-y)) scale(calc(1 - var(--visit-sheet-drag-scale)));
  animation: visit-sheet-settle 0.96s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet-backdrop.is-dragging .visit-sheet {
  animation: none;
}

.visit-sheet h2 {
  margin: 8px 4px 2px;
  font-size: 1.12rem;
}

.sheet-drag-zone {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -2px 0 4px;
  touch-action: none;
  cursor: grab;
}

.sheet-drag-zone:active {
  cursor: grabbing;
}

.sheet-grabber {
  width: 42px;
  height: 5px;
  margin: 0;
  border-radius: 999px;
  background: rgba(132, 88, 78, 0.26);
}

.visit-sheet .hint {
  margin: 0 4px 12px;
}

.visit-sheet .cta {
  margin-top: 12px;
  width: 100%;
}

@keyframes visit-sheet-settle {
  0% {
    transform: translateY(54px) scale(0.972);
  }
  72% {
    transform: translateY(-2px) scale(1.003);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.review-card {
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(248, 239, 233, 0.94));
  border: 1px solid rgba(132, 88, 78, 0.14);
  border-radius: var(--radius-soft);
  padding: 14px;
  cursor: pointer;
}

.review-card-skeleton {
  pointer-events: none;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.review-card h3 {
  margin: 0;
  font-size: 1rem;
}

.focus-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  white-space: nowrap;
  color: var(--text);
  background: linear-gradient(135deg, #e5b29a, #f2d7c7);
}

.review-card:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 125, 110, 0.26);
  box-shadow: 0 16px 28px rgba(104, 75, 67, 0.12);
}

.review-card:focus-visible {
  outline: 2px solid rgba(239, 192, 122, 0.68);
  outline-offset: 4px;
}

.review-copy-surface {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.review-copy-surface:focus-visible {
  outline: 2px solid rgba(239, 192, 122, 0.65);
  outline-offset: 4px;
  border-radius: 12px;
}

.review-body {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-soft);
  border: 1px solid rgba(132, 88, 78, 0.12);
  background: rgba(255, 252, 249, 0.9);
  line-height: 1.65;
  font-size: 0.92rem;
}

.skeleton-block {
  display: grid;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-line:nth-child(2) {
  width: 94%;
}

.skeleton-line:nth-child(3) {
  width: 88%;
}

.skeleton-line:nth-child(4) {
  width: 72%;
}

.skeleton-line-title {
  width: 38%;
  margin-bottom: 10px;
}

.dish-chip-skeleton {
  width: 112px;
  height: 38px;
  border-color: rgba(239, 192, 122, 0.14);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.review-actions {
  margin-top: 10px;
  justify-content: space-between;
  align-items: center;
}

.review-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.status {
  min-height: 1.35em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.receipt-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.status.working {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status.working::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(247, 213, 130, 0.22);
  border-top-color: var(--working);
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: var(--danger);
}

.status.working {
  color: var(--working);
}

.status-link {
  color: var(--text);
  font-size: 0.86rem;
}

.manual-open-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: rgba(247, 213, 130, 0.42);
  text-underline-offset: 2px;
  opacity: 0.82;
}

.manual-open-link:hover,
.manual-open-link:focus-visible {
  color: var(--gold-strong);
  opacity: 1;
}

.marketing-page {
  display: grid;
  gap: 14px;
}

.marketing-nav-shell,
.marketing-footer {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-panel);
}

.marketing-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-part {
  font-weight: 900;
}

.brand-part-rank {
  color: #000000 !important;
}

.brand-part-mysalon {
  color: #000000 !important;
}

.marketing-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.marketing-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
}

.marketing-nav-link.is-active,
.marketing-nav-link:hover,
.marketing-nav-link:focus-visible {
  color: var(--gold-strong);
}

.marketing-hero-section,
.marketing-digital-human,
.marketing-placeholder,
.assistant-panel,
.assistant-stage {
  padding: 22px;
}

.marketing-hero-grid,
.assistant-shell {
  display: grid;
  gap: 18px;
}

.marketing-hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(400px, 1.12fr);
  align-items: center;
}

.marketing-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.marketing-rating-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold-strong);
  font-weight: 700;
}

.marketing-rating-score {
  font-size: 1rem;
}

.marketing-rating-stars {
  color: #ff8f58;
  letter-spacing: 0.08em;
}

.marketing-rating-caption {
  color: var(--muted);
  font-size: 0.86rem;
}

.marketing-title {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.marketing-title-normal {
  font-weight: 900;
  color: var(--text);
}

.marketing-title-highlight {
  font-weight: 900;
  color: #000000;
}

.marketing-title-small {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
}

.marketing-body,
.marketing-digital-body,
.marketing-footer-copy,
.marketing-placeholder-card p,
.assistant-video-placeholder-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.marketing-body {
  margin-top: 14px;
  max-width: 34rem;
  font-size: 1rem;
}

.marketing-body-wide {
  max-width: 42rem;
}

.marketing-actions,
.assistant-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.marketing-actions-hero {
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  margin-top: 22px;
}

.marketing-hero-primary-cta {
  min-width: 0;
  padding: 18px 28px;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  justify-content: center;
  box-shadow: 0 14px 28px rgba(214, 160, 138, 0.18);
}

.marketing-hero-primary-cta-arrow {
  font-size: 0.95em;
  line-height: 1;
}

.marketing-hero-cta-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.marketing-trust-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.marketing-trust-item {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.94rem;
}

.marketing-trust-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 700;
}

.marketing-hero-frame,
.marketing-digital-media,
.assistant-video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(132, 88, 78, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(104, 75, 67, 0.12);
}

.marketing-hero-frame {
  padding: 10px;
}

.marketing-hero-image,
.marketing-digital-video,
.assistant-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.marketing-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.marketing-section-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-strong);
  font-weight: 700;
}

.marketing-section-title,
.marketing-digital-heading {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1.15;
}

.marketing-digital-media {
  margin-bottom: 18px;
  background: #fff;
}

.marketing-digital-copy {
  display: grid;
  gap: 12px;
  justify-items: start;
  text-align: left;
}

.marketing-placeholder {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-panel);
}

.marketing-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.marketing-placeholder-card {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(132, 88, 78, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.marketing-placeholder-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.pricing-section {
  text-align: center;
}

.pricing-simple-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 18px 0 8px;
}

.pricing-simple-title {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.pricing-simple-hero {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 20px 0 18px;
}

.pricing-simple-star {
  font-size: 1.2rem;
  color: var(--gold-strong);
  font-weight: 700;
  align-self: flex-start;
  margin-top: 6px;
}

.pricing-simple-amount {
  font-size: clamp(3.6rem, 7vw, 5.4rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-simple-period {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--muted);
  margin-left: 4px;
}

.pricing-guarantee-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-guarantee-item {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pricing-guarantee-divider {
  color: var(--panel-border);
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.6;
}

.pricing-buy-btn {
  width: auto;
  min-width: 320px;
  padding: 18px 40px;
  font-size: 1.05rem;
}

.pricing-simple-cta {
  width: auto;
}

.pricing-setup-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-style: italic;
}

.pricing-page-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(56, 37, 34, 0.98) 0%, rgba(121, 74, 64, 0.94) 100%);
  color: #f8efe9;
}

.pricing-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: stretch;
}

.pricing-page-main {
  display: grid;
  align-content: start;
  gap: 20px;
}

.pricing-page-kicker {
  margin-bottom: 0;
  color: rgba(255, 231, 220, 0.78);
}

.pricing-page-title {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.9rem, 5vw, 4.7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  color: #fff7f2;
}

.pricing-page-body {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 239, 232, 0.82);
  font-size: 1rem;
  line-height: 1.65;
}

.pricing-page-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.pricing-page-amount-mark {
  color: #ffcf8e;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1;
  transform: translateY(-18px);
}

.pricing-page-amount-value {
  font-size: clamp(5rem, 12vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 900;
  color: #fff7f2;
}

.pricing-page-period {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 700;
  color: rgba(255, 239, 232, 0.72);
  line-height: 1.1;
  padding-bottom: 16px;
}

.pricing-page-guarantees {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pricing-page-guarantee {
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff4ed;
}

.pricing-page-divider {
  color: rgba(255, 239, 232, 0.34);
  font-weight: 600;
}

.pricing-page-cta {
  min-width: min(100%, 390px);
  min-height: 58px;
  padding: 17px 34px;
  border-color: rgba(255, 211, 189, 0.26);
  background: linear-gradient(135deg, #ffd2b8 0%, #e7ad93 100%);
  color: #402923;
  box-shadow: 0 18px 36px rgba(32, 15, 10, 0.22);
  font-size: 1.02rem;
  font-weight: 800;
}

.pricing-page-cta:hover:not(:disabled) {
  border-color: rgba(255, 211, 189, 0.34);
  background: linear-gradient(135deg, #ffd9c4 0%, #efb89f 100%);
  box-shadow: 0 22px 44px rgba(32, 15, 10, 0.28);
}

.pricing-page-setup-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 3vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(255, 225, 211, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 247, 241, 0.14) 0%, rgba(255, 247, 241, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 245, 238, 0.12);
}

.pricing-page-setup-badge {
  width: fit-content;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 214, 190, 0.18);
  color: #ffd9c4;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-page-setup-title {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.08;
  color: #fff7f2;
}

.pricing-page-setup-amount {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: #ffcf8e;
}

.pricing-page-setup-copy,
.pricing-page-note {
  margin: 0;
  color: rgba(255, 239, 232, 0.72);
  line-height: 1.55;
}

.pricing-page-setup-copy {
  font-size: 1rem;
}

.pricing-summary-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(36, 23, 20, 0);
  backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.26s ease,
    background 0.26s ease,
    backdrop-filter 0.26s ease,
    visibility 0s linear 0.26s;
}

.pricing-summary-backdrop.is-open {
  background: rgba(36, 23, 20, 0.44);
  backdrop-filter: blur(14px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.26s ease,
    background 0.26s ease,
    backdrop-filter 0.26s ease,
    visibility 0s linear 0s;
}

.pricing-summary-dialog {
  position: relative;
  width: min(640px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 34px);
  border-radius: 30px;
  border: 1px solid rgba(132, 88, 78, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(248, 239, 233, 0.98)),
    rgba(255, 251, 247, 0.96);
  box-shadow: 0 34px 70px rgba(43, 25, 20, 0.24);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.pricing-summary-backdrop.is-open .pricing-summary-dialog {
  transform: translateY(0) scale(1);
}

.pricing-summary-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(132, 88, 78, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.pricing-summary-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.pricing-summary-dialog h2 {
  margin: 0;
  padding-right: 40px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  line-height: 0.98;
  color: var(--text);
}

.pricing-summary-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42rem;
}

.pricing-summary-lines {
  display: grid;
  gap: 12px;
}

.pricing-summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(132, 88, 78, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.pricing-summary-line-copy h3 {
  margin: 0 0 5px;
  font-size: 1.08rem;
  color: var(--text);
}

.pricing-summary-line-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-summary-line-amount {
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
}

.pricing-summary-total-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 217, 199, 0.5), rgba(243, 228, 216, 0.7));
  border: 1px solid rgba(132, 88, 78, 0.12);
}

.pricing-summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  color: var(--text);
}

.pricing-summary-total-row strong {
  font-size: 1.18rem;
}

.pricing-summary-total-row.is-recurring {
  color: var(--muted);
}

.pricing-summary-total-row.is-recurring strong {
  font-size: 1rem;
}

.pricing-summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.pricing-summary-security-note {
  margin: -4px 2px 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
}

.pricing-summary-back-btn {
  min-width: 120px;
}

.pricing-summary-checkout-btn {
  min-width: min(100%, 320px);
}

.marketing-footer {
  padding: 40px 22px;
  margin-top: 40px;
  border-top: 1px solid var(--panel-border);
  background: linear-gradient(180deg, transparent 0%, rgba(132, 88, 78, 0.02) 100%);
}

.marketing-footer-wrapper {
  display: grid;
  grid-template-columns: minmax(280px, 0.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
}

.marketing-footer-left {
  display: grid;
  gap: 24px;
}

.marketing-footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  width: fit-content;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-logo-part {
  font-weight: 900;
}

.footer-logo-360 {
  color: #000000;
}

.footer-logo-ai {
  color: #00D96F;
}

.footer-logo-media {
  color: #000000;
}

.footer-logo-icon {
  font-size: 1.4rem;
  color: var(--gold-strong);
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.marketing-footer-info {
  display: grid;
  gap: 6px;
}

.footer-company-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

.footer-address {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.marketing-footer-right {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.marketing-footer-column {
  display: grid;
  gap: 16px;
}

.footer-column-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-column-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-column-header {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin: 8px 0 4px 0;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--gold-strong);
}

.marketing-footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
  text-align: center;
}

.footer-copyright {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.assistant-shell {
  grid-template-columns: minmax(300px, 0.44fr) minmax(0, 0.56fr);
  align-items: stretch;
}

.assistant-panel,
.assistant-stage {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-panel);
}

.assistant-panel {
  display: grid;
  grid-template-rows: auto auto minmax(300px, 1fr) auto;
}

.assistant-panel-head {
  display: grid;
  gap: 8px;
}

.assistant-status {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.assistant-status-loading,
.assistant-status-connecting {
  color: var(--working);
}

.assistant-status-live {
  color: var(--ok);
}

.assistant-status-error {
  color: var(--danger);
}

.assistant-status-ended,
.assistant-status-idle {
  color: var(--muted);
}

.assistant-messages {
  margin-top: 18px;
  min-height: 320px;
  max-height: 62vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.assistant-empty-state {
  min-height: 220px;
  border-radius: 20px;
  border: 1px dashed rgba(132, 88, 78, 0.16);
  background: rgba(255, 255, 255, 0.56);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  gap: 8px;
  padding: 20px;
}

.assistant-empty-state-title,
.assistant-empty-state-body {
  margin: 0;
}

.assistant-empty-state-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.assistant-empty-state-body {
  max-width: 26rem;
  line-height: 1.55;
}

.assistant-message {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(132, 88, 78, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.assistant-message-system {
  background: rgba(213, 160, 151, 0.12);
}

.assistant-message-role,
.assistant-message-time {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.assistant-message-body {
  margin: 6px 0 8px;
  line-height: 1.55;
  color: var(--text);
}

.assistant-status-rail {
  margin-top: 16px;
  min-height: 108px;
  border-radius: 20px;
  border: 1px solid rgba(132, 88, 78, 0.12);
  background: rgba(255, 255, 255, 0.58);
  padding: 14px 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.assistant-status-rail-steps {
  display: grid;
  gap: 10px;
}

.assistant-status-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.assistant-status-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(132, 88, 78, 0.18);
  box-shadow: inset 0 0 0 1px rgba(132, 88, 78, 0.08);
  flex: 0 0 auto;
}

.assistant-status-step-complete {
  color: var(--text);
}

.assistant-status-step-complete .assistant-status-step-dot {
  background: var(--gold-strong);
}

.assistant-status-step-active {
  color: var(--text);
}

.assistant-status-step-active .assistant-status-step-dot {
  background: var(--working);
  box-shadow: 0 0 0 5px rgba(224, 162, 73, 0.16);
}

.assistant-status-step-error {
  color: var(--danger);
}

.assistant-status-step-error .assistant-status-step-dot {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(205, 103, 93, 0.14);
}

.assistant-status-rail-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.assistant-status-rail-note-error {
  color: var(--danger);
}

.assistant-video-wrap {
  min-height: 520px;
  height: 100%;
  background:
    radial-gradient(circle at top, rgba(223, 198, 188, 0.26), transparent 34%),
    rgba(255, 255, 255, 0.94);
}

.assistant-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.assistant-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
}

.assistant-video-placeholder-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.hidden {
  display: none !important;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

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

@media (max-width: 980px) {
  .app {
    width: min(96vw, 760px);
  }

  .marketing-nav-shell,
  .marketing-footer,
  .marketing-hero-section,
  .marketing-digital-human,
  .marketing-placeholder,
  .assistant-panel,
  .assistant-stage {
    padding: 18px;
  }

  .marketing-nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-footer-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .marketing-footer-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .marketing-hero-grid,
  .assistant-shell,
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .marketing-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .pricing-page-grid {
    grid-template-columns: 1fr;
  }

  .pricing-page-shell {
    padding: 24px;
  }

  .pricing-buy-btn,
  .pricing-page-cta,
  .marketing-hero-primary-cta {
    width: 100%;
    min-width: 0;
  }

  .pricing-summary-backdrop {
    padding: 14px;
    align-items: end;
  }

  .pricing-summary-dialog {
    width: 100%;
    gap: 16px;
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 26px;
  }

  .pricing-summary-line {
    grid-template-columns: 1fr;
  }

  .pricing-summary-line-amount {
    white-space: normal;
  }

  .pricing-summary-actions {
    flex-direction: column-reverse;
  }

  .pricing-summary-back-btn,
  .pricing-summary-checkout-btn {
    width: 100%;
    min-width: 0;
  }

  .pricing-summary-security-note {
    text-align: left;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intake"
      "reviews"
      "dishes";
  }

  .receipt-preview {
    min-height: 220px;
  }
}

@media (min-width: 981px) {
  .receipt-preview {
    min-height: 280px;
    height: clamp(280px, 32vw, 480px);
    max-height: 480px;
  }

  .receipt-preview img {
    object-fit: contain;
    background: rgba(13, 10, 8, 0.55);
  }

  body.has-results .receipt-preview {
    min-height: 240px;
    height: clamp(240px, 24vw, 360px);
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-panel: 18px;
    --radius-control: 16px;
    --radius-soft: 14px;
  }

  .app {
    width: 100%;
    padding: 8px 12px calc(42px + env(safe-area-inset-bottom, 0px));
  }

  .marketing-nav {
    gap: 12px;
  }

  .marketing-title {
    font-size: 2.2rem;
  }

  .pricing-page-title {
    font-size: 2.5rem;
  }

  .pricing-page-amount-mark {
    transform: translateY(-10px);
  }

  .pricing-page-guarantees {
    gap: 8px 10px;
  }

  .pricing-page-setup-card {
    gap: 10px;
  }

  .assistant-video-wrap {
    min-height: 360px;
  }

  .card {
    border-radius: var(--radius-panel);
  }

  .card {
    padding: 14px;
  }

  .hero {
    margin-bottom: 8px;
    padding: 6px 2px 4px;
    gap: 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-topline {
    gap: 12px;
    align-items: center;
  }

  h1 {
    margin: 2px 0 0;
    font-size: 1.38rem;
    line-height: 1.1;
  }

  .subtitle {
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.42;
  }

  .lang-toggle {
    min-width: auto;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .layout {
    gap: 10px;
  }

  body.has-results .layout {
    gap: 8px;
  }

  body.correction-open .layout {
    grid-template-areas:
      "intake"
      "dishes"
      "reviews";
  }

  .upload-actions,
  .secondary-actions,
  .review-actions {
    flex-direction: column;
  }

  .cta,
  .ghost,
  .review-copy-btn {
    width: 100%;
  }

  .correction-row {
    flex-direction: column;
  }

  .correction-row .text-input {
    flex: 0 0 auto;
    width: 100%;
  }

  .review-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-card {
    padding: 12px;
  }

  .review-body {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  body.has-results .hero {
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  body.has-results h1 {
    font-size: 1.2rem;
  }

  body.has-results .subtitle {
    display: none;
  }

  body.has-results .intake-card {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas: "preview status";
    align-items: center;
    column-gap: 10px;
  }

  body.has-results .intake-card .section-head,
  body.has-results .intake-card .upload-actions {
    display: none;
  }

  body.has-results .receipt-preview {
    grid-area: preview;
    min-height: 86px;
    max-height: 86px;
    margin-top: 0;
    border-radius: 12px;
  }

  body.has-results .receipt-preview img {
    object-position: center;
  }

  body.has-results .receipt-status-group {
    grid-area: status;
    margin: 0;
  }

  body.has-results #receiptStatus {
    font-size: 0.82rem;
  }

  body.has-results .receipt-meta {
    margin-top: 4px;
    font-size: 0.8rem;
  }

  body.has-results .receipt-status-group {
    align-self: start;
  }

  body.has-results .dishes-card {
    padding: 12px;
  }

  body.has-results .dishes-card .section-head {
    display: none;
  }

  body.has-results .summary-chip {
    margin-top: 0;
  }

  body.has-results:not(.correction-open) .dishes-card .uncertain-wrap {
    display: none;
  }

  body.has-results .reviews-card {
    padding: 12px;
  }

  body.has-results .reviews-card .section-head {
    margin-bottom: 4px;
  }

  body.has-results .reviews-card .hint {
    display: none;
  }

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

  .sheet-backdrop {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .visit-sheet {
    border-radius: 24px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  body.has-results .correction-block {
    margin-top: 10px;
  }

  body.has-results .slim-actions {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  body.has-results .text-link {
    margin-top: 10px;
    font-size: 0.84rem;
  }

  body.has-results .action-btn,
  body.has-results .action-link {
    width: 100%;
    margin-top: 10px;
  }

  body.has-results #correctionToggle {
    width: fit-content;
    margin-top: 10px;
  }

  body.has-results .manual-open-link {
    width: auto;
    margin-top: 6px;
  }

  body.has-results .review-actions {
    margin-top: 8px;
  }

  body.has-results .review-note {
    font-size: 0.78rem;
  }

  body.has-results .review-actions {
    justify-content: flex-start;
  }

  body.has-results .inline-notice,
  body.has-results .refresh-btn {
    margin-top: 10px;
  }
}
