.kitchen-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 0%, rgba(215, 25, 32, 0.13), transparent 28rem),
    #f8f4ef;
}

.kitchen-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 12px clamp(16px, 3vw, 42px);
  color: #fff;
  background: #8f1117;
  box-shadow: 0 6px 20px rgba(68, 11, 11, 0.24);
}

.kitchen-brand,
.kitchen-summary,
.kitchen-counter,
.kitchen-order-header,
.kitchen-order-meta,
.kitchen-pizza-main,
.kitchen-pizza-actions,
.kitchen-notice {
  display: flex;
  align-items: center;
}

.kitchen-brand {
  gap: 12px;
  min-width: max-content;
}

.kitchen-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #d71920;
}

.kitchen-brand-mark svg {
  width: 26px;
  height: 26px;
}

.kitchen-brand p,
.kitchen-brand h1,
.kitchen-queue-heading p,
.kitchen-queue-heading h2,
.kitchen-order h3,
.kitchen-pizza p,
.kitchen-pizza h4,
.kitchen-notice h2,
.kitchen-notice p {
  margin: 0;
}

.kitchen-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kitchen-brand h1 {
  font-size: clamp(22px, 2.7vw, 31px);
  line-height: 1.05;
}

.kitchen-summary {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.kitchen-counter {
  gap: 7px;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--ink);
  background: #fff;
  border-radius: 10px;
}

.kitchen-counter svg {
  width: 19px;
  height: 19px;
  color: var(--red);
}

.kitchen-counter span {
  font-size: 12px;
  font-weight: 800;
}

.kitchen-counter strong {
  margin-left: 2px;
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

#kitchenSyncStatus {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#kitchenClock {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.kitchen-panel-link,
.kitchen-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
}

.kitchen-panel-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.kitchen-panel-link svg {
  width: 17px;
  height: 17px;
}

.kitchen-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 38px) clamp(14px, 2.5vw, 28px) 46px;
}

.kitchen-queue-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.kitchen-eyebrow {
  margin-bottom: 4px !important;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kitchen-queue-heading h2 {
  color: var(--ink);
  font-size: clamp(24px, 3.3vw, 38px);
  line-height: 1.08;
}

.kitchen-queue-heading > p {
  max-width: 370px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
}

.kitchen-queue {
  display: grid;
  gap: 14px;
}

.kitchen-order {
  overflow: hidden;
  background: #fff;
  border: 1px solid #ead9d0;
  border-left: 7px solid var(--amber);
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(81, 38, 22, 0.09);
}

.kitchen-order-header {
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px 13px;
  border-bottom: 1px solid #f1e5dd;
}

.kitchen-order-title {
  min-width: 0;
}

.kitchen-order-title > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.kitchen-order h3 {
  color: var(--ink);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.05;
}

.kitchen-order-number {
  color: var(--red);
  font-size: 15px;
  font-weight: 950;
}

.kitchen-order-meta {
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.kitchen-order-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kitchen-order-meta svg {
  width: 14px;
  height: 14px;
}

.kitchen-order-age {
  min-width: 88px;
  padding: 8px 10px;
  color: #6d4200;
  border-radius: 9px;
  background: var(--amber-2);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.kitchen-order-age.is-late {
  color: #fff;
  background: var(--red);
}

.kitchen-pizza-list {
  display: grid;
}

.kitchen-pizza {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 17px;
  border-bottom: 1px solid #f1e5dd;
}

.kitchen-pizza:last-child {
  border-bottom: 0;
}

.kitchen-pizza-main {
  min-width: 0;
  gap: 11px;
}

.kitchen-pizza-index {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--amber);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
}

.kitchen-pizza-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.kitchen-pizza h4 {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.kitchen-pizza-note {
  color: #9d1b1b !important;
}

.kitchen-pizza-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.kitchen-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  min-width: 112px;
  padding: 9px 16px;
  color: #fff;
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 950;
}

.kitchen-action svg {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}

.kitchen-action.is-ready {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.kitchen-action.is-ready:hover {
  background: #08642f;
}

.kitchen-notice,
.kitchen-loading,
.kitchen-empty {
  gap: 15px;
  padding: 20px;
  margin-bottom: 20px;
  color: #5c3824;
  background: #fff;
  border: 1px solid #ead9d0;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(81, 38, 22, 0.07);
}

.kitchen-notice svg {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  color: var(--red);
}

.kitchen-notice > div {
  flex: 1;
}

.kitchen-notice h2 {
  color: var(--ink);
  font-size: 18px;
}

.kitchen-notice p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.kitchen-notice.is-error {
  border-color: #ecaaaa;
  background: #fff5f5;
}

.kitchen-primary-link {
  flex: 0 0 auto;
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.kitchen-loading,
.kitchen-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  color: var(--muted);
  border-style: dashed;
  font-weight: 850;
  text-align: center;
}

.kitchen-empty svg {
  width: 38px;
  height: 38px;
  color: var(--green);
}

.kitchen-empty strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
}

.kitchen-empty span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.kitchen-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 15px;
  color: #fff;
  background: #1d623b;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(20, 63, 38, 0.28);
  font-size: 14px;
  font-weight: 800;
}

.kitchen-toast.is-error {
  background: #a3161a;
}

@media (max-width: 840px) {
  .kitchen-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .kitchen-summary {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .kitchen-topbar {
    position: static;
  }

  .kitchen-counter span,
  #kitchenSyncStatus,
  .kitchen-panel-link {
    display: none;
  }

  .kitchen-queue-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .kitchen-pizza {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kitchen-pizza-actions {
    justify-content: stretch;
  }

  .kitchen-action {
    flex: 1;
  }

  .kitchen-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
