:root {
  --ink: #111111;
  --muted: #5e5e5e;
  --line: #ded7c2;
  --paper: #fff8d8;
  --panel: #ffffff;
  --accent: #ffd21f;
  --accent-2: #111111;
  --danger: #b91c1c;
  --shadow: 0 16px 42px rgba(17, 17, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #0d0d0c;
}

body.home-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.home-active main,
body.home-active #homeView {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.home-active .site-footer {
  position: fixed;
  z-index: 5;
  right: 16px;
  bottom: 7px;
  left: 16px;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(280px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 10px max(22px, calc((100vw - 1280px) / 2 + 22px));
  border-bottom: 1px solid rgba(255, 210, 31, 0.22);
  background: linear-gradient(180deg, rgba(18, 18, 17, 0.98), rgba(12, 12, 11, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  color: var(--accent);
  background: #111;
  font-weight: 800;
}

.logo-mark {
  width: 76px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 31, 0.58);
  border-radius: 8px;
  background: #fff;
}

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

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.1;
  white-space: nowrap;
  color: #f7cf38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.brand span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

#dataSource {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.brand .version-tag {
  display: inline;
  color: #f7cf38;
  font-size: 11px;
  font-weight: 700;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.brand .version-tag.is-connected {
  color: #4db6ac;
}

.brand .version-tag.is-offline {
  color: #c1121f;
}

.tabs,
.sheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs {
  justify-content: flex-end;
  grid-column: 2;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.tab,
.sheet-tab,
button,
.button-link {
  min-height: 38px;
  border: 2px solid #111;
  border-radius: 7px;
  padding: 8px 11px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.topbar .tab {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 8px 8px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-weight: 600;
  white-space: nowrap;
}

.topbar .tab.is-active {
  color: #f7cf38;
  background: transparent;
  box-shadow: inset 0 -2px 0 #f7cf38;
}

.topbar .tab[data-view="booking"] {
  border-radius: 12px;
  padding: 12px 20px;
  color: #111;
  background: #ffd21f;
  box-shadow: 0 10px 24px rgba(255, 210, 31, 0.24);
}

.topbar .admin-tab {
  color: rgba(255, 255, 255, 0.68);
}

.tab.is-active,
.sheet-tab.is-active,
button:not(.ghost) {
  color: var(--accent);
  border-color: #111;
  background: #111;
}

.ghost {
  background: #fff9cf;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    url("catering-hero-clean.png") center center / cover no-repeat,
    #111;
  box-shadow: 0 26px 70px rgba(17, 17, 17, 0.24);
}

.hero::after {
  content: none;
}

.hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(54px, 12vw, 300px);
  top: clamp(26px, 4.2vh, 48px);
  max-width: min(720px, 54vw);
  color: #fff;
}

.hero-copy p,
.hero-copy h1,
.hero-copy small {
  margin: 0;
}

.hero-copy p {
  display: block;
  margin-top: clamp(8px, 1.2vh, 16px);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(21px, 1.8vw, 30px);
  font-weight: 500;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(76px, 7.6vw, 122px);
  line-height: 0.9;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:nth-child(2) {
  color: #ffd044;
}

.cream-title-art {
  width: min(560px, 48vw);
  margin: -36px 0 -38px -24px;
}

.cream-title-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.38));
}

.hero-rule {
  width: min(420px, 72vw);
  height: 1px;
  margin-top: clamp(8px, 1.1vh, 14px);
  background: linear-gradient(90deg, #ffd044, rgba(255, 208, 68, 0.12));
}

.hero-copy small {
  display: block;
  max-width: 560px;
  margin-top: clamp(6px, 1vh, 10px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.55;
}

.seo-summary {
  display: grid;
  gap: 4px;
  max-width: 650px;
  margin-top: clamp(6px, 1vh, 12px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(12px, 0.86vw, 14px);
  line-height: 1.45;
}

.seo-summary strong {
  color: #ffd044;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(10px, 1.4vh, 18px);
}

.hero-actions button {
  min-width: 156px;
  border-color: rgba(255, 210, 31, 0.88);
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero-actions button:not(.ghost) {
  color: #111;
  border-color: var(--accent);
  background: var(--accent);
}

.hero-actions .ghost {
  color: #fff9d7;
  background: rgba(17, 17, 17, 0.36);
  backdrop-filter: blur(8px);
}

.view {
  display: none;
  margin-top: 0;
}

.view.is-active {
  display: block;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 0;
  align-items: stretch;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #f7edc8;
}

.hero + .home-grid {
  margin-top: 0;
}

.intro,
.service-list,
.menu-panel {
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.intro {
  display: grid;
  align-content: center;
  min-height: 190px;
  padding: 36px max(28px, calc((100vw - 1180px) / 2 + 28px));
}

.intro h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
}

.intro p {
  max-width: 680px;
  font-size: 17px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.service-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-left: 0;
  border-right: 0;
}

.service-list article {
  display: grid;
  gap: 5px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.service-list article:last-child {
  border-bottom: 0;
}

.service-list strong {
  font-size: 18px;
}

.service-list span {
  color: var(--muted);
}

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

.package-card,
.menu-card {
  border: 2px solid #111;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.package-card {
  display: grid;
  gap: 12px;
}

.package-card h3,
.menu-card h3 {
  margin: 0;
  font-size: 18px;
}

.package-price {
  font-size: 28px;
  font-weight: 850;
  color: #111;
}

.package-card p,
.menu-card p {
  margin: 0;
}

.menu-panel {
  margin-top: 16px;
  padding: 18px;
}

.package-menu-detail {
  margin-top: 16px;
  padding: 18px;
}

.package-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid #111;
  padding-bottom: 14px;
}

.package-detail-head h2,
.package-detail-head p {
  margin: 0;
}

.package-detail-head p {
  margin-top: 6px;
  font-weight: 850;
}

.detail-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.detail-menu-item {
  border: 2px solid #ece2bd;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.menu-grid {
  margin-top: 14px;
}

.menu-card {
  box-shadow: none;
}

.menu-card p {
  margin-top: 8px;
  font-size: 14px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: stretch;
}

.about-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px;
}

.about-panel h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
}

.about-panel p {
  max-width: 780px;
  margin: 0;
  font-size: 17px;
}

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

.about-points article,
.about-info-grid article {
  display: grid;
  gap: 6px;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 14px;
  background: #fff8cf;
}

.about-points span,
.about-info-grid span {
  color: var(--muted);
  font-size: 14px;
}

.about-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-map-card {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  overflow: hidden;
}

.about-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.map-note {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-top: 2px solid #111;
  background: #111;
  color: var(--accent);
}

.map-note span {
  color: rgba(255, 210, 31, 0.76);
  font-size: 14px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.panel {
  border: 2px solid #111;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.order-panel {
  padding: 22px;
}

.panel-head,
.backend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 22px;
}

p {
  color: var(--muted);
}

.panel-head p,
.backend-head p {
  margin: 5px 0 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  color: #111;
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

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

.booking-steps {
  display: grid;
  gap: 16px;
}

.form-section {
  margin: 0;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 250, 218, 0.76);
}

.form-section legend {
  padding: 0 8px;
  color: #111;
  font-weight: 850;
}

.conditional-menu {
  display: grid;
  gap: 14px;
  border: 2px dashed #111;
  border-radius: 8px;
  padding: 14px;
  background: #fffdf0;
}

.select-all-inline {
  align-self: end;
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 10px 12px;
  background: #111;
  color: #ffd21f;
  cursor: pointer;
}

.select-all-inline input {
  width: 18px;
  height: 18px;
}

.conditional-menu.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.conditional-menu-head {
  display: grid;
  gap: 4px;
}

.conditional-menu-head strong {
  font-size: 17px;
}

.conditional-menu-head span {
  color: var(--muted);
  font-size: 14px;
}

.menu-checklist {
  display: grid;
  gap: 10px;
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 2px solid #ece2bd;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: #111;
  font-weight: 650;
}

.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  width: 18px;
  height: 18px;
}

.check-row.other-row {
  grid-template-columns: 22px auto minmax(160px, 1fr);
}

.other-input {
  padding: 8px 10px;
}

label {
  display: grid;
  gap: 7px;
  color: #44382f;
  font-weight: 700;
  font-size: 14px;
}

.form-help {
  border: 2px solid #111;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff0a3;
  color: #111;
  font-weight: 800;
}

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

input,
select,
textarea {
  width: 100%;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(255, 210, 31, 0.65);
}

.wide {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.summary {
  padding: 18px;
}

.summary dl {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 2px solid #ece2bd;
  padding-bottom: 10px;
}

.summary dt {
  color: var(--muted);
}

.summary dd {
  margin: 0;
  font-weight: 800;
}

.note {
  margin: 0;
  padding: 11px;
  border-radius: 8px;
  background: #fff0a3;
  color: #111;
  font-size: 14px;
}

.track-result {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.track-result.empty {
  padding: 12px;
  border-radius: 8px;
  background: #fff0a3;
}

.track-result.empty p {
  margin: 0;
}

.track-result .order-code {
  display: inline-flex;
  width: fit-content;
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--accent);
  background: #111;
  font-weight: 800;
}

.track-result dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.track-result dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #ece2bd;
  padding-bottom: 8px;
}

.track-result dt {
  color: var(--muted);
}

.track-result dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.order-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.confirm-block {
  display: grid;
  gap: 14px;
}

.confirm-section,
.notice-box,
.confirm-check {
  border: 2px solid #111;
  border-radius: 8px;
  padding: 14px;
  background: #fffdf0;
}

.confirm-section h3,
.notice-box h3 {
  margin: 0 0 10px;
}

.confirm-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.confirm-list div {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  border-bottom: 2px solid #ece2bd;
  padding-bottom: 8px;
}

.confirm-list dt {
  color: var(--muted);
}

.confirm-list dd {
  margin: 0;
  font-weight: 800;
  white-space: pre-wrap;
}

.menu-item-list,
.compact-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  white-space: normal;
}

.menu-item-list li,
.compact-list li {
  line-height: 1.35;
}

.compact-list {
  min-width: 240px;
  font-size: 13px;
}

.notice-box {
  margin-top: 14px;
  background: #fff0a3;
}

.notice-box ul {
  margin: 0;
  padding-left: 18px;
}

.terms-box {
  display: grid;
  gap: 12px;
  background: rgba(255, 253, 237, 0.96);
}

.terms-intro {
  border-bottom: 2px solid #111;
  padding-bottom: 10px;
}

.terms-intro p {
  margin: 0;
}

.terms-section {
  border: 1px solid #d9c466;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.terms-section h4 {
  margin: 0 0 8px;
  color: #111;
  font-size: 16px;
}

.terms-section p {
  margin: 0 0 8px;
}

.terms-section ul,
.terms-section ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.terms-section li {
  line-height: 1.45;
}

.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: #111;
  font-size: 15px;
}

