.skd-shell {
  --skd-bg: #f7f1e8;
  --skd-card: #fffaf4;
  --skd-border: #dfcfbb;
  --skd-text: #2e241d;
  --skd-muted: #776656;
  --skd-accent: #c75b39;
  --skd-accent-strong: #9f4427;
  --skd-success: #6d8f52;
  background:
    radial-gradient(circle at top right, rgba(199, 91, 57, 0.14), transparent 28%),
    linear-gradient(180deg, #fff9f1 0%, var(--skd-bg) 100%);
  border: 1px solid var(--skd-border);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(71, 47, 26, 0.08);
  color: var(--skd-text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  padding: 24px;
}

.skd-header,
.skd-weekbar,
.skd-form,
.skd-item,
.skd-item-actions {
  display: flex;
  align-items: center;
}

.skd-header,
.skd-weekbar,
.skd-form {
  gap: 14px;
}

.skd-header,
.skd-weekbar,
.skd-form,
.skd-list-wrap {
  margin-bottom: 18px;
}

.skd-header {
  justify-content: space-between;
}

.skd-kicker {
  color: var(--skd-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.skd-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.skd-status {
  color: var(--skd-muted);
  font-size: 14px;
  min-height: 20px;
}

.skd-weekbar {
  align-items: stretch;
}

.skd-days {
  display: grid;
  flex: 1;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.skd-nav-button,
.skd-day,
.skd-form button,
.skd-item-actions button {
  border: 1px solid var(--skd-border);
  border-radius: 16px;
  transition: 140ms ease;
}

.skd-nav-button,
.skd-form button,
.skd-item-actions button {
  background: var(--skd-card);
  color: var(--skd-text);
  cursor: pointer;
  font: inherit;
}

.skd-nav-button {
  font-size: 22px;
  min-width: 48px;
}

.skd-day {
  background: rgba(255, 250, 244, 0.9);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-height: 72px;
  padding: 12px 10px;
  text-align: center;
}

.skd-day-name {
  color: var(--skd-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.skd-day-date {
  font-size: 15px;
  font-weight: 700;
}

.skd-day.is-selected {
  background: var(--skd-accent);
  border-color: var(--skd-accent);
  box-shadow: 0 12px 20px rgba(199, 91, 57, 0.22);
  color: #fff8f3;
}

.skd-day.is-selected .skd-day-name {
  color: rgba(255, 248, 243, 0.8);
}

.skd-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto;
}

.skd-form input {
  background: #fff;
  border: 1px solid var(--skd-border);
  border-radius: 16px;
  color: var(--skd-text);
  font: inherit;
  min-width: 0;
  padding: 14px 16px;
}

.skd-form button {
  background: var(--skd-accent);
  border-color: var(--skd-accent);
  color: #fff8f3;
  font-weight: 700;
  padding: 14px 18px;
}

.skd-photo-picker {
  align-items: center;
  background: var(--skd-card);
  border: 1px solid var(--skd-border);
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-width: 120px;
  padding: 14px 16px;
  position: relative;
}

.skd-photo-picker input {
  height: 1px;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.skd-photo-picker-icon {
  border: 2px solid var(--skd-accent);
  border-radius: 6px;
  display: inline-block;
  height: 18px;
  position: relative;
  width: 22px;
}

.skd-photo-picker-icon::before {
  background: var(--skd-accent);
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 4px;
  position: absolute;
  top: 4px;
  width: 4px;
}

.skd-photo-picker-icon::after {
  border-bottom: 8px solid var(--skd-accent);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  bottom: 2px;
  content: "";
  left: 4px;
  position: absolute;
}

.skd-photo-picker-text {
  font-weight: 700;
}

.skd-photo-meta {
  color: var(--skd-muted);
  font-size: 13px;
  margin: -8px 0 14px;
}

.skd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skd-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--skd-border);
  border-radius: 18px;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
}

.skd-item.is-bought {
  opacity: 0.72;
}

.skd-item.is-bought .skd-item-name {
  text-decoration: line-through;
}

.skd-check {
  align-items: center;
  color: var(--skd-muted);
  display: flex;
  gap: 8px;
}

.skd-check input {
  accent-color: var(--skd-success);
  height: 18px;
  width: 18px;
}

.skd-item-content {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.skd-item-photo-wrap {
  flex: 0 0 auto;
}

.skd-item-photo {
  border: 1px solid var(--skd-border);
  border-radius: 12px;
  display: block;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.skd-item-text {
  min-width: 0;
}

.skd-item-name {
  font-size: 16px;
  font-weight: 700;
}

.skd-item-qty {
  color: var(--skd-muted);
  font-size: 14px;
  margin-top: 3px;
}

.skd-item-actions {
  gap: 8px;
}

.skd-item-actions button {
  padding: 10px 12px;
}

.skd-item-actions .is-danger {
  color: var(--skd-accent-strong);
}

.skd-loading,
.skd-empty {
  color: var(--skd-muted);
  display: none;
  padding: 10px 2px;
}

.skd-loading.is-visible,
.skd-empty.is-visible {
  display: block;
}

.skd-nav-button:hover,
.skd-day:hover,
.skd-form button:hover,
.skd-item-actions button:hover {
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .skd-shell {
    border-radius: 18px;
    padding: 16px;
  }

  .skd-title {
    font-size: 22px;
  }

  .skd-weekbar {
    align-items: flex-start;
    gap: 8px;
  }

  .skd-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .skd-day {
    border-radius: 12px;
    min-height: 56px;
    padding: 8px 4px;
  }

  .skd-day-name {
    font-size: 10px;
  }

  .skd-day-date {
    font-size: 13px;
  }

  .skd-nav-button {
    border-radius: 12px;
    min-width: 40px;
  }

  .skd-form {
    grid-template-columns: 1fr;
  }

  .skd-photo-picker {
    width: 100%;
  }

  .skd-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .skd-item-content {
    align-items: flex-start;
    width: 100%;
  }

  .skd-item-actions {
    width: 100%;
  }

  .skd-item-actions button {
    flex: 1;
  }
}
