.restaurant-review {
  --review-surface: #fffaf1;
  --review-band: #eee5d7;
  --review-card: #f3eadc;
  --review-frame: #2b2c28;
  --review-positive: #276047;
  --review-highlight: #e8eee1;
  background: var(--paper);
}
[data-theme="dark"] .restaurant-review {
  --review-surface: #182438;
  --review-band: #151f30;
  --review-card: #202f45;
  --review-frame: #080e17;
  --review-positive: #b9e2c6;
  --review-highlight: #243b3d;
}
.review-wrap { width: min(100% - 88px, 1120px); margin-inline: auto; }
.chapter { padding-block: clamp(40px, 6vw, 82px); border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.menu-chapter { padding-top: clamp(28px, 4vw, 51px); }
.chapter-lead { margin-bottom: clamp(18px, 3vw, 34px); }
.chapter-lead h1, .chapter-lead h2, .planned h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); letter-spacing: -.061em; line-height: 1.035; text-wrap: balance; }
.chapter-lead h2, .planned h2 { font-size: clamp(1.95rem, 4vw, 3.5rem); }
.chapter-lead p, .planned p { color: var(--muted); line-height: 1.44; max-width: 77ch; margin-top: 9px; }
.menu-lead { display: flex; justify-content: space-between; align-items: end; gap: 12px 25px; }
.menu-lead h1 { max-width: 24ch; }
.menu-lead .sample-note { flex: 0 1 27ch; font-size: .875rem; }
.paired { display: grid; align-items: start; gap: clamp(18px, 4vw, 48px); }
.menu-pair, .offer-pair { grid-template-columns: minmax(0, 1.65fr) minmax(270px, .92fr); }
.order-pair { grid-template-columns: minmax(270px, .92fr) minmax(0, 1.65fr); }
.editorial-pair { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(280px, .83fr); align-items: center; gap: 26px clamp(35px, 8vw, 100px); }
.editorial-pair h2 { max-width: 15ch; }
.editorial-pair .chapter-lead p { max-width: 42ch; }
.tinted-chapter { background: var(--review-band); }
.manager-preview, .staff-preview, .guest-preview { min-width: 0; }
.guest-preview { width: min(100%, 350px); justify-self: center; }
.device-caption { min-height: 39px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; font-weight: 720; margin-bottom: 7px; }
.device-type { font-weight: 560; }
.device-choice { display: flex; align-items: center; gap: 1px; border: 0; border-radius: 999px; padding: 3px; margin: 0; min-width: 0; background: var(--review-band); }
.device-choice input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.device-choice span { display: grid; place-items: center; min-height: 34px; min-width: 63px; padding-inline: 8px; border-radius: 999px; cursor: pointer; }
.device-choice input:checked + span { background: var(--review-surface); color: var(--ink); }
.device-choice input:focus-visible + span { outline: 2px solid var(--link); outline-offset: -2px; }
.device { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 7px solid var(--review-frame); background: var(--review-surface); box-shadow: 0 9px 22px var(--device-shadow); }
.handset { min-height: 421px; border-radius: 35px; }
.tablet { min-height: 381px; border-radius: 25px; }
.device-status { display: flex; align-items: center; justify-content: space-between; position: relative; flex: 0 0 35px; padding: 0 14px; font-size: .76rem; font-weight: 800; }
.device-status i { position: absolute; left: 50%; transform: translateX(-50%); width: 72px; height: 19px; border-radius: 20px; background: #070a0c; }
.tablet .device-status i { width: 6px; height: 6px; }
.device-status b { width: 16px; height: 8px; border-radius: 2px; border: 1px solid currentColor; background: currentColor; box-shadow: inset 0 0 0 1px var(--review-surface); }
.device-home { flex: 0 0 4px; width: 82px; margin: 7px auto; border-radius: 4px; background: var(--ink); opacity: .3; }
.device-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-screen { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 9px; padding: 8px 15px 11px; font-size: .91rem; line-height: 1.4; }
.tablet .app-screen { padding-inline: clamp(12px, 2vw, 24px); }
.app-screen h2, .app-screen h3, .app-screen h4 { font-size: 1.36rem; letter-spacing: -.045em; line-height: 1.13; margin: 0; }
.app-heading { display: grid; gap: 3px; }
.app-muted { color: var(--muted); }
.app-card { display: grid; gap: 7px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); background: var(--review-card); border-radius: 12px; }
.app-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-row > *:nth-child(2) { flex-shrink: 0; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; }
.app-screen > .app-actions:last-child { margin-top: auto; }
.app-chat { align-self: flex-end; max-width: 96%; padding: 8px 11px; border-radius: 12px 12px 4px 12px; background: var(--soft); }
.app-status { color: var(--review-positive); font-size: .855rem; font-weight: 655; }
.app-status:empty, .conversation-update:empty { display: none; }
.brand-mark { display: inline-flex; gap: 6px; align-items: center; font-weight: 770; }
[data-theme="dark"] .brand-mark img { filter: brightness(0) invert(1); }
.app-title { margin-bottom: 2px; }
.restaurant-review .button { min-height: 42px; border-radius: 999px; padding: 7px 15px; font-size: .875rem; }
.restaurant-review [hidden] { display: none; }
.restaurant-review button:not(:disabled) { cursor: pointer; }
.restaurant-review button:disabled { opacity: .62; cursor: default; }
.text-action { display: inline-flex; align-items: center; min-height: 39px; width: fit-content; padding: 3px 0; border: 0; background: transparent; color: var(--link); font: inherit; font-weight: 690; text-decoration: underline; text-underline-offset: .21em; }
.hero-original { background: var(--review-surface); }
.previous-advice { color: var(--muted); }
.previous-advice .hero-dish strong, .previous-advice .hero-dish small { text-decoration: line-through; text-decoration-thickness: 1px; }
.current-advice { background: var(--review-highlight); }
.hero-dish { display: grid; grid-template-columns: 61px minmax(0, 1fr); align-items: center; gap: 10px; }
.hero-dish img { width: 61px; height: 54px; object-fit: cover; border-radius: 7px; }
.hero-dish small { display: block; margin-top: 2px; font-size: .86rem; font-variant-numeric: tabular-nums; }
.app-venue-photo { display: block; width: 100%; height: auto; max-height: 145px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 11px; }
.recommendation-card { border-inline-start: 2px solid var(--link); }
.conversation-screen { gap: 10px; }
.menu-app-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 16px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.menu-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(12px, 2vw, 24px); }
.menu-catalogue { display: grid; gap: 9px; min-width: 0; }
.menu-dishes { list-style: none; margin: 0; padding: 0; max-height: 197px; overflow: auto; scrollbar-width: thin; border: 1px solid var(--line); border-radius: 12px; }
.menu-dishes li + li { border-top: 1px solid var(--line); }
.menu-dish { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; width: 100%; min-height: 44px; padding: 6px 9px; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: start; font: inherit; }
.menu-dish[aria-pressed="true"] { background: var(--review-highlight); }
.menu-dish:focus-visible, .photo-button:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.menu-dish span { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.photo-button { display: grid; grid-template-columns: 37px minmax(0, 1fr); align-items: center; gap: 9px; width: 100%; min-height: 51px; padding: 6px; color: var(--ink); font: inherit; text-align: start; border: 1px solid var(--line); border-radius: 9px; background: var(--review-card); }
.photo-button img { width: 37px; height: 37px; object-fit: cover; border-radius: 5px; }
.photo-button small { display: block; color: var(--muted); font-size: .78rem; }
.menu-draft { display: grid; gap: 10px; align-content: start; min-width: 0; padding: clamp(10px, 1.4vw, 18px); border: 1px solid var(--line); border-radius: 12px; background: var(--review-card); }
.menu-draft-fields { display: grid; gap: 4px; }
.menu-field, .menu-check { font-weight: 650; }
.menu-field { display: grid; gap: 3px; }
.price-input, .app-screen select { max-width: 100%; min-height: 39px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--review-surface); font: inherit; }
.price-input { width: 110px; }
.app-screen select {
  appearance: none;
  padding-inline-end: 27px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.price-input[aria-invalid="true"] { border-color: var(--red); }
.app-status[data-kind="draft"] { color: var(--muted); }
.app-status[data-kind="error"] { color: var(--link); }
.app-screen input:focus-visible, .app-screen select:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.menu-check { display: inline-flex; min-height: 43px; align-items: center; gap: 8px; width: fit-content; cursor: pointer; }
.menu-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--red); }
.menu-draft .button { justify-self: start; }
.manager-preview:has([value="iphone"]:checked) .manager-tablet { width: min(100%, 350px); margin-inline: auto; border-radius: 35px; }
.manager-preview:has([value="iphone"]:checked) .device-status i { width: 72px; height: 19px; }
.manager-preview:has([value="iphone"]:checked) .menu-editor-layout { grid-template-columns: minmax(0, 1fr); }
.manager-preview:has([value="iphone"]:checked) .menu-dishes { max-height: 143px; }
.editor-callout { display: flex; align-items: center; justify-content: space-between; gap: 14px 26px; margin-top: 26px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.editor-callout h2 { font-size: clamp(1.19rem, 2.2vw, 1.52rem); letter-spacing: -.025em; }
.editor-callout p { max-width: 65ch; margin-top: 3px; color: var(--muted); }
.editor-callout a { flex-shrink: 0; }
.service-screen { gap: 12px; }
.service-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.service-label { align-self: start; padding: 4px 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; font-size: .81rem; }
.service-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.service-counts div { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--review-card); }
.service-counts dt { color: var(--muted); font-size: .8rem; }
.service-counts dd { margin: 0; font-size: 1.47rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.order-ticket > .app-row + .app-row { border-top: 1px solid var(--line); padding-top: 8px; }
.service-form, .service-summary:not([hidden]) { display: grid; gap: 10px; }
.service-form > .button { justify-self: start; }
.service-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; border: 0; min-width: 0; }
.service-times legend { margin-bottom: 6px; font-weight: 690; }
.service-times input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.service-times label > span { display: grid; place-content: center; min-height: 51px; text-align: center; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.service-times small { color: var(--muted); font-size: .77rem; }
.service-times input:checked + span { background: var(--review-highlight); border-color: var(--review-positive); }
.service-times input:focus-visible + span { outline: 2px solid var(--link); outline-offset: -3px; }
.offer-count { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; font-weight: 680; }
.service-summary progress { width: 100%; height: 8px; accent-color: var(--review-positive); }
.planned { padding-block: 35px; }
.planned-layout { display: flex; justify-content: space-between; align-items: end; gap: 14px 35px; }
.planned h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.planned p { max-width: 48ch; }
.planned .planned-label { color: var(--link); margin: 0 0 5px; font-weight: 710; font-size: .85rem; }
.review-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 25px; padding-block: 25px; }
.review-footer p { max-width: 58ch; font-size: .875rem; color: var(--muted); }
.review-footer nav { display: flex; flex-wrap: wrap; gap: 3px 14px; }
.review-footer nav a { display: inline-flex; align-items: center; min-height: 42px; color: var(--link); font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
.photo-dialog { max-width: min(calc(100% - 26px), 650px); max-height: calc(100% - 26px); padding: 12px 15px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--review-surface); color: var(--ink); }
.photo-dialog::backdrop { background: rgb(9 12 23 / .75); }
.photo-dialog img { width: 100%; height: auto; max-height: min(71vh, 590px); object-fit: contain; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 6px; }
.dialog-header h2 { font-size: 1.22rem; }

@media (max-width: 1000px) {
  .review-wrap { width: min(100% - 52px, 1120px); }
}
@media (max-width: 700px) {
  .review-wrap { width: calc(100% - 36px); }
  .paired, .editorial-pair { grid-template-columns: minmax(0, 1fr); }
  .menu-pair { gap: 20px; }
  .menu-lead, .planned-layout, .review-footer, .editor-callout { flex-direction: column; align-items: start; }
  .menu-lead .sample-note { flex: auto; margin: 0; }
  .editorial-pair .chapter-lead { margin-bottom: 0; }
  .chapter-lead h2 { text-wrap: wrap; }
}
@media (max-width: 390px) {
  .review-wrap { width: calc(100% - 28px); }
  .menu-editor-layout { grid-template-columns: minmax(0, 1fr); }
  .app-row > *:nth-child(2) { flex-shrink: 1; text-align: right; }
  .device-status { padding-inline: 11px; }
}
