:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #61707a;
  --line: #d8e0e5;
  --panel: #ffffff;
  --canvas: #f4f7f5;
  --accent: #d94f35;
  --accent-dark: #a83d2a;
  --green: #2e8f63;
  --yellow: #b98118;
  --blue: #2f6f9f;
  --shadow: 0 18px 48px rgba(31, 45, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(217, 79, 53, 0.08), transparent 280px),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
   color: inherit;
   text-decoration: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 330px;
  align-items: start;
  gap: 22px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 24, 28, 0.92) 0%, rgba(18, 24, 28, 0.76) 42%, rgba(18, 24, 28, 0.1) 100%),
    url("./assets/pizza-hero.png") center right / cover no-repeat;
  box-shadow: var(--shadow);
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ed;
}

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

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 3px;
  color: #ffd18a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 7vw, 4.8rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.ghost-button,
.order-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  vertical-align: middle;
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.ghost-button:visited {
  color: var(--ink);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.hero-description {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}

.order-panel .eyebrow {
  color: var(--accent-dark);
}

.toolbar,
.order-panel,
.status-grid,
.workspace {
  margin-top: 16px;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 79, 53, 0.16);
}

.order-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: end;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
}

.order-form button {
  background: var(--accent);
  color: #fff;
}

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

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric span {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.metric p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.message[data-tone="success"] {
  color: var(--green);
}

.message[data-tone="error"] {
  color: var(--accent-dark);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.table-section,
.notifications-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.section-heading {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  min-width: 92px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #edf4fa;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.status-pill[data-status="PREPARING"] {
  background: #fff4dc;
  color: var(--yellow);
}

.status-pill[data-status="READY"] {
  background: #e5f4ec;
  color: var(--green);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.task-actions button[data-task-action="delete"] {
  border-color: rgba(217, 79, 53, 0.32);
  color: var(--accent-dark);
}

.notification-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.notification-list strong,
.notification-list span,
.notification-list time {
  display: block;
}

.notification-list span,
.notification-list time,
.empty-state {
  color: var(--muted);
}

.notification-list time {
  font-size: 0.84rem;
}

.empty-state {
  padding: 18px 16px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 860px) {
  .toolbar,
  .order-panel,
  .status-grid,
  .workspace {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
    min-height: 420px;
    padding: 18px;
    background:
      linear-gradient(180deg, rgba(18, 24, 28, 0.92) 0%, rgba(18, 24, 28, 0.72) 58%, rgba(18, 24, 28, 0.25) 100%),
      url("./assets/pizza-hero.png") center right / cover no-repeat;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .ghost-button {
    grid-column: 1 / -1;
  }

  .header-actions .ghost-button {
    flex: 1;
  }

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