:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111f;
  color: #eef5ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(35, 116, 225, 0.24), transparent 38rem),
    linear-gradient(135deg, #07111f 0%, #0e1d31 45%, #111827 100%);
}

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

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8ec5ff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

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

h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.96;
  margin-bottom: 14px;
}

.subcopy {
  max-width: 680px;
  color: #b6c6d9;
  font-size: 18px;
  line-height: 1.5;
}

.status-card, .panel {
  background: rgba(13, 27, 45, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  border-radius: 22px;
}

.status-card {
  padding: 14px 16px;
  white-space: nowrap;
  color: #d8e9ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #30d158;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(48, 209, 88, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 24px;
}

.panel-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.panel-header h2 { margin-bottom: 6px; }
.panel-header p, small { color: #98a9bc; }

label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: #dbeafe;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 8, 23, 0.72);
  color: #f8fbff;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  border-color: rgba(56, 189, 248, 0.8);
}

.primary, .secondary {
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

.primary {
  width: 100%;
  padding: 15px 18px;
  color: #06111f;
  background: linear-gradient(135deg, #5eead4, #60a5fa);
  margin-top: 12px;
}

.secondary {
  padding: 11px 13px;
  color: #dff7ff;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.32);
}

.muted-box, .summary, .queue-card {
  background: rgba(2, 8, 23, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 15px;
  color: #c3d4e8;
}

.line-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.line-items-header h3 { margin-bottom: 4px; }
.line-items-header p { color: #98a9bc; margin-bottom: 0; }

.line-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 170px 44px;
  gap: 10px;
  margin: 12px 0;
  align-items: center;
}

.remove-line {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.3);
  cursor: pointer;
}

.summary dl { margin: 0; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.summary-row:last-child { border-bottom: 0; }
.summary dt { color: #98a9bc; }
.summary dd { margin: 0; text-align: right; font-weight: 800; }

.admin-panel { margin-top: 20px; }
.queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.queue-card h3 { margin-bottom: 8px; }
.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: #06111f;
  background: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 880px) {
  .hero, .grid { grid-template-columns: 1fr; display: grid; }
  .status-card { white-space: normal; }
  .line-item { grid-template-columns: 1fr; }
  .queue { grid-template-columns: 1fr; }
}