.confirm-check input {
  width: 18px;
  margin-top: 2px;
}

.mini-button {
  min-height: 32px;
  padding: 6px 9px;
  white-space: nowrap;
  font-size: 13px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-button {
  background: var(--danger);
  color: #fff;
}

.success-button {
  background: #006b5f;
  color: #fff;
}

.muted-action {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compact-number {
  min-height: 34px;
  padding: 6px 8px;
  width: 110px;
}

.backend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 14px;
}

.backend-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sheet-panel {
  margin-top: 12px;
  overflow: hidden;
}

.admin-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0;
  padding: 16px;
}

.order-tools,
.purchase-tools,
.marketing-tools {
  display: grid;
  gap: 14px;
  margin: 12px 0;
  padding: 16px;
}

.order-tools-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.order-tools-head h3 {
  margin: 0;
  font-size: 18px;
}

.order-tools-head p {
  margin: 5px 0 0;
}

.order-filter-grid {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(170px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.order-tool-actions {
  align-items: end;
}

.purchase-ai-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.purchase-upload-card {
  display: grid;
  gap: 12px;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 253, 237, 0.92);
}

.purchase-preview {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.purchase-form textarea {
  resize: vertical;
}

.admin-tool-form {
  display: grid;
  align-content: start;
  gap: 12px;
}

.admin-tool-form h3 {
  margin: 0;
  font-size: 18px;
}

.compact-grid {
  gap: 10px;
}

.admin-tool-form button {
  width: fit-content;
}

.ingredient-addon {
  border-top: 2px solid #111;
  margin-top: 14px;
  padding: 14px 0 2px;
}

.ingredient-addon-body {
  border: 2px solid #111;
  border-radius: 8px;
  margin-top: 12px;
  padding: 14px;
  background: rgba(255, 253, 237, 0.92);
}

.recipe-line-list {
  display: grid;
  gap: 10px;
}

.menu-recipe-form {
  border-top: 2px dashed #d9c466;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
}

.menu-recipe-form h3 {
  margin: 0;
  font-size: 17px;
}

.menu-info-form {
  border: 2px solid #111;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: #fffdf0;
}

.menu-info-form h3 {
  margin: 0;
  font-size: 17px;
}

.recipe-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.35fr) auto;
  gap: 10px;
  align-items: end;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 2px solid #111;
  border-radius: 8px;
  background: #111;
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.compact-tags {
  gap: 6px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 2px solid #ece2bd;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  background: #111;
  color: var(--accent);
}

tbody tr:hover {
  background: #fff6bf;
}

.recipe-summary-row {
  cursor: pointer;
}

.recipe-summary-row td:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-summary-row.is-open {
  background: #fff0a3;
}

.recipe-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recipe-tags span,
.recipe-ready,
.recipe-pending {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.recipe-tags span {
  color: #111;
  background: #ffe266;
}

.recipe-ready {
  color: #fff;
  background: #005f5b;
}

.recipe-pending {
  color: #fff;
  background: #c1121f;
}

.recipe-detail-row.is-hidden {
  display: none;
}

.recipe-detail-row td {
  background: #fffdf0;
  padding: 0;
}

.recipe-inner-table {
  min-width: 0;
}

.recipe-inner-table th {
  position: static;
}

.recipe-empty {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: #111;
  background: #fff8c7;
}

.recipe-empty span {
  color: var(--muted);
}

.money,
.number {
  text-align: right;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--accent);
  background: #111;
  box-shadow: var(--shadow);
  transition: 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(33, 26, 22, 0.42);
}

.modal.is-visible {
  display: grid;
}

.modal-panel {
  width: min(420px, 100%);
  border: 2px solid #111;
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-panel-wide {
  width: min(880px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
}

.modal-panel.customer-edit .admin-only {
  display: none;
}

.edit-price-note {
  margin-top: 14px;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff0a3;
  color: #111;
  font-weight: 800;
}

.modal-panel p {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .admin-tools {
    grid-template-columns: 1fr;
  }

  .order-tools-head {
    flex-direction: column;
  }

  .order-filter-grid {
    grid-template-columns: 1fr;
  }

  .purchase-ai-grid {
    grid-template-columns: 1fr;
  }

  .order-tool-actions button {
    flex: 1 1 150px;
  }

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

  .icon-button {
    width: 100%;
  }

  .panel-head,
  .backend-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 0;
    padding: 8px 12px 10px;
    overflow: hidden;
  }

  .brand {
    width: 100%;
    gap: 9px;
  }

  .logo-mark {
    flex: 0 0 58px;
    width: 58px;
    height: 32px;
    border-radius: 6px;
  }

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

  .brand strong {
    gap: 6px;
    max-width: 100%;
    font-size: 16px;
    white-space: normal;
  }

  .brand .version-tag {
    flex: 0 0 auto;
    font-size: 9px;
  }

  .tabs {
    display: grid;
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .topbar .tab,
  .topbar .tab[data-view="booking"] {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    border-radius: 5px;
    padding: 5px 2px;
    font-size: 11px;
    line-height: 1.12;
    white-space: normal;
  }

  .topbar .tab.is-active {
    box-shadow: inset 0 -2px 0 #f7cf38;
  }

  .home-grid,
  .about-layout,
  .workspace,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .about-info-grid {
    grid-template-columns: 1fr;
  }

  .package-grid,
  .menu-grid,
  .detail-menu-list {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    top: clamp(18px, 4vh, 34px);
    bottom: auto;
    width: auto;
    max-width: none;
  }

  .hero {
    height: 100%;
    min-height: 0;
    background-position: 62% center;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 8, 7, 0.9) 0%, rgba(8, 8, 7, 0.66) 68%, rgba(8, 8, 7, 0.3) 100%);
    pointer-events: none;
  }

  .hero-copy h1 {
    font-size: 52px;
    line-height: 0.92;
  }

  .cream-title-art {
    width: min(315px, 88vw);
    margin: -32px 0 -24px -12px;
  }

  .hero-rule {
    width: min(280px, 82%);
    margin-top: 14px;
  }

  .hero-copy p {
    margin-top: 14px;
    font-size: 19px;
    line-height: 1.25;
  }

  .hero-copy small {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.5;
  }

  .seo-summary {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.35;
  }

  .seo-summary strong {
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 14px;
  }

  .hero-actions button {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 9px 6px;
    font-size: 13px;
    line-height: 1.2;
  }

  .hero-actions button:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .brand strong {
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-actions button {
    font-size: 12px;
  }
}
