body:has(.workspace, .food-menu) {
  --ink: #202d29;
  --paper: #fff;
  --muted: #616e66;
  --line: #dce2db;
  background: #f4f6f3;
  color: var(--ink);
  min-height: 100vh;
}
body:has(.workspace, .food-menu) > header {
  max-width: none;
  height: 62px;
  min-height: 62px;
  padding: 0 clamp(16px, 3vw, 44px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
body:has(.workspace, .food-menu) > header::after {
  display: none;
}
body:has(.workspace, .food-menu) .brand-name {
  font-size: 24px;
}
body:has(.workspace, .food-menu) .brand img {
  width: 30px;
  height: 30px;
}
.workspace {
  max-width: none;
  padding: 0;
  --red: #a93825;
  --display: var(--sans);
}
.ws-grid {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: calc(100vh - 62px);
}
.ws-rail {
  background: #173a30;
  color: #fff;
  padding: 28px 14px;
  min-width: 0;
}
.ws-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 6px 23px;
  margin-bottom: 19px;
  border-bottom: 1px solid #ffffff30;
}
.ws-identity > svg {
  width: 37px;
  height: 37px;
  flex: none;
  background: #315648;
  border-radius: 10px;
  padding: 8px;
  color: #e9f1c4;
}
.ws-identity strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ws-rail nav {
  display: grid;
  justify-content: stretch;
  gap: 6px;
}
.ws-rail nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 41px;
  padding: 9px 12px;
  border-radius: 7px;
  color: #e0e9df;
  font: 550 14px/1.3 var(--sans);
  text-decoration: none;
}
.ws-rail nav a:hover,
.ws-rail nav a:focus-visible {
  background: #294e41;
  color: #fff;
}
.ws-rail nav a[aria-current] {
  background: #daebac;
  color: #163a2d;
  font-weight: 750;
}
.ws-content {
  min-width: 0;
  padding: clamp(20px, 3.1vw, 50px);
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
}
.ws-content h1,
.ws-content h2,
.ws-content h3 {
  font-family: var(--sans);
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.ws-content h1 {
  font-size: clamp(28px, 2.7vw, 40px);
  margin: 0;
  font-weight: 730;
}
.ws-content h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 720;
}
.ws-content h3 {
  font-size: 16px;
}
.ws-path,
.ws-bottom {
  color: #5a6961;
  font-size: 13px;
}
.ws-path span {
  margin: 0 7px;
  color: #849587;
}
.ws-heading,
.ws-bottom,
.ws-card > .toolbar,
.ws-content .room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ws-heading {
  margin: 10px 0 22px;
}
.ws-content :is(button, .btn) {
  border-radius: 8px;
  border-color: #cfd8d1;
  font-size: 13px;
  min-height: 36px;
}
.ws-content :is(.btn, button).primary {
  border-color: var(--red);
}
.ws-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.ws-stat,
.ws-card,
.ws-content .panel,
.food-basket {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.ws-stat {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ws-stat > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #315d45;
  background: #e4efd9;
}
.ws-stat:nth-child(2) > span {
  color: #98472e;
  background: #fae8df;
}
.ws-stat:nth-child(3) > span {
  color: #49587c;
  background: #e9edf8;
}
.ws-stat small,
.ws-stat b,
.inv-product small {
  display: block;
}
.ws-stat b {
  font-size: 26px;
  line-height: 1.2;
}
.ws-card {
  padding: 20px;
  margin-bottom: 15px;
}
.ws-card > h2 {
  margin-bottom: 10px;
}
.ws-card > p {
  margin-bottom: 14px;
}
.ws-content .panel {
  padding: 18px;
}
.catalog-tools,
.food-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-tools {
  padding: 15px 0;
}
.catalog-tools label,
.food-toolbar label {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
}
.catalog-tools label svg,
.food-toolbar label svg {
  position: absolute;
  left: 12px;
  color: #607168;
  width: 17px;
}
.catalog-tools input,
.catalog-tools select,
.food-toolbar input {
  min-height: 38px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fafbf9;
  font-size: 14px;
  color: var(--ink);
  margin: 0;
}
.catalog-tools input,
.food-toolbar input {
  padding: 8px 10px 8px 38px;
}
.catalog-tools select {
  width: auto;
  padding: 6px 28px 6px 10px;
}
.inv-labels,
.inv-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1fr) minmax(72px, 0.24fr) minmax(94px, 0.28fr)
    62px;
  gap: 10px;
  align-items: center;
}
.inv-labels {
  background: #f1f4ef;
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: #5f6c61;
  font-weight: 650;
}
.inv-row {
  padding: 13px 10px;
  border-bottom: 1px solid #e8ece7;
  font-size: 14px;
}
.inv-row:last-child {
  border: 0;
}
.inv-row .mini {
  min-height: 32px;
  padding: 5px 9px;
}
.inv-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.inv-thumb {
  width: 48px;
  height: 48px;
  background: #edf0e8;
  color: #58705c;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.inv-thumb img,
.dish-side img,
.food-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inv-product small {
  font-size: 12px;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  border-radius: 100px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
  background: #f3e4de;
  color: #893621;
}
.availability.on {
  background: #e6f2e4;
  color: #315d3c;
}
.availability::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ws-content .room-grid,
#pre-orders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}
.ws-content .room-head {
  margin: 0 0 20px;
}
.ws-content .room-head .kicker {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #56695c;
}
.ws-content .chips {
  margin-bottom: 18px;
}
.ws-content #room-content,
.ws-content #pre-body {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(14px, 2vw, 26px);
  margin-top: 16px;
}
#room-content > .toolbar {
  margin-bottom: 16px;
}
.queue-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.queue-stages .chosen {
  background: #244d3d;
  color: #fff;
}
.ws-content .room-ticket {
  border-top: 3px solid #c08637;
}
.ws-content .room-ticket[data-stage="preparing"] {
  border-top-color: #437b9b;
}
.ws-content .room-ticket[data-stage="ready"] {
  border-top-color: #488758;
}
#pre-orders .entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  flex-wrap: wrap;
}
.empty-list {
  padding: 20px 0;
  color: #58695d;
}
.food-menu {
  max-width: 1250px;
  padding: 22px clamp(12px, 3vw, 44px) 54px;
  --display: var(--sans);
}
.food-identity {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.food-banner {
  height: clamp(125px, 15vw, 200px);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--red), #151c16 45%),
    var(--red)
  );
  overflow: hidden;
}
.food-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.food-info {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 24px 22px;
}
.food-mark {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--red);
  color: white;
  overflow: hidden;
}
.food-mark svg {
  width: 36px;
  height: 36px;
}
.food-service {
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
}
.food-info h1 {
  font: 750 clamp(22px, 2.5vw, 38px) / 1.12 var(--sans);
  letter-spacing: -0.045em;
  margin: 4px 0 6px;
  overflow-wrap: anywhere;
}
.food-info p {
  font-size: 14px;
  color: #59655b;
  margin: 0;
  max-width: 70ch;
}
.food-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.menu-tool {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--red);
  text-decoration: none;
  border-radius: 8px;
  padding: 7px 11px;
  border: 1px solid #d9ded8;
  font-size: 13px;
  font-weight: 650;
}
.food-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.37fr);
  align-items: start;
  margin-top: 26px;
}
.food-catalog {
  min-width: 0;
}
.food-toolbar h2,
.food-basket-title h2 {
  font-family: var(--sans);
  font-size: 24px;
  letter-spacing: -0.04em;
  margin: 0;
}
.food-cats {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 8px 3px;
  margin: 6px -3px 12px;
}
.food-cats button {
  border: 1px solid #cfd7cf;
  border-radius: 20px;
  background: white;
  white-space: nowrap;
  padding: 7px 15px;
  font: 650 13px/1.25 var(--sans);
  min-height: 36px;
}
.food-cats [aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.food-group {
  margin-bottom: 21px;
}
.food-group h3 {
  font: 720 18px/1.3 var(--sans);
  margin: 0 0 9px;
  letter-spacing: -0.025em;
}
.food-group > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 10px;
}
.dish {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}
.dish-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
  justify-content: center;
}
.dish-copy h4 {
  font: 730 17px/1.25 var(--sans);
  margin: 0 0 4px;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.dish-copy p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 10px;
  color: #59645b;
  overflow-wrap: anywhere;
}
.dish-copy strong {
  font-size: 15px;
  color: var(--red);
}
.dish-side {
  position: relative;
  flex: none;
  align-self: center;
  display: grid;
  place-items: end;
  min-width: 36px;
  min-height: 44px;
}
.dish-side img {
  width: 100px;
  height: 90px;
  border-radius: 9px;
}
.dish-add {
  min-height: 36px;
  width: 36px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font: 500 25px/1 var(--sans);
}
.dish-add:hover {
  background: var(--red-hover);
  color: white;
}
.dish-side img + :is(.dish-add, .sold) {
  position: absolute;
  right: -3px;
  bottom: -3px;
}
.sold {
  font-size: 12px;
  background: #f2eee8;
  color: #614c40;
  border-radius: 5px;
  padding: 4px;
}
.food-basket {
  padding: 20px;
  position: sticky;
  top: 16px;
}
.food-basket-title {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.food-basket-title h2 {
  font-size: 19px;
}
#basket > p {
  margin: 15px 0 0;
}
.profile-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.profile-fields legend {
  font-weight: 700;
  margin-bottom: 8px;
}
.profile-radio,
.profile-option {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-radio label,
.profile-option {
  padding: 10px 12px;
  border: 1px solid #d8dcd5;
  border-radius: 9px;
  cursor: pointer;
  background: #fff;
}
.profile-radio label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin: 0;
}
.profile-fields input {
  width: 17px;
  min-height: 17px !important;
  height: 17px;
  margin: 0;
  accent-color: #326043;
}
.profile-option {
  margin-bottom: 6px;
  gap: 12px;
}
.profile-option span {
  flex: 1;
}
.profile-option svg {
  flex: none;
  color: #44614a;
}
.profile-option strong,
.profile-option small {
  display: block;
}
.profile-option small {
  font-weight: 400;
  line-height: 1.35;
}
.profile-fields label:has(input:checked) {
  border-color: #688864;
  background: #f1f6ec;
}
.profile-back {
  margin-bottom: 12px;
}
@media (max-width: 850px) {
  .ws-grid {
    grid-template-columns: 155px minmax(0, 1fr);
  }
  .ws-rail {
    padding: 18px 8px;
  }
  .ws-content {
    padding: 20px 14px;
  }
  .ws-stat {
    padding: 12px;
    gap: 8px;
  }
  .ws-stat > span {
    width: 30px;
    height: 30px;
  }
  .food-info {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .food-tools:not(:empty) {
    grid-column: 2;
  }
  .food-tools:empty {
    display: none;
  }
  .food-layout {
    gap: 14px;
  }
}
@media (max-width: 700px) {
  body:has(.workspace, .food-menu) > header {
    height: 52px;
    min-height: 52px;
  }
  body:has(.workspace, .food-menu) .brand-name {
    font-size: 21px;
  }
  body:has(.workspace, .food-menu) .brand img {
    width: 26px;
    height: 26px;
  }
  .ws-grid {
    display: block;
  }
  .ws-rail {
    padding: 10px 12px;
  }
  .ws-identity {
    padding: 0;
    margin: 0 0 8px;
    border: 0;
  }
  .ws-identity > svg {
    width: 23px;
    height: 23px;
    padding: 4px;
  }
  .ws-rail nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: auto;
    gap: 4px;
    padding: 3px;
  }
  .ws-rail nav a {
    font-size: 12px;
    min-height: 34px;
    white-space: nowrap;
    gap: 5px;
    padding: 6px 9px;
  }
  .ws-rail nav svg {
    width: 15px;
    height: 15px;
  }
  .ws-content {
    padding: 16px 12px;
  }
  .ws-heading {
    margin-bottom: 15px;
  }
  .ws-stats {
    gap: 6px;
    margin-bottom: 12px;
  }
  .ws-stat {
    display: block;
    padding: 10px;
  }
  .ws-stat > span {
    display: none;
  }
  .ws-stat b {
    font-size: 22px;
  }
  .ws-stat small {
    font-size: 12px;
  }
  .ws-card {
    padding: 12px;
  }
  .catalog-tools {
    gap: 6px;
  }
  .catalog-tools label,
  .catalog-tools select {
    flex: 1;
    min-width: 115px;
  }
  .catalog-tools input {
    width: 100%;
    min-width: 0;
  }
  .inv-labels {
    display: none;
  }
  .inv-row {
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    padding: 12px 0;
  }
  .inv-product {
    grid-row: span 2;
  }
  .inv-row > b,
  .inv-row > .availability {
    justify-self: end;
  }
  .inv-row > button {
    grid-column: 1/-1;
    justify-self: end;
  }
  .food-menu {
    padding: 0 0 80px;
  }
  .food-identity {
    border-radius: 0 0 17px 17px;
    border-top: 0;
  }
  .food-banner {
    height: 126px;
  }
  .food-info {
    padding: 13px 15px 15px;
    gap: 8px 11px;
  }
  .food-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .food-mark svg {
    width: 26px;
    height: 26px;
  }
  .food-info h1 {
    font-size: 23px;
  }
  .food-info p {
    font-size: 13px;
  }
  .food-tools:not(:empty) {
    grid-column: 1/-1;
  }
  .food-layout {
    display: block;
    margin: 16px 12px;
  }
  .food-basket {
    position: static;
    margin-top: 16px;
    scroll-margin-top: 12px;
  }
  .food-toolbar {
    gap: 8px;
  }
  .food-toolbar label {
    flex: 1;
    max-width: 200px;
  }
  .food-toolbar input {
    width: 100%;
    min-width: 0;
  }
  .food-group > div {
    grid-template-columns: 1fr;
  }
  .food-menu .mobile-cart:not([hidden]) {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    border-radius: 12px;
    background: var(--red);
    color: white;
    z-index: 5;
    padding: 12px;
    font-weight: 700;
  }
}

.ws-grid:has(.ws-rail nav:empty) {
  grid-template-columns: 1fr;
}
.ws-rail:has(nav:empty) {
  display: none;
}
.food-banner:not(:has(img)) {
  height: 84px;
}
.food-layout:has(.food-basket[hidden]) {
  grid-template-columns: 1fr;
}
.table-entry {
  max-width: 560px;
  padding: 28px 16px;
}
.table-entry-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #d7ded7;
  background: white;
}
.table-cover {
  width: 100%;
  height: 155px;
  object-fit: cover;
}
.table-entry-body {
  padding: 22px;
}
.table-entry h1 {
  font: 750 32px/1.15 var(--sans);
  letter-spacing: -0.04em;
  margin: 6px 0;
}
