.ft-app[data-phase="question"][data-view="kitchen"] .ft-kitchen,
.ft-app[data-phase="business"] .ft-kitchen {
  position: absolute;
  top: 19.2%;
  right: 3%;
  bottom: 15%;
  left: 3%;
  z-index: 5;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ft-kitchen > .ft-panel-head {
  display: block;
  position: absolute;
  inset: auto 0 -17.4% 0;
  z-index: 9;
  height: 13.5%;
  min-height: 56px;
  margin: 0;
  padding: 0 7.5%;
}

.ft-kitchen > .ft-panel-head > div:first-child {
  display: none;
}

.ft-kitchen-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 6.5%;
  width: 100%;
  height: 100%;
}

.ft-kitchen-actions .ft-growth-open-btn,
.ft-kitchen-actions .ft-chip {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 54px;
  padding: 6px 10px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: clamp(0.82rem, 1.65vw, 1.2rem);
  font-weight: 1000;
  text-shadow: 0 2px 0 rgba(2, 67, 63, 0.45);
}

.ft-kitchen-actions .ft-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.ft-kitchen-actions .ft-chip b {
  color: var(--ft-festival-gold);
}

.ft-kitchen-section-nav {
  display: none;
}

.ft-kitchen-workflow,
.ft-app[data-phase="question"][data-view="kitchen"] .ft-kitchen-workflow,
.ft-app[data-phase="business"] .ft-kitchen-workflow {
  display: grid;
  grid-template-columns: 27.5% 45.5% 25%;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 1%;
  min-height: 0;
  overflow: visible;
}

.ft-work-zone {
  min-width: 0;
  min-height: 0;
  padding: 0 6px 5px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ft-zone-head {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 5px;
  padding: 0 7px;
  color: #fff;
}

.ft-zone-head > span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ft-festival-teal-dark);
}

.ft-zone-head strong {
  color: #fff;
  font-size: clamp(0.72rem, 1.28vw, 0.96rem);
  text-shadow: 0 2px 0 rgba(3, 69, 66, 0.46);
}

.ft-zone-head small {
  display: none;
}

.ft-market,
.ft-app[data-phase="question"][data-view="kitchen"] .ft-market,
.ft-app[data-phase="business"] .ft-market {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 4px 6px;
  height: calc(100% - 49px);
  padding: 1px 3px 6px;
}

.ft-ingredient-card,
.ft-app[data-phase="question"][data-view="kitchen"] .ft-ingredient-card,
.ft-app[data-phase="business"] .ft-ingredient-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  grid-template-rows: minmax(0, 1fr) 28px;
  min-height: 0;
  padding: 4px 6px 3px;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(205, 175, 108, 0.42);
  border-radius: 10px;
  background: rgba(255, 251, 234, 0.72);
  box-shadow: none;
}

.ft-app[data-phase="question"][data-view="kitchen"] .ft-ingredient-card.ft-missing,
.ft-app[data-phase="business"] .ft-ingredient-card.ft-missing {
  border: 3px solid #c84237;
  background: #ffe1dc;
  box-shadow: inset 4px 0 #c84237;
}

.ft-app[data-phase="question"][data-view="kitchen"] .ft-ingredient-card.ft-available-not-tray,
.ft-app[data-phase="business"] .ft-ingredient-card.ft-available-not-tray {
  border: 3px solid #b86b00;
  background: #fff0b5;
  box-shadow: inset 4px 0 #b86b00;
}

.ft-app[data-phase="question"][data-view="kitchen"] .ft-ingredient-card.ft-tray-covered,
.ft-app[data-phase="business"] .ft-ingredient-card.ft-tray-covered {
  border: 3px solid #218552;
  background: #dcf5e6;
  box-shadow: inset 4px 0 #218552;
}

.ft-ingredient-card.ft-available-not-tray .ft-need-badge {
  background: #b86b00;
  color: #fff;
}

.ft-ingredient-card.ft-missing .ft-need-badge {
  background: #c84237;
  color: #fff;
}

.ft-ingredient-card.ft-tray-covered .ft-need-badge {
  background: #218552;
  color: #fff;
}

.ft-ingredient-card.ft-available-not-tray .ft-tray-btn:not(:disabled) {
  background: #8a4b00;
  color: #fff;
  box-shadow: 0 2px 0 rgba(86, 47, 0, 0.3);
}

.ft-ingredient-card.ft-missing .ft-buy-btn:not(:disabled) {
  background: #b83a31;
  color: #fff;
}

