/* #checklist restores the original home UI instead of rendering a parallel list. */
.home-page[data-home-view="checklist"] > #tabs {
  display: grid !important;
  flex: 0 0 auto;
}

.home-page[data-home-view="checklist"] > .legacy-home-panel {
  display: block !important;
  flex: 1 1 auto;
  min-height: 0;
}

.home-page[data-home-view="checklist"] .routine-list > .timetable-routine-row {
  display: none !important;
}

.home-page[data-home-view="checklist"] .routine-tab-icon {
  display: none !important;
}

.home-page[data-home-view="checklist"] .routine-tab-button {
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

#app.checklist-route:not(.show-order):not(.show-stats) #fab {
  display: grid !important;
}

#app.checklist-route:not(.show-order):not(.show-stats) #addMenu.open {
  display: block !important;
}

#app.checklist-route .bottom-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.repeat-summary-row {
  display: none !important;
}

.checklist-routine-link-section {
  display: none;
}

#app.checklist-route .checklist-routine-link-section {
  display: block;
}

.relation-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.relation-list {
  display: grid;
  gap: 8px;
  max-height: min(52dvh, 420px);
  margin-bottom: 16px;
  overflow-y: auto;
}

.relation-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.relation-option.is-group {
  background: #f0f7f2;
  border-color: #cfe6d7;
}

.relation-option input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--green);
}

.schedule-relation-list {
  max-height: 230px;
  margin: 0;
}

.relation-option span,
.relation-option strong,
.relation-option small {
  min-width: 0;
}

.relation-option strong,
.relation-option small {
  display: block;
}

.relation-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.relation-empty {
  padding: 32px 12px;
  color: var(--muted);
  text-align: center;
}

/* Checklist items do not expose or persist routine notification settings. */
#app.checklist-route #notificationSummary,
#app.checklist-route #notificationModal,
#app.checklist-route .repeat-notification-toggle,
#app.checklist-route #repeatNotificationList,
#app.checklist-route #repeatModalAddNotificationButton,
#app.checklist-route label:has(#groupNotificationToggle),
#app.checklist-route #groupNotificationList,
#app.checklist-route #groupNotificationAddButton {
  display: none !important;
}

@media (max-width: 374px) {
  .home-page[data-home-view="checklist"] > #tabs {
    margin-top: 12px;
  }
}
