/* Lifestyle owns this presentation wherever a check-in is embedded. */
:root {
  --life-check-bg: #eaf5ff;
  --life-check-ink: #123050;
  --life-check-edge: #9ec5e9;
  --life-check-accent: #005dc6;
  --life-check-primary: linear-gradient(#177de6, #0457c4);
}
:root[data-wz-mode="dark"] {
  --life-check-bg: #13344c;
  --life-check-ink: #e9f5ff;
  --life-check-edge: #427493;
  --life-check-accent: #8bdcff;
  --life-check-primary: linear-gradient(#12709c, #0b547b);
}
.life-check-in-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.life-check-in-choices[hidden] {
  display: none;
}
.life-check-in-choices > .life-check-in-action {
  flex: 1 1 110px;
}
.life-check-in-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--life-check-edge);
  border-radius: 9px;
  background: var(--life-check-bg);
  color: var(--life-check-accent);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.life-check-in-action.life-check-in-primary,
#connected-content .life-reviewed-log-actions .life-check-in-action.life-check-in-primary {
  background: var(--life-check-primary);
  color: white;
}
.life-check-in-action:disabled {
  cursor: default;
  opacity: .68;
}
.life-check-in-action:focus-visible,
.life-check-in-sheet :is(button,a,select):focus-visible {
  outline: 2px solid var(--life-check-accent);
  outline-offset: 2px;
}
.life-check-in-icon,
.life-check-in-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.life-check-in-sheet {
  box-sizing: border-box;
  width: min(420px, calc(100% - 24px));
  max-height: min(82dvh, 640px);
  max-width: none;
  margin: auto;
  padding: 16px;
  border: 1px solid var(--life-check-edge);
  border-radius: 16px;
  background: var(--life-check-bg);
  color: var(--life-check-ink);
  box-shadow: 0 12px 48px #03172a55;
  overflow: auto;
}
.life-check-in-sheet::backdrop {
  background: #03172a8c;
}
.life-check-in-sheet > h2 {
  max-width: calc(100% - 80px);
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.3;
}
.life-check-in-close {
  position: absolute;
  inset: 8px 8px auto auto;
  min-height: 44px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: var(--life-check-accent);
  font: inherit;
  cursor: pointer;
}
.life-check-in-field {
  display: grid;
  gap: 4px;
  margin: 8px 0 12px;
}
.life-check-in-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--life-check-edge);
  border-radius: 8px;
  padding: 6px;
  background: var(--life-check-bg);
  color: var(--life-check-ink);
  font: inherit;
}
.life-check-in-status:empty {
  display: none;
}
.life-check-in-status {
  margin: 6px 0 0;
  color: var(--life-check-ink);
}
.life-check-in-detail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--life-check-accent);
}
.life-check-in-habit-row {
  border-top: 1px solid var(--life-check-edge);
  padding: 6px 0;
}
.life-check-in-habit-row > h3 {
  margin: 4px 0;
  font-size: 1rem;
}
.wz-day-task .life-habit-check-in {
  grid-column: 2 / -1;
}
.life-reviewed-log-actions > :is(.life-check-in-choices,.life-check-in-status) {
  grid-column: 1 / -1;
}
body.wz-v2[data-hub-screen="today"][data-wz-v2-board="today"] #hub-day-panel:has(.wz-day-empty) #your-day
  > :is(.wz-day-quick:has(.life-check-in-action), .wz-day-completed:has(.life-habit-check-in)) {
  display: block !important;
}
