:root {
  --bg: #f4efe7;
  --bg-accent: #e8dcc7;
  --card: rgba(255, 252, 246, 0.9);
  --text: #1f2933;
  --muted: #5b6470;
  --line: rgba(31, 41, 51, 0.12);
  --accent: #bf5b2c;
  --accent-strong: #8f3f1c;
  --ok: #2e7d55;
  --error: #b43f2a;
  --shadow: 0 18px 48px rgba(82, 52, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 91, 44, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(143, 63, 28, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg), #f9f6f0 55%, #efe6d7);
}

.app-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.05;
}

.lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-meta span,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

#status-badge[data-error="true"] {
  color: var(--error);
  border-color: rgba(180, 63, 42, 0.3);
}

.panel {
  margin-top: 20px;
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

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

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.summary {
  color: var(--muted);
  margin-bottom: 18px;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.create-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.order-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.order-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card h3 {
  margin: 14px 0 10px;
  font-size: 18px;
}

.order-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.order-meta div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.order-meta dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-meta dd {
  margin: 6px 0 0;
}

.empty-state {
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 960px);
    padding-top: 12px;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .panel-header,
  .order-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  button {
    width: 100%;
  }
}