.ft-ingredient-card-header,
.ft-app[data-phase="question"][data-view="kitchen"] .ft-ingredient-card-header,
.ft-app[data-phase="business"] .ft-ingredient-card-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.ft-ingredient-card-header .ft-art {
  width: 42px;
  height: 42px;
}

.ft-ingredient-name {
  color: #17383a;
  font-size: clamp(0.76rem, 1.05vw, 0.9rem);
  font-weight: 1000;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.ft-ingredient-count {
  display: grid;
  justify-items: end;
  color: var(--ft-festival-teal-dark);
  font-size: 0.78rem;
  font-weight: 1000;
  line-height: 1;
}

.ft-ingredient-count small {
  color: #637c78;
  font-size: 0.55rem;
  font-weight: 900;
}

.ft-buy-btn {
  grid-column: 1;
  min-height: 28px;
  padding: 2px 4px;
  border: 0;
  border-radius: 7px;
  background: var(--ft-festival-teal);
  color: #fff;
  box-shadow: 0 2px 0 rgba(4, 74, 70, 0.24);
  font-size: clamp(0.66rem, 0.9vw, 0.78rem);
}

@media (orientation: landscape) and (min-width: 769px) {
  .ft-buy-btn {
    position: static;
    min-height: 28px;
    padding: 2px 4px;
    background: var(--ft-festival-teal);
    color: #fff;
    box-shadow: 0 2px 0 rgba(4, 74, 70, 0.24);
    font-size: clamp(0.66rem, 0.9vw, 0.78rem);
  }

  .ft-ingredient-card:has(.ft-buy-btn:focus-visible) {
    outline: 4px solid #1f69c9;
    outline-offset: -3px;
  }
}

.ft-tray-btn {
  grid-column: 2;
  display: grid;
  place-items: center;
  min-height: 28px;
  padding: 2px 3px;
  border: 0;
  border-radius: 7px;
  background: #e9f3ee;
  color: var(--ft-festival-teal-dark);
  box-shadow: 0 2px 0 rgba(4, 74, 70, 0.12);
  font-size: clamp(0.62rem, 0.84vw, 0.72rem);
  font-weight: 1000;
}

.ft-tray-btn:disabled,
.ft-buy-btn:disabled {
  background: #d9e1dc;
  color: #74837f;
  box-shadow: none;
}

.ft-need-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-height: 18px;
  padding: 2px 4px;
  font-size: 0.5rem;
}

.ft-prep-zone {
  display: grid;
  grid-template-rows: 44px 154px minmax(0, 1fr);
  padding: 0 12px 2px;
}

.ft-prep-focus {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 56px;
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px 6px 6px;
  color: #234a4c;
}

.ft-prep-focus .ft-art-recipe {
  align-self: center;
  width: 64px;
  height: 64px;
}

.ft-prep-focus-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ft-prep-focus-copy > span {
  color: var(--ft-festival-teal-dark);
  font-size: 0.64rem;
  font-weight: 900;
}

.ft-prep-focus-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(0.8rem, 1.35vw, 1.05rem);
  line-height: 1.12;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ft-prep-focus-needs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 4px;
  min-width: 0;
  overflow: visible;
}

.ft-prep-focus-needs .ft-need-chip {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 20px;
  gap: 2px;
  padding: 1px 4px;
  font-size: 0.55rem;
  line-height: 1;
}

.ft-prep-focus-needs .ft-need-chip .ft-art {
  width: 16px;
  height: 16px;
}

.ft-prep-focus-needs .ft-need-chip > span,
.ft-prep-focus-needs .ft-need-chip > b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-prep-ticket {
  align-self: start;
  min-width: 58px;
  padding: 6px 4px;
  color: var(--ft-festival-teal-dark);
  font-size: 0.65rem;
  text-align: center;
}

.ft-craft-area {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 10px 6px 112px;
}

.ft-subhead {
  display: none;
}

.ft-tray {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(54px, 1fr));
  align-content: start;
  gap: 6px;
  height: 100%;
  min-height: 0;
  padding: 3px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.ft-craft-guide {
  position: absolute;
  right: 4%;
  bottom: 58px;
  left: 4%;
  z-index: 4;
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 6px 12px;
  border: 2px solid #d7bd78;
  border-radius: 10px;
  background: rgba(255, 251, 232, 0.96);
  color: #426866;
  font-size: clamp(0.68rem, 1.05vw, 0.82rem);
  font-weight: 1000;
  line-height: 1.2;
  text-align: center;
}

.ft-craft-guide.missing,
.ft-craft-guide.invalid {
  border-color: #e6a59e;
  background: #fff0ed;
  color: #a23830;
}

.ft-craft-guide.ready,
.ft-craft-guide.serve-ready {
  border-color: #74c29a;
  background: #e5f8ed;
  color: #136345;
}

