.weekly-gift-panel {
  margin: 14px 0 18px;
  padding: 16px;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, var(--surface-soft), transparent 34%),
    linear-gradient(145deg, var(--surface), var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(11, 99, 92, .08);
}

.weekly-gift-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.weekly-gift-head p,
.weekly-gift-head h2,
.weekly-gift-intro,
.weekly-state-card p {
  margin: 0;
}

.weekly-gift-head p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.weekly-gift-head h2 {
  margin-top: 4px;
  font-size: clamp(20px, 5vw, 28px);
}

.weekly-gift-head > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--text);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.weekly-gift-intro {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.weekly-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}

.weekly-summary strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--text);
  background: var(--surface-soft);
  border-radius: 12px;
}

.weekly-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.weekly-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.weekly-pack,
.weekly-state-card {
  min-width: 0;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.weekly-pack header,
.weekly-pack-foot,
.weekly-state-card,
.weekly-history article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.weekly-pack header small,
.weekly-pack header strong {
  display: block;
}

.weekly-pack header small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.weekly-pack header strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.weekly-pack header > span {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.weekly-pack header > span.fulfilled {
  color: var(--muted);
  background: var(--surface-soft);
}

.weekly-pack label {
  display: block;
  margin-top: 10px;
}

.weekly-pack label > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.weekly-pack select {
  width: 100%;
  min-height: 38px;
  padding: 0 8px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.weekly-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.weekly-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px;
  background: var(--surface);
  border-radius: 9px;
}

.weekly-item-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
  border-radius: 8px;
}

.weekly-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.weekly-item-icon.is-missing::after {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M3 8h18v4H3zM5 12v9h14v-9M12 8v13M12 8C5 8 6 1 10 4l2 4c7 0 6-7 2-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  font-size: 17px;
}

.weekly-item-icon.is-missing img {
  display: none;
}

.weekly-item strong,
.weekly-item small {
  display: block;
  overflow-wrap: anywhere;
}

.weekly-item strong {
  font-size: 11px;
  line-height: 1.2;
}

.weekly-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.weekly-pack-foot {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 50, 48, .1);
}

.weekly-pack-foot > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.weekly-pack-foot button {
  min-height: 36px;
  padding: 0 10px;
}

.weekly-state-card {
  margin-top: 13px;
}

.weekly-state-card strong {
  display: block;
}

.weekly-state-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.weekly-state-card button {
  flex: 0 0 auto;
  min-height: 38px;
}
