.checks-panel.hidden {
  display: none !important;
}

.checks-chores-embed,
.checks-todo-embed,
.checks-goals-embed {
  max-width: 100%;
}

.checks-chores-embed.container,
.checks-todo-embed.container,
.checks-goals-embed.container {
  padding-left: 0;
  padding-right: 0;
}

body.tool-checks #chores-app,
body.tool-checks #todo-app,
body.tool-checks #goals-app {
  --text-main: var(--text-main);
}

/* Zero-size root — must not block taps on panels/FAB (full-screen fixed box ate clicks on iOS) */
#checks-overlays {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 9000;
  pointer-events: none;
}

#checks-overlays .overlay {
  z-index: 9000;
  pointer-events: auto;
}

#checks-overlays .overlay.hidden {
  display: none !important;
  pointer-events: none;
}

/* Tasks embed — full-page progress gradient + fill height to tab bar */
body.tool-checks.todo-progress-active {
  overflow: hidden !important;
  overscroll-behavior: none;
  padding-bottom: 0 !important;
}

body.tool-checks.todo-progress-active > header {
  position: relative;
  z-index: 40;
  background: transparent !important;
  box-shadow: none !important;
}

body.tool-checks.todo-progress-active > #checks-app.container {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: none;
  padding: 0 !important;
  background: transparent !important;
}

body.tool-checks.todo-progress-active #checks-panel-progress {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent !important;
}

/* Body ::before (todo/style.css) owns the gradient — not the panel */
body.tool-checks.todo-progress-active #checks-panel-progress.todo-progress-active::before {
  display: none;
}

body.tool-checks.todo-progress-active .checks-todo-embed,
body.tool-checks.todo-progress-active #todo-app,
body.tool-checks.todo-progress-active #todo-progress-tab,
body.tool-checks.todo-progress-active .todo-progress-view {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent !important;
}

body.tool-checks.todo-progress-active #todo-progress-tab {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.tool-checks.todo-progress-active .todo-progress-chrome {
  padding-top: 0.35rem;
}

body.tool-checks.todo-progress-active .todo-progress-carousel {
  flex: 1;
  min-height: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}

body.tool-checks.todo-progress-active .todo-progress-topic-card {
  height: 100%;
  min-height: 0;
  touch-action: auto;
}

/* Goals summary — redesign v2: stacked progress bands (Checks embed only) */
.checks-goals-embed .gs-v2-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.checks-goals-embed .gs-v2-band {
  position: relative;
  overflow: hidden;
}

.checks-goals-embed .gs-v2-band + .gs-v2-band {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.checks-goals-embed .gs-v2-band-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.checks-goals-embed .gs-v2-band--week .gs-v2-band-fill {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.28) 100%);
}

html.dark .checks-goals-embed .gs-v2-band--week .gs-v2-band-fill,
.dark .checks-goals-embed .gs-v2-band--week .gs-v2-band-fill {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.32) 100%);
}

.checks-goals-embed .gs-v2-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.checks-goals-embed .gs-v2-band--week .gs-v2-band-inner {
  min-height: 3.35rem;
}

.checks-goals-embed .gs-v2-band-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.checks-goals-embed .gs-v2-band-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.checks-goals-embed .gs-v2-band-pct {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--orange, #fb9d4b);
  flex-shrink: 0;
}

html.dark .checks-goals-embed .gs-v2-band-pct,
.dark .checks-goals-embed .gs-v2-band-pct {
  color: var(--color-blue-400, #60a5fa);
}

.checks-goals-embed .gs-v2-today-frac {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