.ft-tray > .ft-log-row {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 10px;
  color: #55706d;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.ft-token {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
}

.ft-token > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
}

.ft-token .ft-art {
  width: clamp(64px, 6.8vw, 84px);
  height: clamp(64px, 6.8vw, 84px);
  pointer-events: none;
}

.ft-action-row {
  position: absolute;
  right: 4%;
  bottom: 3px;
  left: 4%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45%;
  gap: 7px;
}

.ft-action-row button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: var(--ft-festival-coral);
  color: #fff;
  box-shadow: 0 4px 0 rgba(132, 40, 31, 0.22);
  font-size: clamp(0.72rem, 1.25vw, 0.92rem);
}

.ft-action-row .ghost {
  background: #ebeee9;
  color: #446260;
}

.ft-dishes {
  position: absolute;
  right: 8px;
  bottom: 112px;
  display: flex;
  align-content: end;
  gap: 5px;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.ft-dish {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 58px;
  padding: 3px;
  border: 0;
  background: rgba(255, 250, 230, 0.72);
  font-size: 0;
}

.ft-dish .ft-art {
  width: 54px;
  height: 54px;
}

.ft-dish-more {
  min-height: 32px;
  color: var(--ft-festival-teal-dark);
  font-size: 0.6rem;
}

.ft-service-area {
  display: grid;
  grid-column: auto;
  grid-row: auto;
  grid-template-rows: 44px minmax(0, 1fr) 42px;
  margin: 0;
  padding: 0 8px 5px;
  border: 0;
}

.ft-service-head .ft-chip {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ft-festival-teal-dark);
  font-size: 0.65rem;
}

.ft-service-area .ft-orders-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  padding: 3px;
  overflow: hidden;
}

.ft-order {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 126px auto auto minmax(0, 1fr) 48px;
  align-content: start;
  gap: 5px;
  width: auto;
  min-width: 0;
  padding: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 250, 230, 0.28);
}

.ft-order[hidden] {
  display: none !important;
}

.ft-order.leaving-soon {
  border: 3px solid var(--ft-festival-coral);
  background: rgba(255, 232, 226, 0.7);
}

.ft-order.selected {
  outline: 3px solid var(--ft-festival-gold);
  outline-offset: -3px;
}

.ft-order-portrait,
.ft-art-customer {
  grid-row: 1;
  justify-self: center;
  width: 120px;
  height: 120px;
}

.ft-order-head,
.ft-order-items,
.ft-order-needs,
.ft-order .ft-serve-btn {
  grid-column: 1;
}

.ft-order-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  font-size: 0.8rem;
}

.ft-order-head strong {
  font-size: 0.72rem;
}

.ft-patience {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #356864;
  font-size: 0.62rem;
  font-weight: 1000;
}

.ft-patience progress {
  width: 100%;
  height: 9px;
  accent-color: var(--ft-festival-teal);
}

.ft-patience.warning progress {
  accent-color: var(--ft-festival-gold);
}

.ft-patience.danger {
  color: #a72923;
}

.ft-patience.danger progress {
  accent-color: var(--ft-festival-coral);
}

.ft-order-items {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  font-size: 0.72rem;
}

.ft-order-recipe {
  display: grid;
  justify-items: center;
  gap: 1px;
}

.ft-order-recipe .ft-art {
  width: 48px;
  height: 48px;
}

.ft-order-needs {
  align-content: start;
  justify-content: center;
  gap: 3px;
  margin: 0;
  overflow: hidden;
}

.ft-need-chip {
  min-height: 24px;
  padding: 2px 6px;
  border-radius: 7px;
  font-size: 0.62rem;
}

.ft-need-chip .ft-art {
  width: 19px;
  height: 19px;
}

.ft-serve-btn {
  align-self: end;
  min-height: 46px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: var(--ft-festival-teal);
  color: #fff;
  box-shadow: 0 4px 0 rgba(4, 74, 70, 0.2);
}

.ft-order-pager {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 6px;
  padding: 3px 12%;
}

.ft-order-pager[hidden] {
  display: none !important;
}

.ft-order-pager button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: var(--ft-festival-teal);
  color: #fff;
  font-weight: 900;
}

.ft-order-pager button:disabled {
  background: #d7ded8;
  color: #71817f;
}

.ft-order-pager span {
  color: var(--ft-festival-teal-dark);
  font-weight: 1000;
  text-align: center;
}

.ft-order-empty {
  grid-column: 1 / -1;
  align-self: center;
  min-height: 200px;
  border: 0;
  background: transparent;
}
