* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* ── Base (mobile-first) ── */
body {
  margin: 0;
  padding: 12px;
  background: #f4f6fb;
  min-height: 100vh;
}

/* ── Add Day Button ── */
.add-day {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 16px 24px;
  background: #5C6AC4;
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.add-day:hover  { background: #4a58b0; }
.add-day:active { transform: scale(0.98); }

/* ── Day Container ── */
.day-container {
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.day {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding-right: 14px;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
}

.day:hover { background: #f0f2ff; }

/* ── Showcase ── */
.showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  gap: 6px;
}

.title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #5C6AC4;
  line-height: 1.2;
}

.numbers {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex-wrap: wrap;
}

.numbers span {
  font-size: 0.85rem;
  color: #444;
  background: #f0f2ff;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Action Buttons (Add / Delete-day) ── */
.add,
.delete-day {
  flex-shrink: 0;
  height: 48px;
  width: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}

.add {
  background: #5C6AC4;
  color: white;
  font-size: 1.6rem;
  line-height: 1;
}
.add:hover  { background: #4a58b0; }
.add:active { transform: scale(0.94); }

.delete-day {
  background: #ffe0e0;
  color: #e05555;
}
.delete-day:hover  { background: #e05555; color: white; }
.delete-day:active { transform: scale(0.94); }

/* ── Entry List ── */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-right: 14px;
  background: #fff;
  border-top: 1px solid #eaecf4;
  transition: background 0.15s;
  align-items: center;
}

.entry:hover { background: #fafafa; }

/* ── Entry Numbers ── */
.entry-numbers {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 12px 16px;
  align-items: center;
  flex-wrap: wrap;
}

.entry-numbers span {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #444;
  background: #f4f6fb;
  padding: 5px 14px;
  border-radius: 20px;
  gap: 4px;
}

.entry-numbers span [contenteditable] {
  outline: none;
  min-width: 28px;
  text-align: right;
  color: #5C6AC4;
  font-weight: 600;
}

/* ── Delete Entry Button ── */
.delete {
  height: 38px;
  width: 38px;
  border: none;
  border-radius: 50%;
  background: #ffe0e0;
  color: #e05555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}
.delete:hover  { background: #e05555; color: white; }
.delete:active { transform: scale(0.94); }

/* ══════════════════════════════
   Desktop — 600 px and above
══════════════════════════════ */
@media (min-width: 600px) {
  body {
    padding: 28px;
    max-width: 720px;
    margin: 0 auto;
  }

  .add-day {
    width: auto;
    padding: 10px 28px;
    font-size: 1rem;
    border-radius: 24px;
  }

  .day {
    min-height: 80px;
    gap: 20px;
    padding-right: 24px;
    grid-template-columns: 3fr auto auto;
  }

  .title      { font-size: 1.25rem; }
  .numbers span { font-size: 0.9rem; }

  .add,
  .delete-day { height: 44px; width: 44px; }
  .add        { font-size: 1.4rem; }

  .entry {
    grid-template-columns: 3fr auto auto;
    gap: 20px;
    padding-right: 24px;
  }

  .entry-numbers span { font-size: 0.9rem; }
  .delete { height: 34px; width: 34px; }
}
