/* Share the existing newcomer task panel and homepage shortcut styles. */
.newcomer-dialog.is-tasks.seven-day-checkin-dialog {
  width: min(360px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 32px));
  margin: auto;
  color: #303642;
}

.seven-day-checkin-dialog .seven-day-checkin-close {
  box-sizing: border-box;
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.seven-day-checkin-dialog button:focus-visible {
  outline: 2px solid #fa7298;
  outline-offset: 2px;
}

.seven-day-checkin-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
}

.seven-day-checkin-body::-webkit-scrollbar { display: none; }

.seven-day-checkin-dialog p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.seven-day-checkin-rule { padding-top: 14px; color: #46515f; }
.seven-day-checkin-date { margin-top: 5px !important; font-size: 12px !important; color: #8a919e; }
.seven-day-checkin-progress { margin-top: 12px !important; font-weight: 600; }

.seven-day-checkin-days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 12px 0 16px;
  list-style: none;
}

.seven-day-checkin-day {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 60px;
  padding: 8px 4px;
  border: 1px solid #e1e5eb;
  background: #fff;
  color: #8a919e;
  font-size: 12px;
}

.seven-day-checkin-day strong { font-size: 12px; font-weight: 500; }
.seven-day-checkin-day.is-next { border-color: #ff6794; color: #ff5188; }
.seven-day-checkin-day.is-complete { border-color: #f6d3df; background: #fff5f8; color: #ff5188; }
.seven-day-checkin-day:last-child { grid-column: span 2; }
.seven-day-checkin-reward { margin-bottom: 10px; }
.seven-day-checkin-cannon { color: #758092; font-size: 12px !important; }
.seven-day-checkin-note { margin-top: 12px !important; color: #8a919e; font-size: 12px !important; }
.seven-day-checkin-bag { margin-top: 12px; width: 100%; }

.seven-day-checkin-dialog .seven-day-checkin-status {
  flex-shrink: 0;
  max-height: 64px;
  margin-top: 8px;
  overflow: auto;
  color: #758092;
  font-size: 12px;
}

.seven-day-checkin-status:empty { display: none; }
.seven-day-checkin-status.is-error { color: #b32c56; }
.seven-day-checkin-dialog .seven-day-checkin-refresh { border-color: #e1e5eb; color: #697383; }
.seven-day-checkin-dialog .seven-day-checkin-claim { flex: 1; min-width: 0; background: #ff6794; color: #fff; }
.seven-day-checkin-dialog .seven-day-checkin-retry { flex: 1 1 auto; min-width: 0; font-size: 12px; }
.seven-day-checkin-dialog footer { flex-wrap: wrap; }

@media (max-height: 480px) {
  .seven-day-checkin-rule { padding-top: 8px; }
  .seven-day-checkin-days { gap: 6px; margin: 10px 0; }
  .seven-day-checkin-day { min-height: 52px; }
}

.seven-day-checkin-dialog .seven-day-checkin-reward-image { width: 88px; height: 72px; object-fit: contain; }
