:root {
  --parcel-yellow: #ffe100;
  --text: #242424;
  --muted: #8b8b8f;
  --page: #eeeeee;
  --sheet: #ffffff;
  --soft: #f4f4f4;
  --alert: #fde8e9;
  --shadow: 0 -16px 48px rgba(0, 0, 0, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 225, 0, 0.28), transparent 30%),
    linear-gradient(180deg, #dddddd 0%, var(--page) 34%);
}

.phone-shell {
  width: min(100vw, 540px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
}

.sheet {
  min-height: calc(100vh - 82px);
  padding: 8px 22px 126px;
  background: var(--sheet);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow);
}

.grabber {
  width: 52px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #d6d6d6;
}

h1 {
  margin: 0 0 26px;
  font-size: clamp(32px, 8vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.notice {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 999px;
  background: var(--alert);
}

.notice-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 34px;
}

.notice-title,
.notice-subtitle,
.parcel-card p,
.flight-pill p,
.event p {
  margin: 0;
}

.notice-title {
  font-size: 17px;
  line-height: 1.14;
  font-weight: 500;
}

.notice-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.parcel-card {
  margin: 24px 0 8px 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}

.parcel-portrait {
  position: relative;
  margin: -4px -4px 16px;
  overflow: hidden;
  border-radius: 22px;
  background: #e8c07f;
  box-shadow: 0 16px 38px rgba(95, 62, 24, 0.18);
}

.parcel-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.parcel-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 225, 0, 0.94);
  color: #1d1d1d;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2 {
  margin: 2px 0 2px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.passengers {
  margin-top: 16px;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 225, 0, 0.5), transparent 24%),
    linear-gradient(135deg, #fff8ce 0%, #fff 48%, #f4f0ea 100%);
  border: 1px solid rgba(224, 182, 52, 0.32);
}

.passengers-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.passengers-header span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.passengers-header strong {
  max-width: 210px;
  text-align: right;
  font-size: 14px;
  line-height: 1.12;
}

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

.passenger-chip {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(224, 182, 52, 0.18);
}

.passenger-emoji {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--parcel-yellow);
  font-size: 20px;
}

.passenger-chip strong,
.passenger-chip p,
.passenger-chip small {
  display: block;
}

.passenger-chip strong {
  font-size: 16px;
}

.passenger-chip p {
  margin: 1px 0 0;
  color: #5e5648;
  font-size: 12px;
  line-height: 1.15;
}

.passenger-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.flight-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.flight-pill {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eeeeee;
}

.flight-pill > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
}

.flight-number {
  color: var(--text);
  font-weight: 800;
}

.flight-pill strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.progress {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ededed;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--parcel-yellow);
}

.timeline {
  position: relative;
  padding-top: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 33px;
  bottom: 0;
  left: 119px;
  width: 9px;
  border-radius: 999px;
  background: var(--parcel-yellow);
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 34px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 84px;
  position: relative;
}

.timestamp {
  padding-top: 5px;
  text-align: right;
}

.timestamp strong,
.timestamp span {
  display: block;
}

.timestamp strong {
  font-size: 17px;
  line-height: 1.1;
}

.timestamp span {
  color: var(--muted);
  font-size: 16px;
}

.dot {
  z-index: 1;
  width: 21px;
  height: 21px;
  margin: 6px auto 0;
  border-radius: 50%;
  background: var(--parcel-yellow);
}

.timeline-item.pending .dot {
  background: #f5f5f5;
  box-shadow: inset 0 0 0 6px var(--parcel-yellow);
}

.event h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.event p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.22;
}

.actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  width: min(100vw, 540px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 11px calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -6px 26px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(18px);
}

button {
  min-height: 76px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-size: 21px;
  cursor: pointer;
}

.secondary {
  background: #eeeeee;
  color: var(--text);
}

.primary {
  background: var(--parcel-yellow);
  color: #181818;
  font-weight: 700;
}

.closed .sheet {
  filter: saturate(0.7);
}

@media (max-width: 390px) {
  .sheet {
    padding-inline: 16px;
  }

  .timeline::before {
    left: 101px;
  }

  .timeline-item {
    grid-template-columns: 72px 28px 1fr;
    gap: 10px;
  }

  .event h3 {
    font-size: 20px;
  }

  button {
    font-size: 18px;
  }

  .passenger-list {
    grid-template-columns: 1fr;
  }
}
