:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #687386;
  --line: #e3e9f2;
  --panel: rgba(255, 255, 255, 0.9);
  --blue: #2563eb;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #dc2626;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(22, 163, 74, 0.16), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef5f2 52%, #fff8ef 100%);
}

.page {
  min-height: 100vh;
  padding: 48px 20px;
}

.hero,
.panel {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.hero {
  padding: 44px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: 0 28px 72px rgba(31, 41, 55, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  padding: 8px 13px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 620px;
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.search {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 14px;
}

.search input,
.search button {
  min-height: 54px;
  border-radius: 16px;
  font: inherit;
  font-size: 17px;
}

.search input {
  width: 100%;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7deea;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search button {
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.search button:not(:disabled):hover {
  transform: translateY(-1px);
}

.search button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
}

.message[data-type="error"] {
  color: var(--red);
}

.panel {
  padding: 28px;
  margin-top: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 20px 54px rgba(31, 41, 55, 0.1);
}

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

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status,
.status-inline {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  color: #0f5132;
  font-weight: 800;
  background: #dcfce7;
  border-radius: 999px;
}

.status[data-status="pending_link"],
.status[data-status="pending_review"],
.status[data-status="waiting_shipment"] {
  color: #92400e;
  background: #fef3c7;
}

.status[data-status="cancelled"] {
  color: #991b1b;
  background: #fee2e2;
}

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

.order-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.order-table th,
.order-table td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.order-table th {
  color: #526074;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f7f9fc;
}

.number-stack,
.line-list {
  display: grid;
  gap: 6px;
}

.number-stack strong {
  font-size: 17px;
}

.number-stack span,
.line-list {
  color: var(--muted);
  line-height: 1.45;
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .page {
    padding: 22px 14px;
  }

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

  .search {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-wrap {
    overflow: visible;
  }

  .order-table,
  .order-table thead,
  .order-table tbody,
  .order-table tr,
  .order-table th,
  .order-table td {
    display: block;
    min-width: 0;
  }

  .order-table thead {
    display: none;
  }

  .order-table tr {
    display: grid;
    gap: 12px;
  }

  .order-table td {
    padding: 14px 0;
  }

  .order-table td::before {
    display: block;
    margin-bottom: 6px;
    color: #7b8798;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    content: attr(data-label);
  }
}
