:root {
  --hub-ink: #111827;
  --hub-muted: #667085;
  --hub-line: #dde3dc;
  --hub-soft: #f5f7f4;
  --hub-green: #a8e63a;
  --hub-cyan: #44b9ed;
  --hub-shadow: 0 18px 45px rgb(22 34 18 / 8%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: #fbfcfb;
  color: var(--hub-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }

.hub-shell {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hub-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #4d5a4f;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.hub-hero {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  border-radius: 30px;
  padding: 38px 44px;
  background: #050705;
  color: #fff;
  box-shadow: 0 24px 58px rgb(16 26 13 / 18%);
}

.hub-hero__copy { position: relative; z-index: 1; }
.hub-eyebrow {
  margin: 0;
  color: var(--hub-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hub-hero h1 {
  max-width: 620px;
  margin: 10px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.hub-hero p:not(.hub-eyebrow) {
  max-width: 660px;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 13px;
  line-height: 1.65;
}
.hub-hero__art {
  display: grid;
  height: 210px;
  place-items: center;
}
.hub-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgb(0 0 0 / 35%));
}
.hub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hub-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 18px;
  background: var(--hub-green);
  color: #111b0c;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.hub-button.secondary { border-color: var(--hub-line); background: #fff; color: var(--hub-ink); }
.hub-button.cyan { background: var(--hub-cyan); }
.hub-button:focus-visible, .hub-tab:focus-visible, .hub-back:focus-visible {
  outline: 3px solid rgb(68 185 237 / 35%);
  outline-offset: 3px;
}

.hub-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.hub-metric {
  border: 1px solid var(--hub-line);
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: var(--hub-shadow);
}
.hub-metric strong, .hub-metric span { display: block; }
.hub-metric strong { font-size: 24px; letter-spacing: -.04em; }
.hub-metric span { margin-top: 3px; color: var(--hub-muted); font-size: 11px; }

.hub-content { margin-top: 38px; }
.hub-content__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.hub-content h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.05em; }
.hub-content__head p { margin: 6px 0 0; color: var(--hub-muted); font-size: 12px; }
.hub-tabs { display: flex; overflow-x: auto; gap: 8px; padding: 3px; scrollbar-width: none; }
.hub-tab {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  color: #5d695f;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.hub-tab[aria-selected="true"] { border-color: #111710; background: #111710; color: #fff; }

.hub-list { display: grid; gap: 14px; margin-top: 18px; }
.hub-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--hub-line);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--hub-shadow);
}
.hub-card__plate {
  display: grid;
  min-height: 86px;
  place-items: center;
  border-radius: 17px;
  background: #d9f4ff;
  color: #14283a;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .06em;
}
.hub-card[data-group="purchased"] .hub-card__plate,
.hub-card[data-group="scheduled"] .hub-card__plate { background: #e8f9c9; }
.hub-card[data-group="history"] .hub-card__plate { background: #f0f2f0; color: #616b63; }
.hub-card__body { min-width: 0; }
.hub-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-card h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.hub-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid #c8ddf5;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f7ff;
  color: #245ca5;
  font-size: 9px;
  font-weight: 800;
}
.hub-card__meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 10px; color: var(--hub-muted); font-size: 10px; line-height: 1.45; }
.hub-card__error { margin: 9px 0 0; color: #a5362c; font-size: 10px; line-height: 1.45; }
.hub-card__actions { display: flex; min-width: 150px; flex-direction: column; gap: 8px; }
.hub-card__actions .hub-button { width: 100%; }
.hub-card__pdf { min-height: 40px; font-size: 10px; }

.hub-state {
  display: grid;
  min-height: 250px;
  margin-top: 18px;
  place-items: center;
  border: 1px dashed #cfd7cd;
  border-radius: 24px;
  padding: 34px;
  background: #fff;
  text-align: center;
}
.hub-state h2, .hub-state h3 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.hub-state p { max-width: 520px; margin: 9px auto 18px; color: var(--hub-muted); font-size: 12px; line-height: 1.6; }
.hub-state--loading { background: linear-gradient(90deg, #f4f6f3 25%, #fff 50%, #f4f6f3 75%); background-size: 220% 100%; animation: hub-shimmer 1.3s linear infinite; }
@keyframes hub-shimmer { to { background-position: -220% 0; } }

@media (max-width: 760px) {
  .hub-shell { width: min(100% - 24px, 1180px); padding-top: 12px; }
  .hub-hero { min-height: 390px; grid-template-columns: 1fr; align-content: start; padding: 24px 20px 18px; border-radius: 26px; }
  .hub-hero h1 { font-size: 31px; }
  .hub-hero__art { position: absolute; right: -70px; bottom: -18px; width: 270px; height: 180px; opacity: .55; }
  .hub-hero__copy { max-width: 100%; }
  .hub-hero p:not(.hub-eyebrow) { max-width: 84%; font-size: 11px; }
  .hub-hero__actions { position: relative; z-index: 2; margin-top: 18px; }
  .hub-hero__actions .hub-button { flex: 1 1 150px; }
  .hub-overview { grid-template-columns: 1fr; gap: 8px; }
  .hub-metric { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; }
  .hub-metric span { margin: 0; }
  .hub-content__head { align-items: flex-start; flex-direction: column; }
  .hub-tabs { width: 100%; }
  .hub-card { grid-template-columns: 1fr; gap: 12px; padding: 13px; }
  .hub-card__plate { min-height: 70px; }
  .hub-card__actions { min-width: 0; flex-direction: row; flex-wrap: wrap; }
  .hub-card__actions .hub-button { flex: 1 1 140px; }
}
