/* Shared checkbox marker for both first-party apps. */
:root {
  --list-checkbox-outline: rgba(139, 180, 202, .32);
  --checkbox-mint: #83c4ad;
  --checkbox-mint-soft: rgba(72, 151, 122, .16);
}
:root[data-theme="light"] {
  --list-checkbox-outline: #7c8582;
  --checkbox-mint: #2d715e;
  --checkbox-mint-soft: rgba(45, 113, 94, .12);
}
:root :is(input[type="checkbox"], span).app-checkbox {
  box-sizing: border-box;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--list-checkbox-outline);
  border-radius: 9px;
  background: transparent;
  color: var(--checkbox-mint);
  font: 600 14px/1 var(--sans, -apple-system), BlinkMacSystemFont, "Segoe UI", sans-serif;
  vertical-align: middle;
}
:root :is(input[type="checkbox"], span).app-checkbox:is(.checked, :checked) {
  background: var(--checkbox-mint-soft);
}
input.app-checkbox[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 5px 0;
  cursor: pointer;
}
input.app-checkbox[type="checkbox"]::after {
  content: "";
}
input.app-checkbox[type="checkbox"]:checked::after {
  content: "✓";
}
.app-checkbox:focus-visible,
.app-check-target:focus-visible {
  outline: 2px solid var(--blue, #8bb4ca);
  outline-offset: 2px;
}
:root .app-check-target {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 5px;
  border: 0;
  background: transparent;
  vertical-align: middle;
}
label:has(> input.app-checkbox[type="checkbox"]),
label:has(> strong > input.app-checkbox[type="checkbox"]) {
  min-height: 44px;
}

.app-check-target:disabled { opacity: 1; }

:root button:has(> .app-checkbox) {
  min-width: 44px;
  min-height: 44px;
}
